#metabrainz

/

      • Thuraabtech joined the channel
      • Thuraabtech has quit
      • relaxoMob has quit
      • relaxoMob joined the channel
      • relaxoMob has quit
      • aaditya joined the channel
      • aaditya has quit
      • relaxoMob joined the channel
      • reosarevok
        heh
      • "NO HUMANS PAST THIS POINT"
      • plibither8 joined the channel
      • plibither8
        Getting this error while accessing any DB-dependant page: Internal server error
      • (psycopg2.OperationalError) FATAL: remaining connection slots are reserved for non-replication superuser connections (Background on this error at: https://sqlalche.me/e/14/e3q8). Anyone else facing this issue?
      • yvanzo
        HI plibither8, what are you using?
      • plibither8
        Accessing the website from Chrome on a Mac. Example: https://listenbrainz.org/current-status/
      • yvanzo
        lucifer, mayhem, monkey ^
      • reosarevok
        The main LB site? That works for me here, interesting
      • Hopefully the pinged LB team members can help figure it out
      • plibither8
        Yep, the main one. I was logged in first and accessing my profile and got the error, so I thought to try to clear the website storage and retry. That didn't work.
      • Thanks for the quick response guys!
      • Seems to be working now!
      • reosarevok
        Thanks for reporting the issue in any case, worth investigating for the team to try to avoid it happening again!
      • plibither8
        ( ☞˙ᵕ˙)☞
      • reosarevok
        yvanzo: ok, installed prereqs for mb-docker - how do I set it to run and create containers in a different SSD than the default?
      • Is this something to set up before I run all the commands?
      • plibither8 has quit
      • plibither8 joined the channel
      • yvanzo
        Yes
      • Do you have any docker stuff atm?
      • reosarevok
        As in, running containers?
      • No, or at least nothing I want to keep
      • yvanzo
        `docker ps --all` and `docker system df`
      • reosarevok
      • Apparently, a bunch of stuff :D
      • metabrainz_web related stuff is the only bit that might be of use but I can just set that up again when needed on the other disc
      • yvanzo
        Probably a dev setup of MeB.O website?
      • reosarevok
      • Yes, I knew about that one, I didn't remember I still had the MBS containers around tho
      • yvanzo
        Those are probably MeB.o containers too.
      • MeB.o uses both Redis and PG.
      • reosarevok
        Yeah, but I assume musicbrainz-docker_indexer_1 and whatnot are MBS :)
      • Anyway, I'd be happy to just clear all this and start from scratch - so stop all, remove all, remove all images?
      • yvanzo
        reosarevok: It’s probably fine to wipe everything out: `docker system prune --all --volumes
      • Oops, `docker system prune --all --volumes`
      • Everything is stopped already (status = exited)
      • reosarevok
        Is it? some said Up 10 minutes
      • Anyway, running that for now, let it purge as much as it will
      • yvanzo
        oh sorry
      • Had to scroll down.
      • So you actually have had some containers part of MB-docker running for about 15 months.
      • reosarevok
        Seems so :D
      • yvanzo
        `prune` won’t remove the running containers and the images they use.
      • plibither8 has quit
      • reosarevok
        Any reason not to just stop them and then pruning again?
      • yvanzo
        You can just use them.
      • reosarevok
        So I can move them to a different partition?
      • yvanzo
        You probably have enough disk space on this partition anyway.
      • reosarevok
        I probably do, but it's HDD not SSD :)
      • Will that difference make, well, a difference?
      • (I *think* those are running on my secondary HDD, anyway)
      • (not sure how to tell exactly)
      • yvanzo
        Dunno what is faster for you: internal HDD or external SSD, it depends on buses.
      • reosarevok
        Well, we can just put them in the HDD I guess for now, less thinking
      • yvanzo
        You can use either `dd` or `hdparm` to find it out.
      • nawcom has quit
      • nawcom_ joined the channel
      • reosarevok
        To find out where my docker containers are, or what is faster? :)
      • nawcom_ is now known as nawcom
      • (reading on those, what is faster I guess)
      • I can probably live with slower, let's just get it set up in the HDD
      • yvanzo
        what is faster ^
      • Since there already are performance issues, it's probably safer not to pile up hardware issues.
      • To find out where your current compose project files are: `docker container inspect --format '{{.Config.Labels}}' musicbrainz-docker-db-1`
      • See `com.docker.compose.project.working_dir`
      • reosarevok
        com.docker.compose.project.working_dir:/media/data/musicbrainz-docker - ok, that's the HDD
      • yvanzo
        That's only for the config files, not for the containers.
      • reosarevok
        What about for the containers themselves?
      • yvanzo
        `docker system info -f '{{.DockerRootDir}}'`
      • reosarevok
        That's /media/data/docker so also the HDD. Guess we moved that there last time we tried - but then we tried to reuse the existing MB local install for dev and it was messy
      • IIRC that's why I gave up eventually
      • So let's just make this a fully separate install this time
      • yvanzo
        Then stop everything and prune.
      • reosarevok
        Perfect
      • Ok, done
      • I guess now I just follow the dev install instructions?
      • yvanzo
        👍
      • reosarevok
        Doing the setup
      • A red line says "dpkg-preconfigure: unable to re-open stdin:"
      • should I worry?
      • Seems to be happily continuing so I guess not?
      • heh
      • DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/relea... pip 21.0 will remove support for this functionality.
      • January 2021, huh
      • That's soon!
      • petitminion joined the channel
      • petitminion has quit
      • petitminion joined the channel
      • petitminion has quit
      • yvanzo
        You’re not thinking fourth dimensionally!
      • reosarevok
        yvanzo:
      • petitminion joined the channel
      • yvanzo
        reosarevok: for which command?
      • petitminion has quit
      • reosarevok
        sudo docker-compose run --rm musicbrainz createdb.sh -sample -fetch
      • petitminion joined the channel
      • yvanzo: ^
      • (sorry, got sidetracked for a moment)
      • yvanzo
        Did you check that there was no image left after pruning your system?
      • (and no volume)
      • Try `sudo docker-compose run --rm musicbrainz recreatedb.sh -sample`
      • reosarevok
        I did not :)
      • Checking
      • Ok, recreate worked
      • yvanzo: ok, finished running the steps, but http://localhost:5000/ is not working yet
      • Maybe it is setting up
      • yvanzo
        It take a while to run for the first time because it is installing dependencies.
      • reosarevok
        Ok :)
      • yvanzo
        You can follow progress through container's logs: `sudo docker-compose logs --follow --tail 1 --timestamps musicbrainz`
      • reosarevok
        So that's basically just it doing compile_resources
      • yvanzo
        Also, you don't have a MBS instance running outside of docker?
      • reosarevok
        Not at the moment
      • (I haven't put plackup up)
      • yvanzo
        The musicbrainz-server path is a different clone than the one you use outside of docker?
      • reosarevok
        Yes
      • yvanzo
        👍
      • reosarevok
        In a different partition, should hopefully not affect each other at all
      • yvanzo
        It would have overwritten your `lib/DBDefs.pm` otherwise.
      • You can change ports later on so that they can run at the same time.
      • reosarevok
        aerozol: MBS-13326 could use a check
      • BrainzBot
        MBS-13326: UI/UX problem: People misread sort name as short name or use it for legal name, disambiguation, etc. https://tickets.metabrainz.org/browse/MBS-13326
      • reosarevok
        Is "short name" a common thing in India, lucifer / akshaaatt / Pratha-Fish? Most of our "short name" misreads seem to be Indian editors
      • yvanzo: hmm...
      • Seems like the server should be up but 500s
      • akshaaatt
        It is! Golu, chintu, monu, etc, reosarevok 😂 But I would like to see an example pf it being used incorrectly somewhere to understand the context better
      • reosarevok
        See the link from the ticket:
      • Seems to be a bunch of Indians entering a nickname under "sort name" and complaining that it's their "short name" when someone downvotes :)
      • yvanzo
        reosarevok: check the resources compilation log file: `sudo docker-compose exec musicbrainz tail -f /compile_resources.log`
      • reosarevok
      • Pratha-Fish
        akshaaatt: but most people just call it nicknames, don't they? 😂
      • akshaaatt
        The shared link doesn’t open for me, reosarevok
      • I am on mobile though
      • reosarevok
        akshaaatt: hmm. Are you logged in?
      • akshaaatt
      • reosarevok
        Oh, yeah, so it dropped the log-in only parts of the search, but that made it too wide so it failed :D
      • akshaaatt
        Help me understand this reosarevok , so for an artist named Machine Gun Kelly, people usually refer to him as mgk. So would mgk be his sort name?
      • reosarevok
      • akshaaatt
        I am assuming sort name is for the search