I’m facing the issue that I’m currently not able to update my Nextcloud App on Syncloud any more.
When I go to Nextcloud App page on Syncloud Platform, there is a green button “Upgrade v820”. When I press it, the Upgrade process starts. After a while it’s finished and I can reload the page without seeing the processing pop-up any more. However, the green button is still there and nothing happened at the end. It might happen a rollback.
When I run snap run nextcloud.occ status I get the following output:
I also tried to run snap run nextcloud.occ app:disable notifications first and then tried to upgrade via UI again, but same result.
I would be happy about any help. I had sent you my device logs to support@syncloud.it just before Christmas. Just let me know if I should resent you the logs or test some code in the terminal.
Besides that, I noticed some side issues with my Nextcloud App which might be caused by issues of Nexcloud itself rather than of Syncloud and too many Nextcloud In-Apps. However, this might be related to the Upgrade issue and maybe you have some ideas here as well:
Readme files in folders are not correctly pre-viewed: “file could not be loaded” and if I open the file, it just shows some html code independent from the file content. I think this applies for .md files that were created before some (in-app) update as newer files don’t have this issue. I don’t know how to fix that for older files. The “collective” app shows similar issues.
I think the database (postgres) has some issues too. I noticed issues with “Inventory” App and “Analytics” app. In the Inventory App it does not save entries any more without any error notification. In the Analytics app it says just “technical issue, please check protocols” when I try to import data. It might be also a Javascript and not a postgres issue.
At this point automatic upgrade will not work from 28 to 30, probably in past there was an issue automatically upgrading to 29 so we need to fix that first.
Can you run this v29 upgrade using SSH and post the output please:
Thanks for the idea. Upgrade to v29 does not work. Here is the output:
snap install nextcloud_815_$(dpkg --print-architecture).snap --devmode
error: cannot perform the following tasks:
- Run configure hook of "nextcloud" snap if present (run hook "configure":
-----
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
You are now connected to database "postgres" as user "nextcloud".
SET
SET
SET
SET
SET
SET
set_config
------------
(1 row)
SET
SET
SET
SET
COMMENT
CREATE EXTENSION
COMMENT
You are now connected to database "template1" as user "nextcloud".
SET
SET
SET
SET
SET
SET
set_config
------------
(1 row)
SET
SET
SET
SET
COMMENT
CREATE EXTENSION
COMMENT
2025-01-12 19:35:43,658 - nextcloud_occ - INFO - running: /snap/nextcloud/current/bin/occ-runner status
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2025-01-12 19:35:48,030 - nextcloud_occ - INFO - - installed: true
- version: 29.0.4.1
- versionstring: 29.0.4
- edition:
- maintenance: false
- needsDbUpgrade: true
- productname: Nextcloud
- extendedSupport: false
2025-01-12 19:35:48,030 - nextcloud_installer - INFO - status: - installed: true
- version: 29.0.4.1
- versionstring: 29.0.4
- edition:
- maintenance: false
- needsDbUpgrade: true
- productname: Nextcloud
- extendedSupport: false
2025-01-12 19:35:48,031 - nextcloud_installer - INFO - upgrading nextcloud
2025-01-12 19:35:48,031 - nextcloud_occ - INFO - running: /snap/nextcloud/current/bin/occ-runner upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Starting ...
0/0 [>---------------------------] 0% Starting ...
0/0 [->--------------------------] 0% Starting ...
0/0 [--->------------------------] 0% Starting ...
0/0 [----->----------------------] 0% Starting ...
0/0 [------->--------------------] 0% Starting ...
0/0 [--------->------------------] 0% Starting ...
0/0 [----------->----------------] 0% Starting ...
0/0 [------------->--------------] 0% Starting ...
0/0 [-------------->-------------] 0% Starting ...
0/0 [---------------->-----------] 0% Starting ...
0/0 [------------------>---------] 0% Starting ...
0/0 [-------------------->-------] 0% Starting ...
0/0 [---------------------->-----] 0% Starting ...
0/0 [------------------------>---] 0% Starting ...
0/0 [-------------------------->-] 0% Starting ...
0/0 [>---------------------------] 0% Starting ...
0/0 [->--------------------------] 0% Starting ...
0/0 [--->------------------------] 0% Starting ...
0/0 [----->----------------------] 0% Starting ...
0/0 [------->--------------------] 0% Starting ...
0/0 [--------->------------------] 0% Starting ...
0/0 [----------->----------------] 0% Starting ...
0/0 [------------->--------------] 0% Starting ...
0/0 [-------------->-------------] 0% Starting ...
0/0 [---------------->-----------] 0% Starting ...
0/0 [------------------>---------] 0%
<exceeded maximum runtime of 30m0s>
-----)
Here one more background info that might help: at first I used Syncloud on a VM (Virtual box) and then I moved to an Odroid HC4 with 2 HDDs. For that I flashed the SD Card with new Odroid image. I created same user name(s). Then I moved Nextcloud app backup file onto the Odroid device and restored Nextcloud from Backup. Everything seemed to work at the time. However, I may have dragged a problem with it to this day.
Currently I’m using the device in production, so I have to be careful what I’m doing to not loose my data. I did at least a backup of the nextcloud app now.
Meanwhile, it is usually one of the non default nextcloud apps failing to updat, so I would remove one by one and try again.
Hopefully the logs will help us to identify one.
Do you mean by “removing” just to disable or to uninstall? I just have to make sure that I don’t lose data. Also there are many apps, so it would take 30 min to test each app. If you have an idea where to start… At the end it could be also a combination of apps causing the issue.
Ok, now I’ve tried to update to v820 via UI but it fails, I’ve sent you logs. I can’t find any text in the logs pointing to an app name but I thinks it’s still the same issue but with another app now.
I have also same error text in nextcloud Upgrade to Nextcloud 30.x but I didn’t run the command yet, as I don’t know what it does. But maybe this could help, too.
error: cannot perform the following tasks:
- Run configure hook of "nextcloud" snap if present (run hook "configure":
-----
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
ALTER TABLE
You are now connected to database "postgres" as user "nextcloud".
SET
SET
SET
SET
SET
set_config
------------
(1 row)
SET
SET
SET
SET
2025-01-13 21:06:10,973 - nextcloud_occ - INFO - running: /snap/nextcloud/current/bin/occ-runner status
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2025-01-13 21:06:21,842 - nextcloud_occ - INFO - - installed: true
- version: 30.0.4.1
- versionstring: 30.0.4
- edition:
- maintenance: false
- needsDbUpgrade: true
- productname: Nextcloud
- extendedSupport: false
2025-01-13 21:06:21,842 - nextcloud_installer - INFO - status: - installed: true
- version: 30.0.4.1
- versionstring: 30.0.4
- edition:
- maintenance: false
- needsDbUpgrade: true
- productname: Nextcloud
- extendedSupport: false
2025-01-13 21:06:21,843 - nextcloud_installer - INFO - upgrading nextcloud
2025-01-13 21:06:21,843 - nextcloud_occ - INFO - running: /snap/nextcloud/current/bin/occ-runner upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Starting ...
0/0 [>---------------------------] 0% Starting ...
0/0 [->--------------------------] 0% Starting ...
0/1 [>---------------------------] 0%
Starting ...
1/1 [============================] 100% Starting ...
0/0 [------->--------------------] 0% Starting ...
0/1 [>---------------------------] 0%
Starting ...
1/1 [============================] 100%
<exceeded maximum runtime of 30m0s>
-----)
Some problems are simply solved overnight. I had deactivated a few apps more and tried again and still received an error message. Now I wanted to look again, and: the version was successfully automatically upgraded to v30.
Thank you for your help @boris !