#musicbrainz-devel

/

      • adhawkins
        If I run it from the prompt it works fine
      • 2011-08-11 22325, 2011

      • adhawkins
        SO I suspect it's environment
      • 2011-08-11 22350, 2011

      • kepstin can't find any files named 'aliased.pm' anywhere on his computer, so something weird is going in
      • 2011-08-11 22303, 2011

      • adhawkins
        Does it need to cd into the server directory first?
      • 2011-08-11 22312, 2011

      • kepstin
        adhawkins: you're running it with the full pathname in the cron job, right? like "0 * * * * /home/musicbrainz/musicbrainz-server/admin/cron/slave.sh"
      • 2011-08-11 22316, 2011

      • adhawkins
        Yes
      • 2011-08-11 22326, 2011

      • kepstin
        the 'slave.sh' script handles cding into the directory itself
      • 2011-08-11 22335, 2011

      • adhawkins
        44 * * * * /home/mbserver/musicbrainz-server/admin/cron/slave.sh
      • 2011-08-11 22340, 2011

      • kepstin
        it reads the path that it's run from, and uses that to detect the install directory
      • 2011-08-11 22311, 2011

      • adhawkins
        Yep, if I run if from a shell it works
      • 2011-08-11 22315, 2011

      • kepstin
        then it loads a couple of environment files before starting the perl script.
      • 2011-08-11 22338, 2011

      • adhawkins
        PERL_MM_OPT?
      • 2011-08-11 22348, 2011

      • adhawkins
        PERL5LIB?
      • 2011-08-11 22322, 2011

      • adhawkins
        Does it need the liblocal environment setup?
      • 2011-08-11 22333, 2011

      • warp
        adhawkins: that sounds likely.
      • 2011-08-11 22348, 2011

      • kepstin
        oh, you didn't install all the required perl modules into the system directories?
      • 2011-08-11 22355, 2011

      • kepstin
        or am I just confused?
      • 2011-08-11 22356, 2011

      • adhawkins
        No, I was told to use liblocal
      • 2011-08-11 22304, 2011

      • adhawkins
        The instructions say to do that
      • 2011-08-11 22327, 2011

      • adhawkins
        Aha, that seems to be it
      • 2011-08-11 22337, 2011

      • adhawkins
        53 * * * * eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib); /home/mbserver/musicbrainz-server/admin/cron/slave.sh
      • 2011-08-11 22355, 2011

      • adhawkins
        It's now running
      • 2011-08-11 22300, 2011

      • warp
        :)
      • 2011-08-11 22311, 2011

      • kepstin
        I actually managed to install most of the required perl modules from debian packages, and the remaining few that were missing, I installed into system dirs using cpan. seemed the easiest way to get it running :)
      • 2011-08-11 22323, 2011

      • adhawkins
        What will happen at 53 minutes past the next hour if slave.sh is still running?
      • 2011-08-11 22347, 2011

      • ocharles
        it won't run
      • 2011-08-11 22351, 2011

      • kepstin
        adhawkins: a small black hole forms in your loft, and grows until it eats the entire universe
      • 2011-08-11 22351, 2011

      • ocharles
        it gets a lock
      • 2011-08-11 22315, 2011

      • adhawkins
        I have 40 odd replication packets to catch up on
      • 2011-08-11 22325, 2011

      • adhawkins
        Ok, that's what I wanted to check.
      • 2011-08-11 22329, 2011

      • adhawkins
        Ok, I'll leave it and go to bed.
      • 2011-08-11 22332, 2011

      • jdamcd joined the channel
      • 2011-08-11 22338, 2011

      • adhawkins
        Hopefully tomorrow I'll have a fully populated server :)
      • 2011-08-11 22342, 2011

      • adhawkins
        Thanks for all the help.
      • 2011-08-11 22355, 2011

      • adhawkins
        I might jot down a few notes for suggestions to update the docs
      • 2011-08-11 22354, 2011

      • adhawkins
        Night all
      • 2011-08-11 22329, 2011

      • nikki
        ianmcorvidae: I don't know when the .pot files were last updated, but they were up to date in may. there are translations on transifex somewhere
      • 2011-08-11 22301, 2011

      • ianmcorvidae
        hm, okay
      • 2011-08-11 22340, 2011

      • ianmcorvidae
        so nothing that I've added in GSoC will be in the pot files :P
      • 2011-08-11 22319, 2011

      • kepstin noticed a few things missing when he tried running picard in japanese yesterday :)
      • 2011-08-11 22334, 2011

      • nikki
        I don't remember exactly, but I think if you go into ./po/ and run make mb_server.pot, it'll update the file (and you can do a diff to see how out of date it is)
      • 2011-08-11 22350, 2011

      • kepstin
        oh, you're talking about the server? I didn't even know it had translations.
      • 2011-08-11 22323, 2011

      • ianmcorvidae
        it has like two
      • 2011-08-11 22327, 2011

      • ianmcorvidae
        I don't know if they WORK
      • 2011-08-11 22331, 2011

      • ianmcorvidae
        but there is a po folder
      • 2011-08-11 22333, 2011

      • nikki
        it's translatable, but there are still bugs/untranslatable bits (anything stored in the db, basically)
      • 2011-08-11 22341, 2011

      • nikki
        and they're not enabled on the live server
      • 2011-08-11 22348, 2011

      • ianmcorvidae
        heh
      • 2011-08-11 22352, 2011

      • nikki
        it's not too hard to set up if you want to try it though
      • 2011-08-11 22314, 2011

      • ianmcorvidae
        I feel like we should just have some sort of a thing that dumps all the database-translatable things into a file, then runs the usual pot-creation stuff including those files
      • 2011-08-11 22325, 2011

      • nikki
        are you offering to do it? :D
      • 2011-08-11 22332, 2011

      • ianmcorvidae
        not necessarily, but :P
      • 2011-08-11 22337, 2011

      • ianmcorvidae
        how does one enable translations?
      • 2011-08-11 22352, 2011

      • nikki
        edit dbdefs.pm, somewhere there's a languages variable
      • 2011-08-11 22357, 2011

      • nikki
        enter the language codes you want to use
      • 2011-08-11 22318, 2011

      • nikki
        you'll need to get more recent translations from https://www.transifex.net/projects/p/musicbrainz/… too
      • 2011-08-11 22329, 2011

      • nikki
        and you'll need to change your accept language thing in your browser to request the language you want to see (that's another thing we don't have yet, a way to actually change the language without fiddling with settings)
      • 2011-08-11 22335, 2011

      • nikki
        then it should just work
      • 2011-08-11 22347, 2011

      • nikki
        hm...
      • 2011-08-11 22352, 2011

      • nikki
        there's a 'make' involved somewhere
      • 2011-08-11 22307, 2011

      • nikki
        it's been a few months, I've forgotten exactly :(
      • 2011-08-11 22326, 2011

      • kepstin
        looks like you run make in the 'po' directory
      • 2011-08-11 22332, 2011

      • nikki
        yeah, that sounds right
      • 2011-08-11 22307, 2011

      • nikki
        get more recent translations, put into the po directory, run make, make sure the languages are in dbdefs.pm and your browser's accept lang settings, run server
      • 2011-08-11 22315, 2011

      • nikki
        that seems like the right sort of order :)
      • 2011-08-11 22341, 2011

      • kepstin
        oops, I did the last step too early, and now transifex is in french
      • 2011-08-11 22354, 2011

      • nikki
        hehe
      • 2011-08-11 22340, 2011

      • ianmcorvidae puts german and esperanto above en_US
      • 2011-08-11 22344, 2011

      • ianmcorvidae
        this should be fun :P
      • 2011-08-11 22318, 2011

      • ianmcorvidae
        yay, debian homepage in esperanto again :P
      • 2011-08-11 22346, 2011

      • kepstin
        huh, how do you actually download the translations from transifex? I can't figure it out :)
      • 2011-08-11 22335, 2011

      • ianmcorvidae
        if you click the language there's some download links
      • 2011-08-11 22339, 2011

      • ianmcorvidae
        but it seems like you have to be logged in?
      • 2011-08-11 22316, 2011

      • kepstin
        looks like i'm hitting weird caching errors - even after I logged in, it's still showing me the pop-ups from when I wasn't logged in. and they're still in french even though I changed my languages.
      • 2011-08-11 22324, 2011

      • kepstin wonders if it's a browser bug
      • 2011-08-11 22345, 2011

      • ianmcorvidae
        perhaps
      • 2011-08-11 22350, 2011

      • ianmcorvidae
        force-refresh, I guess
      • 2011-08-11 22359, 2011

      • kepstin
        hmm. I must have missed a step, I'm not seeing translations :/
      • 2011-08-11 22345, 2011

      • ianmcorvidae
      • 2011-08-11 22302, 2011

      • ianmcorvidae
        no
      • 2011-08-11 22304, 2011

      • ianmcorvidae
        lol
      • 2011-08-11 22309, 2011

      • ianmcorvidae
        ignore me :P
      • 2011-08-11 22322, 2011

      • kepstin
        oh, I got the po file downloaded, I'm not seeing the translations in musicbrainz :)
      • 2011-08-11 22358, 2011

      • ianmcorvidae
        you edited dbdefs, downloaded them, and did the make?
      • 2011-08-11 22306, 2011

      • kepstin
        yep.
      • 2011-08-11 22321, 2011

      • ianmcorvidae
        hm
      • 2011-08-11 22323, 2011

      • ianmcorvidae
        nikki?
      • 2011-08-11 22328, 2011

      • nikki
        what did make say?
      • 2011-08-11 22353, 2011

      • kepstin
        nikki: said it was merging a bunch of translations, didn't give any errors. if you want a full log I can post that.
      • 2011-08-11 22340, 2011

      • nikki opens her vm
      • 2011-08-11 22300, 2011

      • kepstin runs 'make install' in the po directory
      • 2011-08-11 22307, 2011

      • kepstin
        apparently just 'make' doesn't cut it :)
      • 2011-08-11 22326, 2011

      • ianmcorvidae
        ah, yeah, make install is what makes the .mo files
      • 2011-08-11 22334, 2011

      • nikki
        ah, right
      • 2011-08-11 22350, 2011

      • ianmcorvidae
        there we go, translations :D
      • 2011-08-11 22355, 2011

      • nikki
        yay!
      • 2011-08-11 22336, 2011

      • kepstin .. still doesn't have translations :(
      • 2011-08-11 22349, 2011

      • nikki
        have you restarted the server?
      • 2011-08-11 22353, 2011

      • kepstin
        wait a minute.
      • 2011-08-11 22302, 2011

      • kepstin
        no, I have them. They're just rather incomplete :)
      • 2011-08-11 22308, 2011

      • ianmcorvidae
        yeah, they're quite incomplete
      • 2011-08-11 22317, 2011

      • ianmcorvidae found something I _knew_ was translated first :P
      • 2011-08-11 22342, 2011

      • nikki
        hm, they shouldn't be that bad
      • 2011-08-11 22346, 2011

      • ianmcorvidae
        hey ocharles, speaking of gsoc, how's reviewing my code going?
      • 2011-08-11 22348, 2011

      • nikki
        the french one at least
      • 2011-08-11 22348, 2011

      • kepstin
        apparently "Artist" in the top corner search box is translated to french, but none of the other things are :)
      • 2011-08-11 22320, 2011

      • ianmcorvidae
        the pot file seems... rather out of date
      • 2011-08-11 22327, 2011

      • ianmcorvidae
        973 changes, according to reviewboard
      • 2011-08-11 22342, 2011

      • ianmcorvidae
        (which I'm just using as a diff viewer, but XD
      • 2011-08-11 22306, 2011

      • nikki
        I don't think most of the site changed though, things like the main page should still be translated
      • 2011-08-11 22318, 2011

      • kepstin
        main page is completely untranslated :/
      • 2011-08-11 22324, 2011

      • ianmcorvidae
        likewise
      • 2011-08-11 22350, 2011

      • nikki makes a brand new git directory to test with
      • 2011-08-11 22337, 2011

      • ianmcorvidae
        I didn't update from transifex, I guess I should note
      • 2011-08-11 22340, 2011

      • kepstin
        http://makoto.kepstin.ca:3000/ should be working... I think. can anyone see it?
      • 2011-08-11 22346, 2011

      • kepstin
        ianmcorvidae: I did. it didn't help :)
      • 2011-08-11 22359, 2011

      • nikki
        I can
      • 2011-08-11 22306, 2011

      • kepstin
        ^^ that link has the french translation enabled
      • 2011-08-11 22324, 2011

      • ianmcorvidae
        maybe the *.po.new need to be copied to *.po first?
      • 2011-08-11 22339, 2011

      • nikki
        possibly
      • 2011-08-11 22342, 2011

      • kepstin
        ianmcorvidae: the .po.new is generated by the makefile, i think
      • 2011-08-11 22344, 2011

      • ianmcorvidae
        kepstin: diff your .po and .po.new, maybe?
      • 2011-08-11 22350, 2011

      • ianmcorvidae
        the makefile could be wrong :P
      • 2011-08-11 22359, 2011

      • nikki
        I think the makefile might create .new and you have to move it to .po yourself
      • 2011-08-11 22310, 2011

      • nikki should make some instructions once vmware stops being slow
      • 2011-08-11 22301, 2011

      • kepstin
        fr: fr.po: 23 translated messages, 19 fuzzy translations, 1783 untranslated messages. :/
      • 2011-08-11 22329, 2011

      • kepstin
        looks like nl is the best supported language, with nl: nl.po: 235 translated messages, 358 fuzzy translations, 318 untranslated messages.
      • 2011-08-11 22349, 2011

      • ianmcorvidae
        I have 43 translated messages
      • 2011-08-11 22350, 2011

      • ianmcorvidae
        huh
      • 2011-08-11 22319, 2011

      • ianmcorvidae
        for fr
      • 2011-08-11 22342, 2011

      • ianmcorvidae
        with having NOT updated :P
      • 2011-08-11 22340, 2011

      • kepstin now has... a not particularly completely translated dutch server
      • 2011-08-11 22340, 2011

      • nikki
        what the hell is "*** glibc detected *** xgettext: corrupted double-linked list: 0x09d9f0c0 ***" supposed to mean?
      • 2011-08-11 22301, 2011

      • kepstin
        nikki: usually that means something called "free()" on the same pointer twice
      • 2011-08-11 22309, 2011

      • nikki
        I just ran 'make' :/
      • 2011-08-11 22312, 2011

      • ianmcorvidae
        i.e. someone misprogrammed xgettext
      • 2011-08-11 22320, 2011

      • kepstin
        or something like that. basically, it corrupted the internal memory management in the C library.
      • 2011-08-11 22330, 2011

      • kepstin
        "Welkom bij MusicBrainz!" :)
      • 2011-08-11 22316, 2011

      • nikki
        any suggestions of where to look to fix it?
      • 2011-08-11 22328, 2011

      • ianmcorvidae
        and, yeah, I think our list of strings has changed more than we'd think
      • 2011-08-11 22341, 2011

      • kepstin
        nikki: check for updated gettext package?
      • 2011-08-11 22351, 2011

      • nikki
        "gettext is already the newest version." :/
      • 2011-08-11 22305, 2011

      • kepstin
        :/
      • 2011-08-11 22349, 2011

      • kepstin
        huh. even if it's serving the page with a translation, the musicbrainz server sets lang="en" on the html element
      • 2011-08-11 22300, 2011

      • nikki said there were bugs :P
      • 2011-08-11 22302, 2011

      • ianmcorvidae
        well, translations are kind of, uh, bad
      • 2011-08-11 22313, 2011

      • nikki
        I would get it running myself if I could :/
      • 2011-08-11 22315, 2011

      • ianmcorvidae
        these may be reasons we don't run this on live
      • 2011-08-11 22321, 2011

      • nikki tries letting ubuntu update stuff
      • 2011-08-11 22356, 2011

      • kepstin
        I don't know any other languages well enough to translations :/