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

Service Unavailable of Websocket project #2298

Closed
TonyChiangUSA opened this issue Jul 26, 2021 · 6 comments
Closed

Service Unavailable of Websocket project #2298

TonyChiangUSA opened this issue Jul 26, 2021 · 6 comments
Assignees
Labels
needs more info This issue needs more information from the customer to proceed. samples Issues that are directly related to samples. type: docs Improvement to the documentation for an API.

Comments

@TonyChiangUSA
Copy link

Followed this wiki but got an error when I open the url given by cloud run, it says:

"Error: connect ECONNREFUSED 127.0.0.1:6379
TCPConnectWrap.afterConnect (net.js:1148)"

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jul 26, 2021
@sofisl
Copy link
Collaborator

sofisl commented Jul 26, 2021

Hi @TonyChiangUSA, could you provide steps (including any code snippets) to reproduce the error? Thanks in advance.

@sofisl sofisl added the needs more info This issue needs more information from the customer to proceed. label Jul 26, 2021
@TonyChiangUSA
Copy link
Author

Hi @sofisl, I followed this tutorial but never managed to run the sample successfully. I made zero code change of the sample. https://cloud.google.com/run/docs/tutorials/websockets

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jul 27, 2021
@sofisl sofisl added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. type: docs Improvement to the documentation for an API. and removed priority: p2 Moderately-important priority. Fix may not be included in next release. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 27, 2021
@sofisl
Copy link
Collaborator

sofisl commented Jul 27, 2021

I also attempted to recreate the tutorial, and I got stuck at the final step, here is the output in Cloud Build:

starting build "a019ad85-4d2e-4780-bc4a-16ff668d1af5"
Already have image (with digest): gcr.io/cloud-builders/docker
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /workspace/Dockerfile: no such file or directory
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1

I will attempt to take a look at this later in the week, thanks for reporting @TonyChiangUSA

@sofisl
Copy link
Collaborator

sofisl commented Jul 30, 2021

Filed b/195133753 internally.

@averikitsch
Copy link
Contributor

Followed this wiki but got an error when I open the url given by cloud run, it says:

"Error: connect ECONNREFUSED 127.0.0.1:6379
TCPConnectWrap.afterConnect (net.js:1148)"

Hi @TonyChiangUSA, it looks like you may have forgotten to set the REDISHOST env var:

 export REDISHOST=$(gcloud redis instances describe INSTANCE_ID --region REGION --format "value(host)")
gcloud beta run deploy chat-app --source . \
    --vpc-connector CONNECTOR_NAME \
    --allow-unauthenticated \
    --timeout 3600 \
    --service-account chat-identity \
    --update-env-vars REDISHOST=$REDISHOST

@averikitsch averikitsch self-assigned this Aug 5, 2021
@averikitsch
Copy link
Contributor

Please reopen if you continue to experience this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed. samples Issues that are directly related to samples. type: docs Improvement to the documentation for an API.
Projects
None yet
Development

No branches or pull requests

4 participants