So, let's take a step back and start with a clean slate
2023-01-16 01606, 2023
Thuraabtech
i'm very excited to contribute to this project
2023-01-16 01614, 2023
monkey
First of all, let's ensure you don't have containers running with the trials you did. Run the command `docker ps` and see if you have containers running
OK, let's kill those containers so we start afresh. Use the first column (container id) to run the command `docker kill <container_id>`
2023-01-16 01644, 2023
monkey
and while we're at it, let's also remove them: `docker rm <container_id>`
2023-01-16 01640, 2023
monkey
Once that's done, let's make a couple of modifications in your docker-compose.yml file (at the root of the bookbrainz-site folder)
2023-01-16 01602, 2023
Thuraabtech
yeah i am in the process of killing the containers
2023-01-16 01631, 2023
Thuraabtech
completed killing containers
2023-01-16 01600, 2023
Thuraabtech
i'm inside docker-compose.yml file
2023-01-16 01610, 2023
monkey
In the docker-compose file, you'll see 5 top-level services defined (bookbrainz-site, postgres, elasticsearch, etc.). Under each one, add the line `platform: linux/arm64`. Be careful as the YAML file format depends on proper indentation, so make sure the new 'platform' line is aligned like the other configuration options for each service
2023-01-16 01652, 2023
monkey
Once that is done, save your changes to the file
2023-01-16 01654, 2023
Thuraabtech
should i also add platform: linux/arm64 for redis and startup
Which is executing the script `./scripts/database-init-docker.sh`
2023-01-16 01628, 2023
monkey
This should do two things: 1. build the bookbrainz-site docker container and 2. download the latest database dump and initialize the database with it.
2023-01-16 01617, 2023
monkey
This will take some time, so please ping me here (just write my name) when that is completed or if you run into another issue
2023-01-16 01620, 2023
Thuraabtech
completed running but i am getting this error
2023-01-16 01626, 2023
monkey
Ahaa
2023-01-16 01643, 2023
Thuraabtech
Error response from daemon: image with reference docker.elastic.co/elasticsearch/elasticsearch:5.6.8 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64
2023-01-16 01638, 2023
Thuraabtech
should i change the defination with linux/arm64
2023-01-16 01604, 2023
monkey
Try that, in which case change it for every service
2023-01-16 01608, 2023
Thuraabtech
actually i have added platform : linux/arm64
2023-01-16 01645, 2023
monkey
I suspect that won't work for you, and that there just isn't an appropriate elasticsearch docker image you can use.
2023-01-16 01630, 2023
Thuraabtech
so do you recommend me to use window instead of mac m1 to contribute to this project
2023-01-16 01658, 2023
monkey
Did you try with `platform: linux/arm64`?
2023-01-16 01632, 2023
Thuraabtech
yeah monkey brother i have done that in the first place
2023-01-16 01644, 2023
monkey
Err, sorry, got that wrong. with `platform: linux/amd64`
2023-01-16 01611, 2023
Thuraabtech
yes changed it
2023-01-16 01626, 2023
monkey
Now try running ./scripts/database-init-docker.sh again
2023-01-16 01636, 2023
Thuraabtech
already did
2023-01-16 01650, 2023
monkey
Ah. Did that throw an error?
2023-01-16 01600, 2023
Thuraabtech
its running some lines now
2023-01-16 01617, 2023
Thuraabtech
no it did not throw an error this time
2023-01-16 01638, 2023
monkey
OK, that's encouraging so far.
2023-01-16 01643, 2023
Thuraabtech
very encouraging for me , its the first time i'm contributing to opensource and i'm filled with excitement currently
2023-01-16 01652, 2023
monkey
Glad to hear that :)
2023-01-16 01611, 2023
Thuraabtech
i will surely ping you once the process get completed
2023-01-16 01616, 2023
monkey
Great
2023-01-16 01608, 2023
Thuraabtech
thanks alot monkey brother , just because people like you somebody like me is learning to contribute to opensource
2023-01-16 01622, 2023
Thuraabtech
i'm so grateful for that
2023-01-16 01633, 2023
Thuraabtech has quit
2023-01-16 01638, 2023
Thuraabtech joined the channel
2023-01-16 01619, 2023
Thuraabtech
now i got another error but this time it is only related to redis
2023-01-16 01621, 2023
Thuraabtech
Error response from daemon: image with reference redis:3.2-alpine was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64
2023-01-16 01635, 2023
monkey
OK, let's try this then: Remove the `platform: …` lines for each service in the docker-compose file *except* for elasticsearch
2023-01-16 01626, 2023
Thuraabtech
monkey bro i have written 'platform: linux/arm64' for redis and postgress
2023-01-16 01612, 2023
monkey
Removing the 'platform' line for these two services did not work?
2023-01-16 01639, 2023
Thuraabtech
let me try it again
2023-01-16 01658, 2023
Thuraabtech
i'm getting GRANT many time
2023-01-16 01626, 2023
monkey
Not sure what that means. Can you please past the whole output in a pastebin?
2023-01-16 01638, 2023
monkey
What command are you running?
2023-01-16 01653, 2023
Thuraabtech
./scripts/database-init-docker.sh
2023-01-16 01621, 2023
monkey
Still can't tell what GRANT means without context. Can you please paste the whole output in a pastebin?
2023-01-16 01651, 2023
Thuraabtech
yeah sending it
2023-01-16 01656, 2023
monkey
Thanks
2023-01-16 01629, 2023
Thuraabtech
i have pasted it on pastebin
2023-01-16 01642, 2023
Thuraabtech
but how do i send you the output
2023-01-16 01645, 2023
monkey
Well, now you need to send me the link to the pastebin :p
OK, I think everything is in order. In theory the database init script is only meant to be run once, so I think all this noise is only the database saying "hey all this stuff already exists".