[ckan-dev] Start-up issue after install from source

BIHANIC Laurent laurent.bihanic at atos.net
Fri Apr 13 15:40:25 UTC 2012


Hi,

After installing CKAN from the source (latest I guess), I get the following
error when running $ paster serve development.ini:

...
   File "/home/lbihanic/pyenv/src/ckan/ckan/lib/search/__init__.py", line 259,
in check_solr_schema_version
     res = urllib2.urlopen(req)
...
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>

The full trace is provided below.

If I uncomment solr_url in development.ini to:
        solr_url = http://127.0.0.1:8983/solr
I get:
        urllib2.HTTPError: HTTP Error 403: Forbidden

Yet, the CKAN 1.3 schema is available at
http://localhost:8983/solr/admin/file/?file=schema.xml

Finally, if I use an incorrect URL (say "http://127.0.0.1:8983/solr/"), CKAN
starts with the messages below but I can not add new datasets.

SolrException: HTTP code=404, reason=Not Found
2012-04-13 17:36:09,062 WARNI [ckan.lib.search] Problems were found while
connecting to the SOLR server
Starting server in PID 9454.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000

Could someone help me find me what I did wrong ?

TIA,

Laurent


Traceback (most recent call last):
   File "/usr/bin/paster", line 18, in <module>
     command.run()
   File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 84, in run
     invoke(command, command_name, options, args[1:])
   File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 123, in
invoke
     exit_code = runner.run(args)
   File "/usr/lib/pymodules/python2.6/paste/script/command.py", line 218, in run
     result = self.command()
   File "/usr/lib/pymodules/python2.6/paste/script/serve.py", line 276, in command
     relative_to=base, global_conf=vars)
   File "/usr/lib/pymodules/python2.6/paste/script/serve.py", line 313, in loadapp
     **kw)
   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 204, in
loadapp
     return loadobj(APP, uri, name=name, **kw)
   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 225, in
loadobj
     return context.create()
   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 625, in
create
     return self.object_type.invoke(self)
   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 110, in
invoke
     return fix_call(context.object, context.global_conf, **context.local_conf)
   File "/usr/lib/pymodules/python2.6/paste/deploy/util/fixtypeerror.py", line
57, in fix_call
     val = callable(*args, **kw)
   File "/home/lbihanic/pyenv/src/ckan/ckan/config/middleware.py", line 47, in
make_app
     load_environment(global_conf, app_conf)
   File "/home/lbihanic/pyenv/src/ckan/ckan/config/environment.py", line 97,
in load_environment
     check_solr_schema_version()
   File "/home/lbihanic/pyenv/src/ckan/ckan/lib/search/__init__.py", line 259,
in check_solr_schema_version
     res = urllib2.urlopen(req)
   File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
     return _opener.open(url, data, timeout)
   File "/usr/lib/python2.6/urllib2.py", line 391, in open
     response = self._open(req, data)
   File "/usr/lib/python2.6/urllib2.py", line 409, in _open
     '_open', req)
   File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
     result = func(*args)
   File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
     return self.do_open(httplib.HTTPConnection, req)
   File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
     raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>




--
                  wWw
                 (o o)
-------------ooO-(_)-Ooo-----------------------------------------------
Laurent Bihanic              | Tel: +33 (0)1 73 26 12 92
Atos Systems Integration     | GSM: +33 (0)6 25 73 03 74
80 quai Voltaire             |
F-95870 Bezons               | mailto: laurent.bihanic at atos.net
-----------------------------------------------------------------------
Very funny, Scotty. Now beam down my clothes.


Please consider your environmental responsibility before printing
this e-mail.

DISCLAIMER:
The opinions expressed are entirely my own and may not necessarily be
those of my employer.  Also, I am not now nor have I ever been a
lawyer.  My opinions are provided as-is with absolutely no warranty of
merchantability or fitness for any particular use.  Besides, you can't
prove I typed this.  No body saw me type this.  Who says I typed this?
________________________________


Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos ne pourra être engagée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.





More information about the ckan-dev mailing list