hello
i get “ERR_CONNECTION_REFUSED” when i try connect my seahub webgui port http://ipaddr:8000
centos 7 vm machine with own ip address on local lan
in vm machine
i remove selinux
setenforce permissive
i open firewall
sudo firewall-cmd --zone=public --permanent --add-port=8000/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp
[root@seafile-server conf]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: dhcpv6-client http https ssh
ports: 8000/tcp 8282/tcp 8082/tcp 8080/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
when go to port 8082 says
No web page was found for the web address: http://xxx:8082/
[General]
USER_NAME = xxx
ID = xxx
NAME = xxx
SERVICE_URL = https://ipaddr:8000
[Client]
PORT = 13419
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = xxxxx
DB = ccnet-db
CONNECTION_CHARSET = utf8
ccnet.conf (END)
[fileserver]
port = 8082
# binding host for fileserver
host = 0.0.0.0
[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = xxxxx
db_name = seafile-db
connection_charset = utf8
seafile.conf
here listen service
[root@seafile-server seafile-server-latest]# ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 *:68 *:* users:(("dhclient",pid=973,fd=6))
udp UNCONN 0 0 127.0.0.1:323 *:* users:(("chronyd",pid=798,fd=5))
udp UNCONN 0 0 [::1]:323 [::]:* users:(("chronyd",pid=798,fd=6))
tcp LISTEN 0 100 127.0.0.1:25 *:* users:(("master",pid=1692,fd=13))
tcp LISTEN 0 128 127.0.0.1:8000 *:* users:(("python2.7",pid=3975,fd=7),("python2.7",pid=3974,fd=7),("python2.7",pid=3973,fd=7),("python2.7",pid=3972,fd=7),("python2.7",pid=3971,fd=7),("python2.7",pid=3958,fd=7))
tcp LISTEN 0 50 *:3306 *:* users:(("mysqld",pid=1655,fd=14))
tcp LISTEN 0 32 *:8082 *:* users:(("seaf-server",pid=3659,fd=22))
tcp LISTEN 0 128 *:22 *:* users:(("sshd",pid=1161,fd=3))
tcp LISTEN 0 100 [::1]:25 [::]:* users:(("master",pid=1692,fd=14))
tcp LISTEN 0 128 [::ffff:127.0.0.1]:9200 [::]:* users:(("java",pid=3661,fd=141))
tcp LISTEN 0 128 [::ffff:127.0.0.1]:9300 [::]:* users:(("java",pid=3661,fd=127))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1161,fd=4))
[root@seafile-server seafile-server-latest]#
i try telnet in vm
seafileuser@seafile-server seafile-server-latest]$ curl -v telnet://127.0.0.1:8000
* About to connect() to 127.0.0.1 port 8000 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8000 (#0)
i try telnet from workstation client
➜ ~ curl -v telnet://1.1.1.104:8000
* Trying 1.1.1.104:8000...
* TCP_NODELAY set
* connect to 1.1.1.104 port 8000 failed: Connection refused
* Failed to connect to 1.1.1.104 port 8000: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 1.1.1.104 port 8000: Connection refused
here i restart seafile
[seafileuser@seafile-server seafile-server-latest]$ ./restart.sh
Stopping seafile server ...
** Message: seafile-controller.c(1157): loading seafdav config from /seafile/conf/seafdav.conf
[10/12/19 19:27:27] ../common/session.c(139): using config file /seafile/conf/ccnet.conf
[10/12/19 19:27:27] ../common/license.c(406): Loading license file /seafile/seafile-license.txt ..
[10/12/19 19:27:27] ../common/license.c(409): License file /seafile/seafile-license.txt does not exist, allow at most 3 trial users
License file /seafile/seafile-license.txt does not exist, allow at most 3 trial users
Starting seafile server, please wait ...
** Message: seafile-controller.c(1157): loading seafdav config from /seafile/conf/seafdav.conf
Seafile server started
Done.
Stopping seahub ...
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...
Seahub is started
Done.
[seafileuser@seafile-server seafile-server-latest]$
in host
i dont do any
hello
ok is fix
in gunicorn.conf
i add local address 0.0.0.0 instead of 127.0.0.1 and it work now
import os
daemon = True
workers = 5
# default localhost:8000
bind = "0.0.0.0:8000"
# Pid
pids_dir = '/seafile/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')
# for file upload, we need a longer timeout value (default is only 30s, too short)
timeout = 1200
limit_request_line = 8190
~
~
~
~
~
~