-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nextcloud check gives error but nextcloud is up&running (but can't be updated) #1997
Comments
Your database is down (from the logs it actually looks like a normal shutdown). Can you try running |
I doubt mariadb is down, as Nextcloud is working. https://linuxconfig.org/how-to-change-mariadb-user-password?origin=serp_auto Atention, don't keep the empty password, make backups of all changed files. You would need to change the database password in /var/www/nextcloud/config/config.php After that I had been able to update nextcloud. Remember to set your previous password again and restore the backuped files. |
Thank you very much for taking the time to respond @theCalcaholic!
If you're referring to the database log section of my ncp-report output, then those entries have timestamps from 2022. (I'm not sure if that's a good or a bad thing.)
I did. I did not notice any discernible effect (i.e., ncp-report output is near identical, ncp-update-nc still fails with "nextcloud is currently down"). I also ran systemctl start mariadb
For good measure, I also did a manual stop/start for mariadb without any noticeable effect. |
@FadeFx thanks for the suggestion. @theCalcaholic would you suggest the same? |
Oh right, I might need to fix the report script (it probably uses the wrong source for the db logs). I'm wondering: Did you manually install a PHP version? Can you check if php-mysql is installed? (By default would be 8.3) |
Hm. I think I tried once (but failed) a few years ago (before debian included php 8). I'm not sure if I also did it while dealing with #1913.
Indeed, it's not. Just to double check: I should install php-mysql, correct? |
You likely need php8.3-mysql, not php-mysql - unless you tried to manually upgrade php which would have broken NextcloudPi |
I installed php8.3-mysql but ncp-update-nc is still failing the same as before. I didn't do anything manually after successfully trying the advice of #1913. I'm guessing that does not count as "manual upgrade". I might just have to start fresh on that particular instance. Do you think it's worth trying the suggestion from #1997 (comment) ? In any case, thank you again for your help and this wonderful project, @theCalcaholic. |
@pkra I'm afraid that won't help (and is a security risk). The error from the Nextcloud Logs clearly indicates a missing mysql driver for PHP (which is installed with the php*-mysql package). You could try a reboot and then double check what versions of php you have installed on your systemb(try |
@theCalcaholic thanks and sorry for the slow response. I tried a reboot (several times at various points). Here's the result of the grep output from
|
Maybe try the following commands first (and then reboot): sudo update-alternatives --set php "$(which php8.3)"
sudo a2dismod php7.3
sudo a2dismod php7.4
sudo a2dismod php8.0
sudo a2dismod php8.1
sudo a2dismod php8.2
sudo a2enmod php8.3
sudo service apache2 restart If that works, you can afterwards remove all unneeded php versions: sudo apt remove php7.* php8.{0..2}* |
Maybe try the following commands first: sudo update-alternatives --set php "$(which php8.3)"
sudo a2dismod php7.4
sudo a2dismod php8.1
sudo a2enmod php8.3
sudo service apache2 restart If that works, you can afterwards remove all unneeded php versions: sudo apt remove php7.4* php8.1* However it looks like you have installed pjp 8.3 (and likely php 8.1) manually, which probably means, it's not installed correctly. |
Thanks for taking the time, @theCalcaholic. I didn't think I did any manual installations but perhaps I misunderstand what counts as "manual". Anyway, I think I've finally broken this system completely. Time to see if there's a viable backup around. Thank you again for your patient help and this wonderful project. |
@pkra With manual, I mean "not using the NCP interface". NCP is designed to work filly automated if you don't customize it using the terminal. If you do, you are at risk of breaking things (it's not wrong to take that risk, but it should be a conscious decision). |
@theCalcaholic thanks for clarifying. [As I wrote, I had to follow the instructions in #1913 (which would be "manual" by that definition), so I wasn't sure if that counted. Thanks again.] |
I recently noticed that NCP is no longer updating nextcloud itself (I'm still on v28).
The NCP's system info page gives
Nextcloud check: error
however Nextcloud itselfs works just fine - both the web interface and interactions with mobile apps.While NCP updates just fine, NC updates fail, e.g.,
[Since I don't access this installation very often, I don't know exactly how long this has been going on but it may have been since I ran into #1913.]
Any pointers would be greatly appreciated.
<--! Paste this in GitHub report -->
NextcloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: