Skip to content

Instantly share code, notes, and snippets.

@amercader
Created August 21, 2012 15:54
Show Gist options
  • Save amercader/3416800 to your computer and use it in GitHub Desktop.
Save amercader/3416800 to your computer and use it in GitHub Desktop.
vagrant@lucid32:~$ sudo ckan-create-instance std default.vm.buildkit yes
Installing or upgrading CKAN std ...
Ensuring users and groups are set up correctly ...
Creating the 'ckanstd' group ...
Creating the 'ckanstd' user ...
Ensuring directories exist for std CKAN INSTANCE ...
Disabling the crontab for the ckanstd user ...
Setting log file permissions so that both Apache and cron jobs can log to the same place ...
Ensuring who.ini file exists ...
Ensuring wsgi.py file exists ...
New python executable in /var/lib/ckan/std/pyenv/bin/python
Installing setuptools............................done.
Attempting to install 'pip' 1.0 from pypi.python.org into pyenv to be used for extensions ...
Searching for pip>=1.0
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Reading http://www.pip-installer.org
Best match: pip 1.1
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.1.tar.gz#md5=62a9f08dd5dc69d76734568a6c040508
Processing pip-1.1.tar.gz
Writing /tmp/easy_install-axyLPR/pip-1.1/setup.cfg
Running pip-1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-axyLPR/pip-1.1/egg-dist-tmp-eJwAvq
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Removing pip 0.3.1 from easy-install.pth file
Adding pip 1.1 to easy-install.pth file
Installing pip script to /var/lib/ckan/std/pyenv/bin
Installing pip-2.6 script to /var/lib/ckan/std/pyenv/bin
Installed /var/lib/ckan/std/pyenv/lib/python2.6/site-packages/pip-1.1-py2.6.egg
Processing dependencies for pip>=1.0
Finished processing dependencies for pip>=1.0
Searching for pip<=1.0.99
Best match: pip 1.0.2
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Writing /tmp/easy_install-BMYRH_/pip-1.0.2/setup.cfg
Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BMYRH_/pip-1.0.2/egg-dist-tmp-jWzOwY
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Removing pip 1.1 from easy-install.pth file
Adding pip 1.0.2 to easy-install.pth file
Installing pip script to /var/lib/ckan/std/pyenv/bin
Installing pip-2.6 script to /var/lib/ckan/std/pyenv/bin
Installed /var/lib/ckan/std/pyenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg
Processing dependencies for pip<=1.0.99
Finished processing dependencies for pip<=1.0.99
done.
Attempting to install 'paster' pypi.python.org into pyenv ...
usage: easy_install [options] requirement_or_url ...
or: easy_install --help
error: option --ignore-installed not recognized
done.
Making sure PostgreSQL is running ...
* Starting PostgreSQL 8.4 database server [ OK ]
Setting the password of the std user in PostgreSQL
Creating the std user ...
CREATE ROLE
Creating/overwriting the config for CKAN ...
Distribution already installed:
ckan 1.8b from /usr/lib/pymodules/python2.6
Creating /etc/ckan/std/std.ini
Now you should edit the config files
/etc/ckan/std/std.ini
Ensuring the std database exists ...
Creating the database ...
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/ckan/lib/cli.py", line 91, in command
self._load_config()
File "/usr/lib/pymodules/python2.6/ckan/lib/cli.py", line 48, in _load_config
conf = appconfig('config:' + self.filename)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 215, in appconfig
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 278, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 409, in get_context
section)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 431, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 361, in get_context
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 285, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 561, in get_context
object_type, name=name)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/pymodules/python2.6/ckan/config/middleware.py", line 14, in <module>
from pylons import config
File "/usr/lib/pymodules/python2.6/pylons/__init__.py", line 4, in <module>
from pylons.config import config
File "/usr/lib/pymodules/python2.6/pylons/config.py", line 2, in <module>
from pylons.configuration import *
File "/usr/lib/pymodules/python2.6/pylons/configuration.py", line 25, in <module>
import pylons.legacy
File "/usr/lib/pymodules/python2.6/pylons/legacy.py", line 9, in <module>
import pylons.decorators
File "/usr/lib/pymodules/python2.6/pylons/decorators/__init__.py", line 19, in <module>
from pylons.decorators.util import get_pylons
File "/usr/lib/pymodules/python2.6/pylons/decorators/util.py", line 3, in <module>
from pylons.controllers import WSGIController
File "/usr/lib/pymodules/python2.6/pylons/controllers/__init__.py", line 3, in <module>
from pylons.controllers.xmlrpc import XMLRPCController
File "/usr/lib/pymodules/python2.6/pylons/controllers/xmlrpc.py", line 10, in <module>
from pylons.controllers.util import abort, Response
File "/usr/lib/pymodules/python2.6/pylons/controllers/util.py", line 29, in <module>
from routes import url_for
File "/usr/lib/pymodules/python2.6/ckan/routes/__init__.py", line 140, in <module>
from routes.mapper import Mapper
File "/usr/lib/pymodules/python2.6/ckan/routes/mapper.py", line 7, in <module>
from repoze.lru import LRUCache
ImportError: No module named lru
Disabling the default Apache site ...
Site default disabled.
Run '/etc/init.d/apache2 reload' to activate new configuration!
Overwriting the existing Apache config ...
Enabling Apache mod_rewite ...
Enabling module rewrite.
Run '/etc/init.d/apache2 restart' to activate new configuration!
Performing any database upgrades ...
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/ckan/lib/cli.py", line 91, in command
self._load_config()
File "/usr/lib/pymodules/python2.6/ckan/lib/cli.py", line 48, in _load_config
conf = appconfig('config:' + self.filename)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 215, in appconfig
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 278, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 409, in get_context
section)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 431, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 361, in get_context
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 285, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 561, in get_context
object_type, name=name)
File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/pymodules/python2.6/ckan/config/middleware.py", line 14, in <module>
from pylons import config
File "/usr/lib/pymodules/python2.6/pylons/__init__.py", line 4, in <module>
from pylons.config import config
File "/usr/lib/pymodules/python2.6/pylons/config.py", line 2, in <module>
from pylons.configuration import *
File "/usr/lib/pymodules/python2.6/pylons/configuration.py", line 25, in <module>
import pylons.legacy
File "/usr/lib/pymodules/python2.6/pylons/legacy.py", line 9, in <module>
import pylons.decorators
File "/usr/lib/pymodules/python2.6/pylons/decorators/__init__.py", line 19, in <module>
from pylons.decorators.util import get_pylons
File "/usr/lib/pymodules/python2.6/pylons/decorators/util.py", line 3, in <module>
from pylons.controllers import WSGIController
File "/usr/lib/pymodules/python2.6/pylons/controllers/__init__.py", line 3, in <module>
from pylons.controllers.xmlrpc import XMLRPCController
File "/usr/lib/pymodules/python2.6/pylons/controllers/xmlrpc.py", line 10, in <module>
from pylons.controllers.util import abort, Response
File "/usr/lib/pymodules/python2.6/pylons/controllers/util.py", line 29, in <module>
from routes import url_for
File "/usr/lib/pymodules/python2.6/ckan/routes/__init__.py", line 140, in <module>
from routes.mapper import Mapper
File "/usr/lib/pymodules/python2.6/ckan/routes/mapper.py", line 7, in <module>
from repoze.lru import LRUCache
ImportError: No module named lru
Bringing the std INSTANCE out of maintenance mode ...
Site std.maint already disabled
Enabling site std.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment