-
darwin
yea we run kafka at work
-
ruaok
-
darwin
I don't have a huge amount of hands on, unfortunately
-
ruaok
some of the answer below might be interesting to try too.
-
darwin: bummer.
-
only one VM experiences this.
-
Gentlecat
no, I haven't tried removing directories
-
ruaok
Gentlecat: try it. and then maybe try the lesser answers below.
-
Gentlecat
looks like our data dir for kafka is /var/lib/kafka/kafka-logs
-
not sure about zookeeper though
-
it's not /tmp/zookeeper
-
ruaok
/var/lib/zookeeper ?
-
Gentlecat
yeah, this one has things
-
Created topic "listens".
-
let's try again
-
"success"
-
yay?
-
ruaok
odd.
-
at least we have a workaround for this case.
-
Gentlecat
still nothing in my profile though
-
ruaok
is the writer script working?
-
running...
-
Gentlecat
which one is that?
-
listenstore-kafka-to-cassandra-writer.py?
-
ruaok
yes
-
Gentlecat
no, it's not
-
ruaok
did you run python setup.py develop in the listenstore dir?
-
cassandra_consumer.py in the root is the old one.
-
Gentlecat
I think I did
-
ruaok
does the script run?
-
Gentlecat
running listenstore-kafka-to-cassandra-writer.py solved the issue with missing listens on my profile page
-
I guess it's all working now
-
ruaok
\ø/
-
Gentlecat
time to update README.md
-
lel
-
ruaok
phew.
-
Gentlecat
so, uh, how do we fix this?
-
ruaok
fix what?
-
it happens only for you.
-
I wonder if it has to do that you're not on a mac.
-
make a note in README and let's move on
-
Gentlecat
ok
-
is JIRA broken? I'm getting 502s
-
ruaok
rebooting the server, which hosts mail as well.
-
should be back in a sec.
-
alastairp
oh cool. good to see you got it going
-
ruaok
Gentlecat: ERROR: 58P01: could not open extension control file "/usr/share/postgresql/9.3/extension/uuid-ossp.control": No such file or directory
-
Gentlecat
9.3?
-
ruaok
yes.
-
do I need 9.4?
-
Gentlecat
I think we run 9.4
-
ruaok
k
-
Gentlecat
at least that's what I've been using all this time
-
I'm putting that into readme
-
ruaok
I'll uprade
-
alastairp
yes, we’re using 9.4, it’s not available in the version of ubuntu we’re using
-
Gentlecat
huh?
-
there's postgreql-9.4 package
-
ruaok
I coudln't find 9.4 earlier.
-
alastairp
what does apt-cache policy say?
-
LordSputnik has quit
-
Gentlecat
-
alastairp
apt-cache policy postgresql-9.4
-
sorry
-
ruaok
I see it now.
-
but I did an apt-get update
-
Gentlecat
-
alastairp
-
ruaok: fyi, I got the leader error as well
-
ruaok
persistent or only once?
-
everyone gets it once.
-
alastairp
I poked it a few times, did the delete thing, used the kafka producer cli to put data in it
-
and it works now
-
I’m not sure which of the things fixed it
-
yeah, i think i understand how it gets it once, if the topic doesn’t exist
-
ruaok
delete thing worked for Gentlecat
-
alastairp
I wonder if we could disable automatic topic creation, and run the create topic command during setup
-
perhaps that would stop the error from happening
-
Gentlecat
-
ruaok
might be more robust, yes
-
apparently it is a timeout issue since creating a new topic takes a bit.
-
alastairp
ahhh
-
Gentlecat
so it keeps trying to create it again and again with every request that comes in?
-
ruaok
usually the second request succeeds, just not in your case.
-
the easiest fix is to use the kafka-topics.sh script to create the topic upon installation.
-
alastairp
cool, that’s a good piece of knowledge to have
-
ruaok
ok, 9.4 succeeds in installing that extension but fails on something else
-
alastairp
ruaok: do we have a plan of attack for this week? is it written down somewhere?
-
JesseW has left the channel
-
ruaok
-
Gentlecat
sqlite3?
-
alastairp
why is it using sqlite?
-
yeah, that
-
ruaok
I have a plan of attack, but that is for another important project that I'm working on this week.
-
Gentlecat
is your connection string defined?
-
ruaok
none for LB.
-
Gentlecat
we switched to sqlalchemy, so you need to update config file
-
don't know if you've done that already
-
ruaok
PG_CONNECT = "dbname=listenbrainz user=listenbrainz password= host=localhost port=5432"
-
LordSputnik joined the channel
-
Gentlecat
no, that's the old one for psycopg2
-
ruaok
ok
-
Gentlecat
see sample config
-
or just copy SQLALCHEMY_DATABASE_URI = "postgresql://listenbrainz@/listenbrainz"
-
ruaok
thanks.
-
working, server started.
-
ariscop has quit
-
LordSputnik has quit
-
Gentlecat
-
there's a special space for custom stuff
-
LordSputnik joined the channel
-
ruaok
no
-
Gentlecat
"add this line at the beginning" :)
-
ruaok
oh, details. :)
-
Gentlecat
I think we had this issue with alastairp before
-
ruaok
ok, +1 then.
-
Gentlecat
yup
-
alastairp
“I think I had this problem before and alastairp fixed it for me"
-
ruaok
alastairp, our problem child.
-
Gentlecat
right
-
alastairp
you talk about me because I know you care
-
ruaok
I'm only retaliating. :-p
-
Gentlecat
returning None
-
alastairp is not going to like that :)
-
ruaok
did you already read my commit?
-
Gentlecat
heh
-
I would probably agree
-
ruaok
-
Gentlecat
exceptions are the jam :)
-
ruaok
?
-
feh, time to re-merge the schema branch again.
-
we should really merge that soon.
-
Gentlecat
if not messybrainz_resp: raise MessyBrainzUnavailableException
-
and in catches below
-
something like that
-
ruaok
ok, at this point there are much bigger fish I would like to fry.
-
like getting it going. my solution is "good enough".
-
Gentlecat
yeah, I'm just saying :)
-
alastairp
make mr fussypants happy
-
Gentlecat: I won’t tell him that “return” implicitly is the same as “return None” if you don't
-
Gentlecat
:P
-
alastairp
ok, I have to head out again. I’ll be back in Barcelona about 7:30 tomorrow afternoon, so will take a look at all the new code then
-
ruaok
k
-
I may merge Russs new schema branch before then.
-
alastairp
ok
-
cool
-
ruaok
I've run it several times and understand what it does.
-
alastairp
I wanted to fix msb as well
-
ruaok
let me update it to resolve the conflicts with sqlalchemy
-
alastairp
add in rj’s recommendations about adding artist and album ids