New answers tagged

0

To get more informative error messages, You can comment out the line in the Perl Module that calls die(). go to line 795 in /usr/share/perl5/vendor_perl/Munin/Master/HTMLOld.pm and change sub copy_web_resources { my ($staticdir, $htmldir) = @_; unless(dircopy($staticdir, "$htmldir/static")){ ERROR "[ERROR] Could not ...


1

No need to use any interactive editor. Write the new schedule to a file and then simply call: crontab file See the crontab man page.


0

these all codes working if i run by direct in terminal So if you're not running in your terminal, then how is it being run? If it's being run under some other user, then that user may well not have access to that directory (or one or more of its parent directories). Examine the permissions on each directory in the path /home/domain.com/data.


0

I have no reputation to comment, so I write it as an answer. Have you tried the cd command using relative path instead? If I am not wrong this would be: cd ../domain-statistics


6

If the system is using systemd, it will run as a systemd service, triggered by time. If you run systemctl status certbot.timer you will get the status of the service that triggers certbot from systemd. This is why the cron script is configured not to run renewal if systemd is detected on the machine.


2

It's a typo. You should use $USER, not ${USER}. Cron parses these lines itself and does only simple variable substitution; it is not a shell.


0

This is an XY problem. Offsetting cron from whole hour intervals, or common fractions thereof, can be generally valuable to reduce coinciding processes, but this question explicitly states the offset is to resolve a dependency. Script 2 relies on script 1, so using time alone to enforce a sequence creates a delay at best and a race condition at worst. It's ...


1

Quoting https://certbot.eff.org/docs/using.html?highlight=renew#automated-renewals Automated Renewals Most Certbot installations come with automatic renewals preconfigured. This is done by means of a scheduled task which runs certbot renew periodically. If you are unsure whether you need to configure automated renewal: Review the instructions for your ...


0

for the command I have in the sh file: docker exec -it dbContainer pg_dump -U username -d dbName > /home/user/backups/testingBackup.sql It is running in interactive mode (-it). If I remove this, everything works (so command is: docker exec dbContainer pg_dump -U username -d dbName > /home/user/backups/testingBackup.sql


0

I think cron is using /usr/sbin/sendmail so make sure you point that to your MTA.


Top 50 recent answers are included