I was just updating NextcloudPi, followed by a check for updates of Nextcloud (there were none), and last, I updated Apps, which threw the following error:
I had just upgraded NCP from 1.43.5 to 1.43.7
Nextcloud version: 126.96.36.199
Hardware: Odroid HC2
Not sure how to add config and so forth, so please advise if needed. Thanks.
Edit: After a reboot, I checked for App updates again - none found, and got a green light, so not sure if any action needs to be taken. Again, please advise.
Checked app updates again today - here’s the output:
What version of PHP are you using?
Hmm, not sure - how would I determine that? I’m rather a noob.
Well, it seems updating previewgenerator is the problem. You can try to uninstall previewgenerator, update and reinstall previewgenerator with the occ command:
sudo -u www-data php -f /var/www/nextcloud/occ app:remove previewgenerator
sudo -u www-data php -f /var/www/nextcloud/occ app:install previewgenerator
Thanks. Is there a way to access terminal from NextcloudPi web interface? I can’t see one.
You’ll need to get ssh access.
Alternatively you can disable and remove the previewgenerator app through the web interface, in the apps menu.
OK, thanks, I’ll see what I can do, most likely tomorrow.
I figured out how to log into NCP terminal throut Putty, entered the first command, and got this:
sudo: /var/www/nextcloud/occ: command not found
Please advise. Keep in mind that I’m pretty new to this. Thanks.
My bad, I messed up the commands, I have edited them in my previous
First command ran fine. Second threw:
sudo: nc-autoupdate-nc: command not found
Ok, I’m not too familiar with NextcloudPi, and assumed this was a command. You can try to trigger the update in the same way as you normally do after uninstalling previewgenerator.
Actually, reading the output closer, the first command gave:
previewgenerator 0 removed
November 15, 2021, 4:41pm
You should not run these from the terminal directly, but interactivly from ncp-config or ncp-web.
NCP users can replace that by:
sudo ncc app:remove previewgenerator
ncc is Nacho’s occ wrapper, (it uses -u www-data and knows the path occ
That sounds like it worked. You can check by running
sudo -u www-data php -f /var/www/nextcloud/occ app:list |grep previewgenerator. If it doesn’t return any output the app was removed.
Thanks, OliverV - how would I access ncp-config and ncp-web? I assume those are in the web UI, but I don’t see entries for either.
November 15, 2021, 4:54pm
both will give access to all the ncp tools
Configuration-Reference | NextCloudPi Documentation
Thanks. It looks like I have previewgenerator re-enabled, so I guess I have to wait for tomorrow to see whether it works, since it updates at 2 AM. I’ve spent too much time on this already, and I would rather put things back the way they were for now, update errors or not.