nikki suddenly remembers she was going to reimport the data
navap
Is there a way to reimport the data but keep the edits I've created?
ruaok
there is a few ways.
one interesting way would be to not have InitDb.pl write to your RAWDATA database.
do this:
setup the import to import to musicbrainz_db_new and musicbrainz_db_raw_temp
when you're ready to run change DBDefs to point to musicbrainz_db_new and musicbrainz_db_raw_old
that *should* keep your edits
navap
Was musicbrainz_db_raw_old supposed to be musicbrainz_db_raw_temp ?
If I want to change which databases the import goes to, I edit DBDefs.pm right?
ruaok
yeds
navap
Change the database => for READWRITE and RAWDATA.
ruaok
yes
navap
Then after the import finishes I'll change RAWDATA back from musicbrainz_db_raw_temp to what it was before (musicbrainz_db_raw) and I can drop my previous READWRITE database
ruaok
ding
navap
Okay makes sense, I'll give it a shot :)
ijabz_ joined the channel
argh AFAIK all I've done is edit DBDefs.pm and then revert that change, but now the server crashes when I switch to my master branch.
I have two MB repos and neither will work when I switch to master.
compare DBDefs.pm and DBDefs.pm.default and look for the PLUGIN_CACHE_OPTIONS section.
you may need to copy the section from the default into your config
navap
Yeah it's not in my DBDefs
Odd, the server didn't notice the change.
navap is reminded about a conversation we had a long time back where you suggested I setup and use cache and I said no to keep virtualbox running as lightly as possible.
And just in time. The dump is just about to finish downloading.
ruaok
:-)
nikki wonders if navap started downloading after her
navap
I started 27 min ago
nikki
ruaok: do you have an md5 thingy for mbdump.tar.bz2?
ruaok nods
ruaok
f32cebe8de99ba57030f0965ff679901
nikki
yay it matches
ruaok
its been transferred 4 times before the file reached you.
ijabz joined the channel
ruaok just thought about that
and only one of those was fast
nikki
for some reason wget stalled for ages and I restarted it so I just wanted to make sure it continued ok
nikki starts the import and waits
navap
I'm getting Cannot open /usr/share/postgresql/8.4/contrib/musicbrainz_collate.sql
ruaok
short answer: RTFM
nikki
heh, yeah
ruaok
when updating from git, you should see if INSTALL changes and follow the changes
the useful answer....
cd postgresql-musicbrainz-collate
make
sudo make install
nikki
you need to install postgresql-contrib
navap
Has the INSTALL been updated?
ruaok
yes
nikki
oh, that's the collate one
ruaok
yep
navap
Ah whoops, I was looking at a different branch's INSTALL
ruaok goes to do some yoga before bed.
ruaok
if you need me, use my nick and I'll hear.
navap
Hopefully I won't :) It's importing now so I think I'm going to go to bed and let it run.
alastairp
OK, friday night. I think it's time to start musichackday
ruaok
a bit ahead of yourself, no?
alastairp
well, hackday proper starts sunday morning for me
which I really don't want to deal with
so I may as well start now
ruaok
lol
djce joined the channel
nikki
bah. ran out of space
outsidecontext joined the channel
djce joined the channel
brianfreud
504s across the board; think the server fell asleep
djce: ping?
ah, it's back, I think
aCiD2 joined the channel
brianfreud joined the channel
aCiD2 joined the channel
VectorX joined the channel
VectorX
is there any test sql queries that exist for showing information
nikki
what sort of information?
VectorX
like a search for an artist showing track, releases etc
like artist=MJ track list
sort of thing
nikki
not that I'm aware of
VectorX
ok
when running /admin/InitDb.pl --createdb --import /tmp/dumps/mbdump*.tar.bz2 --echo is it suppoed to create indexes etc, coz mine failed and when i run quries i get a, no primary key warning
nikki
it should do
VectorX
hmm ok, ill redownload the files and try again then
nikki prods aCiD2
aCiD2
hi nikki
nikki
line 179 in INSTALL should have a . before the /admin
k im having too many issues with postgres 8.4 and this, so gonna try 8.3 and reinstalling everything again
nikki is using 8.4 ok :/
aCiD2
8.4 is fine
I doubt dropping to 8.3 will fix anything
VectorX
well it was a pain getting the ident etc working
just postgres issues i think
aCiD2
8.3 is no different
have you pasted into pg_hba like the INSTALL says and restarted the server?
VectorX
yeah
aCiD2
then it should work :) what doesn't?
VectorX
kept telling me it needs name value pairs etc
are you using any javascript libs like jquery or mootools etc ?
aCiD2
query
query*
...
jquery*
got there in the end.
nikki giggles
I think this keyboard is dying. my caps lock as control hasn't been working properly today
VectorX
what are you using it for
aCiD2
control? :)
oh
jquery lol. Erm, all our JS really
the release editor mostly, at the moment
VectorX
have you done a lot of work on it with jquery ?
aCiD2
A fair amount, yea
VectorX
ic
probably would have been better to go with mootools or dojo, because they have clases, so you can better modularize the code, but im sure there is a good reason why you went with jquery
apart from the simplicity of implementation
aCiD2
You can do classes in jQuery too
It's all javascript at the end of the day, it's not like MooTools does magic we couldn't do our selves
VectorX
true
aCiD2
(We do use classes, just not the same format as mootools)
VectorX
good good
is the ngs dump accurate or is it just test data ?
dump=dumps
sorry the singular sounds bad
nikki
it's a conversion of the current data
djce
brianfreud and anyone else listening: the 504 errors are happening because the back ends (mb_server) are crashing intermittently while serving requests.
crashing as in receiving SIGKILL
nikki
that doesn't sound good :o
djce
not much data to go on yet but I just saw one crashing after querying "SELECT * FROM link_attribute_type WHERE id = '0'"