[ckan-dev] one question about setting up ckan

bupt bupt buptloveandroid at gmail.com
Tue Jan 8 12:41:18 UTC 2013


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.
         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.




More information about the ckan-dev mailing list