[ckan-dev] Standard production install on Ubuntu 10.10 gives problem

Kimpe Marc Marc.Kimpe at cronos.be
Thu Sep 15 09:33:15 UTC 2011


Hi all,


I'm trying a standard production install as described in

http://readthedocs.org/docs/ckan/en/ckan-1.4.3/install-from-package.html#run-package-installer

on Ubuntu 10.10.


When I try the test:

http://localhost   or http://dpl-ckan or http://192.168.0.102

I get the following internal error in apache :



[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] Error - <type 'exceptions.AttributeError'>: 'module' object has no attribute '_push_object'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] URL: http://dpl-ckan/

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/weberror/errormiddleware.py', line 162 in __call__

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   app_iter = self.application(environ, sr_checker)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/beaker/middleware.py', line 73 in __call__

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   return self.app(environ, start_response)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/beaker/middleware.py', line 152 in __call__

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   return self.wrap_app(environ, session_start_response)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/routes/middleware.py', line 131 in __call__

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   response = self.app(environ, start_response)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/pylons/wsgiapp.py', line 115 in __call__

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   self.setup_app_env(environ, start_response)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/pylons/wsgiapp.py', line 242 in setup_app_env

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   self.register_globals(environ)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/pylons/wsgiapp.py', line 166 in register_globals

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   registry.register(pylons.config, self.config)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] File '/usr/lib/pymodules/python2.6/paste/registry.py', line 315 in register

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   stacked._push_object(obj)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] AttributeError: 'module' object has no attribute '_push_object'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] CGI Variables

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] -------------

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   DOCUMENT_ROOT: '/var/lib/ckan/std/static'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   GATEWAY_INTERFACE: 'CGI/1.1'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_ACCEPT_CHARSET: 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_ACCEPT_ENCODING: 'gzip,deflate'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_ACCEPT_LANGUAGE: 'en-us,en;q=0.5'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_CACHE_CONTROL: 'max-age=0'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_CONNECTION: 'keep-alive'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_HOST: 'dpl-ckan'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_KEEP_ALIVE: '115'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   HTTP_USER_AGENT: 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   PATH_INFO: '/'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   PATH_TRANSLATED: '/etc/ckan/std/std.py/'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   REMOTE_ADDR: '192.168.0.102'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   REMOTE_PORT: '40795'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   REQUEST_METHOD: 'GET'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   REQUEST_URI: '/'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SCRIPT_FILENAME: '/etc/ckan/std/std.py'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_ADDR: '192.168.0.102'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_ADMIN: '[no address given]'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_NAME: 'dpl-ckan'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_PORT: '80'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_PROTOCOL: 'HTTP/1.1'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_SIGNATURE: '<address>Apache/2.2.16 (Ubuntu) Server at dpl-ckan Port 80</address>\\n'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   SERVER_SOFTWARE: 'Apache/2.2.16 (Ubuntu)'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] WSGI Variables

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] --------------

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   application: <beaker.middleware.CacheMiddleware object at 0x23d9d8cc>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   beaker.cache: <beaker.cache.CacheManager object at 0x23d9d98c>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x23d9d9ac>>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   beaker.session: {'_accessed_time': 1316074685.7850931, '_creation_time': 1316074685.7850931}

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.application_group: 'ckan.localhost|'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.callable_object: 'application'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.handler_script: ''

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.input_chunked: '0'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.listener_host: ''

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.listener_port: '80'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.process_group: ''

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.request_handler: 'wsgi-script'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.script_reloading: '1'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   mod_wsgi.version: (3, 2)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   paste.cookies: (<SimpleCookie: >, '')

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   paste.registry: <paste.registry.Registry object at 0x24043ecc>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   paste.throw_errors: True

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   pylons.pylons: <pylons.util.PylonsContext object at 0x24043fec>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   repoze.who.logger: <logging.Logger instance at 0x23d9db8c>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   repoze.who.plugins: {'openid': <OpenIdIdentificationPlugin 603923116>, 'friendlyform': <FriendlyFormPlugin 601480492>, 'ckan.lib.authenticator:UsernamePasswordAuthenticator': <ckan.lib.authenticator.UsernamePasswordAuthenticator object at 0x23ff752c>, 'auth_tkt': <AuthTktCookiePlugin 603926348>, 'ckan.lib.authenticator:OpenIDAuthenticator': <ckan.lib.authenticator.OpenIDAuthenticator object at 0x23ff74cc>}

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   routes.route: <routes.route.Route object at 0x23ce7f8c>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   routes.url: <routes.util.URLGenerator object at 0x24043f6c>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   webob.adhoc_attrs: {'language': 'en-us'}

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   wsgi process: 'Multi process AND threads (?)'

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x240d79f8>

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   wsgi.version: (1, 1)

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]   wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x24043f6c>, {'action': u'index', 'controller': u'home'})

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102] ------------------------------------------------------------

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]

[Thu Sep 15 10:18:05 2011] [error] [client 192.168.0.102]             <p>Additionally an error occurred while sending the <weberror.reporter.EmailReporter object at 0x240479ec> report:

.......



The installation report seems to be OK except for two warnings :


Setting up libapache2-mod-wsgi (3.2-2) ...

 * Restarting web server apache2

apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.102 for ServerName

 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.102 for ServerName

   ...done.


But that is because I think my hostname is not in DNS,  IP-address is correct.

and

Installing or upgrading CKAN std ...
Making sure PostgreSQL is running ...
/usr/bin/ckan-std-install: line 41: /etc/init.d/postgresql-8.4: No such file or directory
Ensuring users and groups are set up correctly ...
But postresql is running :

root at dpl-ckan:/etc/ckan/std# ps -eaf|grep post
postgres  4891     1  0 09:58 ?        00:00:00 /usr/lib/postgresql/8.4/bin/postgres -D /var/lib/postgresql/8.4/main -c config_file=/etc/postgresql/8.4/main/postgresql.conf
postgres  4893  4891  0 09:58 ?        00:00:00 postgres: writer process
postgres  4894  4891  0 09:58 ?        00:00:00 postgres: wal writer process
postgres  4895  4891  0 09:58 ?        00:00:00 postgres: autovacuum launcher process
postgres  4896  4891  0 09:58 ?        00:00:00 postgres: stats collector process
postgres  5327  4891  0 10:04 ?        00:00:00 postgres: std std ::1(47635) idle
postgres  5332  4891  0 10:04 ?        00:00:00 postgres: std std ::1(47639) idle

What is actually the unhashed pssword for psql -U std ???



What is went/is  wrong ?




Kind Regards,

Marc





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110915/f1c998a7/attachment.html>


More information about the ckan-dev mailing list