0

The following cronjob don´t work in my server and I don´t understand the reason Cron:

`curl https://app.codexbot.co/cron_job/background_scanning_update_subscriber_info/1-NmZTjQk1575844678nNCBzwb >/dev/null 2>&1`
Dave M
  • 4,494
  • 21
  • 30
  • 30
  • Does this answer your question? [Why is my crontab not working, and how can I troubleshoot it?](https://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoot-it) – Bob Dec 10 '19 at 15:13
  • In general you start debugging faulty cron jobs by ensuring you do not discard any error messages, so change the `>/dev/null 2>&1` to log to a file such /tmp/my-cron.log with `>> /tmp/my-cron.log 2>&1` – Bob Dec 10 '19 at 15:15
  • this is the log: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 – Andres jimenez Dec 10 '19 at 16:32
  • https://prnt.sc/q8wx1z a screenshot – Andres jimenez Dec 10 '19 at 16:33
  • At first glance that seem to indicate that the cron job gets executed (otherwise there would be no output recorded at all) but the download stalls (the zero bytes received) which can have any number of reasons, from firewalls, the need to use a web proxy, to selinux and other access controls – Bob Dec 10 '19 at 16:37
  • I don´t have enough knowledge about that and what is the next step :( ( begginner user) – Andres jimenez Dec 10 '19 at 17:00

0 Answers0