#musicbrainz-devel

/

      • ruaok
        but I have a VM that will have full indexes in a minute.
      • 2013-07-31 21234, 2013

      • ruaok
        after that I will make a clean one and import data into it.
      • 2013-07-31 21239, 2013

      • ruaok
        and then I'll ship that.
      • 2013-07-31 21216, 2013

      • ocharles
        the crontab is installed as root, is that intentional?
      • 2013-07-31 21228, 2013

      • ruaok
        I was wondering about that.
      • 2013-07-31 21233, 2013

      • ruaok
        its your recipe. :)
      • 2013-07-31 21238, 2013

      • ruaok
        user musicbrainz would make more sense
      • 2013-07-31 21241, 2013

      • ocharles
        we should probably put that in musicbrainz'
      • 2013-07-31 21246, 2013

      • ruaok
        I'll do it.
      • 2013-07-31 21210, 2013

      • ocharles
        ~search/bin/reindex looks fine, but i'm not familiar with search server
      • 2013-07-31 21216, 2013

      • ocharles
        should we not stop jetty before removing indexes?
      • 2013-07-31 21237, 2013

      • ruaok
        it doesn't really matter, but I see what you're saying.
      • 2013-07-31 21257, 2013

      • ruaok
        order fixed. cron fixed. investigating java_home
      • 2013-07-31 21210, 2013

      • ruaok
        ocharles: do me a quick favor?
      • 2013-07-31 21223, 2013

      • ruaok
        edit /etc/default/jetty and set java_home=/usr
      • 2013-07-31 21229, 2013

      • ruaok
        then stop jetty and see if it starts again
      • 2013-07-31 21232, 2013

      • ocharles
        just /usr?
      • 2013-07-31 21235, 2013

      • ruaok
        yeah
      • 2013-07-31 21256, 2013

      • ruaok
        one stackoverflow page suggested using 'which java' and using the path from it.
      • 2013-07-31 21201, 2013

      • ruaok
        which is /usr and it worked. :)
      • 2013-07-31 21203, 2013

      • ocharles
        yea, I was about to suggest that to you
      • 2013-07-31 21228, 2013

      • ocharles
        though I was going to suggest using readlink to resolve the symlinks
      • 2013-07-31 21249, 2013

      • ruaok
        but given how ubuntu deals with installing things you can pretty much assume that /usr is going to work
      • 2013-07-31 21202, 2013

      • ruaok
        did you look at pg_tune.py ?
      • 2013-07-31 21211, 2013

      • ruaok
        not exactly pretty, but it does a decent job.
      • 2013-07-31 21229, 2013

      • ocharles
        btw
      • 2013-07-31 21241, 2013

      • ocharles tries a jetty restart
      • 2013-07-31 21247, 2013

      • ocharles
        Cannot find any VM in Java Home /usr
      • 2013-07-31 21258, 2013

      • ruaok
        feck. why did it work on my machine.
      • 2013-07-31 21206, 2013

      • ruaok
        well, then neither of our approaches work
      • 2013-07-31 21212, 2013

      • ocharles
        JAVA_HOME=/usr
      • 2013-07-31 21212, 2013

      • ruaok
        oh wait.
      • 2013-07-31 21214, 2013

      • ocharles
        is that right?
      • 2013-07-31 21218, 2013

      • ruaok
        ya
      • 2013-07-31 21236, 2013

      • ruaok
        what does your readlink command give you?
      • 2013-07-31 21206, 2013

      • ocharles
        vagrant [at musicbrainzvm]:~$ readlink -f $( dirname $( readlink -f $( which java ) ) )/../..
      • 2013-07-31 21210, 2013

      • ocharles
        /usr/lib/jvm/java-7-openjdk-i386
      • 2013-07-31 21226, 2013

      • ruaok
        ok, that works.
      • 2013-07-31 21229, 2013

      • ruaok
        thanks.
      • 2013-07-31 21243, 2013

      • ruaok
        I dont see a cookbook for readlink. :(
      • 2013-07-31 21256, 2013

      • ruaok plans to use bash resource
      • 2013-07-31 21226, 2013

      • ocharles
        oh yea, you'll just want to script that
      • 2013-07-31 21246, 2013

      • ocharles
        I doubt the above will nicely encode to cookbooks :) Maybe some Ruby would be nicer, but I don't know Ruby well enough
      • 2013-07-31 21203, 2013

      • ruaok
        echo "JAVA_HOME="`readlink -f $( dirname $( readlink -f $( which java ) ) )/../..`
      • 2013-07-31 21213, 2013

      • ruaok
        >> /dev/default/jetty
      • 2013-07-31 21215, 2013

      • ruaok
        and its done.
      • 2013-07-31 21208, 2013

      • ocharles
        and you removed the JAVA_HOME from the cookbook_file I take it?
      • 2013-07-31 21227, 2013

      • ocharles
        and redirect to /etc/, not /dev :)
      • 2013-07-31 21242, 2013

      • ruaok
        heh
      • 2013-07-31 21248, 2013

      • ruaok
        I will in just a sec
      • 2013-07-31 21249, 2013

      • ruaok
        Wed Jul 31 08:40:36 PDT 2013: Building indexes complete
      • 2013-07-31 21253, 2013

      • ruaok
        I <3 SSDs
      • 2013-07-31 21254, 2013

      • ruaok
        is there a reason why mb runs on port 5000 on the VM?
      • 2013-07-31 21257, 2013

      • ruaok
        why not 80?
      • 2013-07-31 21259, 2013

      • ruaok
        wow, seaching works. :)
      • 2013-07-31 21229, 2013

      • ocharles
        because it's not running under nginx or anything
      • 2013-07-31 21241, 2013

      • ocharles
        so I just went with the default
      • 2013-07-31 21255, 2013

      • ocharles
        it uses the built in dev server, so we might want to consider switching that to nginx
      • 2013-07-31 21200, 2013

      • ocharles
        but it does the job
      • 2013-07-31 21213, 2013

      • ocharles
        oh crap, I have an invoice to get to you. I just realised the date
      • 2013-07-31 21220, 2013

      • ruaok
        HA!
      • 2013-07-31 21231, 2013

      • ruaok
        you're not done here yet, buster!
      • 2013-07-31 21248, 2013

      • ruaok
        can we at least switch it to port 80 for niceness?
      • 2013-07-31 21232, 2013

      • ocharles
        You can do it in the vagrant stuff if you want
      • 2013-07-31 21244, 2013

      • ocharles
        Host port 80 forwards to guest port 5000
      • 2013-07-31 21247, 2013

      • ruaok
        oh!
      • 2013-07-31 21252, 2013

      • ruaok
        clever.
      • 2013-07-31 21232, 2013

      • ruaok
        config.vm.network :forwarded_port, guest: 5000, host: 80
      • 2013-07-31 21233, 2013

      • ruaok
        ?
      • 2013-07-31 21234, 2013

      • ocharles
        that sounds right to me
      • 2013-07-31 21258, 2013

      • ruaok
        provision didn't fix it.
      • 2013-07-31 21202, 2013

      • ruaok
        I'm guessing this a reload.
      • 2013-07-31 21229, 2013

      • ocharles
        Yea, because it's not a provisioning
      • 2013-07-31 21237, 2013

      • ruaok
        k.
      • 2013-07-31 21246, 2013

      • ruaok
        man, chef and vagrant are fun to work with
      • 2013-07-31 21218, 2013

      • ruaok
        though googling things for chef is dumb sometimes.
      • 2013-07-31 21221, 2013

      • ruaok
        chef java
      • 2013-07-31 21232, 2013

      • ruaok
        brings up nothing even closely relevant
      • 2013-07-31 21242, 2013

      • ruaok
        and I've had a few other searches that went about the same way.
      • 2013-07-31 21201, 2013

      • ruaok
        reload didn
      • 2013-07-31 21204, 2013

      • ruaok
        t help either
      • 2013-07-31 21226, 2013

      • ocharles
        hmm
      • 2013-07-31 21235, 2013

      • ocharles
        what about vagrant halt and vagrant up?
      • 2013-07-31 21245, 2013

      • ocharles
        ultimately, you may have to change your VMWare configuration
      • 2013-07-31 21250, 2013

      • ocharles
        as that's what that command boils down to
      • 2013-07-31 21241, 2013

      • ruaok
        well, I dont care that much.
      • 2013-07-31 21250, 2013

      • ruaok
        the VM I provision to ship will be done from scratch.
      • 2013-07-31 21254, 2013

      • ruaok
        let me commit and then start that
      • 2013-07-31 21209, 2013

      • ocharles
        sure thing
      • 2013-07-31 21229, 2013

      • ruaok
        both repos committed and pushed
      • 2013-07-31 21259, 2013

      • Leftmost joined the channel
      • 2013-07-31 21248, 2013

      • ruaok
        ocharles: do you know if the base-box gets cached somewhere?
      • 2013-07-31 21223, 2013

      • ocharles
        it does
      • 2013-07-31 21230, 2013

      • ocharles
        in ~/.vagrant.d/boxes
      • 2013-07-31 21213, 2013

      • ruaok
        perfect.
      • 2013-07-31 21219, 2013

      • ruaok
        then this next redeploy will be fast
      • 2013-07-31 21200, 2013

      • ocharles
        the initial provision is a lot slower because of all the apt-get installs, but yea - that speeds things up
      • 2013-07-31 21230, 2013

      • ruaok
        vagrant destroy is oddly satisfying
      • 2013-07-31 21211, 2013

      • ocharles
        :D
      • 2013-07-31 21228, 2013

      • ruaok
        damn. base box was NOT cached.
      • 2013-07-31 21229, 2013

      • ruaok
        futh
      • 2013-07-31 21244, 2013

      • nikki
        ocharles: does http://tickets.musicbrainz.org/browse/MBS-6591 also fix the work-url relationships?
      • 2013-07-31 21217, 2013

      • ocharles
        it might
      • 2013-07-31 21220, 2013

      • ocharles
        but I'm not sure
      • 2013-07-31 21233, 2013

      • ocharles
        there's a good chance it will, as the solution is quite a general one
      • 2013-07-31 21225, 2013

      • nikki
        well, something like https://beta.musicbrainz.org/ws/2/release/ef3a91f… should include the lyrics relationship, if you feel like testing it :P
      • 2013-07-31 21224, 2013

      • ocharles
        not now, but I will try and have a look tomorrow
      • 2013-07-31 21235, 2013

      • ocharles always enjoys killing multiple birds with one stone
      • 2013-07-31 21238, 2013

      • ocharles
        >:)
      • 2013-07-31 21216, 2013

      • weasel00 joined the channel
      • 2013-07-31 21238, 2013

      • ruaok
        provisioned, data import started.
      • 2013-07-31 21246, 2013

      • ruaok
        so far, so good.
      • 2013-07-31 21217, 2013

      • voiceinsideyou1 joined the channel
      • 2013-07-31 21225, 2013

      • andreypopp joined the channel
      • 2013-07-31 21233, 2013

      • voiceinsideyou joined the channel
      • 2013-07-31 21205, 2013

      • ocharles
        ruaok: ok, invoice typed, now to get the fucking scanner working
      • 2013-07-31 21241, 2013

      • ocharles
        ruaok: scanner is bust, snail mail it is
      • 2013-07-31 21226, 2013

      • navap
        Take a picture with your phone, fix rotation, convert to pdf, done :)
      • 2013-07-31 21224, 2013

      • ruaok
        ocharles: navap is right.
      • 2013-07-31 21200, 2013

      • ocharles
        navap: screw that noise
      • 2013-07-31 21240, 2013

      • ruaok
        I've done that tons of times.
      • 2013-07-31 21244, 2013

      • ruaok
        convert things to pdf.
      • 2013-07-31 21258, 2013

      • ruaok
        then sign using Preview's signature feature.
      • 2013-07-31 21200, 2013

      • ruaok
        works great.
      • 2013-07-31 21216, 2013

      • ruaok
        then Aleta's bank required her to sign a document 5 times in the margin.
      • 2013-07-31 21225, 2013

      • ruaok
        they wanted her to do it by hand then scan it in.
      • 2013-07-31 21240, 2013

      • ruaok
        so she made 5 different signatures for Preview and added them on.
      • 2013-07-31 21259, 2013

      • ruaok
        then ran the image though a "photocopy" filter in photoshop.
      • 2013-07-31 21204, 2013

      • ruaok
        it looked fucking real.
      • 2013-07-31 21211, 2013

      • ruaok
        and the bank gladly accepted it.
      • 2013-07-31 21257, 2013

      • ruaok
        no stamps ocharles??
      • 2013-07-31 21201, 2013

      • ruaok
        not good enough.
      • 2013-07-31 21211, 2013

      • ruaok
        nice penmanship though.
      • 2013-07-31 21235, 2013

      • atod joined the channel
      • 2013-07-31 21208, 2013

      • ianmcorvidae
        back when I was still using the netbook with the touchscreen I'd usually just use that; nowadays I just tend to use snail mail though :P
      • 2013-07-31 21233, 2013

      • ianmcorvidae
        (well, not for invoices, since I just send those as emails, but :P)
      • 2013-07-31 21206, 2013

      • SultS joined the channel
      • 2013-07-31 21251, 2013

      • HankCorto has left the channel
      • 2013-07-31 21211, 2013

      • SultS_ joined the channel
      • 2013-07-31 21239, 2013

      • hawke_1 joined the channel
      • 2013-07-31 21233, 2013

      • hawke joined the channel
      • 2013-07-31 21246, 2013

      • ijabz joined the channel
      • 2013-07-31 21206, 2013

      • hawke_1
        ..why doesn’t http://musicbrainz.org/release/add redirect me to beta when I have 'use beta site' preference checked?
      • 2013-07-31 21243, 2013

      • hawke_1
        As an extra bonus, clicking 'use beta site' there actually *unsets* the beta preference.
      • 2013-07-31 21227, 2013

      • ianmcorvidae
        heh
      • 2013-07-31 21244, 2013

      • ianmcorvidae
        well, it doesn't redirect because it's often POST, and redirects don't preserve data on POST
      • 2013-07-31 21204, 2013

      • hawke_1
        Is there no way to preserve it?
      • 2013-07-31 21209, 2013

      • ianmcorvidae
        it should be doing it for the first hit when it's not a post though, I thought... unless I messed that up, hm
      • 2013-07-31 21212, 2013

      • ianmcorvidae
        no, there isn't
      • 2013-07-31 21217, 2013

      • ianmcorvidae
        I mean