# Cron problem 12.0.4

**URL:** <https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127>\
**Category:** CRM/SRM Modules\
**Tags:** Cron, Scheduled-Jobs\
**Created:** [January 20, 2021, 1:44am UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127 "2021-01-20T01:44:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![riker](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@riker](https://www.dolibarr.org/forum/u/riker)\
**Post date:** [January 20, 2021, 1:44am UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127/1 "2021-01-20T01:44:16Z")

</div>

Hi there!

Does anybody know why running “/usr/bin/php /opt/dolibarr/scripts/cron/cron\_run\_jobs.php admin” (copypaste from Dolibarr settings page) leads to

“Dolibarr setup is not yet complete. install/index.php Click here to finish Dolibarr install process”

instead of successful cron job execution? Dolibarr 12.0.4

Kind regards  
riker

---

<div class="post-metadata">

**Author:** ![Zuiko](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/zuiko/32/3937_2.png) [@Zuiko](https://www.dolibarr.org/forum/u/Zuiko)\
**Post date:** [January 20, 2021, 11:35am UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127/2 "2021-01-20T11:35:14Z")

</div>

Hi @riker  
I fear you have to configure [**Sheduled jobs module**](https://wiki.dolibarr.org/index.php?title=Module_Scheduled_jobs), your security key seems to have not been generated.

---

<div class="post-metadata">

**Author:** ![riker](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@riker](https://www.dolibarr.org/forum/u/riker)\
**Post date:** [January 21, 2021, 9:45pm UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127/3 "2021-01-21T21:45:48Z")

</div>

Hi @Zuiko,

thanks for your response. This is already set up. Just in my above message, the key is missing because I forgot to quote it here. The described problem persists even with the key included, i.e.

“/usr/bin/php /opt/dolibarr/scripts/cron/cron\_run\_jobs.php admin” (copypaste from Dolibarr settings page) leads to

“Dolibarr setup is not yet complete. install/index.php Click here to finish Dolibarr install process”

Does anybody have any suggestion on this?

Kind regards  
riker

---

<div class="post-metadata">

**Author:** ![riker](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@riker](https://www.dolibarr.org/forum/u/riker)\
**Post date:** [January 21, 2021, 9:48pm UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127/4 "2021-01-21T21:48:21Z")

</div>

Studying cron\_run\_jobs.php, I can’t really see where this message should come from.

---

<div class="post-metadata">

**Author:** ![riker](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/r/3be4f8/32.png) [@riker](https://www.dolibarr.org/forum/u/riker)\
**Post date:** [January 21, 2021, 10:14pm UTC](https://www.dolibarr.org/forum/t/cron-problem-12-0-4/20127/5 "2021-01-21T22:14:41Z")

</div>

Alright, I had Dolibarr htdocs directory directly under /var/www/dolibarr, and the scripts folder I put somewhere else - I thought this would be fine. Now I put htdocs in /var/www/dolibarr/htdocs, changed Apache2 config and Dolibarr conf.php accordingly, copied the scripts folder to /var/www/dolibarr/scripts, and executed cron\_run\_jobs.php from there - now it works!  
Maybe this should be made more clear in the documentation. Install docs say that it’s fine to place htdocs directly under /var/www/dolibarr, and the admin settings page says to run pathtoscript/scripts/cron/cron\_run\_jobs.php - which seems to suggest to me that this script could reside just anywhere.

Kind regards  
riker
