vagrant ubuntu 16.04 crontab - execute commands at wrong time

52 views
Skip to first unread message

Bartosz Miklaszewski

unread,
Jul 16, 2017, 2:03:07 PM7/16/17
to Vagrant
hi guys, i am having problem with vagrant crontab time...
my cron looks like this:

0 0 * * * /opt/netbox/netbox-backup.sh
0 2 * * * /var/spool/duplicity/netbox.vagrant.test_netbox_datacentred_ceph.sh
0 4 * * * /var/spool/duplicity/netbox.vagrant.test_netbox_amazon_s3.sh

but its actually executed at wrong time:

this is log output:

Jul 16 08:00:01 netbox CRON[13567]: (root) CMD (/opt/netbox/netbox-backup.sh 2>&1 | /usr/bin/logger -t netbox-backup -p syslog.notice)
Jul 16 08:00:01 netbox netbox-backup: tar: Removing leading `/' from member names
Jul 16 08:00:01 netbox netbox-backup: /var/backups/netbox_backup-16-Jul-2017-08.00.01.sql
Jul 16 08:00:01 netbox netbox-backup: /opt/netbox/netbox/media/
Jul 16 08:00:01 netbox netbox-backup: /opt/netbox/netbox/media/image-attachments/
Jul 16 08:00:01 netbox netbox-backup: /opt/netbox/netbox/media/image-attachments/.gitignore

Jul 16 08:00:01 netbox CRON[13567]: (root) CMD (/opt/netbox/netbox-backup.sh 2>&1 | /usr/bin/logger -t netbox-backup -p syslog.notice)

Jul 16 10:00:02 netbox CRON[23690]: (root) CMD (/var/spool/duplicity/netbox.vagrant.test_netbox_datacentred_ceph.sh)

Jul 16 12:00:01 netbox CRON[1370]: (root) CMD (/var/spool/duplicity/netbox.vagrant.test_netbox_amazon_s3.sh)

in short: execution is off by 8h

even if system time is right, tested at 18:58 and output is:
Sun 16 Jul 18:59:18 BST 2017

any idea why this is happening ?

I am running - Ubuntu 16.04 Xenial with vagrant

many thanks

Bartosz

Alvaro Miranda Aguilera

unread,
Jul 17, 2017, 4:10:31 AM7/17/17
to vagra...@googlegroups.com
Hello

This mailing list is vagrant about the program vagrant and how to use it.

I think your question is more suitable for ubuntu forums if its ubuntu specific, or any other general linux page like StackOverflow.

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/05e4f834-7f2d-46d7-8d87-618d2df4b7df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

bartosz.mi...@datacentred.co.uk

unread,
Jul 17, 2017, 7:31:47 AM7/17/17
to Vagrant
i believe this is related to vagrant, as i dont have this problem with any other ubuntu machine, only one running with vagrant


Bart


To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages