Cannot install nextcloud due mysql error

Hello there.

I am trying to install nextcloud on my turris omnia. On nextcloud I get the following error:

“Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory”
Turns out mysqld is not starting. Trying to manually start it with /etc/init.d/mysqld start results in followeing error:

2021-01-19 11:17:52 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:17:52 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:17:53 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:17:53 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:17:53 0 [Note] mysqld (mysqld 10.4.17-MariaDB) starting as process 19831 ...
2021-01-19 11:17:53 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32184)
2021-01-19 11:17:53 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
2021-01-19 11:17:53 0 [Note] InnoDB: Using Linux native AIO
2021-01-19 11:17:53 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-01-19 11:17:53 0 [Note] InnoDB: Uses event mutexes
2021-01-19 11:17:53 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-19 11:17:53 0 [Note] InnoDB: Number of pools: 1
2021-01-19 11:17:53 0 [Note] InnoDB: Using generic crc32 instructions
2021-01-19 11:17:53 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2021-01-19 11:17:53 0 [Warning] InnoDB: Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.
2021-01-19 11:17:53 0 [Note] InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
2021-01-19 11:17:53 0 [Warning] InnoDB: Linux Native AIO disabled.
2021-01-19 11:17:53 0 [Note] InnoDB: Initializing buffer pool, total size = 64M, instances = 1, chunk size = 64M
2021-01-19 11:17:53 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-19 11:17:53 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-01-19 11:17:53 0 [Warning] InnoDB: Retry attempts for reading partial data failed.
2021-01-19 11:17:53 0 [ERROR] InnoDB: Tried to read 16384 bytes at offset 81920, but was only able to read 0
2021-01-19 11:17:53 0 [ERROR] InnoDB: Operating system error number 2 in a file operation.
2021-01-19 11:17:53 0 [ERROR] InnoDB: The error means the system cannot find the path specified.
2021-01-19 11:17:53 0 [ERROR] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2021-01-19 11:17:53 0 [ERROR] InnoDB: File (unknown): 'read' returned OS error 71. Cannot continue operation

I tried setting “innodb_use_native_aio = 0” in /etc/my.cnf resulting in another error:

2021-01-19 11:22:59 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:22:59 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:22:59 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:23:00 0 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
2021-01-19 11:23:00 0 [Note] mysqld (mysqld 10.4.17-MariaDB) starting as process 27920 ...
2021-01-19 11:23:00 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32184)
2021-01-19 11:23:00 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
2021-01-19 11:23:00 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-01-19 11:23:00 0 [Note] InnoDB: Uses event mutexes
2021-01-19 11:23:00 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-01-19 11:23:00 0 [Note] InnoDB: Number of pools: 1
2021-01-19 11:23:00 0 [Note] InnoDB: Using generic crc32 instructions
2021-01-19 11:23:00 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2021-01-19 11:23:00 0 [Note] InnoDB: Initializing buffer pool, total size = 64M, instances = 1, chunk size = 64M
2021-01-19 11:23:00 0 [Note] InnoDB: Completed initialization of buffer pool
2021-01-19 11:23:00 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-01-19 11:23:00 0 [Warning] InnoDB: Retry attempts for reading partial data failed.
2021-01-19 11:23:00 0 [ERROR] InnoDB: Tried to read 16384 bytes at offset 81920, but was only able to read 0
2021-01-19 11:23:00 0 [ERROR] InnoDB: Operating system error number 2 in a file operation.
2021-01-19 11:23:00 0 [ERROR] InnoDB: The error means the system cannot find the path specified.
2021-01-19 11:23:00 0 [ERROR] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them.
2021-01-19 11:23:00 0 [ERROR] InnoDB: File (unknown): 'read' returned OS error 71. Cannot continue operation

I had already reinstalled it severeal times and deleted all local files from /var/www/nextcloud.

Can someone help me with installation of nextcloud?

I experienced the same error and reinstalled MySQL. Now I get another error.

Out of curiosity, have you installed nextcloud package prior to your storage installation?