Thank you @j-ed and @tcit for your replies! I digged into the issues you mentioned and, though not solved yet, found some more clues to this issue:
-
I installed Nextcloud with snap and found one post mentioned that some instructions will have to be run differently for a snap installation
Permissions Issue with Data Storage "Snap" - Solved -
I tried setting cron jobs for either
www-data
orroot
but none actually ran -
I manually ran the cron job by
sudo php /snap/nextcloud/current/htdocs/cron.php
and got this error message:
App directory "/snap//current/htdocs/apps" not found! Please put the Nextcloud apps folder in the Nextcloud folder or the folder above. You can also configure the location in the config.php file.
That seems like it didn’t get the path correctly, as there is a folder called /snap/nextcloud/current/htdocs/apps
. I recalled when digging in one of the config.php
files that position of the path was $SNAP_NAME
. I added export SNAP_NAME="nextcloud"
and confirmed this environment variable is loaded by sudo echo $SNAP_NAME
. But running the cron job manually again yielded the same error message.
Any thoughts on this?