Leonard Lassen
Explorer
- Joined
- Nov 19, 2020
- Messages
- 82
Okay, then I remove this also.
su -m www -c '/usr/local/bin/php /usr/local/www/nextcloud/occ upgrade'
Probably your MySQL or MariaDB database is not running. Look in /var/db/mysql for a file ending in .err
service mysql-server status
inside the jail say? What does cat NC.err
show you? And please post these things as text in CODE tags, not as screenshots. Thanks.What doesservice mysql-server status
inside the jail say? What doescat NC.err
show you? And please post these things as text in CODE tags, not as screenshots. Thanks.
root@NC:~ # service mysql-server status mysql is not running. root@NC:~ # cat NC.er cat: NC.er: No such file or directory root@NC:~ #
cat NC.err after you changed into the /var/db/mysql directory, of course.![]()
root@NC:/var/db/mysql # cat NC.err 2021-08-16T19:07:30.6NZ mysqld_safe Logging to '/var/db/mysql/NC.err'. 2021-08-16T19:07:30.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 2021-08-16T19:07:30.318857Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.318865Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.318882Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T19:07:30.318940Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.318957Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.318963Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.318977Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T19:07:30.319007Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T19:07:30.320372Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.25) starting as process 56598 2021-08-16T19:07:30.380441Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-08-16T19:07:30.876229Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-08-16T19:07:31.032327Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-08-16T19:07:31.231743Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-08-16T19:07:31.231999Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-08-16T19:07:31.242247Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'. 2021-08-16T19:07:31.242791Z 0 [ERROR] [MY-010119] [Server] Aborting 2021-08-16T19:07:32.202138Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.25) Source distribution. 2021-08-16T19:07:32.6NZ mysqld_safe mysqld from pid file /var/db/mysql/NC.pid ended 2021-08-16T19:10:06.6NZ mysqld_safe Logging to '/var/db/mysql/NC.err'. 2021-08-16T19:10:06.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 2021-08-16T19:10:07.124201Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.124210Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.124353Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T19:10:07.124541Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.124559Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.124565Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.124578Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T19:10:07.124610Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T19:10:07.125959Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.25) starting as process 70732 2021-08-16T19:10:07.207433Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-08-16T19:10:07.656489Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-08-16T19:10:07.944840Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-08-16T19:10:08.196373Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-08-16T19:10:08.196633Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-08-16T19:10:08.211901Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'. 2021-08-16T19:10:08.212448Z 0 [ERROR] [MY-010119] [Server] Aborting 2021-08-16T19:10:09.040105Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.25) Source distribution. 2021-08-16T19:10:09.6NZ mysqld_safe mysqld from pid file /var/db/mysql/NC.pid ended 2021-08-16T20:43:35.6NZ mysqld_safe Logging to '/var/db/mysql/NC.err'. 2021-08-16T20:43:35.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 2021-08-16T20:43:35.924737Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.924746Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.924763Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:43:35.924815Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.924832Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.924838Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.924851Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:43:35.924880Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:43:35.926255Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.25) starting as process 73839 2021-08-16T20:43:36.088673Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-08-16T20:43:36.549225Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-08-16T20:43:36.693188Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-08-16T20:43:36.850963Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-08-16T20:43:36.851230Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-08-16T20:43:36.865117Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'. 2021-08-16T20:43:36.865658Z 0 [ERROR] [MY-010119] [Server] Aborting 2021-08-16T20:43:37.899474Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.25) Source distribution. 2021-08-16T20:43:37.6NZ mysqld_safe mysqld from pid file /var/db/mysql/NC.pid ended 2021-08-16T20:56:18.6NZ mysqld_safe Logging to '/var/db/mysql/NC.err'. 2021-08-16T20:56:18.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 2021-08-16T20:56:18.642264Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.642273Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.642290Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:56:18.642341Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.642358Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.642364Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.642377Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:56:18.642406Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:56:18.643756Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.25) starting as process 76231 2021-08-16T20:56:18.698994Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-08-16T20:56:19.137352Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-08-16T20:56:19.282386Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-08-16T20:56:19.451267Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-08-16T20:56:19.451521Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-08-16T20:56:19.465731Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'. 2021-08-16T20:56:19.466271Z 0 [ERROR] [MY-010119] [Server] Aborting 2021-08-16T20:56:20.474168Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.25) Source distribution. 2021-08-16T20:56:20.6NZ mysqld_safe mysqld from pid file /var/db/mysql/NC.pid ended 2021-08-16T20:56:52.6NZ mysqld_safe Logging to '/var/db/mysql/NC.err'. 2021-08-16T20:56:52.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql 2021-08-16T20:56:52.867126Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.867135Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.867152Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:56:52.867206Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.867223Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.867228Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.867242Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2021-08-16T20:56:52.867271Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider notusing this option as it' is deprecated and will be removed in a future release. 2021-08-16T20:56:52.868584Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.25) starting as process 78420 2021-08-16T20:56:52.920582Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-08-16T20:56:53.344295Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-08-16T20:56:53.685746Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-08-16T20:56:53.871416Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-08-16T20:56:53.871673Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-08-16T20:56:53.88113
2021-08-16T19:07:31.242247Z 0 [ERROR] [MY-000067] [Server] unknown variable 'query_cache_type=0'. 2021-08-16T19:07:31.242791Z 0 [ERROR] [MY-010119] [Server] Aborting
/usr/local/mysql/my.cnf
and remove the matching line. Then try to restart your database server with service mysql-server start
and check again with service mysql-server status
.So please edit the file/usr/local/mysql/my.cnf
and remove the matching line.
for me it was this one :DSorry, /usr/local/etc/mysql/my.cnf -
Cannot write into "config" directory!
This can usually be fixed by giving the webserver write access to the config directory. But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.
'config_is_read_only' => true,
at the end of the config file right before the line with the closing );
.cd /usr/local/www/nextcloud && chown www:www config config/config.php
.So why don't you do what it tells you?
Either put the line'config_is_read_only' => true,
at the end of the config file right before the line with the closing);
.
Or docd /usr/local/www/nextcloud && chown www:www config config/config.php
.
Depending on whether you want your config file to be read-only (more secure) or not (more convenient). The second command enables changing of config settings through the UI.