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.

The project property is set to empty string, which is invalid

See original GitHub issue

First, thank you for this awesome package. ☺️.

After starting (hitting this project’s: “Open in Cloud Shell” button) with an almost blank G-account and following the README.md’s instruction

make create-cluster deploy-istio build push deploy-stuff

everything comes to a sudden halt with:

roland_siegbert_t@cloudshell:~/Istio101$ make create-cluster deploy-istio build push deploy-stuff
ERROR: (gcloud.config.list) The project property is set to the empty string, which is invalid.
To set your project, run:

  $ gcloud config set project PROJECT_ID

After following the instructions, we get a little bit further:

roland_siegbert_t@cloudshell:~/Istio101$ gcloud config set project istio101
Updated property [core/project].
roland_siegbert_t@cloudshell:~/Istio101 (istio101)$ make create-cluster deploy-istio build push deploy-stuff
Your active configuration is: [cloudshell-6085]

But the script crashes at:

WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
This will enable the autoupgrade feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-management for more information on node autoupgrades.**
ERROR: (gcloud.container.clusters.create) ResponseError: code=404, message=Not found: istio101.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

So, I’ll revert to the little slower tutorial, which halts after

make create-cluster

with

ERROR: (gcloud.container.clusters.create) ResponseError: code=404, message=Not found: istio101.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

too. So, something must be missing in the README.md. I’ll start to explore now, I guess, it has something to do with Google Cloud Shell steps which are invisible for a newcomer considering Google Cloud Shell.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
thesandlordcommented, Nov 7, 2019

I’d say setting up GCP is out of scope for this demo. Going to be cleaning up the makefile and updating to a more modern version of Kubernetes and Istio

1reaction
rscircuscommented, Feb 19, 2019

OK, so what I did is:

  • I created a “Project” using the computer icon in the top right with istio101 as project name.

This changed the error thrown with make create-cluster to:

ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Kubernetes Engine API is not enabled for this project. Please ensure it is enabled in Google Cloud Console and try again: visit https://console.cloud.google.com/apis/api/container.googleapis.com/overview?project=istio101 to do so.
Makefile:32: recipe for target 'create-cluster' failed
make: *** [create-cluster] Error 1

Now, I’m searching for how to enable the Kubernetes Engine API for this project…

Getting to GCP, it feels like holy f**k:

image

But maybe I’ll be successful here. The project is already selected somehow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

entity framework - EF 6 IsRequired() allowing empty strings
In my current project utilizng EF6, The DBEntityValidationException is not thrown when the string property is empty. Entity: public class ...
Read more >
How do I test for empty properties set on the command line?
PS If empty string is actually a valid value and the default is something else, you have a problem, because you don't know...
Read more >
android:versionCode gets set to empty string causing ...
Expected behaviour is that the version number value provided in the project properties or in the original manifest file will be used in...
Read more >
gcloud config set | Google Cloud CLI Documentation
A property governs the behavior of a specific aspect of Google Cloud CLI such as the service account to use or the verbosity...
Read more >
Message - A name cannot be an empty string.
This message is displayed if you have not specified a name for a project, project suite or project item. Make sure you have...
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