SOLVED Crontab: errors in crontab file, can't install

cymatic

Cadet
Joined
Feb 17, 2019
Messages
4
Hi there,

After last night's shenanigans with VNET failing, I continued on with setting up my Nextcloud server. All was working fine, created an ncadmin account and connected it to my database, but now I've ran into an error with Cron(tab).

Upon attempting to configure cron for the www user and add an entry to run the Nextcloud cron script, I'm faced with the following error:
crontab: installing new crontab
"/tmp/crontab.DSutHVOEvt":7: bad minute
crontab: errors in crontab file, can't install
Do you want to retry the same edit?

I've tried copying and pasting the Crontab header (from Squarism) and retyping out the directory countless times and I can't find anything online, other than a forum thread that looks promising, but is just asking about configuring a service. I'm kinda stumped here and I'm not sure what I need to do. Any help is appreciated

Cheers in advance
 

cymatic

Cadet
Joined
Feb 17, 2019
Messages
4
UPDATE:The initial entry that was tried was:
Code:
# minute (0-59),
# |     hour (0-23),
# |     |       day of the month (1-31),
# |     |       |       month of the year (1-12),
# |     |       |       |       day of the week (0-6 with 0=Sunday).
# |     |       |       |       |       commands
  */15      *       *       *       *       /usr/local/bin/php -f /usr/local/www/nextcloud/cron.php

This was later changed to:
Code:
15 * * * * /usr/local/bin/php -f /usr/local/www/nextcloud/cron.php

NOTE: In the initial entry, the spaces between each * was tabbed (so indented), whereas the later entry was just spaces between each * and no space before 15
 
Top