# Cronjobs problem 'Cronfig'

**URL:** <https://forum.mautic.org/t/cronjobs-problem-cronfig/6382>\
**Category:** Product Support\
**Created:** [October 29, 2016, 8:01pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382 "2016-10-29T20:01:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frans](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Frans](https://forum.mautic.org/u/Frans)\
**Post date:** [October 29, 2016, 8:01pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/1 "2016-10-29T20:01:15Z")

</div>

Can somebody help me… please!!!. I’m trying to get the cron jobs work but unfortunality after 3 days i’m totally lost!  
  
I tried to start the cron jobs with my hosting provider and this just didn’t work at all. I’m now trying to work with Cronfig and receive this message on every task:  
  
  
  
HTTP status is not 2xx. That means not successful.  
  
Job output

  
  
404 Not Found  
  

# Not Found
  

The requested URL /cronfig/mautic:campaigns:trigger was not found on this server.

  

Additionally, a 404 Not Found  
error was encountered while trying to use an ErrorDocument to handle the request.

  
  
  
I just don't now how to fix this.  
  
Thanks in advance!  
  
Gr, Frans

---

<div class="post-metadata">

**Author:** ![Frans](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Frans](https://forum.mautic.org/u/Frans)\
**Post date:** [October 29, 2016, 8:01pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/2 "2016-10-29T20:01:15Z")

</div>

Can somebody help me… please!!!. I’m trying to get the cron jobs work but unfortunality after 3 days i’m totally lost!  
I tried to start the cron jobs with my hosting provider and this just didn’t work at all. I’m now trying to work with Cronfig and receive this message on every task:

HTTP status is not 2xx. That means not successful.  
Job output

404 Not Found
# Not Found

The requested URL /cronfig/mautic:campaigns:trigger was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I just don’t now how to fix this.

Thanks in advance!

Gr, Frans

---

<div class="post-metadata">

**Author:** ![jims](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jims/32/396_2.png) [@jims](https://forum.mautic.org/u/jims)\
**Post date:** [October 30, 2016, 2:25am UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/3 "2016-10-30T02:25:30Z")

</div>

Please post your cronjob setup here, screenshort and/or paste.

But it looks like you are calling urls, not running commands. Show me what you have and we can try and correct it for you

---

<div class="post-metadata">

**Author:** ![Frans](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Frans](https://forum.mautic.org/u/Frans)\
**Post date:** [October 30, 2016, 6:18am UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/4 "2016-10-30T06:18:42Z")

</div>

Thanks!

These are my cronjob settings right now. Setup with my hosting account. Cronfig. is disabled

php /web/app/console mautic:campaigns:rebuild \>/dev/null 2\>&1  
php /web/app/console mautic:campaigns:trigger \>/dev/null 2\>&1  
php /web/app/console mautic:segments:update \>/dev/null 2\>&1

My log file:  
/mnt/web123/a2/64/57714964/htdocs/web/app/bundles/CoreBundle/Controller/CommonController.php line 465 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Requested URL not found: /web/cronjob.nl?Password at /mnt/web123/a2/64/57714964/htdocs/web/app/bundles/CoreBundle/Controller/CommonController.php:465)"} []  
[2016-10-29 20:09:25] mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file /mnt/web123/a2/64/57714964/htdocs/web/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []  
[2016-10-29 20:24:11] mautic.ERROR: Uncaught PHP Exception SymfonyComponentHttpKernelExceptionNotFoundHttpException: “Requested URL not found: /web/mautic” at /mnt/web123/a2/64/57714964/htdocs/web/app/bundles/CoreBundle/Controller/CommonController.php line 465 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Requested URL not found: /web/mautic at /mnt/web123/a2/64/57714964/htdocs/web/app/bundles/CoreBundle/Controller/CommonController.php:465)"} []  
[2016-10-29 20:33:04] mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file /mnt/web123/a2/64/57714964/htdocs/web/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []  
[2016-10-29 20:34:04] mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file /mnt/web123/a2/64/57714964/htdocs/web/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []  
[2016-10-29 20:47:05] mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file /mnt/web123/a2/64/57714964/htdocs/web/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []

Thanks in advance!

Gr,  
Frans

---

<div class="post-metadata">

**Author:** ![Elenchus](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@Elenchus](https://forum.mautic.org/u/Elenchus)\
**Post date:** [October 30, 2016, 10:04am UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/5 "2016-10-30T10:04:12Z")

</div>

On my webhost \>/dev/null 2\>&1 disables notification emails for cron - if you remove that you should get more information about the problem.

---

<div class="post-metadata">

**Author:** ![Frans](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Frans](https://forum.mautic.org/u/Frans)\
**Post date:** [October 30, 2016, 3:00pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/6 "2016-10-30T15:00:25Z")

</div>

I removed the \>/dev/null 2\>&1 notification in the cronjobs.

But there is no information in my emails. I only receive a confirmation about the cronjob. I don’t no what i receive when everything works properly.  
How can i check this?

Gr,  
Frans

---

<div class="post-metadata">

**Author:** ![jims](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jims/32/396_2.png) [@jims](https://forum.mautic.org/u/jims)\
**Post date:** [October 30, 2016, 3:17pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/7 "2016-10-30T15:17:12Z")

</div>

What is the output of

```auto
php /web/app/console mautic:segments:update
```

If you run it from the command line. Do you have ssh access?

---

<div class="post-metadata">

**Author:** ![Frans](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Frans](https://forum.mautic.org/u/Frans)\
**Post date:** [October 30, 2016, 4:46pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/8 "2016-10-30T16:46:58Z")

</div>

I have ssh access but i don’t know how to run it…

This info is from my email

Status: 404 Not Found  
X-Powered-By: PHP/7.0.11  
Content-type: text/html

No input file specified.

How can i access ssh?

---

<div class="post-metadata">

**Author:** ![Elenchus](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@Elenchus](https://forum.mautic.org/u/Elenchus)\
**Post date:** [October 30, 2016, 9:17pm UTC](https://forum.mautic.org/t/cronjobs-problem-cronfig/6382/9 "2016-10-30T21:17:39Z")

</div>

Have a look here for ideas on how to troubleshoot the problem:  
[https://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/](https://blog.martinfjordvald.com/2011/01/no-input-file-specified-with-php-and-nginx/)

Big ones to check are that you’ve written the correct path to mautic in the cron job, and that your server is running the correct php version.

Using SSH varies depending on your operating system. Google ‘SSH for {operating system}’.
