[ckan-discuss] ckan

Javier Coque Garcia coque_losel at hotmail.com
Tue Jul 16 16:56:47 BST 2013


Hello. My name is Javier Coque. I work in the Agueda's town hall 
(Portugal). We need to install the lastest version of ckan. The computer
 has a linux mint, and his cpu an architecture i-386. I am installing 
ckan from source. 


I
 followed all the steps, but when I get to step 6, create database 
tables, and I write the commands "cd / usr / lib / CKAN / default / src / 
CKAN" and "paster db init-c / etc / CKAN / default / development.ini ", the shell returns me:

Traceback (most recent call last):

  File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run

    invoke(command, command_name, options, args[1:])
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run

    result = self.command()
  File "/home/sig/ckan/lib/default/src/ckan/ckan/lib/cli.py", line 129, in command
    self._load_config()
  File "/home/sig/ckan/lib/default/src/ckan/ckan/lib/cli.py", line 91, in _load_config

    load_environment(conf.global_conf, conf.local_conf)
  File "/home/sig/ckan/lib/default/src/ckan/ckan/config/environment.py", line 347, in load_environment
    model.init_model(engine)
  File "/home/sig/ckan/lib/default/src/ckan/ckan/model/__init__.py", line 179, in init_model

    version_table = Table('migrate_version', meta.metadata, autoload=True)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 318, in __new__
    table._init(name, metadata, *args, **kw)

  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 381, in _init
    self._autoload(metadata, autoload_with, include_columns)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/schema.py", line 408, in _autoload

    self, include_columns, exclude_columns
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2424, in run_callable
    conn = self.contextual_connect()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2490, in contextual_connect

    self.pool.connect(), 
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 224, in connect
    return _ConnectionFairy(self).checkout()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 387, in __init__

    rec = self._connection_record = pool._do_get()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 741, in _do_get
    con = self._create_connection()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 188, in _create_connection

    return _ConnectionRecord(self)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 270, in __init__
    self.connection = self.__connect()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 330, in __connect

    connection = self.__pool._creator()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 80, in connect
    return dialect.connect(*cargs, **cparams)

  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 281, in connect
    return self.dbapi.connect(*cargs, **cparams)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 178, in connect

    return _connect(dsn, connection_factory=connection_factory, async=async)
sqlalchemy.exc.OperationalError: (OperationalError) could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting

    TCP/IP connections on port 5432?
 None None

I would like to know where is the error to be corrected. Thank you very much.


Yours faithfully. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130716/6e15803d/attachment.htm>


More information about the ckan-discuss mailing list