Cron job failed in Google App Engine Flexible environment

584 views
Skip to first unread message

Dhandapani Sattanathan

unread,
May 3, 2017, 5:35:18 AM5/3/17
to Google App Engine

I m migrating my PHP application from Google App engine Standard Environment to Flexible environment.


My application working fine with database and send grid. But Cron jobs are failed.

I could not find what I missed to run a Cron job. You can see my application in [1]. I got HTTP/1/1 404 issues only. Below I gave the log


18:57:00.000172.18.0.3 - - [02/May/2017:13:27:00 +0000] "GET /web/crontest.php HTTP/1.1" 404 162 "-" "AppEngine-Google; (+http://code.google.com/appengine)" { textPayload: "172.18.0.3 - - [02/May/2017:13:27:00 +0000] "GET /web/crontest.php HTTP/1.1" 404 162 "-" "AppEngine-Google; (+http://code.google.com/appengine)" " insertId: "epwcgng8mcw86z" resource: {…} timestamp: "2017-05-02T13:27:00Z" labels: {…} logName: "projects/project-id/logs/appengine.googleapis.com%2Fstdout" }

Please help me to fix this.


Thanks in advance.


Regards,

SN

Attila-Mihaly Balazs

unread,
May 3, 2017, 6:44:35 AM5/3/17
to Google App Engine
Hello Dhandapani,

If you're seeing a 404 error, it means that the given URL (/web/crontest.php) is not accessible. Could you check your setup to confirm that /web/crontest.php can be accessed?

Regards,
Attila

Jun (Cloud Platform Support)

unread,
May 3, 2017, 11:53:52 AM5/3/17
to Google App Engine
Hi Dhandapani,

For now, I suggest that you try the suggestion by Attila-Mihaly given the 404 error you're seeing. 

If it does not resolve the issue, then it is recommended that you open an issue at the Issue Tracker report with your project-id, and the config files since Google Groups is meant for general product discussions and not for technical support.

- Jun

SN

unread,
May 3, 2017, 12:44:26 PM5/3/17
to google-a...@googlegroups.com
Thanks, Jun & Attila.

I had issues in Cron job only.I 'll give details in the issue tracker and open defect.



Regards,

SATTANATHAN D
PROJECT MANAGER

SSOMENS SOFTWARE DEVELOPMENT
04132333229 /230/231
C:\Users\SSOMENS-003_2\Desktop\business development material\customLogo.gif.png
Education is the most powerful weapon which you can use to change the world

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/qpgWRVp-fuo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9fc6fd68-9ab1-4db1-b37b-bdcbabd10dbf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Dhandapani Sattanathan

unread,
May 5, 2017, 11:44:01 AM5/5/17
to Google App Engine
Thanks, Jun, Attila-Mihaly Balazs,

Cron jobs working fine. I added this in crontest.php file $_SERVER['HTTP_X_APPENGINE_CRON'] =true;.

Then I added this socket mysqli.default_socket= '/cloudsql/CONNECTION_NAME' in php.ini.

After that Cron job working fine using core PHP projects.

Jun (Cloud Platform Support)

unread,
May 5, 2017, 6:52:26 PM5/5/17
to Google App Engine
Nice to hear that, Dhandapani!

- Jun
Reply all
Reply to author
Forward
0 new messages