Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker模式启动,用官网下载的客户端,添加了服务器配置,却一直登录不了 #8

Open
cvwet opened this issue Nov 13, 2020 · 1 comment

Comments

@cvwet
Copy link

cvwet commented Nov 13, 2020

No description provided.

@knightingal
Copy link

同上,似乎是docker包里面的服务还不完整,没有redis和ejabberd

贴一下我的启动日志吧

pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2020-12-21 14:39:45.095 CST [32] LOG:  listening on IPv4 address "127.0.0.1", port 5432
2020-12-21 14:39:45.095 CST [32] LOG:  could not bind IPv6 address "::1": Cannot assign requested address
2020-12-21 14:39:45.095 CST [32] HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-12-21 14:39:45.096 CST [32] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-12-21 14:39:45.103 CST [32] LOG:  redirecting log output to logging collector process
2020-12-21 14:39:45.103 CST [32] HINT:  Future log output will appear in directory "log".
 done
server started
UPDATE 1
UPDATE 2
pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
useradd: user 'startalk' already exists
mkdir: cannot create directory '/home/startalk': File exists
sysctl: setting key "net.ipv4.ip_forward": Read-only file system
Operation failed: No such file or directory
Failed to get D-Bus connection: Operation not permitted
Created symlink /etc/systemd/system/multi-user.target.wants/collectd.service, pointing to /usr/lib/systemd/system/collectd.service.
Failed to get D-Bus connection: Operation not permitted
Failed to get D-Bus connection: Operation not permitted
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2020-12-21 14:39:46.151 CST [61] FATAL:  lock file "postmaster.pid" already exists
2020-12-21 14:39:46.151 CST [61] HINT:  Is another postmaster (PID 32) running in data directory "/startalk/data/postgresql"?
 stopped waiting
pg_ctl: could not start server
Examine the log output.
63:C 21 Dec 06:39:46.263 # Fatal error, can't open config file '/startalk/redis/conf/redis.conf'
ejab server
im http service
Tomcat started.
qfproxy server
Tomcat started.
push service
Tomcat started.
search service
==============================================================
error: redis port 6379 is not open
==============================================================
success: postgresql port 5432 is open
==============================================================
error: ejabberdport 5280 is not open; to run with startalk: cd /startalk/ejabberd; ./sbin/ejabberdctl start
error: ejabberdport 10050 is not open; to run with startalk: cd /startalk/ejabberd; ./sbin/ejabberdctl start
error: ejabberd port 5202 is not open; to run with startalk: cd /startalk/ejabberd; ./sbin/ejabberdctl start
==============================================================
success: openresty port 8080 is open
==============================================================
success: im_http_service port 8081 is open
==============================================================
success: qfproxy port 8082 is open
==============================================================
success: push_service port 8083 is open
==============================================================
error: qtalk_search port 8884 is not open
==============================================================
error: startalk_found port 8085 is not open; to run with startalk: cd /startalk/tomcat/qtalk_background_management; ./bin/start.sh(开源版本请忽略)
==============================================================
postgresql data is:
 id |      host       |   description   |          create_time          | host_type | host_qrcode | need_approve | host_admin 
----+-----------------+-----------------+-------------------------------+-----------+-------------+--------------+------------
  1 | im.startalk.com | im.startalk.com | 2019-08-14 15:47:37.410242+08 |         0 |             |            0 | admin
(1 row)

 host_id |    user_id    
---------+---------------
       1 | admin
       1 | file-transfer
(2 rows)

 password | pwd_salt 
----------+----------
(0 rows)

==============================================================
the nav result is:
{"Login":{"loginType":"password"},"version":1,"baseaddess":{"domain":"im.startalk.com","fileurl":"http:\/\/127.0.0.1:8080","appWeb":"http:\/\/127.0.0.1:8080\/appWeb","shareurl":"http:\/\/127.0.0.1:8080\/py\/sharemsg","resetPwdUrl":"http:\/\/127.0.0.1:8080\/static\/reterievepassword.html","httpurl":"http:\/\/127.0.0.1:8080\/newapi","protobufPcPort":5202,"socketurl":"ws:\/\/127.0.0.1:5280\/websocket","xmppmport":5222,"xmppport":5222,"domainhost":"127.0.0.1","simpleapiurl":"http:\/\/127.0.0.1:8080","pubkey":"rsa_public_key","apiurl":"http:\/\/127.0.0.1:8080\/api","javaurl":"http:\/\/127.0.0.1:8080\/package","xmpp":"127.0.0.1","protobufPort":5202},"RNAbility":{"RNMineView":true,"RNUserCardView":true,"RNContactView":true,"RNAboutView":false,"RNSettingView":true,"RNGroupListView":true,"RNPublicNumberListView":true,"RNGroupCardView":true},"RNAndroidAbility":{"RNMineView":true,"RNUserCardView":true,"RNContactView":true,"RNAboutView":false,"RNSettingView":true,"RNGroupListView":false,"RNPublicNumberListView":false,"RNGroupCardView":true},"imConfig":{"RsaEncodeType":1,"mail":"127.0.0.1","showOrganizational":true,"isToC":false,"foundConfigUrl":"http:\/\/127.0.0.1:8080\/startalk\/management\/find\/get\/navigation"},"ability":{"showmsgstat":true,"searchurl":"http:\/\/127.0.0.1:8080\/py\/search","new_searchurl":"http:\/\/127.0.0.1:8080\/py\/search"}}
==============================================================
ejabberd hosts setting is:
hosts:
  - "im.startalk.com"
5202端口未开启外网访问,请开启该端口访问或者关掉防火墙
   _____ __             __        ____  
  / ___// /_____ ______/ /_____ _/ / /__
  \__ \/ __/ __ `/ ___/ __/ __ `/ / //_/
 ___/ / /_/ /_/ / /  / /_/ /_/ / / ,<   
/____/\__/\__,_/_/   \__/\__,_/_/_/|_|  
                                       
---------------------------------------- 
导航地址: http://192.168.0.48:8080/startalk_nav
测试账号/密码: admin/testpassword

我现在尝试按照开发人员手册的步骤部署

希望项目人员及时跟进这个issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants