Back at it for more...
So I started over.
I installed openjdk6. Will chronam work with jdk7?
I installed jetty and confirmed it was
working. The default version in synaptic package manager is 6. Version 8 is also there but I wanted to go standard for the time being
I installed the jetty-solr package. There was a problem with it not finding solr but I did some research and found that was a bug. I had to do two things to fix it. First I had to change the symbolic link in /var/lib/jetty/webapps for solr to point to /usr/share/solr/web. Then I had to change the symbolic link in usr/lib/jvm for default-java to point to the correct openjdk. That allowed solr to come up.
I went back to the chronam installation and got to the pip install -r requirements
statement which appears to have failed with the following (Interesting because it worked before at some point). Any ideas? Thanks in advance.
Traceback (most recent call last):
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 219, in run
for req in parse_requirements(filename, finder=finder, options=options):
"/opt/chronam/ENV/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1297, in parse_requirements
req = InstallRequirement.from_line(line, comes_from)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 107, in from_line
return cls(req, comes_from, url=url)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 40, in __init__
req = pkg_resources.Requirement.parse(req)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pkg_resources.py", line 2751, in parse
reqs = list(parse_requirements(s))
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/pkg_resources.py", line 2676, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
"/opt/chronam/ENV/local/lib/python2.7/site-packages/pkg_resources.py", line 2644, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'html5lib=0.95-dev', 'at', '=0.95-dev')
Storing complete log in /root/.pip/pip.log
Chronam doesn't care if Solr is running in a Jetty or Tomcat service container. However it is important that Solr is configured to use the chronam schema, which is independent of the container. You can find the schema xml here: https://github.com/LibraryOfCongress/chronam/blob/master/conf/schema.xml
Let us know how it goes.
From: Glenn Bunton [mailto:[log in to unmask]
Sent: Tuesday, June 25, 2013 2:01 PM
To: Summers, Ed; [log in to unmask]
Subject: Re: Not quite
I haven't been able to figure out the relationship between the jetty and the solr yet.
Just as I test I wanted to see if I could install solr straight, apart from the chronam installation. I'm working on that right now and will let you know how that turns out.
Question - does chronam care if it's jetty or tomcat or would either work? I know it's configured for jetty but just wondered if there was anything jetty-specific that would not work with tomcat.
Will be back in touch with more info soon.
From: "Summers, Ed" <[log in to unmask]
To: 'Glenn Bunton' <[log in to unmask]
>; "[log in to unmask]
" <[log in to unmask]
Sent: Monday, June 24, 2013 12:02 PM
Subject: RE: Not quite
Did you ever get any insight into what the jetty url was for the solr servlet? If you are still drawing a blank I would be willing to log in to the machine in question and take a look if you think it could help.
From: Data, API, website, and code of the Chronicling America website [mailto:[log in to unmask]
] On Behalf Of Glenn Bunton
Sent: Friday, June 14, 2013 1:36 PM
To: [log in to unmask]
Subject: Not quite
Thanks for the last suggestions. I did the git but I still get a 404 error when I dohttp://localhost:8080/solr
Interesting comments about javac and what it's looking for. Would it make any difference if it's jdk/jre6 or jdk/jre7? I noticed both were on our server. We installed 6 with the installation instructions for chronam but it looks like the default is 7 for the basic installation. I took 7 off to see if that would make any difference but got the same error. The javac is in /usr/bin
Will keep looking around. Thanks for the continuing help.