-
ruaok
but I have a VM that will have full indexes in a minute.
-
after that I will make a clean one and import data into it.
-
and then I'll ship that.
-
ocharles
the crontab is installed as root, is that intentional?
-
ruaok
I was wondering about that.
-
its your recipe. :)
-
user musicbrainz would make more sense
-
ocharles
we should probably put that in musicbrainz'
-
ruaok
I'll do it.
-
ocharles
~search/bin/reindex looks fine, but i'm not familiar with search server
-
should we not stop jetty before removing indexes?
-
ruaok
it doesn't really matter, but I see what you're saying.
-
order fixed. cron fixed. investigating java_home
-
ocharles: do me a quick favor?
-
edit /etc/default/jetty and set java_home=/usr
-
then stop jetty and see if it starts again
-
ocharles
just /usr?
-
ruaok
yeah
-
one stackoverflow page suggested using 'which java' and using the path from it.
-
which is /usr and it worked. :)
-
ocharles
yea, I was about to suggest that to you
-
though I was going to suggest using readlink to resolve the symlinks
-
ruaok
but given how ubuntu deals with installing things you can pretty much assume that /usr is going to work
-
did you look at pg_tune.py ?
-
not exactly pretty, but it does a decent job.
-
ocharles
btw
-
ocharles tries a jetty restart
-
Cannot find any VM in Java Home /usr
-
ruaok
feck. why did it work on my machine.
-
well, then neither of our approaches work
-
ocharles
JAVA_HOME=/usr
-
ruaok
oh wait.
-
ocharles
is that right?
-
ruaok
ya
-
what does your readlink command give you?
-
ocharles
vagrant [at musicbrainzvm]:~$ readlink -f $( dirname $( readlink -f $( which java ) ) )/../..
-
/usr/lib/jvm/java-7-openjdk-i386
-
ruaok
ok, that works.
-
thanks.
-
I dont see a cookbook for readlink. :(
-
ruaok plans to use bash resource
-
ocharles
oh yea, you'll just want to script that
-
I doubt the above will nicely encode to cookbooks :) Maybe some Ruby would be nicer, but I don't know Ruby well enough
-
ruaok
echo "JAVA_HOME="`readlink -f $( dirname $( readlink -f $( which java ) ) )/../..`
-
>> /dev/default/jetty
-
and its done.
-
ocharles
and you removed the JAVA_HOME from the cookbook_file I take it?
-
and redirect to /etc/, not /dev :)
-
ruaok
heh
-
I will in just a sec
-
Wed Jul 31 08:40:36 PDT 2013: Building indexes complete
-
I <3 SSDs
-
is there a reason why mb runs on port 5000 on the VM?
-
why not 80?
-
wow, seaching works. :)
-
ocharles
because it's not running under nginx or anything
-
so I just went with the default
-
it uses the built in dev server, so we might want to consider switching that to nginx
-
but it does the job
-
oh crap, I have an invoice to get to you. I just realised the date
-
ruaok
HA!
-
you're not done here yet, buster!
-
can we at least switch it to port 80 for niceness?
-
ocharles
You can do it in the vagrant stuff if you want
-
Host port 80 forwards to guest port 5000
-
ruaok
oh!
-
clever.
-
config.vm.network :forwarded_port, guest: 5000, host: 80
-
?
-
ocharles
that sounds right to me
-
ruaok
provision didn't fix it.
-
I'm guessing this a reload.
-
ocharles
Yea, because it's not a provisioning
-
ruaok
k.
-
man, chef and vagrant are fun to work with
-
though googling things for chef is dumb sometimes.
-
chef java
-
brings up nothing even closely relevant
-
and I've had a few other searches that went about the same way.
-
reload didn
-
t help either
-
ocharles
hmm
-
what about vagrant halt and vagrant up?
-
ultimately, you may have to change your VMWare configuration
-
as that's what that command boils down to
-
ruaok
well, I dont care that much.
-
the VM I provision to ship will be done from scratch.
-
let me commit and then start that
-
ocharles
sure thing
-
ruaok
both repos committed and pushed
-
Leftmost joined the channel
-
ocharles: do you know if the base-box gets cached somewhere?
-
ocharles
it does
-
in ~/.vagrant.d/boxes
-
ruaok
perfect.
-
then this next redeploy will be fast
-
ocharles
the initial provision is a lot slower because of all the apt-get installs, but yea - that speeds things up
-
ruaok
vagrant destroy is oddly satisfying
-
ocharles
:D
-
ruaok
damn. base box was NOT cached.
-
futh
-
nikki
-
ocharles
it might
-
but I'm not sure
-
there's a good chance it will, as the solution is quite a general one
-
nikki
-
ocharles
not now, but I will try and have a look tomorrow
-
ocharles always enjoys killing multiple birds with one stone
-
>:)
-
weasel00 joined the channel
-
ruaok
provisioned, data import started.
-
so far, so good.
-
voiceinsideyou1 joined the channel
-
andreypopp joined the channel
-
voiceinsideyou joined the channel
-
ocharles
ruaok: ok, invoice typed, now to get the fucking scanner working
-
ruaok: scanner is bust, snail mail it is
-
navap
Take a picture with your phone, fix rotation, convert to pdf, done :)
-
ruaok
ocharles: navap is right.
-
ocharles
navap: screw that noise
-
ruaok
I've done that tons of times.
-
convert things to pdf.
-
then sign using Preview's signature feature.
-
works great.
-
then Aleta's bank required her to sign a document 5 times in the margin.
-
they wanted her to do it by hand then scan it in.
-
so she made 5 different signatures for Preview and added them on.
-
then ran the image though a "photocopy" filter in photoshop.
-
it looked fucking real.
-
and the bank gladly accepted it.
-
no stamps ocharles??
-
not good enough.
-
nice penmanship though.
-
atod joined the channel
-
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
-
(well, not for invoices, since I just send those as emails, but :P)
-
SultS joined the channel
-
HankCorto has left the channel
-
SultS_ joined the channel
-
hawke_1 joined the channel
-
hawke joined the channel
-
ijabz joined the channel
-
hawke_1
-
As an extra bonus, clicking 'use beta site' there actually *unsets* the beta preference.
-
ianmcorvidae
heh
-
well, it doesn't redirect because it's often POST, and redirects don't preserve data on POST
-
hawke_1
Is there no way to preserve it?
-
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
-
no, there isn't
-
I mean