incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

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

Open gabrielenosso opened this issue 10 months ago • 7 comments

Search before asking

  • [X] 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 avatar Apr 25 '24 12:04 gabrielenosso

@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?

klesh avatar Apr 26 '24 03:04 klesh

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

d4x1 avatar Apr 26 '24 06:04 d4x1

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

gabrielenosso avatar Apr 26 '24 13:04 gabrielenosso

@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?

klesh avatar Apr 28 '24 02:04 klesh

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.

gabrielenosso avatar May 02 '24 10:05 gabrielenosso

This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Jul 06 '24 00:07 github-actions[bot]

Sorry, I missed the notification. Try purging the database as well if you are still having the problem.

klesh avatar Sep 06 '24 09:09 klesh