[ckan-dev] one question about setting up ckan

Toby Dacre toby.okfn at gmail.com
Tue Jan 8 13:13:47 UTC 2013


On 8 January 2013 12:41, bupt bupt <buptloveandroid at gmail.com> wrote:

> Hello everyone,
>          My name is David. Now i am studying CKAN data management
> system. I use "Option 1: Package Installation " method to install
> CKAN, and the website is
> "http://docs.ckan.org/en/ckan-1.8/install-from-package.html".
>          But after the installation, I Create a new instance like this
> command :"sudo ckan-create-instance std default.vm.buildkit yes". No
> error is appears. But when i input the address in the Firefox browser
> like this "http://localhost/default.vm.buildkit/", no login page
> appears.
>

the documentation suggests

 http://default.vm.buildkit/


         I check the apache log file like this "sudo vi -f
> /var/log/apache2/std.error.log" and the content is below :
> "
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1] mod_wsgi
> (pid=8278): Target WSGI script '/var/lib/ckan/std/wsgi.py' cannot be
> loaded as Python module.
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1] mod_wsgi
> (pid=8278): Exception occurred processing WSGI script
> '/var/lib/ckan/std/wsgi.py'.
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1] Traceback (most
> recent call last):
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1]   File
> "/var/lib/ckan/std/wsgi.py", line 7, in <module>
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1]
> execfile(activate_this, dict(__file__=activate_this))
> [Tue Jan 08 17:04:31 2013] [error] [client 127.0.0.1] IOError: [Errno
> 2] No such file or directory:
> '/var/lib/ckan/std/pyenv/bin/activate_this.py'
> "
>          I also check the "/etc/apache2/sites-available/std.common"
> file, and the content is below:
> "
>     DocumentRoot /var/lib/ckan/std/static
>     ServerName default.vm.buildkit
>
>     <Directory />
>         # XXX Should this be deny? We get a "Client denied by server
> configuration" without it
>         allow from all
>     </Directory>
> ....................................
> "
>          I check the ckan directory content as below, but the
> DocumentRoot(/var/lib/ckan/std/static) directory has not any ckan
> login files :
> "
> root at ys-laptop:/var/lib/ckan/std/pyenv/bin# ls
> python
> root at ys-laptop:/var/lib/ckan/std/pyenv/bin# ls python
> python
> root at ys-laptop:/var/lib/ckan/std/pyenv/bin# ll
> total 2564
> drwxr-xr-x 2 ckanstd ckanstd    4096 2013-01-08 14:31 ./
> drwxr-xr-x 5 ckanstd ckanstd    4096 2013-01-08 14:31 ../
> -rwxr-xr-x 1 ckanstd ckanstd 2613296 2013-01-08 14:31 python*
> root at ys-laptop:/var/lib/ckan/std/pyenv/bin#
>
> root at ys-laptop:/var/lib/ckan/std# ls
> data  packaging_version.txt  pyenv  sstore  static  wsgi.py
> root at ys-laptop:/var/lib/ckan/std# ls static/
> dump
> root at ys-laptop:/var/lib/ckan/std# ls static/dump/
> root at ys-laptop:/var/lib/ckan/std#
> "
>         Can you help me solve this problem? And where is the problem?
>         Thank you very much for your help.
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130108/7a98b6fd/attachment-0001.html>


More information about the ckan-dev mailing list