After checking in the database, I can see that the registered datetime of the CRON is wrong by -1h .
on the 07/01/2020 at 15h in job_queue table, execute_time I have this :
2020-01-07 14:00:00
so its minus 1hour, maybe it can come from here.
In the user time zone everyone is on Europe/Paris (GMT +1:00)
php ini data : date.timezone = Europe/Paris;
In SSH if I type date I have the correct date time too
The problem is that your web server PHP set up is ok, but your command-line PHP (CLI) isn’t. And this is what is used for the Scheduler Jobs, including the Geocoding one.
This should tell you which PHP it’s executing from command line:
which php
And then you can also know which php.ini that executable is using (you can define a timezone there, although I think first you should point this to a newer executable):
php -i | grep php.ini
You can search for ALL PHP executables in your system:
sudo find / -name php 2>/dev/null
Then it’s a matter of picking the right one, and making sure your PATH points to it first.
It changed nothing it execute the cron with 7.3-cli and put the geocode cron on success in job_queue. Same minus 1 hour on the execute time. Geocode still not doing hes job.
I can see that it use the good php.ini in the diag of the CRM. And so, the good timezone in it.
I will try to put the log on default during 24h …
Edit :
Do you think I have to try something like this ?
cd /xxxxxxxx/xxxxx/xxxxx/xxx/SuiteCRM; php -f cron.php > /dev/null 2>&1
Or maybe I have to specify the php version like this:
cd /xxxxxxxx/xxxxx/xxxxx/xxx/SuiteCRM; php7.3-cli -f cron.php > /dev/null 2>&1
The 301 error is cause due to the fact he’s trying to access to this : https://xxxxxxxxxxxxxx/index.php?module=jjwg_Maps&entryPoint=jjwg_Maps&cron=1
instead of this : https://xxxxxxxxxxxxxx/index.php?module=jjwg_Maps&entryPoint=jjwg_Maps&cron=1
So ofc the link doesnt work, and he redirect to the login page.
Any solution for the 301 problem until now. I run into the same trouble. I´ve checked the database, URL looks fine. But if i check the log it shows something different. If i start the job by direct link it worked well, but is doing only 100 addresses at one time.
Just an update. To solve the problem at now i used Easycron to fire the URL every 10 minutes. Works for me at now. But i hope it will be solved in the future.