Не находит appkey

Discussion in 'Web Call Server 5' started by pride, Aug 3, 2018.

  1. pride

    pride Member

    >show apps
    admin stream stream 14 http://localhost:8055
    При попытке соеденится происходит disconnect/
    В логах :
    07:41:28,070 WARN ManagerApiConnection - API-ASYNC-pool-8-thread-22 Failed to get object from REST with exception:null
    07:41:28,070 INFO ManagerApiConnection - API-ASYNC-pool-8-thread-22 Method error policy is LOG, return same object to client
    07:41:28,071 INFO WSClient - API-ASYNC-pool-8-thread-22 Close connection for channel [id: 0x0e28c970, /217.77.221.151:52436 => /195.201.104.247:8443] with status code: 1000 ; reason: Disconnected by
    07:41:28,194 INFO WSClients - WSClientsKeepaliveThread-63 Remove client with closed channel [id: 0x22571ff1, /217.77.221.151:26260 :> /195.201.104.247:8443]
    07:41:28,194 INFO WSClient - WSClientsKeepaliveThread-63 Close connection for channel [id: 0x22571ff1, /217.77.221.151:26260 :> /195.201.104.247:8443] with status code: 1000 ; reason: Disconnected b
    07:41:28,194 INFO WSClients - WSClientsKeepaliveThread-63 Remove client with closed channel [id: 0x0e28c970, /217.77.221.151:52436 :> /195.201.104.247:8443]
    07:41:28,194 INFO WSClient - WSClientsKeepaliveThread-63 Close connection for channel [id: 0x0e28c970, /217.77.221.151:52436 :> /195.201.104.247:8443] with status code: 1000 ; reason: Disconnected b
    07:41:29,019 INFO WSServerHandler - WSS-pool-17-thread-7 Orgign: https://model.dateyourdream.online
    07:41:29,071 INFO RestClient - API-ASYNC-pool-8-thread-23 postForObject data: Connection{sipRegisterRequired=null, sipLogin='null', sipAuthenticationName='null', sipPassword='null', sipVisibleName='nu
    07:41:29,071 ERROR RestClient - API-ASYNC-pool-8-thread-23 Got exception in REST.
    java.lang.NullPointerException
    <------>at com.flashphoner.rest.client.RestClient.appUrl(Unknown Source)
    <------>at com.flashphoner.rest.client.RestClient.postForObject(Unknown Source)
    <------>at com.flashphoner.server.rmi.ManagerApiConnection.processDataObject(Unknown Source)
    <------>at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
    <------>at com.flashphoner.server.rmi.ManagerApiConnection.lambda$queryApiAsync$0(Unknown Source)
    <------>at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
    <------>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    <------>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    <------>at java.lang.Thread.run(Thread.java:748)
    07:41:29,072 WARN ManagerApiConnection - API-ASYNC-pool-8-thread-23 Failed to get object from REST with exception:null
    07:41:29,072 INFO RestClient - API-ASYNC-pool-8-thread-24 postForObject data: Status{status='FAILED', info='com.flashphoner.server.commons.filter.RemoteFilterException', sipMessageRaw='null', apiMetho
    07:41:29,073 ERROR RestClient - API-ASYNC-pool-8-thread-24 Got exception in REST.
    java.lang.NullPointerException
    <------>at com.flashphoner.rest.client.RestClient.appUrl(Unknown Source)
    <------>at com.flashphoner.rest.client.RestClient.postForObject(Unknown Source)
    <------>at com.flashphoner.server.rmi.ManagerApiConnection.processDataObject(Unknown Source)
    <------>at com.flashphoner.server.rmi.ManagerApiConnection.getApiMethodResult(Unknown Source)
    <------>at com.flashphoner.server.client.handler.HandlerUtils.processRestException(Unknown Source)
    <------>at com.flashphoner.server.client.handler.HandlerUtils.lambda$processThroughREST$0(Unknown Source)
    <------>at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
    <------>at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
    <------>at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
    <------>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    <------>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    <------>at java.lang.Thread.run(Thread.java:748)
    07:41:29,073 WARN ManagerApiConnection - API-ASYNC-pool-8-thread-24 Failed to get object from REST with exception:null
    07:41:29,073 INFO ManagerApiConnection - API-ASYNC-pool-8-thread-24 Method error policy is LOG, return same object to client
    07:41:29,074 INFO WSClient - API-ASYNC-pool-8-thread-24 Close connection for channel [id: 0x7e1fe2da, /217.77.221.151:7480 => /195.201.104.247:8443] with status code: 1000 ; reason: Disconnected by
    07:41:33,195 INFO WSClients - WSClientsKeepaliveThread-63 Remove client with closed channel [id: 0x7e1fe2da, /217.77.221.151:7480 :> /195.201.104.247:8443]
    07:41:33,195 INFO WSClient - WSClientsKeepaliveThread-63 Close connection for channel [id: 0x7e1fe2da, /217.77.221.151:7480 :> /195.201.104.247:8443] with status code: 1000 ; reason: Disconnected by
    07:48:29,741 INFO WSServerHandler - WSS-pool-17-thread-8 Orgign: null
    07:48:29,742 WARN WSServerHandler - WSS-pool-17-thread-8 Close channel [id: 0x4c3ae33c, /66.102.9.3:65167 => /195.201.104.247:8443] because: org.jboss.netty.handler.codec.http.websocketx.WebSocketHandshake
    07:48:30,378 INFO WSServerHandler - WSS-pool-17-thread-8 Orgign: null
    07:48:30,379 WARN WSServerHandler - WSS-pool-17-thread-8 Close channel [id: 0x04022628, /66.102.9.3:65014 => /195.201.104.247:8443] because: org.jboss.netty.handler.codec.http.websocketx.WebSocketHandshake

    Обращение к http://localhost:8055/connect не происходит совсем
  2. pride

    pride Member

    WCS : 5.1.3402-a9edc1eb97a2ee6a3e84fd507d8a260aae4a167a
  3. Max

    Max Administrator Staff Member

    Добрый день.
    Начиная со сборки 5.1.3389 и далее, CLI разнесен на Core CLI (порт 2001) и Manager CLI (порт 2000).
    Методы работы 'show app' и т.д., были перенесены в Core CLI.
    Чтобы зайти:
    Code:
    ssh -p 2001 admin@localhost
    пароль admin
    Конфигурация хранится в WCS_HOME/conf/database.yml файле.
    Сейчас описываем эти изменения в документации.
    Как будет готово, сообщим.
  4. Maksym

    Maksym Member

    Подскажите,у меня на тестовой машине была установлена 5.1.3411-f1d0e028ff4df998ad96536f00a6f282994f3719
    и при вводе пароля от админа
    Code:
    ssh admin@localhost -p 2000
    все корректно отрабатывало(пускало и работала команда show apps)
    Теперь обновился до версии 5.1.3550-348f6800b3880a8de09376e3d17fe4e95009f79a
    В Manager CLI пускает с паролем админа
    Code:
    #ssh admin@localhost -p 2000
    Password authentication
    Password:
    > help
    Try one of these commands with the -h or --help switch:
    
    NAME     DESCRIPTION
    qa       Quality Assurance
    node     manage server node
    watchdog Watch Dog Manager
    passwd   change password
    egrep    search file(s) for lines that match a pattern
    filter   a filter for a stream of map
    man      format and display the on-line manual pages
    help     provides basic help
    repl     list the repl or change the current repl
    
    но show apps уже вынесен походу в Core CLI
    А в Core CLI - не пускает, как с паролем админа при установке, так и с паролем admin
    Code:
    #ssh admin@localhost -p 2001
    Password authentication
    Password:
    Password authentication
    Password:
    Password authentication
    Password:
    admin@localhost's password:
    Permission denied, please try again.
    admin@localhost's password:
    Permission denied, please try again.
    admin@localhost's password:
    Permission denied (password,keyboard-interactive,publickey).
    
  5. Max

    Max Administrator Staff Member

    Добрый день.
    Посмотрите в файле WCS_HOME/conf/database.yml, там должны быть строки вида
    Code:
    users:
      admin: {username: admin, password: ******, active: true}
      demo: {username: demo, password: ******, active: true}
    
    Пароли в данном файле должны быть в md5, но в ранних версиях там мог быть plain-text. Если пароль админа прописан plain-text'ом, замените его на md5 hash, и вход в Core CLI должен заработать.
    Maksym likes this.
  6. Maksym

    Maksym Member

    Так и есть. Был plain-text и дефолтный, хотя при установке задавал пароль. Сегодня проверю. Спасибо. Мд5 я так понимаю от пароля при установке?
  7. Max

    Max Administrator Staff Member

    Да.
    Если при установке Вы задавали пароль через веб-интерфейс, то он хранится в другом месте, а именно в БД менеджера. Пароль на доступ к Core CLI меняется только из Core CLI командой passwd, либо вручную в database.yml
    Maksym likes this.
  8. pride

    pride Member

    Не описали еще в доки ?
  9. Max

    Max Administrator Staff Member

    Описание интерфейса командной строки ядра WCS находится здесь, описание командной строки административного модуля находится здесь.

Share This Page