Errors Updating NextCloud
-
We seem to get this with every update. The update never works the first time, often not for many, many times. And it isn't just this error. It'll fail at the backup step, the integrity step and a couple others. Once in a while it works, mostly we get these random errors that suggest there is something buggy. Do other people get this? We get it on multiple installations, and have been getting it for a long time. Do people not try to use this method for updates? Or does it "just work" normally?
-
Enable
setsebool -P httpd_unified on
to update from gui and then disablesetsebool -P httpd_unified off
-
If that's what is stopping it, any idea why it works sometimes?
-
I don't have these problems. My install is currently a Ubuntu base though.
-
@dafyre said in Errors Updating NextCloud:
I don't have these problems. My install is currently a Ubuntu base though.
Most of the problems on a CentOS and Fedora servers is because of SELinux.
-
@scottalanmiller said in Errors Updating NextCloud:
If that's what is stopping it, any idea why it works sometimes?
Do you see any denied errors in
/var/log/audit/audit.log
? -
@black3dynamite said in Errors Updating NextCloud:
setsebool -P httpd_unified on
Even if I turn SELinux off to test completely, its' the same.
-
@scottalanmiller said in Errors Updating NextCloud:
@black3dynamite said in Errors Updating NextCloud:
setsebool -P httpd_unified on
Even if I turn SELinux off to test completely, its' the same.
I have to wait until the update is available for me to confirm it if I get that error.
-
@black3dynamite said in Errors Updating NextCloud:
@scottalanmiller said in Errors Updating NextCloud:
@black3dynamite said in Errors Updating NextCloud:
setsebool -P httpd_unified on
Even if I turn SELinux off to test completely, its' the same.
I have to wait until the update is available for me to confirm it if I get that error.
I took it out of maintenance mode so that I could try again, and the update is no longer available.
-
@black3dynamite said in Errors Updating NextCloud:
Enable
setsebool -P httpd_unified on
to update from gui and then disablesetsebool -P httpd_unified off
I never have this problem, I assume, because I turn off SELinux for the update. I do that instead of giving all the directories and shit HTTP_RW perms.
-
@jaredbusch said in Errors Updating NextCloud:
@black3dynamite said in Errors Updating NextCloud:
Enable
setsebool -P httpd_unified on
to update from gui and then disablesetsebool -P httpd_unified off
I never have this problem, I assume, because I turn off SELinux for the update. I do that instead of giving all the directories and shit HTTP_RW perms.
I tried that, still got the error. I normally keep it on, though, so it might be part of my historical issues.
-
Updating to 13.0.4 was a success.
-
Now with 13.0.4...
-
@scottalanmiller said in Errors Updating NextCloud:
Now with 13.0.4...
Do you have any of these setup in your nginx conf for nextcloud?
proxy_connect_timeout proxy_send_timeout proxy_read_timeout send_timeout
-
Went from 13.0.2 to 13.0.4 on Vultr and had no problems at all.
-
@scottalanmiller said in Errors Updating NextCloud:
Now with 13.0.4...
I got this on one of my instances, too. Took it out of maintenance mode with the CLI and then continued the update via the web interface and it finished without any further issues.
-
@bnrstnr said in Errors Updating NextCloud:
@scottalanmiller said in Errors Updating NextCloud:
Now with 13.0.4...
I got this on one of my instances, too. Took it out of maintenance mode with the CLI and then continued the update via the web interface and it finished without any further issues.
Yeah, that's what I normally do. But... why is that always necessarily, like almost every time.
-
Update done, just had to run it a couple of times.
-
I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...
[root@nextcloud updater]# sudo -u apache php updater.phar Nextcloud Updater - version: v13.0.0beta1 Current version is 13.0.2. PHP Fatal error: Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453 Stack trace: #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse() #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate() #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed
dnf install php-json
and re-ran the update. Worked like a charm.I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.
-
@zachary715 said in Errors Updating NextCloud:
I just ran into an error updating from 13.0.2 to 13.0.4. When trying to update via CLI I would get the following message...
[root@nextcloud updater]# sudo -u apache php updater.phar Nextcloud Updater - version: v13.0.0beta1 Current version is 13.0.2. PHP Fatal error: Uncaught Error: Call to undefined function NC\Updater\json_encode() in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php:453 Stack trace: #0 phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php(118): NC\Updater\Updater->getUpdateServerResponse() #1 phar:///var/www/html/nextcloud/updater/updater.phar/lib/UpdateCommand.php(142): NC\Updater\Updater->checkForUpdate() #2 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(256): NC\Updater\UpdateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(820): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 phar:///var/www/html/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(187): Symfony\Component\Console\ in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 453
Some Googling led me to potential issues with lack of json module for php. Figured I'd give it a shot so I installed
dnf install php-json
and re-ran the update. Worked like a charm.I usually have initiated the update from the Web GUI in the past, but was on my phone at home last night and thought I'd give the CLI a go since I too have issues with the web update from time to time.
Might be a new dependency to account for. I have not ran a new in stall in a couple years.