I'm about at wit's end here... and lacking sleep.
I thought I was being a good citizen by running some vulnerability scanners against my Nextcloud installation (installed thanks to
@Joshua Parker Ruehlig and his outstanding documentation). It provided some good information, but in the process it hosed my site! Initially browsing to the Nextcloud site it presented a 404 complaining that the file was not found (/nextcloud/login). Being the responsible steward of my FreeNAS system I didn't sweat it since I had backups of the jail, DB, and files datasets. As a result I restored all 3 thinking I'd be back up and running within minutes. Problem is, I only made matters worse after performing the restore! Now mysql-server won't even start.
I've tried to gather more debug information to pin-point the crashes, but haven't got far.
Code:
root@nextcloud_2:/var/db/mysql # tail -n 30 /var/db/mysql/nextcloud_2.err
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Server version: 10.1.21-MariaDB
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467063 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x48400
0xb03f9e <my_print_stacktrace+0x2e> at /usr/local/libexec/mysqld
0x723c22 <handle_fatal_signal+0x262> at /usr/local/libexec/mysqld
0x803214b4a <pthread_sigmask+0x51a> at /lib/libthr.so.3
0x80321422c <pthread_getspecific+0xe1c> at /lib/libthr.so.3
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
170310 01:57:10 mysqld_safe mysqld from pid file /var/db/mysql/nextcloud_2.pid ended
Code:
root@nextcloud_2:/var/db/mysql # /usr/local/bin/mysqladmin debug
/usr/local/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61 "Connection refused")'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
I can't pay the bills without my Nextcloud password DB! No money, LOTs of problems...
I've "touched" the /tmp/mysql.sock file, and granted full permissions to the mysql user, but it failed to resolve the issue.
Suggestions?