And if Solr is running, make sure it’s running on the same port that is configured in the settings file (I think it’s 8983 by default, but you can change that in the settings if you’d rather.
-db.
From: Data, API, website, and code of the Chronicling America website [mailto:[log in to unmask]] On Behalf Of Jeremy Echols
Sent: Tuesday, September 20, 2016 4:19 PM
To: [log in to unmask]
Subject: Re: --skip-essays problem
Is Solr running? And is the Solr URL set up properly in your settings? Offhand I’m not sure what else could be going wrong, but some of the app’s errors can certainly be misleading at times.
From: Data, API, website, and code of the Chronicling America website [mailto:[log in to unmask]] On Behalf Of Glenn Bunton
Sent: Tuesday, September 20, 2016 12:58 PM
To: [log in to unmask]
Subject: --skip-essays problem
We are working on a new installation of the standard LC Chronam software. Everything goes smoothly until we reach the
django-admin.py chronam_sync --skip-essays
command that returns the following:
(ENV)chronam@historicnewspapers:/opt/chronam$ django-admin.py chronam_sync --skip-essays
Traceback (most recent call last):
File "/opt/chronam/ENV/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/opt/chronam/core/management/commands/chronam_sync.py", line 47, in handle
index.page_count() == 0 and
File "/opt/chronam/core/index.py", line 48, in page_count
return solr.query('type:page', fields=['id']).numFound
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/solr/core.py", line 704, in query
return self.select(*args, **params)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/solr/core.py", line 799, in __call__
xml = self.raw(**params)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/solr/core.py", line 823, in raw
rsp = conn._post(self.selector, request, conn.form_headers)
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/solr/core.py", line 640, in _post
return check_response_status(self.conn.getresponse())
File "/opt/chronam/ENV/local/lib/python2.7/site-packages/solr/core.py", line 1103, in check_response_status
raise ex
solr.core.SolrException: HTTP code=404, reason=Not Found
Any suggestions or ideas?
Thanks in advance.
|