Hello!
my Nextcloud instance works quite well, I discovered to be in trouble creating a new user.
/var/log/syslog
Dec 7 15:52:02 ubu-scintycloud mysqld: 2019-12-07 15:52:02 7f33b6eea700 InnoDB: table "nextcloud"."oc_jobs"is corrupted. Please drop the table and recreate
I tried without success a mysqlrepair
adminubu@ubu-scintycloud:~$ sudo mysqlrepair nextcloud oc_jobs
Failed to SHOW CREATE TABLE `oc_jobs`
Error: Table 'nextcloud.oc_jobs' doesn't exist in engine
What is the scope of this table?
What is the best solution?
- build the table from scratch
- recover the table from a previous backup
- roll back the full VM to a previous state
- other suggestions
Nextcloud version 14:
Operating system and version Ubuntu 16.04:
asking mysqld version with a mistyping gives some idea of possible troubles or optimizations:
191207 16:10:03 [Note] mysqld (mysqld 10.0.38-MariaDB-0ubuntu0.16.04.1) starting as process 4343 ...
191207 16:10:03 [Warning] Can't create test file /var/lib/mysql/ubu-scintycloud.lower-test
mysqld: One can only use the --user switch if running as root
191207 16:10:03 [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.
191207 16:10:03 [Note] InnoDB: Using mutexes to ref count buffer pool pages
191207 16:10:03 [Note] InnoDB: The InnoDB memory heap is disabled
191207 16:10:03 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
191207 16:10:03 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
191207 16:10:03 [Note] InnoDB: Compressed tables use zlib 1.2.8
191207 16:10:03 [Note] InnoDB: Using Linux native AIO
191207 16:10:03 [Note] InnoDB: Not using CPU crc32 instructions
191207 16:10:03 [Note] InnoDB: Initializing buffer pool, size = 128.0M
191207 16:10:03 [Note] InnoDB: Completed initialization of buffer pool
191207 16:10:03 [ERROR] InnoDB: ./ibdata1 can't be opened in read-write mode
191207 16:10:03 [ERROR] InnoDB: The system tablespace must be writable!
191207 16:10:03 [ERROR] Plugin 'InnoDB' init function returned error.
191207 16:10:03 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
191207 16:10:03 [ERROR] mysqld: File '/var/lib/mysql/aria_log_control' not found (Errcode: 13 "Permission denied")
191207 16:10:03 [ERROR] mysqld: Got error 'Can't open file' when trying to use aria control file '/var/lib/mysql/aria_log_control'
191207 16:10:03 [ERROR] Plugin 'Aria' init function returned error.
191207 16:10:03 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
191207 16:10:03 [Note] Plugin 'FEEDBACK' is disabled.
191207 16:10:03 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
191207 16:10:03 [ERROR] mysqld: unknown option '--versioe'
191207 16:10:03 [ERROR] Aborting
191207 16:10:03 [Note] mysqld: Shutdown complete
Thanks for your help!