#metabrainz

/

      • lucifer
        monkey: i think mayhem will need to check spotify dashboard and update the uris there if needed. iirc test.lb is using a separate spotify app from beta and prod.
      • 2022-10-31 30413, 2022

      • mayhem
        one sec
      • 2022-10-31 30415, 2022

      • monkey
        Yep, was just writing that I don't have access to the spotify account
      • 2022-10-31 30416, 2022

      • monkey
        :)
      • 2022-10-31 30450, 2022

      • mayhem
      • 2022-10-31 30417, 2022

      • alastairp
        nice!
      • 2022-10-31 30425, 2022

      • alastairp
        not a million, but not 10 either
      • 2022-10-31 30438, 2022

      • mayhem
      • 2022-10-31 30411, 2022

      • alastairp
        looks like we never updated that after adding the new connect page
      • 2022-10-31 30449, 2022

      • monkey
        Yep. mayhem the callback URI should be: `https://test.listenbrainz.org/profile/music-services/spotify/callback/`
      • 2022-10-31 30451, 2022

      • mayhem
        this is the one for prod:
      • 2022-10-31 30453, 2022

      • mayhem
      • 2022-10-31 30455, 2022

      • monkey
        Please and that you :)
      • 2022-10-31 30431, 2022

      • alastairp
        ah, interesting. I guess we're using the same app on both prod and dev?
      • 2022-10-31 30433, 2022

      • monkey
        thank you*
      • 2022-10-31 30446, 2022

      • mayhem
        no, but we could.
      • 2022-10-31 30413, 2022

      • mayhem
        updated, monkey
      • 2022-10-31 30434, 2022

      • monkey
        Thank you
      • 2022-10-31 30447, 2022

      • alastairp
        maybe remove the test callback urls for the prod instance? to reduce possible future confusion
      • 2022-10-31 30454, 2022

      • lucifer
        monkey: you'll have to write spotify gdpr support that you want timestamps of the export in milliseconds. if they still send in seconds then write back to them emphasizing that its seconds but you want in milliseconds.
      • 2022-10-31 30456, 2022

      • mayhem
        works now.
      • 2022-10-31 30400, 2022

      • mayhem
        alastairp: agreed.
      • 2022-10-31 30423, 2022

      • mayhem
        done
      • 2022-10-31 30424, 2022

      • monkey
        OK, will try, thanks lucifer.
      • 2022-10-31 30427, 2022

      • alastairp
        great
      • 2022-10-31 30430, 2022

      • lucifer
        alastairp: yeah, it had taken some back and forth but i was able to get ms precision timestamps last time.
      • 2022-10-31 30437, 2022

      • alastairp
        lucifer: oh! wow!
      • 2022-10-31 30446, 2022

      • alastairp
        and you're not even from europe :)
      • 2022-10-31 30403, 2022

      • monkey
        Alternatively, I might just sort the playback history and try to import all the ones that are before my first LB listen
      • 2022-10-31 30414, 2022

      • lucifer
      • 2022-10-31 30425, 2022

      • lucifer
        this is the exact email i had sent.
      • 2022-10-31 30432, 2022

      • lucifer
        alastairp: spotify needn't know that :)
      • 2022-10-31 30436, 2022

      • monkey
        Thanks
      • 2022-10-31 30426, 2022

      • lucifer
        oh i sent this first email to privacy@spotify.com not support. rest of comms were with support.
      • 2022-10-31 30411, 2022

      • chinmay
        alastairp: using linux, yeah
      • 2022-10-31 30451, 2022

      • chinmay
        lucifer: monkey: removing listenbrainz/webserver/static/dist worked
      • 2022-10-31 30419, 2022

      • outsidecontext
        took me quite a while to figure out that Picard Windows code signing was failing because MBs US address has changed :( Assumed it is me too stupid to use openssl properly
      • 2022-10-31 30439, 2022

      • outsidecontext
        hurray for cryptical error codes instead of human readable messages
      • 2022-10-31 30448, 2022

      • mayhem
        ohhh, that sucks.
      • 2022-10-31 30407, 2022

      • mayhem
        and on top of that, our address has to change again, since our mail forwarding company moved. 🤦
      • 2022-10-31 30455, 2022

      • outsidecontext
        ha :) but the certificate is done now and valid for a while. the problem here was just that for the windows app package you need to set the publisher, and that must match the certificates subject. but publisher was hard coded
      • 2022-10-31 30401, 2022

      • mayhem
        monkey: played 8 tracks without stopping!
      • 2022-10-31 30416, 2022

      • monkey
        Gosh, the bar really is low !
      • 2022-10-31 30431, 2022

      • monkey
        And I am definitely seeing working token refreshing, so I think that's that particular problem solved ! W00t!
      • 2022-10-31 30445, 2022

      • mayhem
        alastairp: https://api.listenbrainz.org/metadata/recording/?… this 410 Gone redirect so that people can't use the API calls on lb.org (instead must use api.lb.org) -- is that managed from the gateway, do you remember?
      • 2022-10-31 30417, 2022

      • alastairp
        yes, it's on the gateway
      • 2022-10-31 30418, 2022

      • mayhem
        zas: ^^ if you're around.
      • 2022-10-31 30430, 2022

      • lucifer
      • 2022-10-31 30438, 2022

      • lucifer
        the /1
      • 2022-10-31 30449, 2022

      • alastairp
        ah
      • 2022-10-31 30459, 2022

      • mayhem
        lucifer: yes. I just wanted to remember where and how we did the 410 Gone tricl.
      • 2022-10-31 30405, 2022

      • lucifer
        ah ok
      • 2022-10-31 30410, 2022

      • mayhem
        trick. since art.lb.org needs the same trick done.
      • 2022-10-31 30448, 2022

      • lucifer
      • 2022-10-31 30459, 2022

      • alastairp
        I just found that too :)
      • 2022-10-31 30400, 2022

      • mayhem
        thanks. :)
      • 2022-10-31 30427, 2022

      • monkey
        Looks like it's not just me being a little slow with the spotify SDK token refresh thing. Their own example application gives bad advice as to how to set the player up: https://github.com/spotify/spotify-web-playback-s…
      • 2022-10-31 30432, 2022

      • mayhem
        damnit. player stopped. network tab not open.
      • 2022-10-31 30414, 2022

      • mayhem
        lucifer: not for LB#2226, but a later one.... I think for the similarity stuff we should exclude the seed artist_credit from the similar recordings
      • 2022-10-31 30415, 2022

      • BrainzBot
      • 2022-10-31 30454, 2022

      • mayhem
        because we're getting a lot of hits for the same artist that I just filter out -- invariably they are the other tracks from the source album.
      • 2022-10-31 30442, 2022

      • mayhem
        monkey: do you want the HAR file if the player fails to move on the next tracks after I pressed the Next button?
      • 2022-10-31 30435, 2022

      • monkey
        Yes, with the indication of both tracks please (the one you were listening to and the 'next' track)
      • 2022-10-31 30458, 2022

      • mayhem
      • 2022-10-31 30417, 2022

      • mayhem
        from Acid fro Nothing (I wish!) to .Blank
      • 2022-10-31 30451, 2022

      • mayhem
        never mind me. I'm a total dumbass.
      • 2022-10-31 30451, 2022

      • darkstardevx has quit
      • 2022-10-31 30403, 2022

      • mayhem
        not on test.lb.org :facepalm:
      • 2022-10-31 30411, 2022

      • monkey
        Hah! I almost asked but thought better of it.
      • 2022-10-31 30436, 2022

      • darkstardevx joined the channel
      • 2022-10-31 30448, 2022

      • darkstardevx has quit
      • 2022-10-31 30412, 2022

      • darkstardevx joined the channel
      • 2022-10-31 30430, 2022

      • zas
        mayhem: pong, what is it needed exactly?
      • 2022-10-31 30400, 2022

      • mayhem
      • 2022-10-31 30458, 2022

      • mayhem
        this commit implements an exclusion so that people who try to make an API request off listenbrainz.org (and not api.listenbrainz.org) are given the error message and the 410 error.
      • 2022-10-31 30430, 2022

      • mayhem
        we want to do the same for the new cover art page: art.listenbrainz.org
      • 2022-10-31 30450, 2022

      • zas
        ok, let me see
      • 2022-10-31 30453, 2022

      • mayhem
        so any user that tries to use listenbrainz.org/art should get a 410 telling them to go to art.listenbrainz.org
      • 2022-10-31 30420, 2022

      • mayhem
      • 2022-10-31 30435, 2022

      • mayhem
        thx
      • 2022-10-31 30422, 2022

      • zas
        actually the patch you linked tell people using api.listenbrainz with /<number>/ to use listenbrainz.org
      • 2022-10-31 30417, 2022

      • mayhem
        this is what I mean:
      • 2022-10-31 30418, 2022

      • mayhem
      • 2022-10-31 30420, 2022

      • zas
        but there's another one
      • 2022-10-31 30432, 2022

      • mayhem
      • 2022-10-31 30456, 2022

      • mayhem
        k
      • 2022-10-31 30423, 2022

      • mayhem
        we should probably setup the 2 equivalents for the art case.
      • 2022-10-31 30428, 2022

      • zas
      • 2022-10-31 30452, 2022

      • mayhem nods
      • 2022-10-31 30405, 2022

      • zas
        art.listenbrainz.org isn't configured on gateways
      • 2022-10-31 30417, 2022

      • zas
        it points directly to wolf atm
      • 2022-10-31 30417, 2022

      • mayhem
        correct. once we are ready to deploy this PR we will move it to gateways.
      • 2022-10-31 30432, 2022

      • zas
        it would be easier to do the reverse, because I need names (like prod.listenbrainz-web), the rest is basically a copy'n'paste. Do you know which target names it will use on prod?
      • 2022-10-31 30457, 2022

      • mayhem
        kiss, I would expect.
      • 2022-10-31 30421, 2022

      • zas
        yes, but which container?
      • 2022-10-31 30422, 2022

      • mayhem
        should we do this after we deploy this PR and move the DNS entry?
      • 2022-10-31 30439, 2022

      • mayhem
        one sec.
      • 2022-10-31 30446, 2022

      • zas
        it will be easier for sure, as is it would be hard to test
      • 2022-10-31 30401, 2022

      • mayhem
        ok, I'll come back to you when we deploy this.
      • 2022-10-31 30401, 2022

      • zas
        (since files will not be used until target containers are up)
      • 2022-10-31 30421, 2022

      • mayhem
        but it will be listenbrainz-art-{test|beta|prod}
      • 2022-10-31 30422, 2022

      • zas
        the rest is basically a copy'n'paste of what we have for LB
      • 2022-10-31 30426, 2022

      • mayhem
        ok, cool.
      • 2022-10-31 30427, 2022

      • mayhem
        thanks!
      • 2022-10-31 30434, 2022

      • zas
        I'd recommend to stick to (prod|beta|test).service
      • 2022-10-31 30402, 2022

      • zas
        maybe prod.listenbrainz-art ?
      • 2022-10-31 30422, 2022

      • mayhem
        yes, since what the gateway uses is slightly different than the actual container names.
      • 2022-10-31 30433, 2022

      • mayhem
      • 2022-10-31 30414, 2022

      • zas
        yvanzo: can you check sir?
      • 2022-10-31 30447, 2022

      • lucifer
        mayhem: i guess we can add a flag for that filtering? or should we do it always
      • 2022-10-31 30458, 2022

      • yvanzo
        zas: on it
      • 2022-10-31 30415, 2022

      • yvanzo
        zas: all good
      • 2022-10-31 30401, 2022

      • lucifer
        yvanzo: thanks for the logs, i'll look into it. btw is this a blocker for doing a new releaes?
      • 2022-10-31 30457, 2022

      • yvanzo
        lucifer: yes
      • 2022-10-31 30424, 2022

      • lucifer
        ah ok 👍
      • 2022-10-31 30452, 2022

      • lucifer
        yvanzo: from a quick search of the db error message, it seems benign. and debug logs of sir do not seem to indicate any issues either? did it crash or completed normally?
      • 2022-10-31 30403, 2022

      • lucifer
      • 2022-10-31 30416, 2022

      • yvanzo
        it doesn't complete at all
      • 2022-10-31 30441, 2022

      • lucifer
        i see
      • 2022-10-31 30457, 2022

      • yvanzo
        I mean it doesn’t return but events seem to be all processed.
      • 2022-10-31 30450, 2022

      • lucifer
        hmm, weird indeed. and it only happens for events?
      • 2022-10-31 30409, 2022

      • yvanzo
        no, I mentioned it can happen for some others.
      • 2022-10-31 30424, 2022

      • yvanzo
        events, release groups, urls...
      • 2022-10-31 30429, 2022

      • lucifer
        oh ok.
      • 2022-10-31 30421, 2022

      • yvanzo
        it seems that Postgres log lines more or less match loading relationship in SIR debug.
      • 2022-10-31 30433, 2022

      • lucifer
        the PG log lines seem unrelated to me. my intuition is that some thing related to multi processing is hanging up but could be wrong. i'll try to reproduce the issue and see if i can fix it.
      • 2022-10-31 30454, 2022

      • CatQuest
        ..
      • 2022-10-31 30442, 2022

      • mayhem
        lucifer: do it always. I can't see how that data is any good.
      • 2022-10-31 30423, 2022

      • lucifer
        i see. we could also try doing it on spark level then?
      • 2022-10-31 30429, 2022

      • mayhem
        spark level would be best.
      • 2022-10-31 30445, 2022

      • lucifer
        cool, will do
      • 2022-10-31 30447, 2022

      • mayhem
        there is no need to move those lines around, they are useless.
      • 2022-10-31 30436, 2022

      • mayhem
        and can you please run the following 4 days sets for me? d 1095, s 100, t 5; d 730, s 100, t 5; d 1095, s 200, t 5; d 730, s 200, t 5;
      • 2022-10-31 30453, 2022

      • lucifer
        sure
      • 2022-10-31 30404, 2022

      • mayhem
        th
      • 2022-10-31 30406, 2022

      • mayhem
        x
      • 2022-10-31 30434, 2022

      • mayhem
        time to see what the session does. I keep getting 2-3 tracks of heavy metal in this test playlists. when it doesn't belong.
      • 2022-10-31 30433, 2022

      • darkstardevx has quit
      • 2022-10-31 30447, 2022

      • darkstardevx joined the channel
      • 2022-10-31 30411, 2022

      • yvanzo
        zas: It seems that SIR is 10x slower than usually but I cannot explain why atm.
      • 2022-10-31 30426, 2022

      • yvanzo
        (Restarting it didn’t help either.)
      • 2022-10-31 30448, 2022

      • atj
        just 10x?
      • 2022-10-31 30456, 2022

      • yvanzo
        atj: Actually more 8x or 9x but I round it up.
      • 2022-10-31 30414, 2022

      • atj
        when did this start, do you know?
      • 2022-10-31 30420, 2022

      • atj
        roughly
      • 2022-10-31 30459, 2022

      • yvanzo
        atj: 14:50
      • 2022-10-31 30418, 2022

      • yvanzo
        +-2min
      • 2022-10-31 30409, 2022

      • CatQuest
        mayhem: heavy metal always belong
      • 2022-10-31 30410, 2022

      • Freso
        Oh, btw. Meeting is in ~7 minutes for anyone who doesn’t follow EU DST. bitmap, akshaaatt, lucifer, CatQuest, Pratha-Fish, Shubh, yellowhatpro, ansh, riksucks, … uh… and anyone else I may have missed.
      • 2022-10-31 30411, 2022

      • yvanzo
        atj: GMT/UTC