#bookbrainz

/

      • anonn has quit
      • anonn joined the channel
      • anonn has quit
      • Thuraabtech joined the channel
      • monkey
        Hi Thuraabtech
      • So, let's take a step back and start with a clean slate
      • Thuraabtech
        i'm very excited to contribute to this project
      • 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
      • nice :)
      • The output will be something like this:
      • Thuraabtech
        yeah i have containers running
      • should i stop those running containers
      • monkey
        OK, let's kill those containers so we start afresh. Use the first column (container id) to run the command `docker kill <container_id>`
      • and while we're at it, let's also remove them: `docker rm <container_id>`
      • 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)
      • Thuraabtech
        yeah i am in the process of killing the containers
      • completed killing containers
      • i'm inside docker-compose.yml file
      • 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
      • Once that is done, save your changes to the file
      • Thuraabtech
        should i also add platform: linux/arm64 for redis and startup
      • monkey
        Let's add it for every service
      • Thuraabtech
        addition completed
      • monkey
        OK. Now we'll go back to the developer docs and follow the next setup step (assuming you haven't run it yet): https://bookbrainz-dev-docs.readthedocs.io/en/l...
      • Thuraabtech
        okay
      • monkey
        Which is executing the script `./scripts/database-init-docker.sh`
      • 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.
      • 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
      • Thuraabtech
        completed running but i am getting this error
      • monkey
        Ahaa
      • 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
      • should i change the defination with linux/arm64
      • monkey
        Try that, in which case change it for every service
      • Thuraabtech
        actually i have added platform : linux/arm64
      • monkey
        I suspect that won't work for you, and that there just isn't an appropriate elasticsearch docker image you can use.
      • Thuraabtech
        so do you recommend me to use window instead of mac m1 to contribute to this project
      • monkey
        Did you try with `platform: linux/arm64`?
      • Thuraabtech
        yeah monkey brother i have done that in the first place
      • monkey
        Err, sorry, got that wrong. with `platform: linux/amd64`
      • Thuraabtech
        yes changed it
      • monkey
        Now try running ./scripts/database-init-docker.sh again
      • Thuraabtech
        already did
      • monkey
        Ah. Did that throw an error?
      • Thuraabtech
        its running some lines now
      • no it did not throw an error this time
      • monkey
        OK, that's encouraging so far.
      • Thuraabtech
        very encouraging for me , its the first time i'm contributing to opensource and i'm filled with excitement currently
      • monkey
        Glad to hear that :)
      • Thuraabtech
        i will surely ping you once the process get completed
      • monkey
        Great
      • Thuraabtech
        thanks alot monkey brother , just because people like you somebody like me is learning to contribute to opensource
      • i'm so grateful for that
      • Thuraabtech has quit
      • Thuraabtech joined the channel
      • now i got another error but this time it is only related to redis
      • 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
      • monkey
        OK, let's try this then: Remove the `platform: …` lines for each service in the docker-compose file *except* for elasticsearch
      • Thuraabtech
        monkey bro i have written 'platform: linux/arm64' for redis and postgress
      • monkey
        Removing the 'platform' line for these two services did not work?
      • Thuraabtech
        let me try it again
      • i'm getting GRANT many time
      • monkey
        Not sure what that means. Can you please past the whole output in a pastebin?
      • What command are you running?
      • Thuraabtech
        ./scripts/database-init-docker.sh
      • monkey
        Still can't tell what GRANT means without context. Can you please paste the whole output in a pastebin?
      • Thuraabtech
        yeah sending it
      • monkey
        Thanks
      • Thuraabtech
        i have pasted it on pastebin
      • but how do i send you the output
      • monkey
        Well, now you need to send me the link to the pastebin :p
      • Thuraabtech
        oh my bad sorry
      • monkey
        👍
      • 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".
      • OK, well, in that case, next step is to set up your configuration: https://bookbrainz-dev-docs.readthedocs.io/en/l...
      • And then conrinue following the documentation step by step to start the server: https://bookbrainz-dev-docs.readthedocs.io/en/l...
      • I'm going to log off for a bit to have lunch, but I'll be back. Good luck !
      • Thuraabtech
        bro i have already configured the it
      • monkey
        Great! Then you should be able to start the server
      • Thuraabtech
        thanks alot btw which country do you belong
      • monkey
        I don't belong to any country, I'm a free man ! :D But I live in Spain
      • Thuraabtech
        wow nice place to live
      • lets meet tomorrow again
      • it's night here in INDIA
      • Thuraabtech has quit
      • gchound joined the channel
      • gchound has quit
      • agatzk has quit
      • agatzk joined the channel
      • muhammedanaskhan joined the channel
      • muhammedanaskhan has quit