#metabrainz

/

      • gcilou
        ok
      • 2016-01-21 02146, 2016

      • stanislas
        then vagrant destroy, vagrant up, vagrant ssh, sudo pip install -r requirements.txt
      • 2016-01-21 02124, 2016

      • gcilou
        alright. vagrant up is running. I'll let you know when I catch up
      • 2016-01-21 02155, 2016

      • Gentlecat
        you don't need to run the last one
      • 2016-01-21 02139, 2016

      • Gentlecat
        when `vagrant up` is done running, paste its output
      • 2016-01-21 02147, 2016

      • gcilou
        like paste all the " ==> default " lines? or the stuff after?
      • 2016-01-21 02107, 2016

      • Gentlecat
        everything
      • 2016-01-21 02132, 2016

      • gcilou
        its too big to pastebin here :\
      • 2016-01-21 02149, 2016

      • Gentlecat
        don't worry
      • 2016-01-21 02109, 2016

      • Gentlecat
      • 2016-01-21 02103, 2016

      • gcilou
      • 2016-01-21 02106, 2016

      • Gentlecat
        hmm, that error
      • 2016-01-21 02118, 2016

      • gcilou
        yeah
      • 2016-01-21 02125, 2016

      • Gentlecat
        `vagrant ssh`
      • 2016-01-21 02140, 2016

      • Gentlecat
        `sudo su;cd /vagrant`
      • 2016-01-21 02156, 2016

      • gcilou
        ok
      • 2016-01-21 02103, 2016

      • gcilou
        those worked fine
      • 2016-01-21 02121, 2016

      • Gentlecat
      • 2016-01-21 02152, 2016

      • gcilou
        "python: can't open file 'manage.py': [Errno 2] No such file or directory"
      • 2016-01-21 02111, 2016

      • Gentlecat
        ls /vagrant
      • 2016-01-21 02123, 2016

      • gcilou
        "root@metabrainz:/home/vagrant#"
      • 2016-01-21 02125, 2016

      • Gentlecat
        does it list files from project root?
      • 2016-01-21 02136, 2016

      • Gentlecat
        cd /vagrant
      • 2016-01-21 02115, 2016

      • gcilou
      • 2016-01-21 02120, 2016

      • gcilou
        from first command^
      • 2016-01-21 02144, 2016

      • gcilou
        from "python manage.py create_db"
      • 2016-01-21 02153, 2016

      • Gentlecat
        weird
      • 2016-01-21 02101, 2016

      • Gentlecat
        pip install -r requirements.txt
      • 2016-01-21 02121, 2016

      • Gentlecat
        and I got the same error
      • 2016-01-21 02128, 2016

      • gcilou
      • 2016-01-21 02103, 2016

      • gcilou
        is this where I'm supposed to be "root@metabrainz:/vagrant#"
      • 2016-01-21 02105, 2016

      • Gentlecat
        oh, remove line with "requests" package from requirements.txt
      • 2016-01-21 02123, 2016

      • Gentlecat
        yes, this is the right directory
      • 2016-01-21 02110, 2016

      • gcilou
        Ok install requirements worked this time
      • 2016-01-21 02136, 2016

      • gcilou
        run the manage.py commands?
      • 2016-01-21 02139, 2016

      • Gentlecat
        try create_db again
      • 2016-01-21 02140, 2016

      • Gentlecat
        yes
      • 2016-01-21 02101, 2016

      • gcilou
      • 2016-01-21 02103, 2016

      • gcilou
        erm
      • 2016-01-21 02145, 2016

      • Gentlecat
        that's "ok"
      • 2016-01-21 02157, 2016

      • gcilou
        Ok . RUn the next one?
      • 2016-01-21 02102, 2016

      • Gentlecat
        yep
      • 2016-01-21 02122, 2016

      • gcilou
        Ok that did nothing (worked I guess)
      • 2016-01-21 02153, 2016

      • Gentlecat
        python run.py
      • 2016-01-21 02116, 2016

      • gcilou
        YES!!
      • 2016-01-21 02117, 2016

      • reosarevok
        zas: so wait, you made a change that should make things worse and it made things better?
      • 2016-01-21 02145, 2016

      • reosarevok
        Is there a reason not to just keep doing the fast thing? (as in, were we doing that for performance only or is there another reason)
      • 2016-01-21 02103, 2016

      • bitmap
        zas: huh, well that's pretty surprising
      • 2016-01-21 02120, 2016

      • gcilou
        Gentlecat, thank you thank you thank you
      • 2016-01-21 02137, 2016

      • Gentlecat
        you are welcome
      • 2016-01-21 02107, 2016

      • Gentlecat
        need to fix that issue though
      • 2016-01-21 02123, 2016

      • bitmap
        reosarevok: eariler we were getting some DNS errors trying to resolve totoro.mb, I think, and the DNS cache seemed to have solved it
      • 2016-01-21 02134, 2016

      • bitmap
        no idea if those are gonna come back now, hopefully not
      • 2016-01-21 02158, 2016

      • regagain joined the channel
      • 2016-01-21 02123, 2016

      • stanislas
        Gentlecat: I've commented your recent comments.
      • 2016-01-21 02133, 2016

      • Gentlecat
        yes, I get notifications about replies
      • 2016-01-21 02149, 2016

      • gcilou
        Gentlecat, am I supposed to be working in metabrainz/metabrainz.org or metabrainz/metabrainz-server?
      • 2016-01-21 02105, 2016

      • Gentlecat
        metabrainz-server is old version of the website
      • 2016-01-21 02107, 2016

      • Gentlecat
        ignore it
      • 2016-01-21 02126, 2016

      • Gentlecat
      • 2016-01-21 02132, 2016

      • gcilou
        Ok. Freso, linked to there on the task page. Thanks
      • 2016-01-21 02122, 2016

      • Gentlecat
      • 2016-01-21 02124, 2016

      • Gentlecat
      • 2016-01-21 02145, 2016

      • Gentlecat
        Python is not C
      • 2016-01-21 02115, 2016

      • stanislas
        Gentlecat: I am used to coding in C, maybe that's the problem :)
      • 2016-01-21 02116, 2016

      • Mineo
        CJ_: the xml responses get converted to json by running them through https://github.com/metabrainz/mb-solrquerywriter/… which is an https://wiki.eclipse.org/EclipseLink/Examples/MOX… mapping file
      • 2016-01-21 02108, 2016

      • JesseW joined the channel
      • 2016-01-21 02110, 2016

      • bitmap
        might work on http://tickets.musicbrainz.org/browse/MBS-8736 today to make it easier to test the search server
      • 2016-01-21 02100, 2016

      • gcilou
      • 2016-01-21 02158, 2016

      • bitmap
        ah, there should be a pic in the summit blog you can use
      • 2016-01-21 02142, 2016

      • gcilou
        Ok
      • 2016-01-21 02120, 2016

      • reosarevok
        JesseW: ruaok had some questions about the archiveteam thing, maybe check logs for today :)
      • 2016-01-21 02130, 2016

      • JesseW has quit
      • 2016-01-21 02116, 2016

      • Leo_Verto joined the channel
      • 2016-01-21 02145, 2016

      • opatel99 has quit
      • 2016-01-21 02156, 2016

      • Gentlecat
        alastairp: did we decide what to do with JAMS before? http://www.terasoft.com.tw/conf/ismir2014/proceed…
      • 2016-01-21 02110, 2016

      • Gentlecat
        I remember we discussed it
      • 2016-01-21 02152, 2016

      • chirlu`
        bitmap: I wonder what to do with the cache advisory locks when DB_READ_ONLY is set.
      • 2016-01-21 02119, 2016

      • chirlu`
        AFAIU, the locks are handled in memory, no WAL is written.
      • 2016-01-21 02141, 2016

      • guest__ has quit
      • 2016-01-21 02141, 2016

      • chirlu`
        So it might be OK to have them running.
      • 2016-01-21 02114, 2016

      • bitmap
        hmm, I'm not sure
      • 2016-01-21 02115, 2016

      • chirlu`
        OTOH, while in read-only mode, there should be no harm in caching things without locking.
      • 2016-01-21 02139, 2016

      • bitmap
        right
      • 2016-01-21 02123, 2016

      • bitmap
        I suppose it'd be harmless and possibly safer to check DB_READ_ONLY before acquiring any locks
      • 2016-01-21 02102, 2016

      • chirlu`
        (I also thought about possible future replicated servers. If we have hot standby servers that are used for web display, they can use the cache, but not cache anything because they can’t get locks.)
      • 2016-01-21 02132, 2016

      • chirlu`
        (Where “they” confusingly refers to the web frontends using the replica. ;-) )
      • 2016-01-21 02149, 2016

      • CJ_
        Mineo, Why did you do that instead of just using the regular json flag?
      • 2016-01-21 02106, 2016

      • Mineo
        "regular json flag"?
      • 2016-01-21 02125, 2016

      • Mineo
        it's what the current search server uses to generate the json and moves some elements around etc.
      • 2016-01-21 02146, 2016

      • JonnyJD_ joined the channel
      • 2016-01-21 02109, 2016

      • CJ_
        Mineo, wt=json instead of wt=mbjson
      • 2016-01-21 02137, 2016

      • CJ_
        I am wondering if the writer can be removed and regular json can be used instead.
      • 2016-01-21 02106, 2016

      • bitmap
        chirlu`: I guess that if MBS is configured to connect to the master DB for certain things, we could keep the locks there?
      • 2016-01-21 02107, 2016

      • CJ_
      • 2016-01-21 02134, 2016

      • Mineo
        CJ_: wt=json is completely different, it's just a key-value mapping of field names to their values for each document
      • 2016-01-21 02136, 2016

      • chirlu`
        bitmap: Yes, those requests that use the master database could cache items (for use by all requests).
      • 2016-01-21 02146, 2016

      • CJ_
        Mineo, What is the expected mbjson result, then?
      • 2016-01-21 02109, 2016

      • chirlu`
        It’s probably enough since the often-used items will hit the master database at some point, too.
      • 2016-01-21 02117, 2016

      • Mineo
        CJ_: the same one as http://search.musicbrainz.org/ws/2/annotation/?qu… (admittedly, it's just a flat mapping for annotations as well in this case :) )
      • 2016-01-21 02100, 2016

      • gcilou
        Gentlecat, are you around? I have some questions about how the metabrainz navbar works
      • 2016-01-21 02116, 2016

      • stanislas
        Gentlecat: Do you have some alternative to controlling whitespace the way I am doing it currently ?
      • 2016-01-21 02116, 2016

      • Gentlecat
        yes
      • 2016-01-21 02151, 2016

      • Gentlecat
        if not, someone else might be able to answer. so feel free to just ask
      • 2016-01-21 02104, 2016

      • CJ_
        Mineo, Do you know the difference between json and jsonnew?
      • 2016-01-21 02110, 2016

      • Gentlecat
        stanislas: what do you mean?
      • 2016-01-21 02111, 2016

      • Mineo
        no
      • 2016-01-21 02137, 2016

      • stanislas
        Gentlecat: I would like to use {{sth}} without whitespace showing around
      • 2016-01-21 02113, 2016

      • Gentlecat
        it can become hard to read in big templates
      • 2016-01-21 02128, 2016

      • gcilou
        Gentlecat, ok so each of the buttons, "About", "Sponsors"..have this as the href "{{ url_for('index.about') }}" (or similar). But, I've added a team.html file to the index folder and doing { url_for('index.team') }} in the navbar does not work. What is my problem?
      • 2016-01-21 02103, 2016

      • Gentlecat
        'index.about', for example, is a reference to a specific view
      • 2016-01-21 02132, 2016

      • stanislas
        Gentlecat: I guess it can, but ... how to do replace the hyphens ?
      • 2016-01-21 02135, 2016

      • gcilou
        right the, about.html file
      • 2016-01-21 02143, 2016

      • Gentlecat
      • 2016-01-21 02150, 2016

      • Gentlecat
        no, not the template file
      • 2016-01-21 02115, 2016

      • gcilou
        ahh I see
      • 2016-01-21 02130, 2016

      • Gentlecat
        there's that one function in between
      • 2016-01-21 02157, 2016

      • chirlu`
      • 2016-01-21 02100, 2016

      • gcilou
        So i need to make one for team
      • 2016-01-21 02109, 2016

      • Gentlecat
        probably
      • 2016-01-21 02137, 2016

      • yeeeargh joined the channel
      • 2016-01-21 02155, 2016

      • Gentlecat
        stanislas: oh, I see what you mean
      • 2016-01-21 02102, 2016

      • reosarevok
        chirlu`: so "none"?
      • 2016-01-21 02122, 2016

      • Gentlecat
        I thought you were asking about {{sth}} vs {{ sth }}
      • 2016-01-21 02133, 2016

      • stanislas
        Gentlecat: hahaha, no :)
      • 2016-01-21 02154, 2016

      • gcilou
        It's working, thanks
      • 2016-01-21 02114, 2016

      • chirlu`
        reosarevok: No, unless the planned merge was already done. Otherwise, they are different (mostly regarding the entity lists, I think).
      • 2016-01-21 02111, 2016

      • reosarevok
        Oh, true, it just say we don't use it, not that it's been merged
      • 2016-01-21 02113, 2016

      • reosarevok
        ok :)
      • 2016-01-21 02146, 2016

      • stanislas
        Gentlecat: Maybe my english is not very clear sometimes.
      • 2016-01-21 02127, 2016

      • Gentlecat
        can you link part where it shows up?
      • 2016-01-21 02151, 2016

      • chirlu`
        Perhaps it has been merged, but I don’t know.
      • 2016-01-21 02119, 2016

      • stanislas
        sure
      • 2016-01-21 02118, 2016

      • CJ_
        chirlu`, Understood. Thank you. How was the new json format decided on?
      • 2016-01-21 02159, 2016

      • chirlu`
        Uh, no idea, actually. I assume it was approved in one of the regular meetings.
      • 2016-01-21 02102, 2016

      • stanislas
        Gentlecat: I am pretty sure it showed here https://github.com/stasszczesniak/critiquebrainz/…
      • 2016-01-21 02110, 2016

      • stanislas
        before adding the hyphens
      • 2016-01-21 02145, 2016

      • CJ_
        chirlu`, I am just wondering if it may be easier to just move to regular solr json instead.
      • 2016-01-21 02106, 2016

      • chirlu`
        CJ_: If it changes the output format, no.
      • 2016-01-21 02120, 2016

      • Gentlecat
        leave it if it's significant then
      • 2016-01-21 02151, 2016

      • CJ_
        chirlu`, It is a different format than the jsonnew. Has the jsonnew migration been completed?
      • 2016-01-21 02116, 2016

      • chirlu`
        Yes. The WS only delivers jsonnew.
      • 2016-01-21 02127, 2016

      • CJ_
        Hmm.
      • 2016-01-21 02103, 2016

      • gcilou
        I still need pictures from zas, ruaok, and alastairp. You can email them to me at caroline.gschwend@gmail.com
      • 2016-01-21 02104, 2016

      • gcilou
        LordSputnik and Leftmost, I got your pictures from the summit blog post, if you have other pictures that you would rather me use, email them to me at the above address
      • 2016-01-21 02109, 2016

      • Bookzombie joined the channel
      • 2016-01-21 02158, 2016

      • CJ_
        Who is Wieland Hoffman?
      • 2016-01-21 02103, 2016

      • Mineo
        me
      • 2016-01-21 02154, 2016

      • CJ_
        Mineo, Oh, okay. :)
      • 2016-01-21 02112, 2016

      • JonnyJD_ has quit