it says Can not connect to server while checking server info
can not sync library
When I click “sync this library” over my library, it says:“Failed to add download task: Task is already in progress”. But I CAN NOT find anything under the target dirctory
2.2 What I CAN do
I CAN list,download,rename,upload files and directory in my library
My question
Why my client always syas “can not connect to server” and can not sync my library?
If it really can not connect to my server, it can’t list,download,rename,upload files and directories as well, I think.
You would assist us in helping you if you posted your conf files (ccnet.conf, seahub_settings.py, …) I am pretty sure that there is a small config problem that can be easily solved.
[General]
USER_NAME = 17study
ID = 513...699
NAME = 17study
SERVICE_URL = http://{MyDomain}:18083
[Client]
PORT = 13419
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = #TJ...Ep
DB = ccnet-db
CONNECTION_CHARSET = utf8
2. gunicorn.conf
import os
daemon = True
workers = 5
# default localhost:8000
bind = "0.0.0.0:18083"
# Pid
pids_dir = '/opt/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
@jonneymendoza
When running it with the command you mentioned, you should be able to point your browser towards 192.168.1.111 and seafile should appear.
Otherwise please check the logs:
docker logs seafile
Also: Is the PC you are accessing Seafile from in the same LAN as your Server?
yes i can login though the web broswer fine but the actual seafile client on my laptop says cannon connect to server . The client in question is my laptop running linux pop OS. same issue when i try it on a windows 10 machine.
Mind the order in which the volume (-v) needs to be specified: The entry: /opt/seafile belongs to a path on your host, the entry /home/media/wd4tb belongs to a path inside docker. I think it has to be the other way round, if you want to use /home/media/wd4tb as path on your host, try it like this:
...
-v /home/media/wd4tb:/opt/seafile \
...
The documentation on github is totally f** up at this point.
Yes the docs for this software is not good. THe /home/media/wd4tb is a ext attached hdd that i want all my seafiles to be in including configurations so its easy to move it around and backup/restore etc
edit: New logs after i switched the -v directory locations as you mentioned
OK when i swithed the -v storage location around and restarted the seafile container i get this error now from the docker logs
*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
Dec 12 16:14:56 835653ee0ff1 syslog-ng[22]: syslog-ng starting up; version=‘3.13.2’
*** Running /etc/my_init.d/99_mysql_setup.sh…
Rebuilding mysql data dir
Starting mysqld
Waiting for mysqld to come online
Dec 12 16:15:11 835653ee0ff1 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] /usr/sbin/mysqld (mysqld 10.1.43-MariaDB-0ubuntu0.18.04.1) starting as process 294 …
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
Dec 12 16:15:11 835653ee0ff1 mysqld:
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Using mutexes to ref count buffer pool pages
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: The InnoDB memory heap is disabled
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Compressed tables use zlib 1.2.11
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Using Linux native AIO
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Using generic crc32 instructions
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Initializing buffer pool, size = 128.0M
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Completed initialization of buffer pool
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Highest supported file format is Barracuda.
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: 128 rollback segment(s) are active.
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Waiting for purge to start
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.45-86.1 started; log sequence number 1616717
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 2457858992 [Note] InnoDB: Dumping buffer pool(s) not yet started
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] Plugin ‘FEEDBACK’ is disabled.
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] Server socket created on IP: ‘127.0.0.1’.
Dec 12 16:15:11 835653ee0ff1 mysqld: 2019-12-12 16:15:11 3069901632 [Note] /usr/sbin/mysqld: ready for connections.
Dec 12 16:15:11 835653ee0ff1 mysqld: Version: ‘10.1.43-MariaDB-0ubuntu0.18.04.1’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 Ubuntu 18.04
Fixing root password
Shutting down mysqld
Dec 12 16:15:12 835653ee0ff1 mysqld: 2019-12-12 16:15:12 3062653872 [Note] /usr/sbin/mysqld: Normal shutdown
Dec 12 16:15:12 835653ee0ff1 mysqld: 2019-12-12 16:15:12 3062653872 [Note] Event Scheduler: Purging the queue. 0 events
Dec 12 16:15:12 835653ee0ff1 mysqld: 2019-12-12 16:15:12 2520765360 [Note] InnoDB: FTS optimize thread exiting.
Dec 12 16:15:12 835653ee0ff1 mysqld: 2019-12-12 16:15:12 3062653872 [Note] InnoDB: Starting shutdown…
Dec 12 16:15:13 835653ee0ff1 mysqld: 2019-12-12 16:15:13 3062653872 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
Dec 12 16:15:14 835653ee0ff1 mysqld: 2019-12-12 16:15:14 3062653872 [Note] InnoDB: Shutdown completed; log sequence number 1616727
Dec 12 16:15:14 835653ee0ff1 mysqld: 2019-12-12 16:15:14 3062653872 [Note] /usr/sbin/mysqld: Shutdown complete
Dec 12 16:15:14 835653ee0ff1 mysqld:
Dec 12 16:15:14 835653ee0ff1 mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended
*** Booting runit daemon…
*** Runit started as PID 330
*** Running /scripts/start.py…
Dec 12 16:15:14 835653ee0ff1 cron[337]: (CRON) INFO (pidfile fd = 3)
Dec 12 16:15:14 835653ee0ff1 cron[337]: (CRON) INFO (Running @reboot jobs)
[2019-12-12 16:15:17] Now running setup-seafile-mysql.py in auto mode.
sed: can’t read /opt/seafile/seafile-server-6.3.4/setup-seafile-mysql.py: No such file or directory
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 56, in main
init_seafile_server()
File “/scripts/bootstrap.py”, line 123, in init_seafile_server
.format(get_script(‘setup-seafile-mysql.py’)))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sed -i -e ‘s/if not mysql_root_passwd/if not mysql_root_passwd and “MYSQL_ROOT_PASSWD” not in os.environ/g’ /opt/seafile/seafile-server-6.3.4/setup-seafile-mysql.py’ returned non-zero exit status 2
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 330)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
Dec 12 16:15:20 835653ee0ff1 syslog-ng[22]: syslog-ng shutting down; version=‘3.13.2’
*** Killing all processes…
Ok I realised /opt/seafile/ is not possible to use as container path for the volume, rather there is another directory, /shared. Please try it again with
...
-v /home/media/wd4tb:/shared
...
Now docker should start again, normally.
You can then access a bunch of files inside /home/media/wd4tb on your hdd.
Next, you can have a look at your Seafile Client logs in PopOS Linux under ~/.ccnet/logs. Look through seafile.log for any messages of failed connections etc.
After doing that, am unable to access my seafile at all from the web browser. the logs state that it has succesfully created the seafile admin etc but i cannot launch it from my browser
[2019-12-13 17:42:39] Updating version stamp
[12/13/2019 17:42:39][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks
[12/13/2019 17:42:39][upgrade]: Running script /opt/seafile/seafile-server-6.3.4/upgrade/minor-upgrade.sh
This script would do the minor upgrade for you.
Press [ENTER] to contiune
migrating avatars …
DONE
updating seafile-server-latest symbolic link to /opt/seafile/seafile-server-6.3.4 …
DONE
[12/13/19 17:42:39] …/common/session.c(132): using config file /opt/seafile/conf/ccnet.conf
Starting seafile server, please wait …
Seafile server started
[12/13/19 18:07:22] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:22] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:22] clone-mgr.c(732): Transition clone state for 0b5ee730 from [check server] to [error]: check server.
[12/13/19 18:07:22] clone-mgr.c(732): Transition clone state for 41bd19e1 from [check server] to [error]: check server.
[12/13/19 18:07:27] clone-mgr.c(715): Transition clone state for 41bd19e1 from [error] to [check server].
[12/13/19 18:07:27] clone-mgr.c(715): Transition clone state for 6bedd3cc from [error] to [check server].
[12/13/19 18:07:27] clone-mgr.c(715): Transition clone state for 0b5ee730 from [error] to [check server].
[12/13/19 18:07:27] clone-mgr.c(715): Transition clone state for 6590f91a from [error] to [check server].
[12/13/19 18:07:27] clone-mgr.c(715): Transition clone state for 95aea585 from [error] to [check server].
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:32770/seafhttp/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] clone-mgr.c(732): Transition clone state for 95aea585 from [check server] to [error]: check server.
[12/13/19 18:07:27] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:27] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:27] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:27] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] clone-mgr.c(732): Transition clone state for 6bedd3cc from [check server] to [error]: check server.
[12/13/19 18:07:27] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:27] clone-mgr.c(732): Transition clone state for 41bd19e1 from [check server] to [error]: check server.
[12/13/19 18:07:27] clone-mgr.c(732): Transition clone state for 6590f91a from [check server] to [error]: check server.
[12/13/19 18:07:27] clone-mgr.c(732): Transition clone state for 0b5ee730 from [check server] to [error]: check server.
[12/13/19 18:07:32] clone-mgr.c(715): Transition clone state for 41bd19e1 from [error] to [check server].
[12/13/19 18:07:32] clone-mgr.c(715): Transition clone state for 6bedd3cc from [error] to [check server].
[12/13/19 18:07:32] clone-mgr.c(715): Transition clone state for 0b5ee730 from [error] to [check server].
[12/13/19 18:07:32] clone-mgr.c(715): Transition clone state for 6590f91a from [error] to [check server].
[12/13/19 18:07:32] clone-mgr.c(715): Transition clone state for 95aea585 from [error] to [check server].
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:32770/seafhttp/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] clone-mgr.c(732): Transition clone state for 95aea585 from [check server] to [error]: check server.
[12/13/19 18:07:32] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:32] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:32] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:32] http-tx-mgr.c(1285): Bad response code for GET http://192.168.1.111:8000/seafhttp/protocol-version: 404.
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] clone-mgr.c(732): Transition clone state for 41bd19e1 from [check server] to [error]: check server.
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] clone-mgr.c(732): Transition clone state for 0b5ee730 from [check server] to [error]: check server.
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] http-tx-mgr.c(808): libcurl failed to GET http://192.168.1.111:8082/protocol-version: Couldn’t connect to server.
[12/13/19 18:07:32] clone-mgr.c(732): Transition clone state for 6bedd3cc from [check server] to [error]: check server.
[12/13/19 18:07:32] clone-mgr.c(732): Transition clone state for 6590f91a from [check server] to [error]: check server.
Okay, we are getting to the problem. The problem is with the nginx configuration. Something is configured wrong there, so you will have to go inside the docker container and execute some steps there.
First enter the docker container (it must be running already) with
docker exec -it seafile bash
then please paste the output of
cat /etc/nginx/sites-enabled/seafile.nginx.conf
also, ensure that the nginx logs are present:
ls -la /var/log/nginx/
Please post the output of both commands (the last two).