We are setting up a container registry on FreedomBox servers that wonβt have these limitations and will be better for privacy. If it goes well, next release will download the container from there and this issue will be solved too.
Thank you so much! I appreciate you and all the work you do to help us with this!
Hi,
my Nextcloud is also down since a few weeks and unfortunately not coming to life again on 24.22, though updates are tried regularly.
Currently I run into the rate limit error, and guess that with the frequent retries it might not get better:
Nov 05 08:44:06 vmd103424 /usr/bin/plinth[1596316]: Setup completed: nextcloud: Error updating app: {exception} Command '['podman', 'image', 'pull', 'docker.io/library/nextcloud:stable-fpm']' returned non-zero exit status 125.
Nov 05 08:44:06 vmd103424 /usr/bin/plinth[1596316]: Error running setup - Command '['podman', 'image', 'pull', 'docker.io/library/nextcloud:stable-fpm']' returned non-zero exit status 125.
Nov 05 08:44:06 vmd103424 /usr/bin/plinth[1596316]: Unable to complete setup: Command '['podman', 'image', 'pull', 'docker.io/library/nextcloud:stable-fpm']' returned non-zero exit status 125.
Nov 05 08:44:06 vmd103424 /usr/bin/plinth[1596316]: Will try again in 10 seconds
Can this be tuned somewhere? Maybe less frequent tries could help.
I tried uninstall/reinstall, which does not trigger the limit, but fails with the following (here: via repair from status page). Nextcloud Webinterface calls for upgrade (via commandline client), but seems to be the generic nextcloud page (links point to nc docs).
Nov 05 10:48:12 vmd103424 /usr/bin/plinth[1596316]: Error running action nextcloud..setup(): CalledProcessError(1, ["podman", "exec", "--user", "33", "nextcloud-freedombox", "/var/www/html/occ", "ldap:set-config", "s01", "ldapBase", "dc=thisbox"])
Stdout:
β nextcloud-freedombox
β ba446e052d889f2fcc4072b136573849700ac0481511e01f8178b6116e36b74a
β
β Set mode for background jobs to 'cron'
β System config value htaccess.RewriteBase set to string /nextcloud
β System config value htaccess.IgnoreFrontController set to boolean true
β .htaccess has been updated
β user_ldap already enabled
Stderr:
β Failed to stop nextcloud-freedombox-volume.service: Unit nextcloud-freedombox-volume.service not loaded.
β Trying to pull docker.io/library/nextcloud:stable-fpm...
β Getting image source signatures
β Copying blob sha256:a47a1de29151482d89cdf405490c70182443f67575eb03a68f42abd50efd29bd
β Copying blob sha256:741ae76dd1e234ce7574d603f08a0c953692392fabb7c2edd0217eee00863383
β Copying blob sha256:a480a496ba95a197d587aa1d9e0f545ca7dbd40495a4715342228db62b67c4ba
β Copying blob sha256:a0821bbad4e47f758a328f2a49ef3dad8fcec58ba1e78d614123cd9111157b9b
β Copying blob sha256:6be174f186fba8bd9588e69dcb88d654cf6590053938bf88e66a215170f38003
β Copying blob sha256:bd4787ab9f9aaf61c3cd939e591c0c63aa771cb8d06f1ca4ac50b7fdbe571aec
β Copying blob sha256:15b2e1adddd67085d1948dbcba2bb63c7a1f9603eaa8b97479ff2e2af7b16fc1
β Copying blob sha256:7e6f32953ef101eed6dd2b314e40800c0f34d14160028ac7fd5a6992ee845070
β Copying blob sha256:6c8a58b73ea33013ab5430b737962f53a67979cdf47b800358e1b7288b9d61e6
β Copying blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
β Copying blob sha256:79e003456a949a793c9dd0fcca97f2228d3a7722f119d622d130068e43ae0375
β Copying blob sha256:1f24a25f0418d44597fa5adb05eeacec4a8498d283baca473b3831cfddf051ff
β Copying blob sha256:599a61039eeea6b1607ddf00bf9e5b8010de2225335cfae748a3891d7df5bc4d
β Copying blob sha256:5a2f14b11713adc46a65db6f07c5afc4e283b85c204e1a8efea3617ba8747402
β Copying blob sha256:1fd0e00aab17253129d58ef7aabbdc5e309490360b418acde78ffb01de9e6add
β Copying blob sha256:60896434eede59a63d5da9fe22e3c640515e4d492f593b1e2bb4b76a9f2649c0
β Copying blob sha256:60daf4788c0bcbdaab0d2f11dcfcd94595409071b7a084be4db06bfb9c73bad9
β Copying config sha256:ba446e052d889f2fcc4072b136573849700ac0481511e01f8178b6116e36b74a
β Writing manifest to image destination
β Storing signatures
β 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
β 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
β 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
β 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
β 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
β 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
β
β
β There are no commands defined in the "ldap" namespace.
β
β
Action traceback:
β File "/usr/lib/python3/dist-packages/plinth/actions.py", line 391, in _privileged_call
β return_values = func(*arguments['args'], **arguments['kwargs'])
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 72, in setup
β _configure_ldap()
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 317, in _configure_ldap
β _run_occ('ldap:set-config', 's01', key, value)
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 87, in _run_occ
β return _run_in_container('/var/www/html/occ', *args, **kwargs)
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 82, in _run_in_container
β return subprocess.run(command, capture_output=capture_output, check=check)
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3.11/subprocess.py", line 571, in run
β raise CalledProcessError(retcode, process.args,
Nov 05 10:48:12 vmd103424 /usr/bin/plinth[1596316]: Setup completed: nextcloud: Error repairing app: {exception} Command '['podman', 'exec', '--user', '33', 'nextcloud-freedombox', '/var/www/html/occ', 'ldap:set-config', 's01', 'ldapBase', 'dc=thisbox']' returned non-zero exit status 1.
Nov 05 10:48:12 vmd103424 /usr/bin/plinth[1596316]: Repair completed: nextcloud
Nov 05 10:48:15 vmd103424 /usr/bin/plinth[1596316]: # nextcloud..is_enabled()
Currently I run into the rate limit error, and guess that with the frequent retries it might not get better:
We now a working container registry setup without any limits at registry.freedombox.org. I have raised a merge request to make the change in FreedomBox, however, it did not make it into yesterdayβs release. So, it will take a couple of weeks to reach you. Meanwhile, if you want to make this simple code change, please update the file /usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py
, line 21, and replace docker.io with registry.freedombox.org.
Nextcloud Webinterface calls for upgrade (via commandline client), but seems to be the generic nextcloud page (links point to nc docs).
I will look into this. However, could you please try the following? a) double check that the version is 24.22 b) try uninstall/reinstall again.
Edit:
I see that:
- Nextcloud should not require an upgrade if it is being installed the first time.
- Nextcloud container comes with its own script to upgrade the Nextcloud database without having to prompt the user.
So something is amiss.
Thank you for looking into this, to get more insight I did the following:
- uninstall nextcloud - OK
- install nextcloud - OK (without data, login page shown, nextcloud-admin still unknown/unset)
- the restore does not work
- maybe due to the fact that the last backup/change was done under 24.20, since then nextcloud failed upgrading
- I guess the DB dump and installed nextcloud version do not fit anymore
- upgrade scripts have to be run (shown by nextcloud page instead of login page:
Update needed. Please use the command line updater because updating via browser is disabled in your config.php.
) - is there any chance to
- run/install an old version, restore and then upgrade nextcloud step-by-step
- I could fix things manually via commandline, but donβt know how, I guess
- either via occ (e.g. run DB upgrade scripts)
- retry with somewhat patched actions.py/privileged.py, e.g. excluding the failing command
- or pull an older container version, restore and start upgrading from there
The error is about ldap:
Nov 07 21:53:56 vmd103424 /usr/bin/plinth[1596316]: Error running action nextcloud..restore_database(): CalledProcessError(1, ["podman", "exec", "--user", "33", "nextcloud-freedombox", "/var/www/html/occ", "ldap:update-uuid"])
Stdout:
β OK
β Maintenance mode already disabled
Stderr:
β 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
β 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
β
β
β There are no commands defined in the "ldap" namespace.
β
β
Action traceback:
β File "/usr/lib/python3/dist-packages/plinth/actions.py", line 391, in _privileged_call
β return_values = func(*arguments['args'], **arguments['kwargs'])
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 394, in restore_database
β _run_occ('ldap:update-uuid')
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 87, in _run_occ
β return _run_in_container('/var/www/html/occ', *args, **kwargs)
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/privileged.py", line 82, in _run_in_container
β return subprocess.run(command, capture_output=capture_output, check=check)
β ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
β File "/usr/lib/python3.11/subprocess.py", line 571, in run
β raise CalledProcessError(retcode, process.args,
Nov 07 21:53:56 vmd103424 /usr/bin/plinth[1596316]: Error running backup/restore hook for app nextcloud: Command '['podman', 'exec', '--user', '33', 'nextcloud-freedombox', '/var/www/html/occ', 'ldap:update-uuid']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/plinth/modules/backups/api.py", line 415, in _run_hooks
getattr(component, hook)(packet)
File "/usr/lib/python3/dist-packages/plinth/modules/nextcloud/__init__.py", line 228, in restore_post
privileged.restore_database()
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 73, in wrapper
return _run_privileged_method_as_process(func, module_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 134, in _run_privileged_method_as_process
return _wait_for_return(*wait_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 191, in _wait_for_return
raise exception
subprocess.CalledProcessError: Command '['podman', 'exec', '--user', '33', 'nextcloud-freedombox', '/var/www/html/occ', 'ldap:update-uuid']' returned non-zero exit status 1.
Finally everything is up and running, with the backup properly restored. It was solved βmagicallyβ (without further interaction)β¦
Thank you very much for all the efforts providing this software and support!
This thread can be closed and status set to solved.
A post was split to a new topic: Nextcloud: 503 on app page during massive sync
I am marking this as solved, but please report if anyone faces this issue again.
Hi @dagwood ,
If you have enabled βFrequent Feature Updatesβ, you should be able to manually upgrade to the latest version of FreedomBox which will give show you Nextcloud app. If not manually requested, the upgrade will happen automatically at night.