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

[preview] job failed attempting to connect to DB, but preview env was eventually ready #15522

Closed
kylos101 opened this issue Dec 29, 2022 · 1 comment
Labels
dev experience Anything related to developing Gitpod itself meta: stale This issue/PR is stale and will be closed soon priority: high (dev loop impact) Gitpod development loop impacting issues type: bug Something isn't working

Comments

@kylos101
Copy link
Contributor

kylos101 commented Dec 29, 2022

Bug description

In this job, the build failed and no URL for the preview environment was shared as a Result, but the environment is actually online.

At the end of the log, we have:

{"dsn":"gitpod:*****@tcp(localhost:3306)/?timeout=1s","file":"database.go:71","func":"1","level":"info","message":"attempting to connect to DB","serviceContext":{"service":"service-waiter","version":"commit-92c9ba354f0a995c10dc785442ed61388be02a3b"},"severity":"INFO","time":"2022-12-29T14:12:50.37678789Z","timeout":"20s"}
error: error upgrading connection: error dialing backend: EOF
{"file":"database.go:103","func":"func2","level":"fatal","message":"database did not become available in time","serviceContext":{"service":"service-waiter","version":"commit-92c9ba354f0a995c10dc785442ed61388be02a3b"},"severity":"CRITICAL","time":"2022-12-29T14:13:10.377382559Z","timeout":"20s"}
could not connect to DB
/tmp/248098719.sh: line 28: kill: (32992) - No such process

You can see the environment functional here:
image

image

Steps to reproduce

n/a

Workspace affected

No response

Expected behavior

  1. Wait more to connect to the database
  2. Share the URL to the preview environment on a failure too, as a Result, even though it may not be usable

Example repository

n/a

Anything else?

No response

@kylos101 kylos101 added type: bug Something isn't working dev experience Anything related to developing Gitpod itself priority: high (dev loop impact) Gitpod development loop impacting issues labels Dec 29, 2022
@kylos101 kylos101 changed the title [preview] build failed attempting to connect to DB, but was actually ready [preview] job failed attempting to connect to DB, but preview env was eventually ready Dec 29, 2022
@stale
Copy link

stale bot commented Apr 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Apr 2, 2023
@stale stale bot closed this as completed Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev experience Anything related to developing Gitpod itself meta: stale This issue/PR is stale and will be closed soon priority: high (dev loop impact) Gitpod development loop impacting issues type: bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant