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

[Bug][Module Name] Docker doesn't work anymore after upgrading - stuck with 502 #7380

Open
2 of 3 tasks
gabrielenosso opened this issue Apr 25, 2024 · 5 comments
Open
2 of 3 tasks
Labels
needs-triage An issue that hasn't had any proper look type/bug This issue is a bug

Comments

@gabrielenosso
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Setup devlake, completed onboarding, added some repo.
Then shut it down (emulating an upgrade), pruned docker container and volume, restarted devlake: Error in Config UI (502)

What do you expect to happen

DevLake would work after restart

How to reproduce

It looks like there's a bug with "onboard", after updating DevLake.
Steps to reproduce:
Setup DevLake and start Docker container (sudo docker-compose restart)
Stop Docker container (sudo docker-compose down)
Remove old containers to clean up (sudo docker system prune -a --volumes)
Start again Docker container (sudo docker-compose up -d)
Docker Config UI will then not be accessible anymore, always showing error, for a request to the API (request to http://ip:4000/api/store/onboard gives 502)

Dropping the "lake" DB and restarting the docker container makes everything work.

Anything else

No response

Version

1.0.5 beta

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@gabrielenosso gabrielenosso added the type/bug This issue is a bug label Apr 25, 2024
@klesh
Copy link
Contributor

klesh commented Apr 26, 2024

@gabrielenosso I'm confused, why did you prune the volumes after docker-compose down? Wouldn't it delete the databases ? or are you using an external database?

@d4x1
Copy link
Contributor

d4x1 commented Apr 26, 2024

Thank you for your feedback. We'll take a look at it.

@gabrielenosso
Copy link
Author

@klesh I am using an external DB indeed, for both Grafana and DevLake.

I am trying to setup the whole solution as a test for my company. So I'm testing also the upgrade.

@klesh
Copy link
Contributor

klesh commented Apr 28, 2024

@gabrielenosso Hi, thanks for the reply. May I ask which version did you upgrade from?
Would you like to share some screenshots to help us understand what was wrong? Especialloy the API request since I am trying to reproduce the problem but I find it hard to understand.
Here is how I proceed for an upgrade:

  1. docker compose down
  2. modify the docker-compose.yml from an old version to a newer one
  3. docker compose up -d

So, I am confused by the prune part and I would need the older version. Did you finish the onboard procedure before the upgrade or which step was it?

@gabrielenosso
Copy link
Author

I finished the onboard procedure.
I pruned the volumes to reset the complete state of the app, as I am using external DBs for Grafana and for DevLake itself.
I did the pruning to clean space in the VM.

Unfortunately I can't share screenshots at the moment, as our IT department is working on the VM itself.

@klesh klesh added the needs-triage An issue that hasn't had any proper look label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage An issue that hasn't had any proper look type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

3 participants