Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication problem with solr #19

Closed
zelima opened this issue Jan 23, 2019 · 2 comments
Closed

Authentication problem with solr #19

zelima opened this issue Jan 23, 2019 · 2 comments
Assignees

Comments

@zelima
Copy link
Collaborator

zelima commented Jan 23, 2019

Irakli Mchedlishvili [Today at 1:48 PM]
Getting this after migrating the first instance on the production

Traceback (most recent call last):
  File "/usr/bin/paster", line 11, in <module>
    sys.exit(run())
...
  File "/usr/lib/python2.7/httplib.py", line 736, in __init__
    (self.host, self.port) = self._get_hostport(host, port)
  File "/usr/lib/python2.7/httplib.py", line 777, in _get_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
httplib.InvalidURL: nonnumeric port: '***@***.searchstax.com'

we need to set:

CKAN_SOLR_USER
CKAN_SOLR_PASSWORD

the change should be done here:
https://github.com/ViderumGlobal/ckan-cloud-operator/blob/master/ckan_cloud_operator/deis_ckan/envvars.py#L49 (edited)

and in infra secret - add the username / password as well in separate keys

@zelima zelima added the review label Jan 24, 2019
@zelima
Copy link
Collaborator Author

zelima commented Jan 24, 2019

Above was solved by adding CKAN_SOLR_USER and CKAN_SOLR_PASSWORD to envvars see #20

But now we have authentication problem anyway when making requests:

Error: SolrError(u'Solr responded with an error (HTTP 401): [Reason: None]\n<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Error 401 Unauthorized request, Response code: 401</title></head><body><h2>HTTP ERROR 401</h2><p>Problem accessing /solr/lincolnshire/select/. Reason:<pre>    Unauthorized request, Response code: 401</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/></body></html>',)

@zelima zelima added in progress and removed review labels Jan 24, 2019
@zelima zelima self-assigned this Jan 24, 2019
@zelima
Copy link
Collaborator Author

zelima commented Jan 25, 2019

FIXED in afde17b

@zelima zelima closed this as completed Jan 25, 2019
@ghost ghost removed the in progress label Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant