#metabrainz

/

      • alastairp
        right, that's not bad
      • 2017-03-10 06924, 2017

      • rahulr has quit
      • 2017-03-10 06926, 2017

      • alastairp
        just from our point of view, students who try and do 2 things never come out well
      • 2017-03-10 06937, 2017

      • iliekcomputers has quit
      • 2017-03-10 06952, 2017

      • samj1912
        basically may 1st - june 15 for 6 weeks :)
      • 2017-03-10 06953, 2017

      • alastairp
        which is why we explicitly ask in the proposal (people won't tell us without us asking)
      • 2017-03-10 06921, 2017

      • rahulr joined the channel
      • 2017-03-10 06921, 2017

      • rahulr has quit
      • 2017-03-10 06921, 2017

      • rahulr joined the channel
      • 2017-03-10 06930, 2017

      • samj1912
        yeah, I had already taken that into consideration which is why I have already had a head start on my gsoc proposal
      • 2017-03-10 06953, 2017

      • samj1912
      • 2017-03-10 06956, 2017

      • iliekcomputers joined the channel
      • 2017-03-10 06909, 2017

      • samj1912
        already completed a part of it for the first ~15ish days id be missing out on
      • 2017-03-10 06924, 2017

      • samj1912
        in case I miss out :P
      • 2017-03-10 06933, 2017

      • samj1912
        I am pretty sure I will manage :)
      • 2017-03-10 06900, 2017

      • hibiscuskazeneko has quit
      • 2017-03-10 06934, 2017

      • agemcipe has quit
      • 2017-03-10 06908, 2017

      • samj1912
        zas: I am thinking about targetting qt5.6
      • 2017-03-10 06913, 2017

      • samj1912
        is that fine?
      • 2017-03-10 06939, 2017

      • samj1912
        if we go below that, I will have to change the implementation details for high dpi stuff
      • 2017-03-10 06911, 2017

      • samj1912
        since 5.6 had a drastically different high dpi implementation than 5.4
      • 2017-03-10 06953, 2017

      • zas
        Yes, i agree.
      • 2017-03-10 06927, 2017

      • samj1912
        also I am not sure about the py3 version
      • 2017-03-10 06958, 2017

      • zas
        We need to check which versions are provided for widely used systems
      • 2017-03-10 06920, 2017

      • zas
        You can perhaps add this as part of the proposal
      • 2017-03-10 06937, 2017

      • samj1912
        py3.4 seems more universal, however from my earlier convos with sampsyo about beets porting to py3, he said he encountered issues with 3.4 but they were solved by 3.6
      • 2017-03-10 06915, 2017

      • samj1912
        point to be taken under consideration is we have qt to handle more of the heavy lifting wrt to paths and all
      • 2017-03-10 06924, 2017

      • samj1912
        which beets had to do on its own
      • 2017-03-10 06933, 2017

      • samj1912
        s/paths/file paths
      • 2017-03-10 06950, 2017

      • zas
        We can always add conditionnals and implement compatibility layers, if needed, but i would target qt5.6 + py3.6 for GSoC
      • 2017-03-10 06926, 2017

      • samj1912
        hmm okay, I will add a bit of research period to my proposal to find the appropriate target version for python
      • 2017-03-10 06935, 2017

      • zas
        yes, please
      • 2017-03-10 06902, 2017

      • agentsim has quit
      • 2017-03-10 06922, 2017

      • samj1912
        my current qt port is based on qt 5.6.1
      • 2017-03-10 06946, 2017

      • zas
        1.4.x versions of Picard will be still around for a while for people using systems where 2.0 requirements aren't met
      • 2017-03-10 06901, 2017

      • samj1912
        cool :)
      • 2017-03-10 06901, 2017

      • zas
        but we need to focus on future, not on past ;)
      • 2017-03-10 06959, 2017

      • samj1912
        yes
      • 2017-03-10 06951, 2017

      • amanmehta joined the channel
      • 2017-03-10 06930, 2017

      • agentsim joined the channel
      • 2017-03-10 06908, 2017

      • agentsim has quit
      • 2017-03-10 06930, 2017

      • ruaok
        zas, quick question: this file contains all of my config bits to fill into the template.
      • 2017-03-10 06932, 2017

      • ruaok
      • 2017-03-10 06943, 2017

      • ruaok
        but, where and how do I tell consul to use that file?
      • 2017-03-10 06953, 2017

      • ruaok
        oh meh. wikibot needs a replicated DB. no one mentioned that.
      • 2017-03-10 06903, 2017

      • ruaok
        that makes the requirements quite a bit larger.
      • 2017-03-10 06946, 2017

      • Leo_Verto[m]
        oh
      • 2017-03-10 06951, 2017

      • Leo_Verto[m]
        well that'd explain the psycopg2 requirement
      • 2017-03-10 06929, 2017

      • UmkaDK_ has quit
      • 2017-03-10 06938, 2017

      • ruaok
        packaging it into a docker container and connecting to the main db would be easier/cheaper.
      • 2017-03-10 06950, 2017

      • Leo_Verto[m]
        Mhm
      • 2017-03-10 06926, 2017

      • UmkaDK joined the channel
      • 2017-03-10 06948, 2017

      • zas
        ruaok: this json file will be processed by git2consul, so the values will be available through consul KV
      • 2017-03-10 06903, 2017

      • zas
        for an example of template using such keys/values, see https://github.com/metabrainz/metabrainz.org/blob…
      • 2017-03-10 06918, 2017

      • ruaok
        yeah, I've got that.
      • 2017-03-10 06929, 2017

      • ruaok
        but how do I load the .json file into consul?
      • 2017-03-10 06940, 2017

      • kyan has quit
      • 2017-03-10 06922, 2017

      • zas
        it is magic ;) git2consul is running on kiki, and it should update. But i just tested and something didn't work...
      • 2017-03-10 06941, 2017

      • zas
        ah
      • 2017-03-10 06941, 2017

      • Leo_Verto[m]
        for dockerizing MeB-related stuff, should I use the consul-template and python images?
      • 2017-03-10 06952, 2017

      • zas
        you have it in a branch, not in master
      • 2017-03-10 06954, 2017

      • ruaok
        ah, that means I need to deploy on kiki?
      • 2017-03-10 06957, 2017

      • ruaok
        yes.
      • 2017-03-10 06910, 2017

      • zas
        just merge your changes
      • 2017-03-10 06918, 2017

      • ruaok
        wanna review them real quick?
      • 2017-03-10 06930, 2017

      • zas
        and git2consul will update kv store
      • 2017-03-10 06941, 2017

      • ruaok
        I can make a PR...
      • 2017-03-10 06949, 2017

      • zas
        yes, please do, easier to review
      • 2017-03-10 06952, 2017

      • ruaok
        k
      • 2017-03-10 06943, 2017

      • IRC-Source_91652 joined the channel
      • 2017-03-10 06912, 2017

      • ruaok
      • 2017-03-10 06917, 2017

      • IRC-Source_91652 has quit
      • 2017-03-10 06921, 2017

      • zas
        I think it is ok, let's merge it just to test kv store
      • 2017-03-10 06956, 2017

      • zas
        ok?
      • 2017-03-10 06904, 2017

      • ruaok
        k
      • 2017-03-10 06926, 2017

      • ruaok
        merged.
      • 2017-03-10 06931, 2017

      • zas
        git2consul should pick the file soon
      • 2017-03-10 06955, 2017

      • zas
      • 2017-03-10 06901, 2017

      • ruaok
        ha, we merged at the same time
      • 2017-03-10 06905, 2017

      • zas
        should show you stuff now
      • 2017-03-10 06915, 2017

      • ruaok
        it does. :)
      • 2017-03-10 06937, 2017

      • zas
        So you have access to keys & values, to be used in your template
      • 2017-03-10 06906, 2017

      • ruaok
        wooooo!
      • 2017-03-10 06924, 2017

      • ruaok
        q
      • 2017-03-10 06959, 2017

      • zas
        curl -v http://10.2.2.26:8500/v1/kv/docker-server-configs… should work, the whole key is "docker-server-configs/LB/config.prod.json/alpha_url"
      • 2017-03-10 06913, 2017

      • ruaok
        yeah, my config file gets fill out ok.
      • 2017-03-10 06931, 2017

      • ruaok
        let me get DNS going and add the site to the gateways.
      • 2017-03-10 06921, 2017

      • zas
        to add the site to gateways, just edit https://github.com/metabrainz/docker-server-confi…, but be careful with typos
      • 2017-03-10 06934, 2017

      • zas
        any error in this file can end badly ;)
      • 2017-03-10 06945, 2017

      • ruaok
        and that will use LE, right?
      • 2017-03-10 06958, 2017

      • zas
        yes, depending on your options
      • 2017-03-10 06915, 2017

      • zas
      • 2017-03-10 06931, 2017

      • zas
        that's uwsgi ?
      • 2017-03-10 06948, 2017

      • ruaok
        ya
      • 2017-03-10 06940, 2017

      • zas
        for LE certs, use "https": "auto",
      • 2017-03-10 06900, 2017

      • zas
        for uwsgi, use "proto": "uwsgi",
      • 2017-03-10 06935, 2017

      • zas
        if you want http to https redirect, use "http": "redirect",
      • 2017-03-10 06953, 2017

      • ruaok
      • 2017-03-10 06954, 2017

      • ruaok
        ?
      • 2017-03-10 06941, 2017

      • zas
        looks ok
      • 2017-03-10 06957, 2017

      • zas
        don't forget commas ;)
      • 2017-03-10 06941, 2017

      • ruaok
      • 2017-03-10 06909, 2017

      • zas
        it should work ;)
      • 2017-03-10 06957, 2017

      • zas
        once your backend is running of course
      • 2017-03-10 06927, 2017

      • ruaok
        backend us up.
      • 2017-03-10 06934, 2017

      • ruaok
        ok, I'll commit and pray
      • 2017-03-10 06951, 2017

      • zas
        well, don't expect too much from prayers ;)
      • 2017-03-10 06923, 2017

      • Freso
        gcilou: :)
      • 2017-03-10 06943, 2017

      • ruaok
        lol
      • 2017-03-10 06901, 2017

      • ruaok
        pushed
      • 2017-03-10 06934, 2017

      • ruaok
        musicbrainz loads. that's nice.
      • 2017-03-10 06958, 2017

      • ruaok
      • 2017-03-10 06909, 2017

      • zas
        502
      • 2017-03-10 06923, 2017

      • zas
        it works, but your backend is failing
      • 2017-03-10 06932, 2017

      • ruaok
        how does the gateway know the port of the uwsgi setup?
      • 2017-03-10 06941, 2017

      • ruaok
        because it is on a non standard port.
      • 2017-03-10 06906, 2017

      • Freso
        "12:01:01 Z<zas> but we need to focus on future, not on past ;)" - YES! Thank you!! 🙌
      • 2017-03-10 06942, 2017

      • zas
        ruaok: it is using registrator
      • 2017-03-10 06953, 2017

      • ruaok
        ah, right.
      • 2017-03-10 06920, 2017

      • zas
        but for now, it finds nothing (or health checks are failing)
      • 2017-03-10 06941, 2017

      • zas
        if the service is unavailable (or if, for some reason, health check reports a failure, or fails itself), gateways will just return 502s
      • 2017-03-10 06904, 2017

      • Freso
        ruaok: Do you want to use the forum category for GSoC proposal( draft)s again this year?
      • 2017-03-10 06915, 2017

      • ruaok
        sure.
      • 2017-03-10 06941, 2017

      • zas
        so, be sure your service is reported healthy, port it is using will be automatically picked up
      • 2017-03-10 06945, 2017

      • Freso
        samj1912: ^ you may want to make your draft on the forums instead of Google Docs. :)
      • 2017-03-10 06909, 2017

      • zas
        Freso: it is a draft of draft i think ;)
      • 2017-03-10 06918, 2017

      • Freso
        Ha. Alright then. :)
      • 2017-03-10 06907, 2017

      • eharris has quit
      • 2017-03-10 06932, 2017

      • eharris joined the channel
      • 2017-03-10 06940, 2017

      • samj1912
        Freso yup, draft of the implementation and the whats and the whens
      • 2017-03-10 06948, 2017

      • Freso
        Cool. :)
      • 2017-03-10 06954, 2017

      • samj1912
        I'll make the final draft with Meb format on forums :)
      • 2017-03-10 06959, 2017

      • Freso
        👍
      • 2017-03-10 06905, 2017

      • Freso
        I'll check it out then, then!
      • 2017-03-10 06906, 2017

      • ruaok
      • 2017-03-10 06929, 2017

      • ruaok
        do those monitoring statements look ok to you?
      • 2017-03-10 06931, 2017

      • ruaok
        d887048290f5 metabrainz/listenbrainz:production-docker-setup "/sbin/my_init" 21 hours ago Up 21 minutes 0.0.0.0:13035->3031/tcp listenbrainz-web
      • 2017-03-10 06935, 2017

      • samj1912
        Lol :p yup :D
      • 2017-03-10 06939, 2017

      • ruaok
        uwsgi is listening on port 13035
      • 2017-03-10 06932, 2017

      • zas
        ruaok: what is the name of your service ?
      • 2017-03-10 06941, 2017

      • ruaok
        listenbrainz-web
      • 2017-03-10 06950, 2017

      • zas
        this is wy..;
      • 2017-03-10 06903, 2017

      • zas
        "beta.listenbrainz" in your config
      • 2017-03-10 06923, 2017

      • zas
        "beta.listenbrainz-web" should work
      • 2017-03-10 06923, 2017

      • ruaok
        oooh, I didn't realize it needed to match the service.
      • 2017-03-10 06928, 2017

      • ruaok
        k
      • 2017-03-10 06934, 2017

      • zas
        yes, it needs, to find about it ;)
      • 2017-03-10 06949, 2017

      • ruaok
        pushed.
      • 2017-03-10 06953, 2017

      • ruaok
        how long do I wait?
      • 2017-03-10 06903, 2017

      • ruaok
        still 502. :(