#metabrainz

/

      • shivam-kapila has quit
      • 2020-04-23 11416, 2020

      • rohitdandamudi has quit
      • 2020-04-23 11413, 2020

      • Nyanko-sensei has quit
      • 2020-04-23 11447, 2020

      • Nyanko-sensei joined the channel
      • 2020-04-23 11443, 2020

      • Chinmay3199 has quit
      • 2020-04-23 11453, 2020

      • supersandro20004 joined the channel
      • 2020-04-23 11435, 2020

      • supersandro2000 has quit
      • 2020-04-23 11404, 2020

      • D4RK-PH0ENiX has quit
      • 2020-04-23 11433, 2020

      • urluck_ joined the channel
      • 2020-04-23 11433, 2020

      • urluck has quit
      • 2020-04-23 11405, 2020

      • urluck_ is now known as urluck
      • 2020-04-23 11456, 2020

      • yvanzo has quit
      • 2020-04-23 11402, 2020

      • yvanzo joined the channel
      • 2020-04-23 11418, 2020

      • yvanzo has quit
      • 2020-04-23 11428, 2020

      • yvanzo joined the channel
      • 2020-04-23 11427, 2020

      • reosarevok
        bitmap: I was away, but yes, go ahead and let's see what happens?
      • 2020-04-23 11450, 2020

      • reosarevok
        Freso: Sorry! See you found it :)
      • 2020-04-23 11402, 2020

      • BrainzGit
        [musicbrainz-server] mwiencek merged pull request #1475 (master…csrf): MBS-10717, MBS-10778: Set SameSite=None on session cookie and add CSRF tokens to user/admin forms https://github.com/metabrainz/musicbrainz-server/…
      • 2020-04-23 11403, 2020

      • BrainzBot
        MBS-10717: Adjust cookie attributes for new behavior in browsers https://tickets.metabrainz.org/browse/MBS-10717
      • 2020-04-23 11403, 2020

      • BrainzBot
        MBS-10778: User/admin forms are prone to CSRF attacks https://tickets.metabrainz.org/browse/MBS-10778
      • 2020-04-23 11428, 2020

      • bitmap
        updating the beta.mb containers
      • 2020-04-23 11452, 2020

      • v6lur joined the channel
      • 2020-04-23 11445, 2020

      • yvanzo
        bitmap: thanks!
      • 2020-04-23 11447, 2020

      • CatQuest has quit
      • 2020-04-23 11433, 2020

      • CatQuest joined the channel
      • 2020-04-23 11433, 2020

      • CatQuest has quit
      • 2020-04-23 11433, 2020

      • CatQuest joined the channel
      • 2020-04-23 11450, 2020

      • rohitdandamudi joined the channel
      • 2020-04-23 11421, 2020

      • shivam-kapila joined the channel
      • 2020-04-23 11423, 2020

      • yvanzo
        bitmap: which command did you use for https://github.com/metabrainz/musicbrainz-server/… ?
      • 2020-04-23 11406, 2020

      • yvanzo
        we may need to pass option --pure-lockfile to yarn now, otherwise it will revert these changes on build
      • 2020-04-23 11457, 2020

      • Zastai joined the channel
      • 2020-04-23 11428, 2020

      • Chinmay3199 joined the channel
      • 2020-04-23 11402, 2020

      • Gazooo has quit
      • 2020-04-23 11452, 2020

      • Gazooo joined the channel
      • 2020-04-23 11412, 2020

      • Cyna
        Mr_Monkey: I wont be working much today.. have to go off to complete some work
      • 2020-04-23 11416, 2020

      • Mr_Monkey
        🔥
      • 2020-04-23 11430, 2020

      • ruaok
      • 2020-04-23 11430, 2020

      • Mr_Monkey
        Good luck with work !
      • 2020-04-23 11433, 2020

      • ruaok
        mooooin!
      • 2020-04-23 11454, 2020

      • shivam-kapila
        That meme has memories 🤣
      • 2020-04-23 11409, 2020

      • shivam-kapila
        Morning!!
      • 2020-04-23 11420, 2020

      • sumedh joined the channel
      • 2020-04-23 11423, 2020

      • yvanzo
        alastairp, Mr_Monkey, Zastai: are you using either docker toolbox or docker desktop on windows? do you run it from scripts?
      • 2020-04-23 11442, 2020

      • Mr_Monkey
        Negative.
      • 2020-04-23 11406, 2020

      • yvanzo
        most of our repos (AB, BB, LB, MB) have bash scripts running docker commands.
      • 2020-04-23 11425, 2020

      • yvanzo
        I wonder if these scripts can be used on Windows at all.
      • 2020-04-23 11406, 2020

      • Mr_Monkey
        I've used it before a couple of years ago and hated the whole experience. Not certain about bash scripts, but some contributors have had issues with develop.sh on windows (for BookBrainz)
      • 2020-04-23 11413, 2020

      • yvanzo
        it seems that (old) docker toolbox can be used with mingw64: https://github.com/metabrainz/musicbrainz-docker/…
      • 2020-04-23 11426, 2020

      • Zastai
        I use VirtualBox on Windows, so can't use the current Docker for Windows. I only run docker inside a Debian VirtualBox vm, for listenbrainz
      • 2020-04-23 11457, 2020

      • yvanzo
        and (new) docker desktop could be used with WSL: https://blog.jayway.com/2017/04/19/running-docker…
      • 2020-04-23 11433, 2020

      • Zastai
        depends on how fancy they are. Git-Bash may be able to use them, if the relevant tools are on the path
      • 2020-04-23 11403, 2020

      • Zastai
        and if you are doing Brainz work, chances are you have Git-Bash installed already
      • 2020-04-23 11451, 2020

      • shivam-kapila
        ishaanshah[m]: My condolences are with you 😜
      • 2020-04-23 11419, 2020

      • Mr_Monkey
        There are also other projects that add bash-like behavior on windows like https://www.cygwin.com/
      • 2020-04-23 11442, 2020

      • Mr_Monkey
        And on Windows 10, there's the Linux subsystem: https://www.howtogeek.com/249966/how-to-install-a…
      • 2020-04-23 11418, 2020

      • yvanzo
        Simple commands like "docker-compose exec musicbrainz /createdb.sh" already needs to be changed because Git Bash changes paths automatically.
      • 2020-04-23 11419, 2020

      • Mr_Monkey
        Also may be worth trying with PowerShell?
      • 2020-04-23 11449, 2020

      • yvanzo
        with escaped path: "docker-compose exec musicbrainz //createdb.sh"
      • 2020-04-23 11432, 2020

      • yvanzo
        it might be solved using "MSYS_NO_PATHCONV=1"
      • 2020-04-23 11447, 2020

      • yvanzo
        sometimes 'winpty' command is needed as a prefix
      • 2020-04-23 11412, 2020

      • yvanzo
        Mr_Monkey: wouldn't that require even more specific instructions?
      • 2020-04-23 11442, 2020

      • Mr_Monkey
        PS or Linux subsystem?
      • 2020-04-23 11456, 2020

      • yvanzo
        that is WSL?
      • 2020-04-23 11402, 2020

      • Mr_Monkey
        Yes, but if you end up with as close as possible to linux bash, which is definitely a plus, and not just for using docker
      • 2020-04-23 11406, 2020

      • Mr_Monkey
        IMO
      • 2020-04-23 11408, 2020

      • Mr_Monkey
      • 2020-04-23 11440, 2020

      • yvanzo
        It seems to be possible to setup Git Bash to work nicely with Docker for Windows, but I don't use this system anyway.
      • 2020-04-23 11447, 2020

      • shivam-kapila
        The new windows terminal supports linux type terminal
      • 2020-04-23 11412, 2020

      • yvanzo
        Since there were scripts for running docker in other repos, I was hoping someone found a fine setup already :)
      • 2020-04-23 11430, 2020

      • yvanzo
        Would you just recommend using VirtualBox/Ubuntu instead?
      • 2020-04-23 11411, 2020

      • yvanzo
        (That seems much more simple but might be overkill, dunno.)
      • 2020-04-23 11426, 2020

      • shivam-kapila
        yvanzo: Tried the ubuntu app available on windows app store??
      • 2020-04-23 11402, 2020

      • yvanzo
        shivam-kapila: thanks but again, I’m not using Windows.
      • 2020-04-23 11414, 2020

      • Mr_Monkey
        I thinkt he first and easiest step is to try with PowerShell, since it likely comes pre-installed. If that fails and user is on win10, using WSL is probably second best. VM is slower and trickier in my opinion
      • 2020-04-23 11422, 2020

      • shivam-kapila
        Ah ok.
      • 2020-04-23 11435, 2020

      • BestSteve has quit
      • 2020-04-23 11444, 2020

      • yvanzo
        Mr_Monkey: Powershell can launch bash scripts?
      • 2020-04-23 11402, 2020

      • Mr_Monkey
        I'm hazy on that, but it's supposed to have better support yes
      • 2020-04-23 11402, 2020

      • BestSteve joined the channel
      • 2020-04-23 11413, 2020

      • Mr_Monkey
        (I'm not on Windows, so it's all hearsay :) )
      • 2020-04-23 11454, 2020

      • ruaok
        yvanzo: ./rabbitmqadmin --username ruaok --password [pwd] -P 65414 -V /listenbrainz delete queue name=ts_incoming
      • 2020-04-23 11411, 2020

      • ruaok
        that finally worked after I added the administrator tag to the ruaok account.
      • 2020-04-23 11454, 2020

      • ruaok
        with : `rabbitmqctl set_user_tags ruaok administrator` from inside the container.
      • 2020-04-23 11440, 2020

      • sumedh has quit
      • 2020-04-23 11435, 2020

      • BrainzGit
        [musicbrainz-docker] yvanzo opened pull request #133 (mbvm-38-dev…msys): [WIP] Trying to add support Windows as Docker host https://github.com/metabrainz/musicbrainz-docker/…
      • 2020-04-23 11409, 2020

      • yvanzo
        Mr_Monkey, shivam-kapila, Zastai: thanks.
      • 2020-04-23 11432, 2020

      • shivam-kapila
        :)
      • 2020-04-23 11451, 2020

      • zas
        I'll reboot herb, switch gateway to it after, reboot kiki, switch back, applying upgrades and changes to openresty stuff
      • 2020-04-23 11402, 2020

      • alastairp
        yvanzo: no, I don't use windows with docker, and it hadn't really come up as necessary for AB yet
      • 2020-04-23 11424, 2020

      • alastairp
        of course, everything that you can do with our develop.sh you can do with just docker-compose commands, but it's a bit more work
      • 2020-04-23 11459, 2020

      • ruaok
        iliekcomputers: sentry issues are mine, working to setup test.lb.org -plz ignore
      • 2020-04-23 11422, 2020

      • iliekcomputers
        🎊🎊
      • 2020-04-23 11450, 2020

      • iliekcomputers
        Setting up test.lb for client devs was a feature request in jira
      • 2020-04-23 11401, 2020

      • iliekcomputers
        Nice that we got to it with this :D
      • 2020-04-23 11446, 2020

      • BrainzGit has quit
      • 2020-04-23 11402, 2020

      • BrainzGit joined the channel
      • 2020-04-23 11403, 2020

      • BestSteve has quit
      • 2020-04-23 11418, 2020

      • BestSteve joined the channel
      • 2020-04-23 11442, 2020

      • yvanzo
        alastairp: yup, that is the same for MB, maybe it's even more work because it uses more containers for Solr search.
      • 2020-04-23 11453, 2020

      • yvanzo
        The point of develop.sh and such scripts is to make setup easy for newcomers, so IMHO we should just recommend using VirtualBox/Ubuntu as host to Docker novices using Windows.
      • 2020-04-23 11459, 2020

      • yvanzo
      • 2020-04-23 11454, 2020

      • iliekcomputers
        yvanzo: i think recommending Ubuntu as a VM makes sense too
      • 2020-04-23 11433, 2020

      • iliekcomputers
        most of our stuff is geared towards linux and i don't think there is much motivation to spend time keeping windows compatibility
      • 2020-04-23 11455, 2020

      • supersandro20004 has quit
      • 2020-04-23 11457, 2020

      • zas
        I can't find what's wrong with lb LE cert renewal, still nothing in logs, I'll try to clean redis storage (in fact, enforce a prefix to related keys to force autossl to rewrite them)
      • 2020-04-23 11417, 2020

      • supersandro2000 joined the channel
      • 2020-04-23 11419, 2020

      • ruaok
        zas: :(
      • 2020-04-23 11435, 2020

      • ruaok
        zas: remind me, how can I find out what services are currently defined in consul ?
      • 2020-04-23 11450, 2020

      • ruaok
        in particular is `listenbrainz-timescale` up right now?
      • 2020-04-23 11431, 2020

      • yvanzo
        iliekcomputers: Yup, if was hoping it would be simpler than it is. That compatibility should be added by someone actually using it, and we don't.
      • 2020-04-23 11425, 2020

      • alastairp
        yvanzo: in what situations do people have to do more than "docker-compose up" ?
      • 2020-04-23 11404, 2020

      • zas
        ruaok: you can use the consul http api: https://www.consul.io/api/catalog.html
      • 2020-04-23 11416, 2020

      • alastairp
        for example, your example of /createdb could be solved by adding an entrypoint to that container which allows you to run that command
      • 2020-04-23 11452, 2020

      • zas
      • 2020-04-23 11408, 2020

      • ruaok
        hah, I just constructed that url. thanks!
      • 2020-04-23 11421, 2020

      • zas
      • 2020-04-23 11426, 2020

      • zas
        will give you details
      • 2020-04-23 11459, 2020

      • ruaok
        hmm. not the service name I was expecting. that would be the problem.
      • 2020-04-23 11428, 2020

      • ruaok
        to provide the service name, you need to define SERVICE_{port}_NAME env var, yes?
      • 2020-04-23 11410, 2020

      • ruaok
        > "listenbrainz-timescale" : [],
      • 2020-04-23 11414, 2020

      • ruaok
        much better.
      • 2020-04-23 11422, 2020

      • yvanzo
        alastairp: yes, probably many of these scripts could be replaced with docker environment, not sure.
      • 2020-04-23 11442, 2020

      • yvanzo
        for example, enabling/disabling replication and live indexing.
      • 2020-04-23 11451, 2020

      • yvanzo
        also reindexing search, and installing db triggers for live indexing.
      • 2020-04-23 11402, 2020

      • yvanzo
        but that would probably not handy either: editing .env, running docker-compose up, editing .env, ...
      • 2020-04-23 11434, 2020

      • yvanzo
        /createdb.sh has options depending on which data you want to install.
      • 2020-04-23 11449, 2020

      • alastairp
        right, but my intution is that there's a format that we could structure this command to not require a /, for example
      • 2020-04-23 11450, 2020

      • alastairp
        having said that, my point of view is that musicbrainz is a complex piece of software which requires specific configuration. I don't think it's unreasonable to expect people to make specific changes to files depending on their requirements
      • 2020-04-23 11435, 2020

      • yvanzo
        Maintaining a patch over a repo can be a PITA, musicbrainz-docker tries to prevent that to be needed as much as possible (via .env file and local/ dir).
      • 2020-04-23 11412, 2020

      • yvanzo
        But supporting Windows can only be contributed by someone actually using it and having a strong motivation for it.
      • 2020-04-23 11456, 2020

      • alastairp
        yes, agreed
      • 2020-04-23 11424, 2020

      • alastairp
        but if we supported this for linux, it'd be equal on windows (one hopes)
      • 2020-04-23 11438, 2020

      • ruaok
        ha clever.
      • 2020-04-23 11450, 2020

      • ptitjano_ has quit
      • 2020-04-23 11409, 2020

      • ptitjano joined the channel
      • 2020-04-23 11443, 2020

      • ruaok
        grrr. messybrainz is a separate repo. iliekcomputers +1 to your proposal.
      • 2020-04-23 11449, 2020

      • shivam-kapila
        Anything stuck?
      • 2020-04-23 11405, 2020

      • ruaok
        not stuck, just tedious as hell. :)
      • 2020-04-23 11425, 2020

      • ruaok
        I've been working 4 hours on getting the server up and running. lol.
      • 2020-04-23 11417, 2020

      • shivam-kapila
        Oh. Thats quite much.
      • 2020-04-23 11412, 2020

      • ruaok
        yeah, I'm also doing three separate projects at the same time, so not unexpected.
      • 2020-04-23 11446, 2020

      • shivam-kapila
        Wow. Multitasking 😶
      • 2020-04-23 11454, 2020

      • ruaok
        no choice.
      • 2020-04-23 11403, 2020

      • shivam-kapila
        Hard lyf :)
      • 2020-04-23 11445, 2020

      • iliekcomputers
        monorepos are amazing tbh
      • 2020-04-23 11400, 2020

      • ruaok
        Google has ONE.
      • 2020-04-23 11408, 2020

      • iliekcomputers
        yeah
      • 2020-04-23 11418, 2020

      • ruaok
        and when I started looking at the BB project with its... 6? gah! hell.
      • 2020-04-23 11418, 2020

      • BrainzGit has quit