Error on local cluster - Project ID must be specified in the configuration
See original GitHub issueDescribe the bug
While trying to deploy on a local cluster, two pods fail because they expect a Project ID.
To Reproduce
- git clone repo
- skaffold run --default-repo=jfrog.privaterepo.com/onlineboutique
The same error is visible when using images/manifests built via make-release.sh
Logs
- deployment/currencyservice: container server terminated with exit code 1
- pod/currencyservice-9ddc9bd4f-x5grr: container server terminated with exit code 1
> [currencyservice-9ddc9bd4f-x5grr server] Profiler enabled.
> [currencyservice-9ddc9bd4f-x5grr server] Tracing enabled.
> [currencyservice-9ddc9bd4f-x5grr server] Debugger enabled.
> [currencyservice-9ddc9bd4f-x5grr server] {"severity":"info","time":1638511322161,"pid":1,"hostname":"currencyservice-9ddc9bd4f-x5grr","name":"currencyservice-server","message":"Starting gRPC server on port 7000...","v":1}
> [currencyservice-9ddc9bd4f-x5grr server] (node:1) [changeLevelName_deprecation] Warning: The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.
> [currencyservice-9ddc9bd4f-x5grr server] (Use `node --trace-warnings ...` to show where the warning was created)
> [currencyservice-9ddc9bd4f-x5grr server] {"severity":"info","time":1638511322665,"pid":1,"hostname":"currencyservice-9ddc9bd4f-x5grr","name":"currencyservice-server","message":"CurrencyService gRPC server started on port 7000","v":1}
> [currencyservice-9ddc9bd4f-x5grr server] /usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:120
> [currencyservice-9ddc9bd4f-x5grr server] throw new Error('Project ID must be specified in the configuration');
> [currencyservice-9ddc9bd4f-x5grr server] ^
> [currencyservice-9ddc9bd4f-x5grr server] Error: Project ID must be specified in the configuration
> [currencyservice-9ddc9bd4f-x5grr server] at initConfigMetadata (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:120:15)
> [currencyservice-9ddc9bd4f-x5grr server] at processTicksAndRejections (node:internal/process/task_queues:96:5)
> [currencyservice-9ddc9bd4f-x5grr server] at async createProfiler (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:158:26)
> [currencyservice-9ddc9bd4f-x5grr server] at async Object.start (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:182:22)
- deployment/currencyservice failed. Error: container server terminated with exit code 1.
The same error is on both currencyservice and paymentservice.
Environment
MacOS Monterrey Rancher Desktop && Kubernetes 1.19
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Set up your project and GKE cluster yourself - Google Cloud
If you aren't a Project Owner, you need someone who is to grant you the following specific IAM roles. In the following command,...
Read more >"No project ID could be determined from the Cloud SDK ...
First I tried to specify the id with the command gcloud config set project name-of-your-project This resulted in the error
Read more >google_container_cluster | Resources | hashicorp/google
This field will only work for routes-based clusters, where ip_allocation_policy is not defined. cluster_autoscaling - (Optional) Per-cluster configuration of ...
Read more >clusters - Google Developers
Lists all clusters owned by a project in either the specified zone or all. locations(projectId=None ... The Google Developers Console [project ID or...
Read more >Setup and Switch Between Google Cloud Projects in the SDK
Set the Google Cloud project id to the active gcloud configuration. ... if you are developing code in something like a local development...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by PR #665 - these default manifest changes (removing GCP integrations by default) will land in the next release.
Same error for both currency and payment services. Tried v0.3.1 which solved currency but payment service still didn’t work. Couldn’t start the app using skaffold dev. Is there a way to set the PROJECT_ID in the project configuration?