[ckan-dev] Ckan url + subpath configuration
Jordi Piqueras Bautista
jpiqueras at absis.es
Tue Apr 4 16:00:08 UTC 2017
Hi Adrià!
I have done what you suggested me but I am also having following problems:
1. when I try to access to http://mysite:8080/ckan1/ I get redirect to http://mysite:8080 and root folder apache is loaded
[cid:image006.jpg at 01D2AD6D.4BD4E650]
2. when I try to access to http://mysite:8080/ckan2/ I get an error:
[cid:image007.jpg at 01D2AD6D.4BD4E650]
Apache’s log:
[Tue Apr 04 17:27:58.982970 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] mod_wsgi (pid=14226): Target WSGI script '/etc/ckan/mysite2/apache.wsgi' cannot be loaded as Python module.
[Tue Apr 04 17:27:58.983004 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] mod_wsgi (pid=14226): Exception occurred processing WSGI script '/etc/ckan/mysite2/apache.wsgi'.
[Tue Apr 04 17:27:58.983026 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] Traceback (most recent call last):
[Tue Apr 04 17:27:58.983038 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/etc/ckan/mysite2/apache.wsgi", line 9, in <module>
[Tue Apr 04 17:27:58.983091 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] application = loadapp('config:%s' % config_filepath)
[Tue Apr 04 17:27:58.983099 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/usr/lib/ckan/mysite2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
[Tue Apr 04 17:27:58.983262 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] return loadobj(APP, uri, name=name, **kw)
[Tue Apr 04 17:27:58.983271 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/usr/lib/ckan/mysite2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
[Tue Apr 04 17:27:58.983283 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] return context.create()
[Tue Apr 04 17:27:58.983287 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/usr/lib/ckan/mysite2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Tue Apr 04 17:27:58.983293 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] return self.object_type.invoke(self)
[Tue Apr 04 17:27:58.983297 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/usr/lib/ckan/mysite2/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Tue Apr 04 17:27:58.983303 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] return fix_call(context.object, context.global_conf, **context.local_conf)
[Tue Apr 04 17:27:58.983309 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/usr/lib/ckan/mysite2/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
[Tue Apr 04 17:27:58.983340 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] val = callable(*args, **kw)
[Tue Apr 04 17:27:58.983346 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/config/middleware/__init__.py", line 46, in make_app
[Tue Apr 04 17:27:58.983404 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] load_environment(conf, app_conf)
[Tue Apr 04 17:27:58.983412 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/config/environment.py", line 103, in load_environment
[Tue Apr 04 17:27:58.983467 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] p.load_all()
[Tue Apr 04 17:27:58.983473 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/plugins/core.py", line 129, in load_all
[Tue Apr 04 17:27:58.983587 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] unload_all()
[Tue Apr 04 17:27:58.983595 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/plugins/core.py", line 182, in unload_all
[Tue Apr 04 17:27:58.983605 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] unload(*reversed(_PLUGINS))
[Tue Apr 04 17:27:58.983610 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/plugins/core.py", line 210, in unload
[Tue Apr 04 17:27:58.983615 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] plugins_update()
[Tue Apr 04 17:27:58.983619 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/plugins/core.py", line 121, in plugins_update
[Tue Apr 04 17:27:58.983627 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] environment.update_config()
[Tue Apr 04 17:27:58.983631 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/config/environment.py", line 207, in update_config
[Tue Apr 04 17:27:58.983637 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] search.check_solr_schema_version()
[Tue Apr 04 17:27:58.983641 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] File "/home/mysite2/ckan/lib/mysite2/src/ckan/ckan/lib/search/__init__.py", line 306, in check_solr_schema_version
[Tue Apr 04 17:27:58.983713 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] % (version, ', '.join(SUPPORTED_SCHEMA_VERSIONS)))
[Tue Apr 04 17:27:58.983728 2017] [:error] [pid 14226:tid 140662654203648] [remote 10.0.26.206:35227] SearchError: SOLR schema version not supported: 2.3. Supported versions are [2.7]
I guess that I am missing something in the apache’s configuration. Could you please help me with that?
Thank you.
De: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] En nombre de Adrià Mercader
Enviado el: lunes, 03 de abril de 2017 17:47
Para: CKAN Development Discussions
Asunto: Re: [ckan-dev] Ckan url + subpath configuration
Hi Jordi,
I don't have much experience with non-root site myself but there are many on this list that have as issues around it come up regularly. What problems are you finding exactly? This might help others provide pointers.
One thing that definitely needs setting up is `ckan.root_path` in your ini file:
http://docs.ckan.org/en/latest/maintaining/configuration.html#ckan-root-path
Hope this helps,
Adrià
2017-04-03 11:33 GMT+01:00 Jordi Piqueras Bautista <jpiqueras at absis.es<mailto:jpiqueras at absis.es>>:
Hi,
I want to configure two instances of ckan. Could someone help me about this?
What I am trying to do is:
- http://mysite:8080/ckan1/
- http://mysite:8080/ckan2/
Which would be the necessary configuration steps?
I’ve done the following:
1. I have 2 apache.wsgi files one per each ckan
2. Apache config file:
...
WSGIDaemonProcess ckan1_default display-name= ckan1_default processes=2 threads=5
WSGIScriptAlias /ckan1 /etc/ckan/ckan1_default/apache.wsgi
<Location /ckan1>
WSGIProcessGroup ckan1_default
</Location>
WSGIDaemonProcess ckan2_default display-name= ckan2_default processes=2 threads=5
WSGIScriptAlias /ckan2 /etc/ckan/ckan2_default/apache.wsgi
<Location /ckan2>
WSGIProcessGroup ckan2_default
</Location>
...
It doesn’t works as I expected. I guess something is missing.
Another question: how ckan chould be configured to work by a subdirectory path? Links of Ckan are always considering an empty path pointing to i.e. http://mysite:8080/organitzations/ instead of http://mysite:8080/ckan1/organizations/
Thanks.
Jordi Piqueras
Programador Senior
jpiqueras at absis.es<mailto:jpiqueras at absis.es>
[Descripción: cid:image001.gif at 01D18FFB.249087B0]
TECNOGEO (Grupo ABSIS)
Hexagon Geospatial Distributor
Àlaba 140∙144, Planta 3, P. 3, 08018 Barcelona
Tel. Oficina 93 486 46 00 – Tel. At. Client. 93 486 46 01
Fax 901 022 783
tecnogeo at absis.es<mailto:tecnogeo at absis.es> - www.tecnogeo.es<http://www.tecnogeo.es/> - Twitter @TECNOGEO_ERDAS<https://twitter.com/TECNOGEO_ERDAS> – Linkedin Tecnogeo<http://www.linkedin.com/company/tecnogeo>
ADVERTENCIA PROTECCIÓN DE DATOS PERSONALES: En cumplimiento del art. 5 de la Ley Orgánica 15/1999, se le informa que los datos de carácter personal facilitados por usted, se han incorporado a un fichero creado por ABS INFORMÁTICA SL con la finalidad del mantenimiento de la relación comercial. Asimismo, se le informa de la posibilidad de ejercitar los derechos de acceso, rectificación, cancelación y oposición ante ABS INFORMÁTICA SL, con domicilio en la C/ Alaba 140-144, 3º 3ª, 08018 Barcelona, dirección de correo electrónico lopd at absis.es<mailto:lopd at absis.es>
CONFIDENCIALIDAD: Este mensaje y, en su caso, los ficheros anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170404/0c079b61/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 15449 bytes
Desc: image001.gif
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170404/0c079b61/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 11983 bytes
Desc: image006.jpg
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170404/0c079b61/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.jpg
Type: image/jpeg
Size: 26417 bytes
Desc: image007.jpg
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170404/0c079b61/attachment-0007.jpg>
More information about the ckan-dev
mailing list