Open hnk opened 7 years ago
Glad you got it working again, it’s weird that you had to install MySQL, our setup doesn’t use it.
Hmm you are right. I was tired and did not think much about that...
Ok, so the cause was something different and installing php7.0-mysql may have helped by causing some other side effect. If it did not fix the problem: Then what did?
Maybe installing the package caused php to re-index modules so it could use the sqlite module? This is just a wild guess.
Perhaps this is related
@hnk could it be that you had set NC to use an external DB from the NC admin settings? I had the same issue. Fixed it like you said with:
apt install php7.0-mysql
.
wget https://download.nextcloud.com/server/releases/nextcloud-10.0.5.zip
unzip nextcloud-10.0.5.zip
mv /usr/local/lib/owncloud/ /usr/local/lib/owncloud-old/
mv nextcloud /usr/local/lib/owncloud
confirm new version with cat /usr/local/lib/owncloud/version.php
[must be 10.0.5]
sudo mailinabox
sudo -u www-data php /usr/local/lib/owncloud/occ maintenance:mode --off
sudo mailinabox
@nikksno No, I have a vanilla install and did not edit or change any settings for miab or nextcloud.
I do think that installing php7.0-mysql had no effect on the upgrade, but maybe triggered a dependency install that was missing.
@anoma I will have to investigate logs more thoroughly to see what was going on. I was kinda stressed out these last few days, so could not dig into it further. I will have some more time soon.
I just wanted to quickly log the errors I had here and how to fix it in case others ran into the same issues.
@hnk ok I see. Not sure why then.
Hi folks. Sadly my upgrade to v0.24 failed :(
Had this error pop up:
After digging around I figured I was missing a php7 module for mysql, so I went ahead and installed
php7.0-mysql
.Re-running the upgrade then did not work, because nextcloud complained about upgrading between major versions. So I re-downloaded and moved nextcloud 10.0.5 to /usr/local/lib/owncloud and re-ran the upgrade.
This time nextcloud upgraded from 10 to 11 and then to 12 but again, complained:
And I was dropped back to the promp, the upgrade just stopped.
So I ran:
sudo -u www-data php /usr/local/lib/owncloud/occ maintenance:mode --off
and re-ran the upgrade again.This time the upgrade completed and my box is fine, even after a reboot. Phew. Glad I started this at midnight 😭