Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nextcloud AIO occ commands??

Featured Replies

Beste Unraiders,

 

Wie o wie kan mij helpen om een OCC commando uit te voeren op de juiste manier in Docker Nextcloud AIO?

Bedoeling is om dit commando uit te voeren ivm een melding in Nextcloud over de "default_phone_region".

 

Het gaat om dit commando:

docker exec --user www-data nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NL"

 

you can open a shell for the currently running docker (right click on docker icon). There you can start occ directly.

 

  • Author

Thanks for the quick response 👍

I have tried the shell command directly in the container where nextcloud is, but i get the following errors...

 

Schermafbeelding 2023-03-06 102042.jpg

  • Author

Not sure what the exact commando should be...

within the shell do an ls -al and see, what user is needed (-u needs a NAME, not a number)

like

[root@l3router ~]# cd /cloud/nextcloud/
[root@l3router /cloud/nextcloud]# v
total 176
drwxrwxrwx  15 www   www      512 24 Feb. 14:02 .
drwxr-xr-x  11 root  wheel    512  6 Sep. 09:27 ..
-rw-r--r--   1 www   www     3345 24 Feb. 14:03 .htaccess
-rw-r--r--   1 www   www      101 23 Feb. 10:30 .user.ini
drwxr-xr-x  47 www   www     1024 24 Feb. 14:02 3rdparty
drwxr-xr-x  60 www   www     1536 24 Feb. 14:02 apps
-rw-r--r--   1 www   www    19327 23 Feb. 10:30 AUTHORS
drwxr-xr-x   2 www   www      512 24 Feb. 14:03 config
-rw-r--r--   1 www   www     4095 23 Feb. 10:30 console.php
-rw-r--r--   1 www   www    34520 23 Feb. 10:30 COPYING
drwxr-xr-x  23 www   www     1024 24 Feb. 14:02 core
-rw-r--r--   1 www   www     6317 23 Feb. 10:30 cron.php
drwxrwx---  10 www   www      512  6 März 00:00 data
drwxr-xr-x   2 www   www     7168 24 Feb. 14:02 dist
-rw-r--r--   1 www   www      156 23 Feb. 10:30 index.html
-rw-r--r--   1 www   www     3456 23 Feb. 10:30 index.php
drwxr-xr-x   6 www   www      512 24 Feb. 14:02 lib
-rw-r--r--   1 www   www      283 23 Feb. 10:30 occ
drwxr-xr-x   2 www   www      512 24 Feb. 14:02 ocm-provider

so here it would be "www".

 

then do

 

sudo -u NAME php occ...

 

This should work

(I dont run this docker, I cannot look it up)

 

Edited by MAM59

  • Author

Thanks for your help, going to try that command....

  • Author

Got it!! 🥳

So the right command should be:

sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set default_phone_region --value="NL"

For anyone else in the future....

I did run this command through the Unraid terminal directly, not through the docker container console (shell) of Nextcloud.

 

Thanks for your help MAM59 👍

Edited by Dantheman

  • 2 years later...
On 3/6/2023 at 5:04 AM, Dantheman said:

For anyone else in the future....

I did run this command through the Unraid terminal directly, not through the docker container console (shell) of Nextcloud.

 

Thanks for your help MAM59 👍

I'm from the future. Thank you guys! Much appreciated.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.