I think I'm doing everything right, Cloud Run not working

493 views
Skip to first unread message

Michael Leff

unread,
Apr 27, 2021, 11:04:48 AM4/27/21
to Google Cloud Developers
Can anybody help with this issue? I think I am doing everything correctly, but still receive an error from Cloud Run when deploying:

"Deployment failed ERROR: (gcloud.run.deploy) Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information."

https://stackoverflow.com/questions/67280735/laravel-docker-image-works-locally-not-on-clound-run

Elliott (Google Cloud Platform Support)

unread,
Apr 27, 2021, 4:48:05 PM4/27/21
to Google Cloud Developers

Hello,


I understand that your laravel program in Cloud Run is running locally but when you try to deploy to Google Cloud using the gcloud command, the Container fails to start.

I was unable to find common issues at this moment.

Because the Google Cloud SDK addresses bugs with new versions, I would recommend updating your Google Cloud SDK with the command:

gcloud components update

Also, there is a debug option added to the gcloud command to display errors in more depth that I would need to investigate. 

I will need REDACTED output of the gcloud command you are using with the "--verbosity" flag set to DEBUG and the output of the "gcloud info --anonymize" command for further investigation.

--verbosity=debug is the option you need to add.

Reply all
Reply to author
Forward
0 new messages