You do not have permissions to execute this command 'show operations' and other issues

Discussion in 'Web Call Server 4' started by Vladimir, Aug 18, 2015.

  1. Vladimir

    Vladimir New Member

    1. подскажите пожалуйста почему под admin/admin ssh на порт 2000 не удается выполнить ни одну команду.
    2. как сменить пароль admin/admin c дефолтного?
    3. из документации не совсем понял где заводятся пользователи сервиса телефонии?
  2. Max

    Max Administrator Staff Member

    Покажите лог logs/flashphoner_manager.log, вывод консоли и номер версии сервера, тогда сможем подсказать

    Процесс изменения пароля выглядит так
    Code:
    # ssh -p 2000 admin@localhost
    Password authentication
    Password:
    > help
    Try one of these commands with the -h or --help switch:
    
    NAME     DESCRIPTION
    update   Update property
    call     Call commands
    passwd   change password
    node     manage server node
    remove   Remove property
    show     Use to retrieve info from server
    add      Add properties
    qa       Quality Assurance
    watchdog Watch Dog Manager
    man      format and display the on-line manual pages
    help     provides basic help
    repl     list the repl or change the current repl
    
    > passwd
    admin password:
    confirm admin password:
    admin password has been changed
    Они не заводятся. У вас уже должны быть SIP аккаунты(пользователи IP телефонии на другом сервере или сервисе).
    Эти SIP аккаунты могут быть использованы непосредстваенно из web-интерфейса либо выдаваться на каждое соединение с WCS сервером.

    С точки зрения VoIP Телефонии, WCS4 предоставляет N Web-SIP телефонов (браузерных софтфонов), а вы можете отдать эти N телефонов вашим Web-пользователям. Т.е. дать каждому пользователю SIP аккаунт если нужны входящие звонки на Web либо использовать один SIP аккаунт для всех исходящих звонков если позволяет провайдер SIP телефонии.
  3. Vladimir

    Vladimir New Member

    1. Версия вроде как FlashphonerWebCallServer-4.0.1354 (имя директории в /usr/local)
    лог приложил

    3. Я пытаюсь пока запуститься без SIP-сервера (Webphone without SIP server), чтобы проверить звонки WEB Browser to WEB Browser

    4. При попытке авторизоваться (конфигурация enable_local_videochat = true, Webphone without SIP server - Admin Guide) не пускает по кнопочке LOG IN из phone.html
    /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log
    лог приложил

    Attached Files:

  4. Max

    Max Administrator Staff Member

    Проверили сборку 1354 с ней все в порядке. Запускается, стратует, коннектится.
    Попробуйте отключить SIP регистрацию на клиенте:
    668.1280/examples/flashphoner.xml
    Code:
    <register_required>false</register_required>
    Убедитесь, что этот конфиг смотрит на ваш сервер.

    Если все равно не коннектится,
    - пришлите более полный flashphoner.log с момента старта сервера
    - попробуйте сделать полный uninstall и установиться заново
    - пришлите вывод следующих команд:
    ps aux | grep java
    netstat -nlp | grep java
    ifconfig
    show apps (из CLI)
    - пришлите конфиги
    flashphoner.xml
    flashphoner.properties
    server.properties
  5. Vladimir

    Vladimir New Member

    Code:
    ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:50:56:a0:2e:eb 
              inet addr:1.2.3.4  Bcast:1.2.3.255  Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:28529 errors:0 dropped:13 overruns:0 frame:0
              TX packets:2937 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:1867151 (1.8 MB)  TX bytes:468441 (468.4 KB)
    
    lo        Link encap:Local Loopback 
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:400 errors:0 dropped:0 overruns:0 frame:0
              TX packets:400 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:388572 (388.5 KB)  TX bytes:388572 (388.5 KB)
    
    Code:
    netstat -nlp | grep java
    tcp        0      0 0.0.0.0:40498           0.0.0.0:*               LISTEN      1359/java      
    tcp        0      0 0.0.0.0:50999           0.0.0.0:*               LISTEN      1359/java      
    tcp        0      0 0.0.0.0:8443            0.0.0.0:*               LISTEN      1359/java      
    tcp        0      0 0.0.0.0:9091            0.0.0.0:*               LISTEN      1287/java      
    tcp        0      0 0.0.0.0:1098            0.0.0.0:*               LISTEN      1359/java      
    tcp        0      0 0.0.0.0:1099            0.0.0.0:*               LISTEN      1287/java      
    tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1359/java      
    tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1287/java      
    tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      1359/java      
    udp        0      0 0.0.0.0:1935            0.0.0.0:*                           1359/java      
    
    Code:
    ps aux | grep java
    root      1287  4.5 34.7 2581724 353128 pts/0  Sl   17:11   0:53 java -Dloader.path=/usr/local/FlashphonerWebCallServer-4.0.1354/lib/tbs-commons.jar,/usr/local/FlashphonerWebCallServer-4.0.1354/lib/wcs_manager-1.0.jar -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Xmx512M -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-manager.log -jar /usr/local/FlashphonerWebCallServer-4.0.1354/lib/wcs_manager-1.0.jar -Xmx1024M -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core.log -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
    root      1359  0.4  8.3 3020308 84440 pts/0   Sl   17:12   0:05 java -Xmx1024M -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=50999 -Djava.rmi.server.hostname=localhost -XX:ErrorFile=/usr/local/FlashphonerWebCallServer/logs/error%p.log -Xloggc:/usr/local/FlashphonerWebCallServer/logs/gc-core.log -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -Djava.library.path=/usr/local/FlashphonerWebCallServer/lib/so:/usr/local/FlashphonerWebCallServer/lib -cp /usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.server.Server
    root      1752  0.0  0.2  11752  2236 pts/0    S+   17:31   0:00 grep --color=auto java
    
    Code:
    ssh admin@0 -p 2000
    Password authentication
    Password:
    > show apps
    show apps: You do not have permissions to execute this command 'show apps'
    > Connection to 0 closed.
  6. Vladimir

    Vladimir New Member

    Code:
    cat /usr/local/FlashphonerWebCallServer/conf/flashphoner.properties
    #Config
    # ip                                - External IP-address of server where Flashphoner installed (xxx.xxx.xxx.xxx)
    # ip_local                          - Local IP-address of server where Flashphoner installed (xxx.xxx.xxx.xxx)
    # port_from                         - Begin of range of ports for SIP signaling (integer)
    # port_to                           - End of range of ports for SIP signaling (integer)
    # media_port_from                   - Begin of range of ports for media-traffic (integer)
    # media_port_to                     - End of range of ports for media-traffic (integer)
    # waiting_answer                    - How many time will Flashphoner client wait for answer from other side (seconds, integer)
    # serial_number                     - Flashponer license. You can get it here - http://flashphoner.com/license
    # user_agent                        - SIP User Agent header, example: Flashphoner/1.0 [Default: Flashphoner/1.0]
    # balance_header                    - SIP header name for balance info [Default: balance]
    # cost_header                       - SIP header name for cost info [Default: cost]
    # video_enabled                     - Enabling of video support (true/false)
    # domain                            - Domain address of voip server (xxx.xxx.xxx.xxx)
    # outbound_proxy                    - Outbound proxy (xxx.xxx.xxx.xxx)
    # outbound_port                     - Port for outbound proxy
    # dtmf                              - Dual-Tone Multi-Frequency. Values: rfc2833, info
    # log_level                         - Level of logging (1-10)
    # enable_context_logs               - Context logs with login,port and sip call id
    # rtp_activity_detecting            - Hangup, if incomming audio stream is empty few seconds. Format:(true/false),seconds. Example:true,5
    # force_h264_to_sorenson            - Transcoding incoming stream from H264 to Sorenson Park
    # force_h264_to_h264                - Transcoding incoming stream from H264 to H264 (frame without slices)
    # h264_max_nalu_size                - Max NALU size for H264
    # codecs                            - List of supported codecs, ordered by priority. Example: alaw, ulaw, g729, speex16, h263
    # sip_msg_listener                  - Class, defined by developer. The class must implement interface ISipMessageListener. Example: com.flashphoner.sdk.sip.ChangeCallIdListener
    # priority_outside_codecs           - Priority of outside codecs
    # remove_ssrc_attr                  - Remove ssrc attribute from local sdp
    # max_callid_length                 - Max call id length (min 4; max 32)
    # use_tcp_for_long_sip_messages     - Use TCP transport for messages with big size
    # enable_candidate_harvester        - Enable stun candidate hasvester
    # save_client_logs                  - Save client logs after disconnect
    # enable_extended_logging           - Save user logs in individual folder, true is default value
    # record                            - Folder for record audio from calls. If empty then recording will be disabled
    # record_filename_template          - Template for file name of record. Default: {id}-{date}
    # preserve_non_mixed_recorded_files - Preserve non mixed recorded files. Default: false
    # recording_by_user                 - Recording media by user side. Default: false
    
    ip                     =1.2.3.4
    ip_local               =1.2.3.4
    port_from              =30000
    port_to                =31000
    media_port_from        =31001
    media_port_to          =32000
    waiting_answer         =60
    user_agent             =Flashphoner/1.0
    balance_header         =balance
    cost_header            =cost
    video_enabled          =true
    domain                 =
    outbound_proxy         =
    outbound_port          =
    log_level              =5
    enable_context_logs    =false
    rtp_activity_detecting =true,60
    sip_msg_listener       =com.flashphoner.sdk.sip.ChangeCallIdListener
    call_record_listener   =com.flashphoner.server.client.DefaultCallRecordListener
    dtmf             =rfc2833
    auto_login_url =/usr/local/FlashphonerWebCallServer/conf/account.xml
    get_callee_url =/usr/local/FlashphonerWebCallServer/conf/callee.xml
    enable_local_videochat = true
    
    Code:
    cat /usr/local/FlashphonerWebCallServer/conf/server.properties
    #Config
    
    ws.port                 =8080
    
    wss.port                =8443
    #File will be located in conf directory
    wss.keystore.file       =wss.jks
    wss.keystore.password   =password
    wss.cert.password       =password
    
    rtmfp.port              =1935
    
    #keep_alive_algorithm may be INTERNAL, NONE, HIGH_LEVEL
    keep_alive.algorithm       =HIGH_LEVEL
    keep_alive.peer_interval   =2000
    keep_alive.server_interval =5000
    keep_alive.probes          =10
    
    
    #Reliability: on, partial, off
    video_reliable          =partial
    audio_reliable          =partial
    
    audio_frames_per_packet =6
    burst_avoidance_count   =100
    flush_audio_interval    =80
    flush_video_interval    =0
    
    cli_enabled        =true
    
    Code:
    cat /var/www/rtc/examples/flashphoner.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
      Copyright (c) 2011 Flashphoner
      All rights reserved. This Code and the accompanying materials
      are made available under the terms of the GNU Public License v2.0
      which accompanies this distribution, and is available at
      http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
      Contributors:
          Flashphoner - initial API and implementation
     
      This code and accompanying materials also available under LGPL and MPL license for Flashphoner buyers. Other license versions by negatiation. Write us support@flashphoner.com with any questions.
    -->
    <flashphoner>
        <url_ws_server>ws://213.108.135.28:8080</url_ws_server>
        <url_flash_server>rtmfp://213.108.135.28:1935</url_flash_server>
        <register_required>false</register_required>
        <!--<load_balancer_url>http://192.168.1.1:8081?action=server_list</load_balancer_url>-->
        <use_dtls>true</use_dtls>
        <reoffers_enabled>false</reoffers_enabled>
        <!--<force_media_provider>Flash</force_media_provider> &lt;!&ndash;WebRTC or Flash &ndash;&gt;-->
        <video_width>640</video_width>
        <video_height>480</video_height>
        <audio_reliable>true</audio_reliable>
        <video_reliable>true</video_reliable>
        <flash_buffer_time>0</flash_buffer_time>
        <check_validation_callee>true</check_validation_callee>
        <use_enhanced_mic>true</use_enhanced_mic>
        <!--<callee_letter_case>uppercase</callee_letter_case> &lt;!&ndash;uppercase,lowercase&ndash;&gt;-->
        <ring_sound></ring_sound>
        <busy_sound></busy_sound>
        <register_sound></register_sound>
        <finish_sound></finish_sound>
    </flashphoner>
    

    Attached Files:

  7. Max

    Max Administrator Staff Member

    Code:
    ssh admin@0 -p 2000
    Т.е. hostname 0?
    Проверьте чтобы hostname в /etc/hosts указывал на сетевой интерфейс сервера
    Пример
    Code:
    cat /etc/hosts
    1.2.3.4   0
    Вообще случай странный. Если дадите доступ к тестовому серверу(на logs@flashphoner.com), в течение суток проверим что там может быть.
  8. Vladimir

    Vladimir New Member

    hostname в hosts корректный. 0 - это акроним 127.0.0.1

    В логах же видно:

    Code:
    17:21:35,279 ERROR      WSServerHandler - New I/O  worker #4 App not found
    com.flashphoner.server.commons.rmi.operations.exception.AppLookupException: No entity found for query
        at com.flashphoner.server.manager.rmi.operations.impl.ManagerRemoteRmiService.postForObject(ManagerRemoteRmiService.java:112)
        at com.flashphoner.server.manager.rmi.operations.impl.ManagerRemoteRmiService.connect(ManagerRemoteRmiService.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    
    ERROR - App not found
  9. Max

    Max Administrator Staff Member

    После удаления двух файлов в FlashphonerWebCallServer/database и перезапуска сервера консоль заработала нормально.
    Скорее всего по какой-то причине они были повреждены при установке. Это файлы встроенной базы данных H2. Если ее удалить, она создается заново при первом запуске.

Share This Page