Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty email in service account #3

Open
pbavinck opened this issue Mar 29, 2019 · 4 comments
Open

empty email in service account #3

pbavinck opened this issue Mar 29, 2019 · 4 comments
Assignees

Comments

@pbavinck
Copy link

Starting deploy.sh

Terminal shows:
. Starting the setup process in project coolretailer-2...
. Creating a service account coolretailer-app-1553854075...
Created service account [coolretailer-app-1553854075].
Service Account email is empty. Exiting.

Running the deploy.sh again results in error that service accounts already exists, but does continue afterwards.

Perhaps insert short delay after service account is created?

@kbhattac
Copy link
Owner

kbhattac commented Apr 2, 2019

Did you set the project first: gcloud config set project {project-id}

@kbhattac kbhattac assigned kbhattac and pbavinck and unassigned kbhattac Apr 2, 2019
@kbhattac
Copy link
Owner

added logic to wait for 10s. Checking now.

@pbavinck
Copy link
Author

10s was not enough. Failed. Restarting script failed at creating service account as at that point the SA existed. Luckily the script continues after that.

My suggestion would be to use somthing inspired by:

while [ ! -f /tmp/list.txt ]
do
  sleep 2
done
ls -l /tmp/list.txt

@kbhattac
Copy link
Owner

Yes; that's why this issues is still open. Will fix it. Pull is request is of course more than welcome ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants