Hey there,
great idea! I saw that suggestion from another thread as well and am trying it out; I’m now attempting to get the second instance running, unfortunately the url now gives me a 502 (Bad Gateway) error, which I’m trying to understand… I think it might be related to my prior MySQL errors since I don’t remember this happening on my original installation, though that’s a blind guess.
EDIT: The error pages talks about Nginx but I don’t have it installed. In fact, the docs said either Nginx or Apache worked and so it worked fine last time. But the container gets somehow stuck before it can even generate the config files - I have no ccnet, seahub/seafile logs and settings folders, nothing.
If I try to run seahub.sh it’s complaining:
Error: there is no ccnet config directory.
Have you run setup-seafile.sh before this?
The docs say to just wait a few minute after deploying with Docker and the initialization will be done automatically, which is exactly what I did last time. Something it’s preventing the initialization from succeeding or even starting, it seems.
Is there a way to check the initialization scripts’ logs, maybe?
EDIT2: Ok, I’ve attempted again to make a new setup a couple times; the setup now runs a bit longer and the error is not a 502 anymore, rather it refuses connection entirely. docker logs displays this:
*** Running /etc/my_init.d/01_create_data_links.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Mar 27 12:11:22 9ffb76325b88 syslog-ng[23]: 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
Mar 27 12:11:24 9ffb76325b88 mysqld_safe: Starting mysqld daemon with databases from /var/lib/mysql
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] /usr/sbin/mysqld (mysqld 10.1.34-MariaDB-0ubuntu0.18.04.1) starting as process 216 ...
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] mysqld: Got error 'Size of control file is smaller than expected' when trying to use aria control file '/var/lib/mysql/aria_log_control'
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Plugin 'Aria' init function returned error.
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [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.
Mar 27 12:11:24 9ffb76325b88 mysqld:
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Using mutexes to ref count buffer pool pages
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: The InnoDB memory heap is disabled
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Compressed tables use zlib 1.2.11
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Using Linux native AIO
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Using SSE crc32 instructions
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Initializing buffer pool, size = 128.0M
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] InnoDB: Completed initialization of buffer pool
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 0 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Plugin 'InnoDB' init function returned error.
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [Note] Plugin 'FEEDBACK' is disabled.
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Unknown/unsupported storage engine: InnoDB
Mar 27 12:11:24 9ffb76325b88 mysqld: 2019-03-27 12:11:24 139740625689728 [ERROR] Aborting
Mar 27 12:11:24 9ffb76325b88 mysqld:
Mar 27 12:11:24 9ffb76325b88 mysqld_safe: mysqld from pid file /var/run/mysqld/mysqld.pid ended
EDIT3: Found the issue… and I see what happened in the end.
banderi@face:/opt/seafile-data$ sudo du seafile -s -h
62G seafile
While I was transfering my files during the night, apparently the partition got full. Mysql crashed and could not get back up due to that:
banderi@face:~$ sudo systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Thu 2019-03-28 16:16:40 PDT; 20s ago
Process: 2109 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
Process: 2248 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
Mar 28 16:16:40 face systemd[1]: Starting LSB: Start and stop the mysql database server daemon...
Mar 28 16:16:40 face mysql[2248]: /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed!
Mar 28 16:16:40 face /etc/init.d/mysql[2268]: ERROR: The partition with /var/lib/mysql is too full!
Mar 28 16:16:40 face systemd[1]: mysql.service: control process exited, code=exited status=1
Mar 28 16:16:40 face systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Mar 28 16:16:40 face systemd[1]: Unit mysql.service entered failed state.
I have now cleared up space and restored my Seafile installation, everything is working perfectly fine again!