"Update all" button in Apps doesn't work

Hi *

it’s been a couple of releases that update all button doesn’t work and does nothing. Single update button seems ok.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    [Nextcloud Hub 10] (31.0.0 beta 4) on a shared OVH hosting

Firefox inspector reports:
Uncaught (in promise) TypeError: e.update is not a function
updateAll AppList.vue:329
i index.js:24
n index.js:24
promise callback*73958/S/i/</< index.js:40
i index.js:58
i index.js:57
updateAll AppList.vue:328
updateAll AppList.vue:328
VueJS 4
click NcButton.mjs:231
VueJS 33

Thanks!

I am having the same issue on my 31.0.0 RC3 and earlier releases. Could you fix it?

For this purpose, I have set up a cron job that automatically updates all apps once a day.

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#apps-commands

that is a great workaround :slight_smile: Thanks for the suggestion!

1 Like

That’s not fixing the issue but I like the workaround and implement it too.

For all upcoming people with this problem, I added just this with “crontab -e”:

“* 1 */1 * * sudo -u www-data /var/www/nextcloud/occ app:update --all”
(it is updating at 01:00 a.m. every day)

1 Like

I don’t like to pick on well-intentioned posts, but unfortunately there are a couple of problems with your command that will cause it to not work as intended, and probably not work at all.

  1. There is a missing *, the correct syntax would be 1 */1 * * *. However, this would still not work as intended, as it would run the command on the first minute of every hour. To run it every night at 01:00, the correct expression would be 0 1 * * *.

  2. cron won’t be able to run the occ script directly without further adjustments, i.e. it needs to be run with `php’.

  3. This is more of a nit-pick and not a strict requirement for it to work, but I would recommend adding the command to the crontab of www-data rather than using sudo -u www-data in the crontab of the root user.

Here’s a working example to run it every night at 01:00 on Debian/Ubuntu based systems:

Open the crontab of www-data in edit mode…

crontab -u www-data -e

…and add the following line:

0 1 * * * php -f /var/www/nextcloud/occ app:update --all

…or even better, add it with the full path to the php binary:

0 1 * * * /usr/bin/php -f /var/www/nextcloud/occ app:update --all
3 Likes

I started to see these issues as well for NC31RC4, so I created a bug report (it was working on NC 30 however):

I see something similar in my current 30.0.06, but have seen it on earlier versions. The ‘update all’ button in my case will update one app and only one. The single update button works fine. It happened just this morning, I think the apps were Contacts and Calendar. I think.

I have linked a different topic in my bug report which is different (because it existed before). If that is similar, then it will be addressed at some point, you can give it a thumbs up to show you are affected as well.
If yours is different, you can open a new independent bug report.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.