#metabrainz

/

      • BrainzGit
        [listenbrainz-server] 14amCap1712 opened pull request #2617 (03master…spark-base-image): Update spark docker image to build pycurl and urllib3 https://github.com/metabrainz/listenbrainz-server…
      • 2023-11-02 30610, 2023

      • mayhem
        thx!
      • 2023-11-02 30641, 2023

      • lucifer
        this shouldn't change anything but lets' see
      • 2023-11-02 30658, 2023

      • lucifer
        because the actual image was built and pushed to dockerhub 2 days ago
      • 2023-11-02 30620, 2023

      • mayhem
        hm. random CB tests failing on my pr. seems unrelated.
      • 2023-11-02 30628, 2023

      • mayhem
        lucifer: spark tests still failing. I merged your branch into mine
      • 2023-11-02 30631, 2023

      • mayhem
      • 2023-11-02 30610, 2023

      • lucifer
        mayhem: yes i the previous runs, its a new error. looking into it.
      • 2023-11-02 30613, 2023

      • lucifer
        *saw the
      • 2023-11-02 30608, 2023

      • aerozol
        reosarevok: had to get this out of my head, been floating around for months… if we could assign a ‘product’ attribute to works then I think we could display something like this without having to get new data? It’s already all there, just doesn’t display in a way that’s useful for me https://usercontent.irccloud-cdn.com/file/bT0ubPr…
      • 2023-11-02 30631, 2023

      • aerozol
        The niggly bit would be the year, but this would be useful for me even if that column didn’t exist
      • 2023-11-02 30652, 2023

      • BrainzGit
        [listenbrainz-server] 14mayhem opened pull request #2618 (03master…fix-play-release): LB-1386: Fix play various artists album on LB https://github.com/metabrainz/listenbrainz-server…
      • 2023-11-02 30638, 2023

      • monkey
        There an issue with LB, I get this when I try to load my dashboard:
      • 2023-11-02 30642, 2023

      • monkey
      • 2023-11-02 30656, 2023

      • mayhem
        ok, shifted work-day, but I still got stuff done. except paying some stragglers.
      • 2023-11-02 30659, 2023

      • mayhem
        bitmap: ^^
      • 2023-11-02 30607, 2023

      • mayhem
        on prod, monkey ?
      • 2023-11-02 30613, 2023

      • monkey
        yvanzo:
      • 2023-11-02 30619, 2023

      • monkey
        Woopp,s sorry for the ping
      • 2023-11-02 30623, 2023

      • monkey
        I mean Yes
      • 2023-11-02 30630, 2023

      • mayhem
        seems related to the DB move.
      • 2023-11-02 30647, 2023

      • mayhem
        yep. got the same
      • 2023-11-02 30617, 2023

      • mayhem restarts the web container
      • 2023-11-02 30643, 2023

      • mayhem
        zas: atj : bitmap : we've got some DB issues!
      • 2023-11-02 30651, 2023

      • bitmap
        I'll stop some of the pgbouncer instances for now
      • 2023-11-02 30659, 2023

      • bitmap
        we might have to increase pg's max_connections
      • 2023-11-02 30608, 2023

      • mayhem
        MB seems unaffected.
      • 2023-11-02 30629, 2023

      • mayhem is all for raising number of connections.
      • 2023-11-02 30644, 2023

      • mayhem
        they are not expensive, so why are we so conservative with them?
      • 2023-11-02 30621, 2023

      • bitmap
        yeah, we should next time we restart PG
      • 2023-11-02 30610, 2023

      • mayhem
        the problem is still happening.
      • 2023-11-02 30646, 2023

      • mayhem
        anything I can help with bitmap?
      • 2023-11-02 30604, 2023

      • bitmap
        I stopped the pgbouncer on hendrix which should reduce the # of connections
      • 2023-11-02 30622, 2023

      • bitmap
        hard to tell what's going on though 'cause I think the pgbouncer stats aren't working since the move
      • 2023-11-02 30636, 2023

      • mayhem
        no change. should I restart the web container again?
      • 2023-11-02 30623, 2023

      • bitmap
        you can try, I'll try increasing LB's connection allotment in the pgbouncer config
      • 2023-11-02 30620, 2023

      • mayhem
        no change. :(
      • 2023-11-02 30633, 2023

      • monkey
        Some alerts on telegram about gaga. Related?
      • 2023-11-02 30611, 2023

      • mayhem
        ah, we're looking at the wrong db. :)
      • 2023-11-02 30639, 2023

      • mayhem
        bitmap: its gaga, not jimmy/hendrix
      • 2023-11-02 30643, 2023

      • mayhem
        lucifer: ping
      • 2023-11-02 30650, 2023

      • mayhem
        gaga PG is quite unhappy.
      • 2023-11-02 30604, 2023

      • bitmap
        ah, no wonder nothing was taking
      • 2023-11-02 30605, 2023

      • lucifer
        pong
      • 2023-11-02 30616, 2023

      • mayhem
        gaga's PG is very unhappy.
      • 2023-11-02 30620, 2023

      • mayhem
        help me look , please?
      • 2023-11-02 30642, 2023

      • lucifer
        sure, unhappy as in?
      • 2023-11-02 30628, 2023

      • bitmap undoes the main cluster changes then
      • 2023-11-02 30639, 2023

      • mayhem
        high load, many PG procs.
      • 2023-11-02 30652, 2023

      • mayhem
      • 2023-11-02 30606, 2023

      • mayhem
        this error was found a lot in the logs before we ran out of connections.
      • 2023-11-02 30614, 2023

      • mayhem
        that might be eating the connections.
      • 2023-11-02 30616, 2023

      • lucifer
        2023-06-06 02:38:15.409 UTC [3991072] STATEMENT:
      • 2023-11-02 30621, 2023

      • lucifer
        5 months ago
      • 2023-11-02 30659, 2023

      • mayhem
        went too far, lol.
      • 2023-11-02 30624, 2023

      • mayhem
      • 2023-11-02 30632, 2023

      • mayhem
        ok, this was in the logs before.
      • 2023-11-02 30643, 2023

      • mayhem
        do we have a spark process or anything writing to gaga right now?
      • 2023-11-02 30601, 2023

      • lucifer
        not really
      • 2023-11-02 30616, 2023

      • lucifer
        checking pg_stat_activity i see mostly listen read requests
      • 2023-11-02 30653, 2023

      • mayhem
        we should check where the connections are coming from.
      • 2023-11-02 30658, 2023

      • mayhem
        how do we do that?
      • 2023-11-02 30610, 2023

      • lucifer
        its back to normal now i think
      • 2023-11-02 30644, 2023

      • mayhem
        did you change anything?
      • 2023-11-02 30658, 2023

      • lucifer
        nope
      • 2023-11-02 30604, 2023

      • mayhem
        odd. wtf?
      • 2023-11-02 30620, 2023

      • lucifer
        16824 | listenbrainz_ts | 1179026 | | | | | | | | 2023-11-02 20:28:19.08004+00 | 2023-11-02 20:42:10.394548+00 | 2023-11-02 20:42:10.394548+00 | 2023-11-02 20:42:10.394548+00 | Timeout | VacuumDelay | active | | 406250699 | autovacuum: VACUUM ANALYZE
      • 2023-11-02 30620, 2023

      • lucifer
        _timescaledb_internal._hyper_41_6573_chunk | autovacuum worker
      • 2023-11-02 30631, 2023

      • lucifer
        a very wild guess.
      • 2023-11-02 30648, 2023

      • mayhem
        plausible.
      • 2023-11-02 30651, 2023

      • lucifer
        autovaccum locked listen table, leading to accumulation of connections
      • 2023-11-02 30600, 2023

      • mayhem nods
      • 2023-11-02 30607, 2023

      • lucifer
        but then autovaccum timed out so it went back to normal again
      • 2023-11-02 30620, 2023

      • lucifer
        so went from immediate bad to long term bad
      • 2023-11-02 30622, 2023

      • monkey
        Although LB is accessible, it shows that I haven(t listened to anything on my profile
      • 2023-11-02 30623, 2023

      • mayhem
        I wonder what spooked autovacuum.
      • 2023-11-02 30639, 2023

      • mayhem
        monkey: give it a moment to recover
      • 2023-11-02 30643, 2023

      • monkey
        Oki
      • 2023-11-02 30650, 2023

      • lucifer
        it couldn't complete within the timelimit
      • 2023-11-02 30652, 2023

      • lucifer
        not sure why
      • 2023-11-02 30618, 2023

      • mayhem
        all my listens are accounted for, but they are coming from navidrome
      • 2023-11-02 30624, 2023

      • lucifer
        its showing some listens now.
      • 2023-11-02 30640, 2023

      • lucifer
        (not for me, aerozol's profile)
      • 2023-11-02 30622, 2023

      • lucifer
        tomorrow, i think we should run `VACUUM VERBOSE listen` and it may list if there are any obvious problems.
      • 2023-11-02 30654, 2023

      • lucifer
        if not, let's upgrade PG/TS on gaga to latest and then look into tuning it.
      • 2023-11-02 30612, 2023

      • mayhem
        good plan
      • 2023-11-02 30604, 2023

      • aerozol
        lucifer: my ‘older’ button is not working now, I can’t check if the covers are fixed 🫣
      • 2023-11-02 30633, 2023

      • lucifer
        aerozol: yup, its related to the db issues.
      • 2023-11-02 30633, 2023

      • aerozol
        “You have listened to 8 songs so far”
      • 2023-11-02 30635, 2023

      • aerozol
        uh oh
      • 2023-11-02 30638, 2023

      • lucifer
        the older button that is.
      • 2023-11-02 30641, 2023

      • aerozol
        Ah okay, you’re onto it. Thanks
      • 2023-11-02 30651, 2023

      • lucifer
        covers are broken due to a different db issue
      • 2023-11-02 30659, 2023

      • lucifer
        which will take longer to fix
      • 2023-11-02 30658, 2023

      • aerozol
        allgood
      • 2023-11-02 30641, 2023

      • aerozol
        kind of depressing but I should probably share this https://usercontent.irccloud-cdn.com/file/PAOD9b1…
      • 2023-11-02 30654, 2023

      • aerozol
      • 2023-11-02 30603, 2023

      • mayhem
        yerp
      • 2023-11-02 30650, 2023

      • mayhem
        maybe they also don't know about the "save to spotify" option?
      • 2023-11-02 30650, 2023

      • aerozol
        Happy to ask follow up questions if wanted, otherwise happy to leave it as “something for users to live with” :)
      • 2023-11-02 30634, 2023

      • aerozol
        Since I don’t use Spotify I don’t have any idea what’s meant tbh, I assumed it was the player, but maybe not?
      • 2023-11-02 30633, 2023

      • mayhem
      • 2023-11-02 30651, 2023

      • mayhem
        this option exists on a playlist if the user has connected spotify
      • 2023-11-02 30659, 2023

      • mayhem
        I wonder if this person knows about it
      • 2023-11-02 30617, 2023

      • fivesheep joined the channel
      • 2023-11-02 30633, 2023

      • mayhem
        gaga is still under quite a load.
      • 2023-11-02 30647, 2023

      • aerozol
        Right - I don’t even know if they are talking about radio, playing stuff from elsewhere on LB, or submitting listens from Spotify...
      • 2023-11-02 30603, 2023

      • mayhem
        doesn't matter.
      • 2023-11-02 30633, 2023

      • mayhem
        its brainzplayer flakiness that they are upset about. so do as we do and send playlists to spotify.
      • 2023-11-02 30637, 2023

      • lucifer
        mayhem: i tried cancelling autovacuum but it seems it isn't going away that easy.
      • 2023-11-02 30638, 2023

      • aerozol
        Okay, I’ll pass that on
      • 2023-11-02 30606, 2023

      • mayhem
        lucifer: do you need to cancel it for each chunk? 🙄
      • 2023-11-02 30615, 2023

      • lucifer
        yeah
      • 2023-11-02 30637, 2023

      • lucifer
        well for the chunks its currently running at the least
      • 2023-11-02 30639, 2023

      • lucifer
        20 or sor
      • 2023-11-02 30656, 2023

      • fivesheep
        Hi, my listenbrainz says I have no listens? It should be well over 100k https://listenbrainz.org/user/calculator.ftvb/
      • 2023-11-02 30649, 2023

      • lucifer
        fivesheep: hi! yes, our db is currently under high load so some glitches on the site. the data is still there.
      • 2023-11-02 30652, 2023

      • mayhem
        your listens are fine fivesheep. the listen counts got borked.
      • 2023-11-02 30610, 2023

      • fivesheep
        Ah great thank you for the reassurance!!
      • 2023-11-02 30601, 2023

      • lucifer
      • 2023-11-02 30612, 2023

      • lucifer
        the second one looks redundant, i'll drop it
      • 2023-11-02 30656, 2023

      • fivesheep has quit
      • 2023-11-02 30637, 2023

      • fivesheep joined the channel
      • 2023-11-02 30622, 2023

      • lusciouslover joined the channel
      • 2023-11-02 30615, 2023

      • lusciouslover has quit
      • 2023-11-02 30657, 2023

      • fivesheep has quit
      • 2023-11-02 30605, 2023

      • kellnerd
      • 2023-11-02 30628, 2023

      • kellnerd
        Scared LB users on the forums as well
      • 2023-11-02 30607, 2023

      • Maxr1998_
        Thanks for the update & the hard work on resolving this! 🙂
      • 2023-11-02 30613, 2023

      • mayhem
        lucifer: the popularity endpoint now returns all nulls except for counts: https://api.listenbrainz.org/1/popularity/top-rec…
      • 2023-11-02 30609, 2023

      • mayhem
        the data in the DB appears to be fine.
      • 2023-11-02 30620, 2023

      • mayhem
        time to restart labs api, methinks.
      • 2023-11-02 30618, 2023

      • mayhem
        ah no, that is not labs. huh, odd.
      • 2023-11-02 30637, 2023

      • mayhem
        well, all seems normal now, except for playcounts and top-recordings. the latter is not so important now.
      • 2023-11-02 30603, 2023

      • relaxoMob has quit
      • 2023-11-02 30644, 2023

      • monkey
        mayhem: it's not just the play counts that are borked from a user point of view. no listen is shown that is older than 2h ago, so it looks to users as if they lost all their listens. See mine for example: https://listenbrainz.org/user/mr_monkey/
      • 2023-11-02 30659, 2023

      • mayhem
        i understand.
      • 2023-11-02 30620, 2023

      • mayhem
        but pagination is borked because of the play counts.
      • 2023-11-02 30602, 2023

      • monkey
        Not just pagination. Even with a manual date of yesterday I can't load yours: https://listenbrainz.org/user/rob/?min_ts=1698965…
      • 2023-11-02 30615, 2023

      • mayhem
        its all connected, monkey.
      • 2023-11-02 30619, 2023

      • petitminion joined the channel
      • 2023-11-02 30625, 2023

      • relaxoMob joined the channel
      • 2023-11-02 30630, 2023

      • monkey
        So weird
      • 2023-11-02 30624, 2023

      • mayhem
        listen counts, minimum timestamps and maximum timestamps are all calculated in the same process.
      • 2023-11-02 30638, 2023

      • mayhem
        and without min/max ts you get no working pagination.
      • 2023-11-02 30643, 2023

      • petitminion has quit
      • 2023-11-02 30643, 2023

      • relaxoMob has quit
      • 2023-11-02 30651, 2023

      • outsidecontext
        What a shock seeing the LB data missing. I really had enough data loss shit this week. But glad to hear the listens themselves are fine. Wish you the best getting everything back up
      • 2023-11-02 30651, 2023

      • petitminion joined the channel
      • 2023-11-02 30647, 2023

      • relaxoMob joined the channel