After 6 months of no issues, I now get an error code 13 when trying to deploy a reactjs project using nodejs14 to Google App Engine Standard via gcloud.
I didn't change the package.json or my app.yaml.
It's always worked without an issue for the past 6 months.
Any help would be much appreciated.
Details:
App.yaml (which is the same as the current deployed version from a week ago)
runtime: nodejs14 env: standard instance_class: F1 handlers: - url: /(.*\..+)$ static_files: build/\1 upload: build/(.*\..+)$ - url: /.* static_files: build/index.html upload: build/index.html - url: .* script: auto automatic_scaling: min_idle_instances: automatic max_idle_instances: automatic min_pending_latency: automatic max_pending_latency: automatic service_account: xxxxxxxx@appspot.gserviceaccount.com
After reading numerous post, I've tried the following:
Updating my gcloud sdk:
gcloud components update
My current version is 436.0.0.
Updating my app with the following:
gcloud config set interactive/hidden true gcloud app update --service-account [my-app-id]@appspot.gserviceaccount.com
My deploy script,
gcloud app deploy --verbosity=debug --log-http
Logs (I've xxx my account information:
-- body end -- total round trip time (request+response): 0.201 secs ---- response end ---- ---------------------- DEBUG: Operation [apps/xxxxxx/operations/0beef610-20f3-4cc8-90cc- ca24b58f2215] complete. Result: { "done": true, "error": { "code": 13, "message": "An internal error occurred." }, "metadata": { "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1", "endTime": "2023-06-28T00:59:14.314Z", "insertTime": "2023-06-28T00:44:10.265Z", "method": "google.appengine.v1.Versions.CreateVersion", "target": "apps/xxxxxx/services/default/versions/20230627t144405", "user": "xxxxxxx@gmail.com" }, "name": "apps/xxxxxxxx/operations/0beef610-20f3-4cc8-90cc-ca24b58f2215" } Updating service [default]...failed. DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred. Traceback (most recent call last): File "/Users/xxxxxx/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 987, in Execute resources = calliope_command.Run(cli=self, args=args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I've posted this to stackoverflow at:
Solved! Go to Solution.
I got the solution via stackoverflow, I'm posting it here incase anyone else runs into this issue. The solution for me was to update my package.json with "gcp-build":""
April 11, 2023 release introduced a breaking change to Nodejs Apps
For all the services using the Node.js runtime, npm run build now automatically runs during deployment if you have the npm build script defined in your package.json file.
If you don't want it to run the build, then add "gcp-build":"" to the scripts part/section of your package.json file
I got the solution via stackoverflow, I'm posting it here incase anyone else runs into this issue. The solution for me was to update my package.json with "gcp-build":""
April 11, 2023 release introduced a breaking change to Nodejs Apps
For all the services using the Node.js runtime, npm run build now automatically runs during deployment if you have the npm build script defined in your package.json file.
If you don't want it to run the build, then add "gcp-build":"" to the scripts part/section of your package.json file