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

David Read david.read at okfn.org
Thu Sep 15 11:13:03 UTC 2011


On 15 September 2011 10:33, Kimpe Marc <Marc.Kimpe at cronos.be> wrote:
> 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]
> 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]
> <p>Additionally an error occurred while sending the
> <weberror.reporter.EmailReporter object at 0x240479ec> report:

As an aside, this error occurs due to bad or non-configured email
settings in your CKAN config file, section '[DEFAULT]'

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

Yes, Apache is sending the request through despite this.

> 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

This failure is probably because you're on Maverick and the postgres
start file is probably something different to what the script expects.
(I'm afraid the debian package of ckan is only designed to support
Lucid at the moment.) But this line was only to ensure postgres is
running, and it is so you can ignore this error.

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

The database user password is a random string that is put into your
config file in the form:
sqlalchemy.url = postgresql://user:password@host:port/dbname

> What is went/is  wrong ?

I've not seen this one before, so I'll have a poke around. Can you do
a 'pip freeze' to let us know what versions you have of the python
packages please?

David

>
>
>
> Kind Regards,
> Marc
>
>
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>




More information about the ckan-dev mailing list