datagovuk / linux_puppet

Puppet manifests to install DGU infrastructure.
1 stars 5 forks source link

SOLR not found when running paster commands #27

Open davidread opened 10 years ago

davidread commented 10 years ago

Puppet 'Paster db init' fails due to SOLR not being found. I imagine puppet needs telling to only do paster commands when SOLR setup is complete.

Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: 2014-11-13 10:49:12,217 ERROR [ckan.lib.search.common] HTTP code=404, reason=Not Found
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/src/ckan/ckan/lib/search/common.py", line 51, in is_available
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     conn.query("*:*", rows=1)
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 703, in query
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     return self.select(*args, **params)
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 798, in __call__
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     xml = self.raw(**params)
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 823, in raw
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     rsp = conn._post(self.selector, request, conn.form_headers)
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 639, in _post
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     return check_response_status(self.conn.getresponse())
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:   File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 1097, in check_response_status
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns:     raise ex
Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: SolrException: HTTP code=404, reason=Not Found

Context: http://pastebin.com/ec85KkaT

noels commented 10 years ago

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

I was sure I'd sorted that out...

Let me see if something isn't committed.

David Read wrote on 13/11/2014 10:59:

Puppet 'Paster db init' fails due to SOLR not being found. I imagine puppet needs telling to only do paster commands when SOLR setup is complete.

|Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: 2014-11-13 10:49:12,217 ERROR [ckan.lib.search.common] HTTP code=404, reason=Not Found Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: Traceback (most recent call last): Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/src/ckan/ckan/lib/search/common.py", line 51, in isavailable Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: conn.query(":_", rows=1) Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 703, in query Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: return self.select(_args, *_params) Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 798, in call Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: xml = self.raw(**params) Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 823, in raw Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: rsp = conn._post(self.selector, request, conn.form_headers) Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 639, in _post Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: return check_response_status(self.conn.getresponse()) Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: File "/usr/lib/ckan/local/lib/python2.7/site-packages/solr/core.py", line 1097, in check_response_status Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: raise ex Notice: /Stage[main]/Ckan::Config/Exec[paster db init]/returns: SolrException: HTTP code=404, reason=Not Found |

Context: http://pastebin.com/ec85KkaT

— Reply to this email directly or view it on GitHub https://github.com/datagovuk/linux_puppet/issues/27.

-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJUZJghAAoJEFFVsRfbzGZ63WsH/Rnz7xyUbKzXzsCXwl4D0hFQ sEVMlYEymvi5wdCjqIYZXos5y+EFYydLaniD6fEw1sv/rjLywIoirFkKtBj+nEkU C4k+L+y38U/L1c0i6orj5+QnqsVyoZHatb3PlP3/oM9Ffos9wR4iw6+JpB7H6JMz umfQvURG7RbGx+mAfiRCA3kqX3h7bbzyha6tzc//exogRojhmcWqK2mVSp7+aRnr PxLJNwarXK2o7gu4Wh2i5bXbw52SiKmjct0rmk4iVo+MBsdMgpuhL5I4RqO0UPgX m/lIsXhS9kJ19WAsYcJhbLClE/0l9cMIJndC8ZAYQSMIO32QQd027oK+kFDBzq0= =ddDs -----END PGP SIGNATURE-----