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

[Install via Docker Compose][CMD lake] Error creating devlake through Docker Compose

Open SxjAccount opened this issue 2 years ago • 15 comments

Search before asking

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

What happened

Error creating devlake through Docker Compose: Unable to create database lake 5 4 3 2 1

What do you expect to happen

normal setup

How to reproduce

Creating a devlake on a virtual machine through Docker Compose

Anything else

No response

Version

v0.20.0-beta1

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

SxjAccount avatar Jan 25 '24 14:01 SxjAccount

Can you paste your command and comspose file when running devlake with docker compose?

d4x1 avatar Jan 26 '24 02:01 d4x1

hi @SxjAccount , could you paste the docker-compose.yml here?

ZhangNing10 avatar Jan 26 '24 05:01 ZhangNing10

6

docker-compose.yml

SxjAccount avatar Jan 26 '24 06:01 SxjAccount

@SxjAccount strange, why error says lake unknown... could you try below?

docker-compose down docker volume ls docker volume rm the-mysql-volume

and then docker-compose up -d again?

ZhangNing10 avatar Jan 26 '24 07:01 ZhangNing10

The same problem will still arise

@SxjAccount strange, why error says lake unknown... could you try below?

docker-compose down docker volume ls docker volume rm the-mysql-volume

and then docker-compose up -d again?

SxjAccount avatar Jan 29 '24 08:01 SxjAccount

@SxjAccount still unknown database lake?

ZhangNing10 avatar Jan 30 '24 06:01 ZhangNing10

@ZhangNing10 By observation, it is likely that devlake did not obtain the. env file, which caused a deployment error and resulted in the database not being created. It is unclear why the. env file cannot be obtained now

SxjAccount avatar Jan 30 '24 06:01 SxjAccount

did you put the .env file in the same directory with the docker compose file? @SxjAccount

ZhangNing10 avatar Jan 30 '24 06:01 ZhangNing10

the db creation is done by mysql service itself, not created by devlake @SxjAccount

ZhangNing10 avatar Jan 30 '24 06:01 ZhangNing10

@ZhangNing10 Please review the initial image

SxjAccount avatar Jan 30 '24 06:01 SxjAccount

@ZhangNing10 How was the creation of the database lake completed

the db creation is done by mysql service itself, not created by devlake

SxjAccount avatar Jan 30 '24 06:01 SxjAccount

@SxjAccount you can enter the mysql pod and try to connect the db with merico:merico, and show database to have a look whether the db was created successfully

ZhangNing10 avatar Jan 30 '24 06:01 ZhangNing10

@ZhangNing10 Now the devlake has not been successfully started, and the database lake has not been created either

t you can enter the mysql pod and try to connect the db with merico:merico, and show database to have a look whether the db was created successfully

SxjAccount avatar Jan 30 '24 06:01 SxjAccount

@SxjAccount i can't reproduce the issue by my side, db creation has no problem by my side, could you manually create the db lake and wait for devlake to start up?

ZhangNing10 avatar Jan 30 '24 07:01 ZhangNing10

@ZhangNing10 I followed the official installation steps yesterday and suddenly succeeded. The program is running normally. When I deleted the installed image and reinstalled it, I inexplicably encountered the same problem again. I was wondering if it was caused by my system being installed on a virtual machine. But it's not very clear where the problem came from

SxjAccount avatar Jan 31 '24 01:01 SxjAccount