[Live-demo] [OSGeo] #991: chroot build method: mapfish does not start

OSGeo trac_osgeo at osgeo.org
Fri Aug 10 13:25:03 PDT 2012


#991: chroot build method: mapfish does not start
----------------------+-----------------------------------------------------
 Reporter:  kalxas    |       Owner:  live-demo@…              
     Type:  defect    |      Status:  new                      
 Priority:  critical  |   Milestone:  OSGeoLive6.0RC1          
Component:  LiveDVD   |    Keywords:  6.0 beta9                
----------------------+-----------------------------------------------------

Comment(by hamish):

 rc.local fix didn't take. re-fixed in r8928.

 even with the groups updated I still get an Internal Server Error when I
 go to the mapfish example listed in the quickstart.

 same "FATAL:  database "v2.2_mapfishsample" does not exist" error as
 reported earlier.


 /var/log/apache2/error.log says:
 {{{
 Fri Aug 10 08:52:19 2012] [notice] Graceful restart requested, doing
 restart
 apache2: Could not reliably determine the server's fully qualified domain
 name, using 127.0.1.1 for ServerName
 [Fri Aug 10 08:52:22 2012] [warn] mod_wsgi: Compiled for Python/2.7.2+.
 [Fri Aug 10 08:52:22 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.
 [Fri Aug 10 08:52:22 2012] [notice] Apache/2.2.22 (Ubuntu) mod_fcgid/2.3.6
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.3
 configured -- resuming normal operations
 [Fri Aug 10 08:52:25 2012] [notice] Graceful restart requested, doing
 restart
 apache2: Could not reliably determine the server's fully qualified domain
 name, using 127.0.1.1 for ServerName
 [Fri Aug 10 08:52:26 2012] [warn] mod_wsgi: Compiled for Python/2.7.2+.
 [Fri Aug 10 08:52:26 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.
 [Fri Aug 10 08:52:26 2012] [notice] Apache/2.2.22 (Ubuntu) mod_fcgid/2.3.6
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.3
 configured -- resuming normal operations
 [Fri Aug 10 20:05:59 2012] [warn] mod_wsgi: Compiled for Python/2.7.2+.
 [Fri Aug 10 20:05:59 2012] [warn] mod_wsgi: Runtime using Python/2.7.3.
 [Fri Aug 10 20:05:59 2012] [notice] Apache/2.2.22 (Ubuntu) mod_fcgid/2.3.6
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.3
 configured -- resuming normal operations
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3265):
 Target WSGI script
 '/usr/local/lib/mapfish/MapfishSample/buildout/parts/modwsgi/wsgi' cannot
 be loaded as Python module.
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1] mod_wsgi (pid=3265):
 Exception occurred processing WSGI script
 '/usr/local/lib/mapfish/MapfishSample/buildout/parts/modwsgi/wsgi'.
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1] Traceback (most
 recent call last):
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/parts/modwsgi/wsgi", line
 46, in <module>
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     application =
 loadapp("config:" + configfile)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py",
 line 203, in loadapp
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 loadobj(APP, uri, name=name, **kw)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py",
 line 224, in loadobj
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 context.create()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py",
 line 617, in create
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 self.object_type.invoke(self)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py",
 line 109, in invoke
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 fix_call(context.object, context.global_conf, **context.local_conf)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/util/fixtypeerror.py",
 line 57, in fix_call
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     val =
 callable(*args, **kw)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/mapfishsample/config/middleware.py",
 line 37, in make_app
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     config =
 load_environment(global_conf, app_conf)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/mapfishsample/config/environment.py",
 line 49, in load_environment
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]
 init_model(engine)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/mapfishsample/model/__init__.py",
 line 16, in init_model
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     class Poi(Base,
 GeometryTableMixIn):
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/ext/declarative.py",
 line 1165, in __init__
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]
 _as_declarative(cls, classname, cls.__dict__)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/ext/declarative.py",
 line 1064, in _as_declarative
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     **table_kw)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/schema.py",
 line 265, in __new__
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]
 table._init(name, metadata, *args, **kw)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/schema.py",
 line 324, in _init
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     self,
 include_columns
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/engine/base.py",
 line 2262, in run_callable
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     conn =
 self.contextual_connect()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/engine/base.py",
 line 2328, in contextual_connect
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]
 self.pool.connect(),
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 209, in connect
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 _ConnectionFairy(self).checkout()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 370, in __init__
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     rec =
 self._connection_record = pool._do_get()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 696, in _do_get
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     con =
 self._create_connection()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 174, in _create_connection
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 _ConnectionRecord(self)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 255, in __init__
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     self.connection
 = self.__connect()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/pool.py",
 line 315, in __connect
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     connection =
 self.__pool._creator()
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/engine/strategies.py",
 line 80, in connect
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 dialect.connect(*cargs, **cparams)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]   File
 "/usr/local/lib/mapfish/MapfishSample/buildout/eggs/SQLAlchemy-0.7.2-py2.7-linux-i686.egg/sqlalchemy/engine/default.py",
 line 275, in connect
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]     return
 self.dbapi.connect(*cargs, **cparams)
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1] OperationalError:
 (OperationalError) FATAL:  database "v2.2_mapfishsample" does not exist
 [Fri Aug 10 20:09:44 2012] [error] [client 127.0.0.1]  None None
 }}}


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/991#comment:3>
OSGeo <http://www.osgeo.org/>
OSGeo committee and general foundation issue tracker.


More information about the Osgeolive mailing list