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

An error occurred collecting the necessary information to run your Deploystack #15

Closed
dvdvdvdvdvd opened this issue Aug 19, 2022 · 20 comments · Fixed by #20
Closed

An error occurred collecting the necessary information to run your Deploystack #15

dvdvdvdvdvd opened this issue Aug 19, 2022 · 20 comments · Fixed by #20

Comments

@dvdvdvdvdvd
Copy link

Screenshot 2022-08-19 102900

The project is not found? What permissions are denied?

Help Token: AfeSHlKhbIC_i-0rG2wIGB2jDkHOQDjvnWYoxZ_zLbVxfJbc08tSZAX9MblMSBFlLKPA7vMcGxOTHxpgWPvCen-PHS_9jz_jgnEGRdEg2aswu0dt

I have the same issue as the other reported.

Appreciate the help!

@dvdvdvdvdvd
Copy link
Author

Screenshot 2022-08-19 111055

I tried deploying in a brand new GCP account and I got this error, a bit different.

@tpryan
Copy link
Collaborator

tpryan commented Aug 19, 2022

Thanks for reporting this. I can confirm the problem is the project name has spaces. (This is a bug, deploystack should be able to handle that).

I'm working on a fix.

In the meantime, you can workaround by creating a project through the deploystack interface by choosing "CREATE NEW PROJECT" option 1.

OR

Creating a project in the Cloud Console with no spaces in the name.

Sorry about that.

@dvdvdvdvdvd
Copy link
Author

dvdvdvdvdvd commented Aug 19, 2022

I tried those two things, and they also failed, even creating a new project. In the first image there are no spaces in the "sandbox" project. Thank you kindly!

@tpryan
Copy link
Collaborator

tpryan commented Aug 19, 2022

Welp, now I got two problems. ;)

I'll investigate more. Thanks for your patience.

@tpryan
Copy link
Collaborator

tpryan commented Aug 19, 2022

Oh quick question. Is this your own individual account, or are you using this on your employer provided GCP account? (Wondering if there are org restrictions that might be in play.)

@dvdvdvdvdvd
Copy link
Author

In the first image, it's my employers account.
In the second image, it's my own account, brand new, full access. I thought that might be the issue too, but it seems to be something else.

@tpryan
Copy link
Collaborator

tpryan commented Aug 24, 2022

Sorry for the delay. There was a delay in getting the latest deploystack cloud shell image into the default cache...

The behavior of Deploystack should change to wait for human prompting before making calls that need authorization. This MIGHT make things better. I'm not entirely certain. There are few other changes that I'm working on.

@dvdvdvdvdvd
Copy link
Author

dvdvdvdvdvd commented Aug 24, 2022

Bad news, good news... then unfortunately, some more bad news. But we're getting close!

Bad news: it didn't work when I tried creating a new project.
sc1

Good news: I used the project "testingoncemore" which I manually enabled billing for since I wanted to trying a few other things using Cloud Run, and that worked! (I also noticed "threetiertest" which was the name of the new project I tried to create above was listed as "(Billing Disabled)")
sc2

Bad news: Even though I waited a few minutes the todo app seemed to have issues caching data to Redis and it timeout. I tried refreshing several times but no luck.
sc3

(This is my personal GCP account just for testing so I don't mind sharing URLs or IP addresses.)

@tpryan
Copy link
Collaborator

tpryan commented Aug 24, 2022 via email

@dvdvdvdvdvd
Copy link
Author

Sounds right.

  1. The Redis server looks good.
  2. The secrets look okay too.

Where are my manners... I really appreciate your help Terry! Your video and documentation were exactly what I was looking for last week. What you put together is awesome, my team and I want to use this architecture to upgrade our current web app so I'm super excited about it. (no pressure ;) )

Let me know if there's anything else I can do to help.
redis
secrets

@tpryan
Copy link
Collaborator

tpryan commented Aug 25, 2022

Okay, so I'm doing some digging.

The health check that should work on the api layer isn't working:
https://todo-api-hjqhtfgepq-uc.a.run.app/healthz

I think that means that it isn't even init'ing correctly.

It looks like Redis is setup right and the secret is properly picked up by Cloud Run, so it's likely a networking issue.

And I just manually reran in and I am in a broken state. Which means my tests are passing even when stuff is broken - not cool. So.. bear with me.

And thank you so much for the kind words! I'm glad this would be helpful for you - if the engineer wasn't so bug producing. :)

@tpryan
Copy link
Collaborator

tpryan commented Aug 25, 2022

Okay. This particular stack is now working. I added tests that would catch this scenario - all the resources spun up, but the app didn't work.

Now on to the billing stuff.

@tpryan
Copy link
Collaborator

tpryan commented Aug 25, 2022

This has been fixed in the core, it will take about a week to get into the Open In Cloud Shell base image.

@dvdvdvdvdvd
Copy link
Author

Sounds great! I'm going to try to deploy this again tomorrow, hopefully it's all fine.

@dvdvdvdvdvd
Copy link
Author

Everything deployed but the app doesn't work. You said it could take up to a week so I'll try again on Thursday.
(Apply complete! Resources: 38 added, 0 changed, 0 destroyed.
Outputs:
api = "https://three-tier-app-api-t5bzevkwsq-uc.a.run.app"
endpoint = "https://three-tier-app-fe-t5bzevkwsq-uc.a.run.app"
sqlservername = "three-tier-app-db-3be7")

@tpryan
Copy link
Collaborator

tpryan commented Aug 30, 2022 via email

@dvdvdvdvdvd
Copy link
Author

Awesome, appreciate all your help!

I noticed that too, (The Same Origin Policy disallows reading the remote resource at https://api/v1/todo.)
Separately,

Getting closer and closer!

@tpryan
Copy link
Collaborator

tpryan commented Aug 31, 2022 via email

@dvdvdvdvdvd
Copy link
Author

It works! https://three-tier-app-fe-oxk25f6pnq-uc.a.run.app/

  1. I tried to creating a new project and that failed.

    I enabled billing manually and tried again with: deploystack install

  2. This time there was an error starting cloud run api and it said to try again

    I didn't make any modification and just ran deploystack install on the same project
    Then it worked.

I'm going to clone the repo and start to see how I can use this as a template for our new project. I want to switch out Golang for Python, MySQL for Postgres and I want to use Nuxt.js on the frontend. I know in your video you said this is taken care of in the CI/CD layer just by changing the docker files. If you have any other helpful tips that'd be great!

@tpryan
Copy link
Collaborator

tpryan commented Sep 1, 2022

Thanks for your patience!

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

Successfully merging a pull request may close this issue.

2 participants