#musicbrainz

/

      • bitmap
        the Dockerfile has WORKDIR /musicbrainz-server, but it seems that when you execute a command it's from /, which I don't understand
      • 2023-11-01 30541, 2023

      • bitmap
        so I guess at least this should work: sudo docker-compose exec musicbrainz bash -c 'cd /musicbrainz-server; ./admin/BuildMaterializedTables --database=MAINTENANCE area_containment'
      • 2023-11-01 30552, 2023

      • bitmap
        if not then I'm out of ideas
      • 2023-11-01 30556, 2023

      • jazzi has quit
      • 2023-11-01 30537, 2023

      • jazzi joined the channel
      • 2023-11-01 30538, 2023

      • jazzi
        yeah i refreshed and still empty xd
      • 2023-11-01 30504, 2023

      • jazzi
        does it work from ur end? would u mind querying the child countries of iran for me and ill put them into my my script 1 by 1
      • 2023-11-01 30508, 2023

      • bitmap
        if you can figure out where the musicbrainz-server checkout is inside the container, that would help
      • 2023-11-01 30519, 2023

      • bitmap
        I don't have a running musicbrainz-docker instance atm
      • 2023-11-01 30541, 2023

      • jazzi
        how could i find the checkout? idk what a checkout is
      • 2023-11-01 30521, 2023

      • bitmap
        the git checkout
      • 2023-11-01 30529, 2023

      • bitmap
        is it not at /musicbrainz-server?
      • 2023-11-01 30513, 2023

      • bitmap
        there are 1019 child areas btw
      • 2023-11-01 30505, 2023

      • jazzi
        1019 haha uh oh
      • 2023-11-01 30516, 2023

      • jazzi
        so i did git branch on cd/musicbrainz-docker
      • 2023-11-01 30520, 2023

      • jazzi
        and it returned * master
      • 2023-11-01 30524, 2023

      • jazzi
        is that the checkout u needed?
      • 2023-11-01 30537, 2023

      • bitmap
        /musicbrainz-server not /musicbrainz-docker right?
      • 2023-11-01 30514, 2023

      • jazzi
        uhh on my side the directory is called musicbrainz-server :eyes:
      • 2023-11-01 30518, 2023

      • jazzi
        i mean docker sorry
      • 2023-11-01 30528, 2023

      • jazzi
        im not sure how to share photos on libera chat
      • 2023-11-01 30502, 2023

      • jazzi
      • 2023-11-01 30503, 2023

      • jazzi
        cd musicbrainz-docker" these are the 2 lines from the github i followed to get this
      • 2023-11-01 30520, 2023

      • bitmap
        just to be clear, I mean inside the container
      • 2023-11-01 30531, 2023

      • jazzi
        oh.... im sorry
      • 2023-11-01 30541, 2023

      • jazzi
        im a little new to terminal stuff
      • 2023-11-01 30553, 2023

      • bitmap
        ah np
      • 2023-11-01 30549, 2023

      • jazzi
        i tried entering the container then asking what the git branch was but i got this error:
      • 2023-11-01 30549, 2023

      • jazzi
        jazzi@jazzi:~$ sudo docker exec -it 0c52e35228bc bash
      • 2023-11-01 30550, 2023

      • jazzi
        root@0c52e35228bc:/# git branch
      • 2023-11-01 30550, 2023

      • jazzi
        fatal: not a git repository (or any of the parent directories): .git
      • 2023-11-01 30551, 2023

      • jazzi
        root@0c52e35228bc:/#
      • 2023-11-01 30533, 2023

      • bitmap
        yeah, you are in the root directory / right now, try this first: cd /musicbrainz-server
      • 2023-11-01 30548, 2023

      • jazzi
        root@0c52e35228bc:/# cd /musicbrainz-server
      • 2023-11-01 30548, 2023

      • jazzi
        bash: cd: /musicbrainz-server: No such file or directory
      • 2023-11-01 30549, 2023

      • jazzi
        root@0c52e35228bc:/#
      • 2023-11-01 30511, 2023

      • bitmap
        ok then I'm very confused because I thought that dir was hardcoded, yvanzo might be of more help
      • 2023-11-01 30534, 2023

      • jazzi
        there were two docker containers, one for musicbrainz-docker created on 5432 that i entered now, the other one on 6379 called musicbrainz-docker_redis_1
      • 2023-11-01 30547, 2023

      • jazzi
        im meant to enter the 5432 one correct? thats the one i did that line u just told me to do
      • 2023-11-01 30509, 2023

      • bitmap
        there should be one for musicbrainz, postgres, and redis iirc
      • 2023-11-01 30519, 2023

      • bitmap
        postgres runs on port 5432 so that's probably the postgres one
      • 2023-11-01 30533, 2023

      • jazzi
        ok good i tried it on that one
      • 2023-11-01 30539, 2023

      • jazzi
        wonder why its not working lol
      • 2023-11-01 30542, 2023

      • bitmap
        you want the musicbrainz one (might be named _web or something?)
      • 2023-11-01 30511, 2023

      • jazzi
        hmm ive only got 2 containers running not 3
      • 2023-11-01 30522, 2023

      • bitmap
        oh wait, you said you don't have the server earlier, didn't you. lol sorry
      • 2023-11-01 30526, 2023

      • jazzi
        the postgres and the redis one
      • 2023-11-01 30532, 2023

      • jazzi
        haha yeah i just did the local postgres installation
      • 2023-11-01 30536, 2023

      • jazzi
        is that why this wont work?
      • 2023-11-01 30544, 2023

      • bitmap
        yeah you need the musicbrainz container to run this script
      • 2023-11-01 30503, 2023

      • jazzi
        right ok is that tricky to setup from this point?
      • 2023-11-01 30507, 2023

      • bitmap
        I didn't realize you could run musicbrainz-docker with it (since it contains a bunch of maintenance scripts)
      • 2023-11-01 30513, 2023

      • bitmap
        without it*
      • 2023-11-01 30543, 2023

      • bitmap
        I guess you try a different join to get the contained areas but it will be slower
      • 2023-11-01 30515, 2023

      • jazzi
        im not too fussed about speed honestly haha i just need the data once
      • 2023-11-01 30541, 2023

      • jazzi
        is there some kind of other method to join up the children countries?
      • 2023-11-01 30507, 2023

      • jazzi
        area sorry *
      • 2023-11-01 30538, 2023

      • bitmap
        instead of JOIN area_containment ac, do https://gist.github.com/mwiencek/5cf9b76dbf9be67b…
      • 2023-11-01 30555, 2023

      • bitmap
        this is how musicbrainz-server calculates the table anyway, so it's the same results
      • 2023-11-01 30533, 2023

      • jazzi
        ahh ok like this https://pastebin.com/Cnj1TQ52 ? thank you so much for your help this has taken a huge stress off my shoulders!
      • 2023-11-01 30533, 2023

      • bitmap
        np, and yeah I think that should work
      • 2023-11-01 30506, 2023

      • jazzi
        great tysm, i cant believe how big these queries got haha
      • 2023-11-01 30510, 2023

      • bitmap
        (: the MB schema is pretty highly normalized so can be kinda crazy with all the joins
      • 2023-11-01 30548, 2023

      • petitminion joined the channel
      • 2023-11-01 30540, 2023

      • Cheezmo__ joined the channel
      • 2023-11-01 30556, 2023

      • Cheezmo has quit
      • 2023-11-01 30511, 2023

      • petitminion has quit
      • 2023-11-01 30528, 2023

      • yvanzo
        jazzi, bitmap: Do you still need help with anything?
      • 2023-11-01 30545, 2023

      • bitmap
        no we were just confused because we couldn't run BuildMaterializedTables without a musicbrainz container
      • 2023-11-01 30507, 2023

      • bitmap
        I didn't realize musicbrainz-docker allowed that
      • 2023-11-01 30541, 2023

      • reosarevok
        yvanzo: we figured out btw that generating pot files is broken because babel can't read new flow comments
      • 2023-11-01 30556, 2023

      • reosarevok
        I had to comment a bunch of lines out for it to work
      • 2023-11-01 30522, 2023

      • reosarevok
        bitmap is looking into making xgettext-js support hermes instead of babbel
      • 2023-11-01 30540, 2023

      • yvanzo
        reosarevok: Thank you for having updated beta!
      • 2023-11-01 30525, 2023

      • reosarevok
        I haven't :D
      • 2023-11-01 30542, 2023

      • reosarevok
        Because there's a node 18 error creating the new image
      • 2023-11-01 30558, 2023

      • reosarevok
        Oh wait, this is #mb
      • 2023-11-01 30501, 2023

      • reosarevok
        Well, anyway :D
      • 2023-11-01 30521, 2023

      • reosarevok
        hopefully we can merge bitmap's node 20 PR soon and get that solved as a bonus
      • 2023-11-01 30539, 2023

      • yvanzo
        oh ok
      • 2023-11-01 30518, 2023

      • yvanzo
        I saw that the branch beta was updated but didn't notice it was broken :)
      • 2023-11-01 30538, 2023

      • Souler joined the channel
      • 2023-11-01 30543, 2023

      • relaxoMob has quit
      • 2023-11-01 30556, 2023

      • ssam has quit
      • 2023-11-01 30535, 2023

      • ssam joined the channel
      • 2023-11-01 30503, 2023

      • furq has quit
      • 2023-11-01 30546, 2023

      • Cheezmo__ has quit
      • 2023-11-01 30515, 2023

      • Cheezmo joined the channel
      • 2023-11-01 30501, 2023

      • relaxoMob joined the channel
      • 2023-11-01 30513, 2023

      • petitminion joined the channel
      • 2023-11-01 30554, 2023

      • furq joined the channel
      • 2023-11-01 30532, 2023

      • petitminion has quit
      • 2023-11-01 30503, 2023

      • Souler has quit
      • 2023-11-01 30550, 2023

      • Souler joined the channel
      • 2023-11-01 30531, 2023

      • relaxoMob has quit
      • 2023-11-01 30534, 2023

      • balrog has quit
      • 2023-11-01 30520, 2023

      • balrog joined the channel
      • 2023-11-01 30515, 2023

      • trclst has left the channel
      • 2023-11-01 30507, 2023

      • Souler has quit
      • 2023-11-01 30525, 2023

      • petitminion joined the channel
      • 2023-11-01 30545, 2023

      • jazzi has quit
      • 2023-11-01 30513, 2023

      • Souler joined the channel
      • 2023-11-01 30512, 2023

      • flamingspinach has quit
      • 2023-11-01 30540, 2023

      • relaxoMob joined the channel
      • 2023-11-01 30504, 2023

      • otisolsen70 joined the channel
      • 2023-11-01 30503, 2023

      • qookie has quit
      • 2023-11-01 30519, 2023

      • fletchto99 has quit
      • 2023-11-01 30519, 2023

      • fletchto99_ joined the channel
      • 2023-11-01 30532, 2023

      • qookie joined the channel
      • 2023-11-01 30543, 2023

      • fletchto99_ is now known as fletchto99
      • 2023-11-01 30531, 2023

      • ssam has quit
      • 2023-11-01 30550, 2023

      • ssam joined the channel
      • 2023-11-01 30558, 2023

      • Souler has quit
      • 2023-11-01 30536, 2023

      • G0d has quit
      • 2023-11-01 30539, 2023

      • Cheezmo has quit
      • 2023-11-01 30508, 2023

      • Cheezmo joined the channel
      • 2023-11-01 30503, 2023

      • petitminion has quit
      • 2023-11-01 30547, 2023

      • otisolsen70 has quit
      • 2023-11-01 30508, 2023

      • ErBear has quit
      • 2023-11-01 30535, 2023

      • relaxoMob has quit
      • 2023-11-01 30549, 2023

      • ErBear joined the channel
      • 2023-11-01 30500, 2023

      • Cheezmo has quit
      • 2023-11-01 30507, 2023

      • Cheezmo_ joined the channel
      • 2023-11-01 30515, 2023

      • theraspberry has quit
      • 2023-11-01 30533, 2023

      • theraspberry joined the channel
      • 2023-11-01 30558, 2023

      • flamingspinach joined the channel
      • 2023-11-01 30522, 2023

      • relaxoMob joined the channel
      • 2023-11-01 30513, 2023

      • anonn has quit