Nextcloud permissions

In nextcloud I’m able to move files directly to the user’s directories and do:

occ files:scan –all

and the files are synchronized to the user’s directories.
Now with Nethserver8, it tries to scan inside the container or something:

[root@apps Filmes]# runagent -m nextcloud1 occ files:scan --all
Starting scan for user 1 out of 2 (admin)
Starting scan for user 2 out of 2 (jfranco)
Error during scan: stat(): stat failed for /var/www/html/data/jfranco/files/Filmes/iMac.G3.mp4

of course there’s no /var/www/html/data
and

[root@apps ~]# podman container ps

Does not list the nextcloud application.

Any help is appreciated.

Thanks,

I guess you moved the files as root so they have the wrong owner.

To reset the owner of the nextcloud files to www-data:www-data:

runagent -m nextcloud1 podman exec nextcloud-app chown -R www-data:www-data data

Now the occ files scan should work again.

To list the containers for nextcloud1, you need to be in the app user environment so you need runagent:

runagent -m nextcloud1 podman ps

@mrmarkuz !!!
No matter how the other guys talk bad about you, I still love you man :rofl:
Works for me!

Now, maybe on the samba problem I posted a while ago, this is can be the solution:
set Shared-folders permissions

Thanks,

1 Like