question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on local cluster - Project ID must be specified in the configuration

See original GitHub issue

Describe the bug

While trying to deploy on a local cluster, two pods fail because they expect a Project ID.

To Reproduce

  1. git clone repo
  2. 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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
askmeegscommented, Dec 30, 2021

Fixed by PR #665 - these default manifest changes (removing GCP integrations by default) will land in the next release.

1reaction
deeeedcommented, Dec 13, 2021

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?

)7649c36b-2ea2-43fa-bd09-cc4bc35b049f
 - deployment/loadgenerator is ready. [9/12 deployment(s) still pending]
 - deployment/paymentservice: container server terminated with exit code 1
    - pod/paymentservice-7b9b585dd6-wb8ml: container server terminated with exit code 1
      > [paymentservice-7b9b585dd6-wb8ml server] (node:1) [changeLevelName_deprecation] Warning: The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.
      > [paymentservice-7b9b585dd6-wb8ml server] (Use `node --trace-warnings ...` to show where the warning was created)
      > [paymentservice-7b9b585dd6-wb8ml server] (node:1) [changeLevelName_deprecation] Warning: The changeLevelName option is deprecated and will be removed in v7. Use levelKey instead.
      > [paymentservice-7b9b585dd6-wb8ml server] {"severity":"info","time":1639373063472,"pid":1,"hostname":"paymentservice-7b9b585dd6-wb8ml","name":"paymentservice-server","message":"PaymentService gRPC server started on port 50051","v":1}
      > [paymentservice-7b9b585dd6-wb8ml server] /usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:120
      > [paymentservice-7b9b585dd6-wb8ml server]         throw new Error('Project ID must be specified in the configuration');
      > [paymentservice-7b9b585dd6-wb8ml server]               ^
      > [paymentservice-7b9b585dd6-wb8ml server] Error: Project ID must be specified in the configuration
      > [paymentservice-7b9b585dd6-wb8ml server]     at initConfigMetadata (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:120:15)
      > [paymentservice-7b9b585dd6-wb8ml server]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
      > [paymentservice-7b9b585dd6-wb8ml server]     at async createProfiler (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:158:26)
      > [paymentservice-7b9b585dd6-wb8ml server]     at async Object.start (/usr/src/app/node_modules/@google-cloud/profiler/build/src/index.js:182:22)
 - deployment/paymentservice failed. Error: container server terminated with exit code 1.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found