Giter Site home page Giter Site logo

Comments (20)

tpryan avatar tpryan commented on June 27, 2024 1

Welp, now I got two problems. ;)

I'll investigate more. Thanks for your patience.

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024 1

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.

from deploystack.

tpryan avatar tpryan commented on June 27, 2024 1

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. :)

from deploystack.

tpryan avatar tpryan commented on June 27, 2024 1

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

Screenshot 2022-08-19 111055

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

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

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.

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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!

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

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.)

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

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.

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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.)

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

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.

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

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

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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")

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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!

from deploystack.

dvdvdvdvdvd avatar dvdvdvdvdvd commented on June 27, 2024

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!

from deploystack.

tpryan avatar tpryan commented on June 27, 2024

Thanks for your patience!

from deploystack.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.