Failed update on NS7.9 to NS8 migrated NextCloud

NethServer Version: NS8
Module: Nextcloud
The upgrade saga continues … continued from Thread with question about container storage.
After successfully migrating NS7.9 to NS8 and having my NextCloud instance migrated OK, I have had a problem with the update of the NextCloud instance.
After completing the migration, the software centre said that an update was available for Nextcloud so I pressed the button for the upgrade.
The pop-up window showing progress was OK until nearly the end when it said that the update failed.
When I look at the webpage now it shows this:


So since I’m logged into the CLI, and having read a few posts I expected that the failed update needed something. The command given to complete the upgrade from a number of posts was tried and then decided to use the debug command to get some more info:

runagent -m nextcloud2 occ upgrade -vvv

Running that command provides a fairly long output which I will post in it’s entirety below:

# runagent -m nextcloud2 occ upgrade -vvv
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-03-29T18:39:47+00:00 Setting log level to debug
[nextcloud][updater][1] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":1,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::setDebugLogLevel: Set log level to debug","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
[nextcloud][core][0] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":0,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 27.1.11.3 to 30.0.7.2","userAgent":"--","version":"27.1.11.3","data":{"app":"core"}}
[nextcloud][no app in context][3] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":3,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"{\"Exception\":\"Exception\",\"Message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/html/lib/private/Updater.php\",\"line\":98,\"function\":\"doUpgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[\"30.0.7.2\",\"27.1.11.3\"]},{\"file\":\"/var/www/html/core/Command/Upgrade.php\",\"line\":190,\"function\":\"upgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Command/Command.php\",\"line\":326,\"function\":\"execute\",\"class\":\"OC\\\\Core\\\\Command\\\\Upgrade\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":1078,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Command\\\\Command\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":324,\"function\":\"doRunCommand\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Core\\\\Command\\\\Upgrade\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":175,\"function\":\"doRun\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/lib/private/Console/Application.php\",\"line\":183,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/console.php\",\"line\":87,\"function\":\"run\",\"class\":\"OC\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"}]},{\"file\":\"/var/www/html/occ\",\"line\":33,\"args\":[\"/var/www/html/console.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/lib/private/Updater.php\",\"Line\":199,\"message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"exception\":{},\"CustomMessage\":\"Updates between multiple major versions and downgrades are unsupported.\"}","userAgent":"--","version":"27.1.11.3"}
2025-03-29T18:39:47+00:00 Exception: Updates between multiple major versions and downgrades are unsupported.
[nextcloud][updater][3] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":3,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: Exception: Updates between multiple major versions and downgrades are unsupported.","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
2025-03-29T18:39:47+00:00 Update failed
[nextcloud][updater][3] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":3,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
2025-03-29T18:39:47+00:00 Maintenance mode is kept active
[nextcloud][updater][1] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":1,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
2025-03-29T18:39:47+00:00 Resetting log level
[nextcloud][updater][1] {"reqId":"KYHthDTYNWBzJoVj0YP3","level":1,"time":"2025-03-29T18:39:47+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Debug(0)","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}

It looks to me like the updater tried to jump from v27.1.11.3 to v30.

Now I’m stuck as I’m not sure what to do next. Trying to force the update doesn’t work. I expect I need to update to v28, then v29 and finally v30 but this is only a guess.

Any help appreciated.
Thanks

On the Github releases page you can find the needed versions.

I didn’t test but it should work to upgrade in this order:

  • 1.2.1 (NC28)
  • 1.3.0 (NC29)
  • 1.4.0 (NC30)

To force the upgrade/downgrade from CLI, adapt <VERSION> as needed:

api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/nextcloud:<VERSION>","instances":["nextcloud1"],"force":true}'

Thanks @mrmarkuz . I’ll give it go.
Here is the first upgrade error

# api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/nextcloud:1.2.1","instances":["nextcloud1"],"force":true}'
Warning: using user "cluster" credentials from the environment
Traceback (most recent call last):
  File "/var/lib/nethserver/cluster/actions/update-module/50update", line 40, in <module>
    ping_errors = agent.tasks.runp_brief([{"agent_id": f"module/{mid}", "action": "list-actions"} for mid in instances],
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/agent/pypkg/agent/tasks/run.py", line 61, in runp_brief
    results = asyncio.run(_runp(tasks, **kwargs))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/local/agent/pypkg/agent/tasks/run.py", line 120, in _runp
    return await asyncio.gather(*runners, return_exceptions=(len(tasks) > 1))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/agent/pypkg/agent/tasks/run.py", line 127, in _run_with_protocol
    return await run_redisclient(taskrq, **pconn)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/agent/pypkg/agent/tasks/redisclient.py", line 77, in run_redisclient
    await _task_submission_check_client_idle(rdb, taskrq, kwargs['check_idle_time'])
  File "/usr/local/agent/pypkg/agent/tasks/redisclient.py", line 41, in _task_submission_check_client_idle
    raise TaskSubmissionCheckFailed(f"Client \"{taskrq['agent_id']}\" was not found")
agent.tasks.exceptions.TaskSubmissionCheckFailed: Client "module/nextcloud1" was not found
""
I expect this is because it is called nextcloud2 not nextcloud1.
1 Like

Yes, if the app instance name is nextcloud2 then you need to adapt the command.

Checked after completing 1.2.1 update and got a “Bad Gateway” message when I tried to connect to the webgui. I’m going to run through the manual upgrade for 1.3.0 then check if I can connect via the NS8 Software Centre.

The “Bad Gateway” just means that the Nextcloud container isn’t started and may need some more time.

1 Like

The Software Centre shows an update to 1.4.0 available now.
Will the command use the nextcloud1 or should I be OK to run the update via GUI?

The software center always shows the most recent version but I’m afraid when you install 1.4.0 (NC30) you get the same issue.

I think you should use the command to update to 1.3.0 first.

Thanks @mrmarkuz . I did the manual update to 1.3.0 and then did a snapshot of my NS8 just in case.
The Software Centre shows present NextCloud version as 1.3.0.
Now running the update from the Software Centre from 1.3.0 to 1.4.0.
Crossing my fingers.

1 Like

Notification shows nextcloud2 so it identified the proper container name!! :grinning:

1 Like

The Software Centre updated OK.
Still stuck at Maintenance mode.


This time I’ll try the CLI command once more and then turn off maintenance mode.

runagent -m nextcloud2 occ upgrade

and then

runagent -m nextcloud2 occ maintenance:mode --off

Crossing fingers again.

1 Like

F**k.
Back to same error message as before.
I assumed if the container was updated properly it would exit saying it was the most recent version. Incorrect assumption?
Not sure how I ended up with v27.1.11.3 again.

# runagent -m nextcloud2 occ 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
Setting log level to debug
[nextcloud][updater][1] {"reqId":"uXldSWVtzywkoZLmrxXr","level":1,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::setDebugLogLevel: Set log level to debug","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
[nextcloud][core][0] {"reqId":"uXldSWVtzywkoZLmrxXr","level":0,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 27.1.11.3 to 30.0.7.2","userAgent":"--","version":"27.1.11.3","data":{"app":"core"}}
[nextcloud][no app in context][3] {"reqId":"uXldSWVtzywkoZLmrxXr","level":3,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"{\"Exception\":\"Exception\",\"Message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/html/lib/private/Updater.php\",\"line\":98,\"function\":\"doUpgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[\"30.0.7.2\",\"27.1.11.3\"]},{\"file\":\"/var/www/html/core/Command/Upgrade.php\",\"line\":190,\"function\":\"upgrade\",\"class\":\"OC\\\\Updater\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Command/Command.php\",\"line\":326,\"function\":\"execute\",\"class\":\"OC\\\\Core\\\\Command\\\\Upgrade\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":1078,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Command\\\\Command\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":324,\"function\":\"doRunCommand\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"OC\\\\Core\\\\Command\\\\Upgrade\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/3rdparty/symfony/console/Application.php\",\"line\":175,\"function\":\"doRun\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/lib/private/Console/Application.php\",\"line\":183,\"function\":\"run\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"},{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput\"}]},{\"file\":\"/var/www/html/console.php\",\"line\":87,\"function\":\"run\",\"class\":\"OC\\\\Console\\\\Application\",\"type\":\"->\",\"args\":[{\"__class__\":\"Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput\"}]},{\"file\":\"/var/www/html/occ\",\"line\":33,\"args\":[\"/var/www/html/console.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/lib/private/Updater.php\",\"Line\":199,\"message\":\"Updates between multiple major versions and downgrades are unsupported.\",\"exception\":{},\"CustomMessage\":\"Updates between multiple major versions and downgrades are unsupported.\"}","userAgent":"--","version":"27.1.11.3"}
Exception: Updates between multiple major versions and downgrades are unsupported.
[nextcloud][updater][3] {"reqId":"uXldSWVtzywkoZLmrxXr","level":3,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: Exception: Updates between multiple major versions and downgrades are unsupported.","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
Update failed
[nextcloud][updater][3] {"reqId":"uXldSWVtzywkoZLmrxXr","level":3,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
Maintenance mode is kept active
[nextcloud][updater][1] {"reqId":"uXldSWVtzywkoZLmrxXr","level":1,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}
Resetting log level
[nextcloud][updater][1] {"reqId":"uXldSWVtzywkoZLmrxXr","level":1,"time":"2025-03-29T20:36:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Debug(0)","userAgent":"--","version":"27.1.11.3","data":{"app":"updater"}}

I’m going to revert the snapshot and use the CLI update command.

I think you need to go back to 1.2.1 (NC28) and check if NC is updated and do the occ upgrade if needed after every update.

After reverting the snapshot, Software Centre says NextCloud is at 1.3.0. But I can’t get past the bad gateway to check if it is running properly.

You could check the nextcloud logs on the system logs page.

I think 1.3.0 (NC29) doesn’t work as it seems that still NC27 is configured.
Please try to downgrade to 1.2.1 and check if NC is running.

EDIT:

If nothing works, you could also try method “b” from howto:nextcloud [NethServer & NethSecurity]

I ran the “upgrade” command to 1.2.1 and still have the “bad gateway”.
When I check what version by running

# runagent -m nextcloud2 occ --version
# 

there is nothing reported.

Here is the command and results. I’ve clipped it down to shorten the post.

# api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/nextcloud:1.2.1","instances":["nextcloud2"],"force":true}'
Warning: using user "cluster" credentials from the environment
<7>podman pull ghcr.io/nethserver/nextcloud:1.2.1
Trying to pull ghcr.io/nethserver/nextcloud:1.2.1...
Getting image source signatures
Copying blob sha256:465218b450a9cf4662be7814afc8ef9e7bb8ae477eae982fa0e5c0c0e877409c
Copying config sha256:b9a068c7f5879da454a54c7de895e8ed6bbd7b18cc662f4575db959148b1c3b7
Writing manifest to image destination
Storing signatures
b9a068c7f5879da454a54c7de895e8ed6bbd7b18cc662f4575db959148b1c3b7
<7>extract-ui ghcr.io/nethserver/nextcloud:1.2.1
Extracting container filesystem ui to /var/lib/nethserver/cluster/ui/apps/nextcloud2.d1a5169b
ui/css/
ui/css/about~31ecd969.276957f6.css
ui/css/app~748942c6.0853789c.css
ui/i18n/
ui/i18n/ar/
ui/i18n/ar/translation.json
ui/i18n/de/
ui/i18n/de/translation.json
ui/i18n/en/
ui/i18n/en/translation.json
ui/i18n/es/
ui/i18n/es/translation.json
ui/i18n/eu/
ui/i18n/eu/translation.json
...
ui/js/lang-pt_BR-translation-json~eef7148a.4de76209.js
ui/js/lang-pt_BR-translation-json~eef7148a.4de76209.js.map
ui/metadata.json
ui/shortcuts.json
24ca6478cca57dcdcbb4fe72638bce3070044dec5a06fb39c52275ada2ffcafc
<7>rm -rf '/var/lib/nethserver/cluster/ui/apps/nextcloud2.d1a5169b~'
<7>podman rmi --ignore ghcr.io/nethserver/nextcloud:1.3.0
Untagged: ghcr.io/nethserver/nextcloud:1.3.0
Deleted: 7097be9146d3f498aa3eb7fa1a26d16209e79173eba9af378e0fc576efc0800e
{}

I’ll have a look at method “b”. I didn’t think this could be so complicated. But I’m learning a lot…

In this thread also the version is missing and needed to be added manually:

After reading through that post, I tried the command again and this time:

# runagent -m nextcloud2 occ --version
Error: can only create exec sessions on running containers: container state improper

Interesting info in the system log

2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 2025-03-29 17:06:34.017201826 -0400 EDT m=+3.025318480 container create 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b (image=ghcr.io/nethserver/nextcloud-app:1.2.1, name=nextcloud-app, pod_id=1dceb373ed60546bc1c24b0879049a753109c17766f328d094d195e2147400a4, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.33.7)
2025-03-29T17:06:34-04:00 [1:nextcloud2:systemd] Started libpod-5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b.scope - libcrun container.
2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 2025-03-29 17:06:34.168550994 -0400 EDT m=+3.176667661 container init 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b (image=ghcr.io/nethserver/nextcloud-app:1.2.1, name=nextcloud-app, pod_id=1dceb373ed60546bc1c24b0879049a753109c17766f328d094d195e2147400a4, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.33.7)
2025-03-29T17:06:34-04:00 [1:nextcloud2:nextcloud-app] Configuring Redis as session handler
2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 2025-03-29 17:06:34.226597868 -0400 EDT m=+3.234714528 container start 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b (image=ghcr.io/nethserver/nextcloud-app:1.2.1, name=nextcloud-app, pod_id=1dceb373ed60546bc1c24b0879049a753109c17766f328d094d195e2147400a4, io.buildah.version=1.33.7, PODMAN_SYSTEMD_UNIT=nextcloud-app.service)
2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b
2025-03-29T17:06:34-04:00 [1:nextcloud2:nextcloud-app] Can't start Nextcloud because the version of the data (30.0.7.2) is higher than the docker image version (28.0.14.1) and downgrading is not supported. Are you sure you have pulled the newest image version?
2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 2025-03-29 17:06:34.477135194 -0400 EDT m=+0.025444336 container died 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b (image=ghcr.io/nethserver/nextcloud-app:1.2.1, name=nextcloud-app, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.33.7)
2025-03-29T17:06:34-04:00 [1:nextcloud2:podman] 2025-03-29 17:06:34.731425273 -0400 EDT m=+0.279734485 container cleanup 5b01434f56b76bf45af98fc1028dce9aaa0baf9f0074b1bd3cc078674e3cd16b (image=ghcr.io/nethserver/nextcloud-app:1.2.1, name=nextcloud-app, pod_id=1dceb373ed60546bc1c24b0879049a753109c17766f328d094d195e2147400a4, PODMAN_SYSTEMD_UNIT=nextcloud-app.service, io.buildah.version=1.33.7)
2025-03-29T17:06:34-04:00 [1:nextcloud2:systemd] nextcloud-app.service: Main process exited, code=exited, status=1/FAILURE

I’ll have to dig into how to find this config.php file inside the container and have a look there.

For occ to work the Nextcloud container needs to be running.

I think upgrading to 1.4.0 (NC30) should make Nextcloud start again and then you can set the version.

OK, running the command to upgrade to 1.3.0 and then 1.4.0.

I’m sorry, when you say then you can set the version, I’m not sure what this means.