You are here
Ganicus - Tue, 2022/05/24 - 02:57
Hi,
I'm running nexcloud 20.0.14 on turnkey-nextcloud-15.2-stretch-amd64 and I'm not able to update nextcloud to the last version.
Is there a simple way to do this update please ?
Thank you!
Forum:
Best you can do is upgrade to
Best you can do is upgrade to 23 due to the PHP version the LXC 16 runs
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/updater/updater.phar'
Thank you ! But I'm running
Thank you ! But I'm running currently 15.2 version. Not sure of this command will work
The command should work, your
The command should work, your limit will be Nextcloud dependencies and what packages are shipped with the OS.
Give it a go and report back!
Same thing as the web updater
Same thing as the web updater :
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 20.0.14.
No update available.
Nothing to do.
bugger
I guess you will have to update to TKL 16.1 to get to Nextcloud 23.
Bugger
I guess you will have to migrate to TKL 16.1 to get to Nextcloud 23.
*corrected
Thanks badco !
Thanks badco !
I was able to install TKL 16.1 but I encountered “Internal Server Error” when trying to migrate from NC 20 to NC 23 on the new container :
“The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.”
The output of occ:repair command is :
"
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‘adminer’@‘localhost’ (using password: YES) in /var/www/nextcloud/lib/private/DB/Connection.php:72
"
Any idea to resolve this issue please ?
Thank you !
Did you check the server logs for more info?
As noted in the error message, there should be more info in the server logs. So I suggest seeing what they say. I assume that they are explicitly referring to the Nextcloud logs (not the webserver logs), but the general Apache logs can be found in /var/log/apache2. I'm not 100% sure where the Nextcloud logs are by default, but google suggests that it should be called 'nextcloud.log', so this should find it:
You note that you ran 'occ:repair', but did you actually use that directly, or did you use the turnkey wrapper? (i.e. 'turnkey-occ repair') Or run it via 'su' or something? If you've run occ as root, then your permissions are likely messed up. You can recursively ensure that the webserver has ownership like this:
Regardless, the error that you are reporting from 'occ:repair' is a very strange one! It's complaining that it can't log into MySQL as "adminer"?! The adminer MySQL account is a root like user account that Nextcloud should not have any knowledge of! And it certainly shouldn't have the adminer user password stored anywhere readable by the web server! Unless I missunderstand something, that's a server hack waiting to happen!
Personally, I suggest that you manually upgrade Nextcloud on your current server, then migrate the updated TurnKey appliance. Or just wait until v17.1 is realeased (no firm ETA, but soon I hope...).
Hello,
Hello,
FYI, TKL 16.1 host Nextcloud 21.0.1 and not 23 :
https://www.turnkeylinux.org/updates/nextcloud
Correct, but...
Nextcloud can be upgraded up to 23.x.x in TKL 16.1.
Hi Ganicus, sounds like you may need to do manual upgrade
I'm not sure what has gone wrong and why it's not working. Having said that, a quick google suggests that it's not an uncommon Nextcloud issue within v20. AFAIK, the workaround is to do a manual upgrade. Note that those docs are explicitly for the latest release. From a glance, they look reasonable, but I'm not super familiar with Nextcloud, so I can't give much specific advice there. It's probably also worth having a look through the Nextcloud changelog to see what has changed and get a feel for what adjustments might need to be made.
if you continue to have issues, please post back, and/or try posting in the Nextcloud forums (if you do post in the Nextcloud forums, please feel free to cross post a link here).
Thanks too badco for jumping in and trying to help. That's super appreciated! :)
Add new comment