How could I run a cron job with the nextcloud shell?

What type of hardware are you using: Other ARM board
What YunoHost version are you running: 12.0.6
What app is this about: Nextcloud

Describe your issue

I have a manually-installed program on my server that downloads files I want to keep in my multimedia folders. This, I’ve been able to do fairly well. However, Nextcloud won’t show the files in the multimedia folders on the Nextcloud UI. After looking this up, it looks like I have to run a command as a job (such as with crontab) as detailed at the bottom of this admin doc page. However, the only way to do the occ command with a Yunohost-managed Nextcloud is by entering the Nextcloud shell with sudo yunohost app shell nextcloud. I can’t figure out how I’m supposed to be able to run a crontab job via the Nextcloud shell! Any advice would be great.

Share relevant logs or error messages

n/a

After sudo yunohost app shell nextcloud

Enter command

crontab -e

You will be directed to nextclouds crontab edit. Then you can choose nano or vim for editing

1 Like
nextcloud@server:~$ crontab -e
You (nextcloud) are not allowed to use this program (crontab)
See crontab(1) for more information

Thanks for trying to help anyway.

That’s weird, I’m able to do this in my server.

/etc/cron.allow
/etc/cron.deny

Check these files maybe you can figure it out? Or you can send

cat /etc/cron.allow
cat /etc/cron.deny

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