#metabrainz

/

      • nelgin
        musicbrainz@wibble:/restore/musicbrainz/musicbrainz-docker$ sudo docker-compose ps
      • 2021-04-28 11812, 2021

      • nelgin
        Name Command State Ports
      • 2021-04-28 11812, 2021

      • nelgin
        ------------------------------------------------------------------------------------------------------------------------------------------
      • 2021-04-28 11812, 2021

      • nelgin
        musicbrainz-docker_db_1 docker-entrypoint.sh postg ... Up 5432/tcp
      • 2021-04-28 11812, 2021

      • nelgin
        musicbrainz-docker_indexer_1 python -m sir amqp_watch Exit 1
      • 2021-04-28 11821, 2021

      • nelgin
        Yes, it shows it,but it shows it's dead.
      • 2021-04-28 11819, 2021

      • yvanzo
        admin/configure rm live-indexing-search
      • 2021-04-28 11828, 2021

      • yvanzo
        sudo docker-compose up -d
      • 2021-04-28 11844, 2021

      • nelgin
        and for some reason, Ihave to do all my admin commands with sudo.
      • 2021-04-28 11845, 2021

      • yvanzo
      • 2021-04-28 11800, 2021

      • nelgin
        configure: cannot set docker command: please either
      • 2021-04-28 11800, 2021

      • nelgin
        * add the user 'musicbrainz' to the group 'sudo' or 'wheel'
      • 2021-04-28 11800, 2021

      • nelgin
        * or set the variable $DOCKER_CMD
      • 2021-04-28 11809, 2021

      • nelgin
        Is that usual?
      • 2021-04-28 11831, 2021

      • yvanzo
        Yes
      • 2021-04-28 11846, 2021

      • yvanzo
        It's because configure is using docker command.
      • 2021-04-28 11858, 2021

      • nelgin
        Ah ok.
      • 2021-04-28 11858, 2021

      • nelgin
        musicbrainz-docker_indexer_1 /sbin/my_init
      • 2021-04-28 11801, 2021

      • nelgin
        Does that look better?
      • 2021-04-28 11805, 2021

      • yvanzo
        So running sudo admin/configure works, but you can set the shell variables instead: export DOCKER_CMD='sudo docker' DOCKER_COMPOSE_CMD='sudo docker-compose'
      • 2021-04-28 11812, 2021

      • yvanzo
        Yes
      • 2021-04-28 11833, 2021

      • yvanzo
        Now you should be able to go through step 2 at https://github.com/metabrainz/musicbrainz-docker#…
      • 2021-04-28 11824, 2021

      • nelgin
        Installing indexer AMQP extension into PostgreSQL ...
      • 2021-04-28 11824, 2021

      • nelgin
        BEGIN
      • 2021-04-28 11824, 2021

      • nelgin
        psql:/tmp/CreateExtensionAMQP.sql:5: ERROR: extension "amqp" already exists
      • 2021-04-28 11824, 2021

      • nelgin
        I assume that's ok.
      • 2021-04-28 11846, 2021

      • yvanzo
        Yes, sorry, just: sudo docker-compose exec indexer python -m sir amqp_setup
      • 2021-04-28 11810, 2021

      • nelgin
        Ah ok
      • 2021-04-28 11812, 2021

      • nelgin
        DOne
      • 2021-04-28 11825, 2021

      • nelgin
        then admin/configure add live-indexing-search ?
      • 2021-04-28 11835, 2021

      • yvanzo
        Does mq have queues now?
      • 2021-04-28 11850, 2021

      • nelgin
        It does.
      • 2021-04-28 11857, 2021

      • yvanzo
        Did you build search indexes already?
      • 2021-04-28 11805, 2021

      • nelgin
        Yes, did those last night
      • 2021-04-28 11822, 2021

      • yvanzo
        Cool, so yes, you can proceed with step 4 :)
      • 2021-04-28 11830, 2021

      • nelgin
        so if I do sudo docker-compose down; sudo docker-compose up -d I should still see the queues right, before I proceed?
      • 2021-04-28 11842, 2021

      • yvanzo
        Yes.
      • 2021-04-28 11855, 2021

      • nelgin
        Right...let me try that.
      • 2021-04-28 11813, 2021

      • yvanzo
        The queues are stored in 'mqdata' volume.
      • 2021-04-28 11850, 2021

      • nelgin
        Just says "no items"
      • 2021-04-28 11856, 2021

      • nelgin
        I'll give it a minute
      • 2021-04-28 11841, 2021

      • nelgin
        Nope, just says "no items" still.
      • 2021-04-28 11858, 2021

      • nelgin
        What do I check in the indexer container to see if the amqp setup stuck?
      • 2021-04-28 11853, 2021

      • nelgin
        So open to suggestions cos I'm stuck and don't want to have to run the setup everytime I restart the containers.
      • 2021-04-28 11838, 2021

      • yvanzo
        The normal output of amqp_setup is https://gist.github.com/yvanzo/57c018f03518537607…
      • 2021-04-28 11819, 2021

      • nelgin
        Will I find that in a file in the indexer container?
      • 2021-04-28 11812, 2021

      • nelgin
        But yes, I got that output when I first ran sudo docker-compose exec indexer python -m sir amqp_setup
      • 2021-04-28 11830, 2021

      • yvanzo
        Ok, no it's not logged elsewhere.
      • 2021-04-28 11850, 2021

      • nelgin
      • 2021-04-28 11801, 2021

      • yvanzo
        I don't get why the queues disappear from rabbitmq, never seen that before.
      • 2021-04-28 11852, 2021

      • nelgin
        Well, it's the same with cron. admin/configure just isn't making things stick, or not working or something.
      • 2021-04-28 11820, 2021

      • yvanzo
        That is normal output (for indexer container without live indexing enabled).
      • 2021-04-28 11840, 2021

      • yvanzo
        admin/configure is just editing .env
      • 2021-04-28 11859, 2021

      • nelgin
        Right but sudo docker-compose exec mq rabbitmqadmin -u sir -p sir -V /search-index-rebuilder list queues shoudl list the queues, not "no items" right?
      • 2021-04-28 11809, 2021

      • nelgin
        If I've not done step 4 as yet.
      • 2021-04-28 11804, 2021

      • yvanzo
        Yes
      • 2021-04-28 11817, 2021

      • nelgin
      • 2021-04-28 11824, 2021

      • nelgin
        There's my .env file. Maybe something is amiss there?
      • 2021-04-28 11830, 2021

      • yvanzo
        What is in /restore/musicbrainz/musicbrainz-docker/local/indexer.ini ?
      • 2021-04-28 11858, 2021

      • nelgin
        same as default.ini but with index_limit = 2000000 per your suggestion.
      • 2021-04-28 11819, 2021

      • nelgin
      • 2021-04-28 11811, 2021

      • yvanzo
        I don’t see anything wrong.
      • 2021-04-28 11831, 2021

      • nelgin
        I wonder if something got corrupted when /var/lib ran out of space, but that was only importing data into the database so I doubt it.
      • 2021-04-28 11805, 2021

      • nelgin
        I could just blow it all away and start again to be sure. I don't want to keep on a wild goose chase.
      • 2021-04-28 11827, 2021

      • yvanzo
        I can try to reproduce that but it will take some time.
      • 2021-04-28 11800, 2021

      • nelgin
        Before you waste time on that, let me just start over. What's the best way to clean up ?
      • 2021-04-28 11812, 2021

      • nelgin
        Finally, is there a way to get createdb.sh to use the existing .gz files without downloading them again? If I leave off -fetch will that work?
      • 2021-04-28 11831, 2021

      • yvanzo
        Yes
      • 2021-04-28 11823, 2021

      • yvanzo
        I don’t think it is related to /var/lib ran out of space, but I can be wrong.
      • 2021-04-28 11829, 2021

      • yvanzo
        What is your docker version?
      • 2021-04-28 11843, 2021

      • nelgin
        Docker version 20.10.2, build 20.10.2-0ubuntu1~20.04.2
      • 2021-04-28 11852, 2021

      • nelgin
        docker-compose version 1.25.0, build unknown
      • 2021-04-28 11818, 2021

      • yvanzo
        nelgin: which packages? dpkg --list | grep docker
      • 2021-04-28 11855, 2021

      • nelgin
        docker-compose 1.25.0-1
      • 2021-04-28 11856, 2021

      • nelgin
        docker.io 20.10.2-0ubuntu1~20.04.2
      • 2021-04-28 11856, 2021

      • nelgin
        python3-docker 4.1.0-1
      • 2021-04-28 11856, 2021

      • nelgin
        python3-dockerpty 0.4.1-2
      • 2021-04-28 11840, 2021

      • yvanzo
        Thanks
      • 2021-04-28 11855, 2021

      • nelgin
        Running sudo docker-compose build - will check back in about 20 minutes :)
      • 2021-04-28 11806, 2021

      • nelgin
        How much longer will you be around?
      • 2021-04-28 11844, 2021

      • yvanzo
        Probably 1h30 at most.
      • 2021-04-28 11816, 2021

      • yvanzo
        I’m setting up a fresh instance to try to reproduce these issues.
      • 2021-04-28 11845, 2021

      • nelgin
        It would be nice if the Vm came with all the perl modules already installed. That's one of the time consuming parts.
      • 2021-04-28 11811, 2021

      • nelgin
        build done.
      • 2021-04-28 11840, 2021

      • nelgin
        Ihave the .gz files in my local system, how do I get them into the right container so I don't have to -fetch ?
      • 2021-04-28 11801, 2021

      • yvanzo
        Using 'docker cp'
      • 2021-04-28 11847, 2021

      • nelgin
        I'm just going to configure my linux box with ftp so it'll be reusable without having to worry about that.
      • 2021-04-28 11822, 2021

      • yvanzo
        Or move the files directly to /var/lib/...
      • 2021-04-28 11816, 2021

      • nelgin
        ..docker/...
      • 2021-04-28 11837, 2021

      • yvanzo
        sudo docker inspect -f '{{.Mountpoint}}' musicbrainz-docker_dbdump
      • 2021-04-28 11800, 2021

      • nelgin
        Error: No such object: musicbrainz-docker_dbdump
      • 2021-04-28 11821, 2021

      • nelgin
        I've done the build, not at the stage to bring up the containers yet.
      • 2021-04-28 11817, 2021

      • yvanzo
        Ok, do you start with no .env (or a fresh .env without replication set?)
      • 2021-04-28 11814, 2021

      • nelgin
        No .env file. Everything was removed and did a new git clone
      • 2021-04-28 11831, 2021

      • yvanzo
        sudo docker-compose up musicbrainz # it will create dbdump volume at least, then kill it.
      • 2021-04-28 11829, 2021

      • nelgin
        $ sudo docker inspect -f '{{.Mountpoint}}' musicbrainz-docker_dbdump
      • 2021-04-28 11836, 2021

      • nelgin
        /var/lib/docker/volumes/musicbrainz-docker_dbdump/_data
      • 2021-04-28 11841, 2021

      • nelgin
        So I throw the files in there?
      • 2021-04-28 11803, 2021

      • yvanzo
        yes
      • 2021-04-28 11828, 2021

      • yvanzo
        including the LATEST file
      • 2021-04-28 11838, 2021

      • nelgin
        Yup.
      • 2021-04-28 11852, 2021

      • nelgin
        Ok, copied. Now shut it down before running createdb ?
      • 2021-04-28 11807, 2021

      • yvanzo
        Yes.
      • 2021-04-28 11832, 2021

      • nelgin
        Since I didn't use -d can I just ^C to kill it or should I do the docker-compose down ?
      • 2021-04-28 11806, 2021

      • yvanzo
        Yes ^C
      • 2021-04-28 11820, 2021

      • nelgin
        Super.
      • 2021-04-28 11813, 2021

      • nelgin
        musicbrainz is down, the others are up, should I should those down too?
      • 2021-04-28 11855, 2021

      • yvanzo
        yep, sudo docker-compose down
      • 2021-04-28 11830, 2021

      • nelgin
        the sudo docker-compose run --rm musicbrainz createdb.sh should do it.
      • 2021-04-28 11834, 2021

      • nelgin
        right?
      • 2021-04-28 11859, 2021

      • repo has quit
      • 2021-04-28 11808, 2021

      • nelgin
        OK, it's creating the databases
      • 2021-04-28 11824, 2021

      • nelgin
        Can I do similar with the searchdata ?
      • 2021-04-28 11823, 2021

      • BrainzGit
        [bookbrainz-site] snyk-bot opened pull request #609 (master…snyk-upgrade-65e2c1182d82571ee2b4814862841ce9): [Snyk] Upgrade snyk from 1.385.0 to 1.528.0 https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-28 11823, 2021

      • nelgin
        Yes I can. :)
      • 2021-04-28 11827, 2021

      • BrainzGit
        [bookbrainz-site] snyk-bot opened pull request #610 (master…snyk-upgrade-830d7b934e8b826d89a6a9af2d42d4fa): [Snyk] Upgrade influx from 5.5.3 to 5.8.0 https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-28 11830, 2021

      • BrainzGit
        [bookbrainz-site] snyk-bot opened pull request #611 (master…snyk-upgrade-5d6316e9fd664807fe407c6701d40cbf): [Snyk] Upgrade date-fns from 2.15.0 to 2.19.0 https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-28 11835, 2021

      • BrainzGit
        [bookbrainz-site] snyk-bot opened pull request #612 (master…snyk-upgrade-cbb35c04e742531e4ebe22439f641b47): [Snyk] Upgrade: @fortawesome/fontawesome-svg-core, @fortawesome/free-brands-svg-icons, @fortawesome/free-solid-svg-icons, @fortawesome/react-fontawesome https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-28 11857, 2021

      • nelgin
        need to get ready to go out. I'll bbl. Thanks yvanzo for your help.
      • 2021-04-28 11846, 2021

      • travis-ci joined the channel
      • 2021-04-28 11846, 2021

      • travis-ci
        Project bookbrainz-site build #3899: passed in 4 min 46 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-28 11846, 2021

      • travis-ci has left the channel
      • 2021-04-28 11840, 2021

      • v6lur has quit
      • 2021-04-28 11845, 2021

      • travis-ci joined the channel
      • 2021-04-28 11845, 2021

      • travis-ci
        Project bookbrainz-site build #3902: passed in 8 min 44 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-28 11845, 2021

      • travis-ci has left the channel
      • 2021-04-28 11844, 2021

      • travis-ci joined the channel
      • 2021-04-28 11844, 2021

      • travis-ci
        Project bookbrainz-site build #3905: passed in 4 min 58 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-28 11844, 2021

      • travis-ci has left the channel
      • 2021-04-28 11854, 2021

      • yvanzo
        No problem, am off now.
      • 2021-04-28 11828, 2021

      • thomasross joined the channel
      • 2021-04-28 11802, 2021

      • travis-ci joined the channel
      • 2021-04-28 11802, 2021

      • travis-ci
        Project bookbrainz-site build #3908: passed in 8 min 51 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-28 11802, 2021

      • travis-ci has left the channel
      • 2021-04-28 11844, 2021

      • MRiddickW has quit
      • 2021-04-28 11800, 2021

      • MRiddickW joined the channel
      • 2021-04-28 11822, 2021

      • MRiddickW has quit