【急】正常使用了一年后突然无法连接本地mysql数据库

您所在的位置:网站首页 seafile服务器故障数据如何取出 【急】正常使用了一年后突然无法连接本地mysql数据库

【急】正常使用了一年后突然无法连接本地mysql数据库

2024-02-01 20:09| 来源: 网络整理| 查看: 265

设备是贝壳云,架构为arm64,使用docker搭建,使用镜像为https://github.com/domenukk/seafile-docker-pi。seafile版本应该是6.3.4.本来已经正常使用一年多,从未出现过问题,因此在里面存了许多重要资料比如论文等。但是现在不知为何突然用mac端的seadrive打开ppt文件时提示服务器内部问题,所以去查看了日志,发现出现无法连接本地服务器的问题。然后尝试重建docker容器,刚搭建完能访问网页,但是涉及数据库的操作比如查看文件,或者进入系统管理就会出错,查看日志发现如下错误:[05/13/2020 04:01:46][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks, [05/13/2020 04:01:46][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, ------------------------------, , , failed to run “ccnet-server -t”, [05/13/20 04:01:46] …/common/session.c(132): using config file /opt/seafile/conf/ccnet.conf, [05/13/20 04:01:46] …/common/ccnet-db.c(124): Failed to get database connection: Failed to connect to MySQL: Can’t connect to MySQL server on ‘127.0.0.1’ (111)., [05/13/20 04:01:46] user-mgr.c(769): Failed to create user db tables., Traceback (most recent call last):, File “/scripts/start.py”, line 86, in , main(), File “/scripts/start.py”, line 71, in main, call(’{} start’.format(get_script(‘seafile.sh’))), 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 ‘/opt/seafile/seafile-server-6.3.4/seafile.sh start’ returned non-zero exit status 1, *** /scripts/start.py exited with status 1., amysqladmin: connect to server at ‘localhost’ failed, error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111 “Connection refused”)’, Check that mysqld is running and that the socket: ‘/var/run/mysqld/mysqld.sock’ exists!, *** Shutting down runit daemon (PID 37)…, *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…, May 13 04:01:47 f1d8b09e8450 syslog-ng[27]: syslog-ng shutting down; version=‘3.13.2’, *** Killing all processes…, *** Running /etc/my_init.d/01_create_data_links.sh…, *** Running /etc/my_init.d/10_syslog-ng.init…, May 13 04:02:49 f1d8b09e8450 syslog-ng[26]: syslog-ng starting up; version=‘3.13.2’, *** Running /etc/my_init.d/99_mysql_setup.sh…, *** Booting runit daemon…, *** Runit started as PID 36, *** Running /scripts/start.py…, May 13 04:02:51 f1d8b09e8450 cron[43]: (CRON) INFO (pidfile fd = 3), May 13 04:02:51 f1d8b09e8450 cron[43]: (CRON) INFO (Skipping @reboot jobs – not system startup), [2020-05-13 04:02:51] Skip running setup-seafile-mysql.py because there is existing seafile-data folder., [05/13/2020 04:02:51][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks, [05/13/2020 04:02:51][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, ------------------------------, , , failed to run “ccnet-server -t”, [05/13/20 04:02:51] …/common/session.c(132): using config file /opt/seafile/conf/ccnet.conf, [05/13/20 04:02:51] …/common/ccnet-db.c(124): Failed to get database connection: Failed to connect to MySQL: Can’t connect to MySQL server on ‘127.0.0.1’ (111)., [05/13/20 04:02:51] user-mgr.c(769): Failed to create user db tables., Traceback (most recent call last):, File “/scripts/start.py”, line 86, in , main(), File “/scripts/start.py”, line 71, in main, call(’{} start’.format(get_script(‘seafile.sh’))), 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 ‘/opt/seafile/seafile-server-6.3.4/seafile.sh start’ returned non-zero exit status 1, *** /scripts/start.py exited with status 1., amysqladmin: connect to server at ‘localhost’ failed, error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111 “Connection refused”)’, Check that mysqld is running and that the socket: ‘/var/run/mysqld/mysqld.sock’ exists!, *** Shutting down runit daemon (PID 36)…, *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…, May 13 04:02:52 f1d8b09e8450 syslog-ng[26]: syslog-ng shutting down; version=‘3.13.2’, *** Killing all processes…, 按照论坛里的建议查看ccnet.conf并不知从何下手,以为面临毕业,里面的论文相关材料需要交给老师。恳请大家帮我,十分感谢。或者只要能恢复里面的数据就好。求好心的大佬帮我看看,不胜感激。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3