Closed bsasealteam6 closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Have you looked to check your mariadb database is working correctly?
No, what should I do for that?
Check the container logs for it.
I recreated the DB container and it fixed the issue loading the page. However, the updater still doesn't work
I was getting an error from the DB container:
2023-05-20 5:17:56 16283 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
2023-05-20 5:17:56 16283 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').
However, that error has been happening for longer than I have been encountering errors
occ app:update --all
is also still erroring out
Likely need to restore a backup as where you've thought that nextcloud was the issue, it was actually your mariadb instance and running the updates could've broken things.
There has been a breaking change which mariadb released and we've posted info about it here https://info.linuxserver.io/issues/2023-05-29-mariadb/
The updater.phar
issue at the very least was fixed by running apk add php81-posix
inside the container, so I think a necessary package was missed.
Running the mariadb-upgrade
command fixed the MariaDB errors, but I am still both of the other issues with commands
Still haven't managed to get occ app:update --all
to work
If I run apk add php81-pdo php81-pdo_mysql php81-posix
it changes to
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Still haven't managed to get
occ app:update --all
to work
Why are you running this command? we don't mention anywhere in our documentation to run that. Like I mentioned, you've likely broken the install by running update commands thinking your nextcloud was broken when infact it was mariadb.
You likely need to restore a backup of your /config
volume.
And for what it's worth, the container already has posix installed. https://github.com/linuxserver/docker-nextcloud/blob/master/package_versions.txt#L210
Considering you're for some reason installing php81 is likely breaking it.
I was installing php81 becaues php -v was returning 8.1. If you look at the commit details from the bot this morning (https://github.com/linuxserver/docker-nextcloud/commit/c07466d60a3c8907f25fccfae31d6cf991138ade), it updated to php 8.2 this morning (since I submitted the ticket). It does look like php81-posix was on the install list from yesterday, so I don't know why it didn't get installed, but considering apk add php81-posix
fixed the issue, something must have gone wrong there. Also, I got the occ app:update --all
from Nextcloud's website to update the apps, which is something that should work. Do you have a better way for me to update the apps?
updater.phar
is working correctly now though
Also, now that I do further testing, anything with the occ
app is broken. And you do specify in the readme that the occ
command can be used
Ok, it gets weirder. The container has both php 8.1 and 8.2 installed. This is me running php -v
every couple of seconds immediately after the container is created. updater.phar
works for the first couple of seconds, then stops working. Same with the occ command
root@242bad772004:/# php -v
PHP 8.2.6 (cli) (built: May 10 2023 05:42:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@242bad772004:/# php -v
PHP 8.2.6 (cli) (built: May 10 2023 05:42:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@242bad772004:/# php -v
PHP 8.2.6 (cli) (built: May 10 2023 05:42:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@242bad772004:/# php -v
PHP 8.2.6 (cli) (built: May 10 2023 05:42:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@242bad772004:/# php -v
PHP 8.2.6 (cli) (built: May 10 2023 05:42:02) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
root@242bad772004:/# php -v
PHP 8.1.19 (cli) (built: May 11 2023 20:01:17) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.19, Copyright (c) Zend Technologies
root@242bad772004:/#
Figured it out. One of my package installs was breaking it
Is there an existing issue for this?
Current Behavior
When I try to connect to my nextcloud, I get this error
Also, if I try to run updater.phar, I get this error:
And if I run
occ apt:update --all
I get this error:Expected Behavior
For navigating to web page: see nextcloud dashboard For updater.phar: Updates server
Steps To Reproduce
All I did was upgrade from your last docker container to this one:
Environment
CPU architecture
x86-64
Docker creation
Container logs