vagrant ubuntu 16.04 crontab - execute commands at wrong time

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vagrant ubuntu 16.04 crontab - execute commands at wrong time

Bartosz Miklaszewski
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

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: vagrant ubuntu 16.04 crontab - execute commands at wrong time

Alvaro Miranda Aguilera
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

On Sun, Jul 16, 2017 at 11:03 AM, Bartosz Miklaszewski <[hidden email]> wrote:
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

--
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 [hidden email].
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exTYZ3TodLoZaLnFjFE3kDBjitW1QgGEHh-u-6ppvWbZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: vagrant ubuntu 16.04 crontab - execute commands at wrong time

bartosz.miklaszewski
i believe this is related to vagrant, as i dont have this problem with any other ubuntu machine, only one running with vagrant


Bart




On Monday, 17 July 2017 09:10:31 UTC+1, Alvaro Miranda Aguilera wrote:
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

On Sun, Jul 16, 2017 at 11:03 AM, Bartosz Miklaszewski <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z7F3ivaYAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mikl...@...> wrote:
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/<a href="http://netbox.vagrant.test_netbox_datacentred_ceph.sh" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_datacentred_ceph.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9WtJx5MKIBwmFtrYniodt0lLdlQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_datacentred_ceph.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9WtJx5MKIBwmFtrYniodt0lLdlQ&#39;;return true;">netbox.vagrant.test_netbox_datacentred_ceph.sh
0 4 * * * /var/spool/duplicity/<a href="http://netbox.vagrant.test_netbox_amazon_s3.sh" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_amazon_s3.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPxIc_Su0suniLrW07yPxXcG6l7g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_amazon_s3.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPxIc_Su0suniLrW07yPxXcG6l7g&#39;;return true;">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/<a href="http://netbox.vagrant.test_netbox_datacentred_ceph.sh" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_datacentred_ceph.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9WtJx5MKIBwmFtrYniodt0lLdlQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_datacentred_ceph.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE9WtJx5MKIBwmFtrYniodt0lLdlQ&#39;;return true;">netbox.vagrant.test_netbox_datacentred_ceph.sh)

Jul 16 12:00:01 netbox CRON[1370]: (root) CMD (/var/spool/duplicity/<a href="http://netbox.vagrant.test_netbox_amazon_s3.sh" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_amazon_s3.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPxIc_Su0suniLrW07yPxXcG6l7g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fnetbox.vagrant.test_netbox_amazon_s3.sh\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFPxIc_Su0suniLrW07yPxXcG6l7g&#39;;return true;">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

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Z7F3ivaYAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/05e4f834-7f2d-46d7-8d87-618d2df4b7df%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/05e4f834-7f2d-46d7-8d87-618d2df4b7df%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/05e4f834-7f2d-46d7-8d87-618d2df4b7df%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/05e4f834-7f2d-46d7-8d87-618d2df4b7df%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro


DataCentred Limited registered in England and Wales no. 05611763

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/57faefe2-a9ff-44dc-897f-76d1cff8ab3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.