[OGo-Users] Postgre fatal error after new install on Suse 10.2

Adam Tauno Williams users@opengroupware.org
Fri, 26 Jan 2007 16:58:44 -0500


On Fri, 2007-01-26 at 11:54 -0500, Adam Tauno Williams wrote:
> > I am trying to install OGO as a test on a Suse 10.2 laptop.
> > I used the recipe outlined here:
> >  http://docs.opengroupware.org/Members/whitemice/misc/ogo-install-for-opensu
> > se102/view
> That's mine.
> > When I try to goto http://localhost/OpenGroupware  I get this:
> > Application Server caught exception:
> >   session: 164716470145B81989
> >   element: 
> >   context: <0x0x86ee43c[WOContext]: 00145b81988086ee43c app=ogo-webui-1.1
> > sn=164716470145B81989 eid= rqeid=>
> >   request: <WORequest[0x0x86eaafc]: method=GET uri=/OpenGroupware
> > app=OpenGroupware rqKey= rqPath=>
> >   class:   PostgreSQL72Exception
> >   name:    PostgreSQL72FatalError
> >   reason:  fatal pgsql error (channel=<0x0x88d6bcc[PostgreSQL72Channel]:
> > connection=<0x0x88d6dcc[PGConnection]:  connection=0x0x88d7640>>): ERROR: 
> > invalid input syntax for type timestamp with time zone: "%Y-%m-%d
> > %H:%M:%S%z"
> >   info:
> > I've never used PostgreSQL so I'm not familiar with it's errors.  What can
> > I do to correct this.
> Hm.  I remember seeing something like this previously.
> http://mail.opengroupware.org/pipermail/developer/2006-December/002798.html
> But the problem just vanished as mysteriously as it appeared.  This
> error message is coming up from PostgreSQL,  not from 'inside' OGo.
> I'll run a fresh install and see what happens.

And KER-SPLAT:

Application Server caught exception:

  session: 32BE32BE0145BA69CD
  element: 
  context: <0x0x86ef3b4[WOContext]: 00145ba69cd086ef3b4 app=ogo-webui-1.1 sn=32BE32BE0145BA69CD eid= rqeid=>
  request: <WORequest[0x0x86eb9bc]: method=GET uri=/OpenGroupware app=OpenGroupware rqKey= rqPath=>

  class:   PostgreSQL72Exception
  name:    PostgreSQL72FatalError
  reason:  fatal pgsql error (channel=<0x0x88d79cc[PostgreSQL72Channel]: connection=<0x0x88d7bcc[PGConnection]:  connection=0x0x88d8440>>): ERROR:  invalid input syntax for type timestamp with time zone: "%Y-%m-%d %H:%M:%S%z"

  info:

Very disturbing;  I'll poke around and see if I can determine what is causing this.

My install process
--------------------------------------
kyack:/tmp/OGo # ncftpget -p awilliam@whitemice.org  "ftp://ftp.opengroupware.org/nightly/packages/suse10-0/trunk/*latest*"
kyack:/tmp/OGo # rm libfoundation10-devel-latest.i586.rpm \
>   libfoundation10-latest.i586.rpm \
>   libobjc-lf2-devel-latest.i586.rpm \
>   libobjc-lf2-latest.i586.rpm
kyack:/tmp/OGo # rpm -Uvh *.rpm
Preparing...                ########################################### [100%]
   1:sope45-xml             ########################################### [  1%]
   2:libfoundation11        ########################################### [  3%]
   3:sope45-core            ########################################### [  4%]
   4:sope45-gdl1            ########################################### [  6%]
   5:sope45-ldap            ########################################### [  7%]
   6:sope45-mime            ########################################### [  8%]
   7:ogo-logic              ########################################### [ 10%]
   8:ogo-docapi             ########################################### [ 11%]
   9:ogo-gnustep_make       ########################################### [ 13%]
  10:sope45-appserver       ########################################### [ 14%]
  11:sope45-ical            ########################################### [ 15%]
  12:ogo-zidestore          ########################################### [ 17%]
  13:ogo-docapi-db-project  ########################################### [ 18%]
  14:ogo-docapi-fs-project  ########################################### [ 19%]
  15:ogo-logic-tools        ########################################### [ 21%]
  16:ogo-webui-core         ########################################### [ 22%]
  17:ogo-xmlrpcd            ########################################### [ 24%]
  18:ogo-tools              ########################################### [ 25%]
  19:sope45-gdl1-postgresql ########################################### [ 26%]
  20:mod_ngobjweb           ########################################### [ 28%]
error: %trigger(mod_ngobjweb-2.0.54-trunk_r1189.1.i586) scriptlet failed, exit status 1
error: %trigger(mod_ngobjweb-2.0.54-trunk_r1189.1.i586) scriptlet failed, exit status 1
  21:ogo-webui-core-devel   ########################################### [ 29%]
  22:ogo-docapi-fs-project-d########################################### [ 31%]
  23:ogo-docapi-db-project-d########################################### [ 32%]
  24:ogo-zidestore-devel    ########################################### [ 33%]
  25:sope45-ical-devel      ########################################### [ 35%]
  26:sope45-appserver-devel ########################################### [ 36%]
  27:sope45-appserver-tools ########################################### [ 38%]
  28:libfoundation11-devel  ########################################### [ 39%]
  29:ogo-docapi-devel       ########################################### [ 40%]
  30:ogo-logic-devel        ########################################### [ 42%]
  31:sope45-core-devel      ########################################### [ 43%]
  32:sope45-gdl1-devel      ########################################### [ 44%]
  33:sope45-ldap-devel      ########################################### [ 46%]
  34:sope45-mime-devel      ########################################### [ 47%]
  35:sope45-xml-devel       ########################################### [ 49%]
  36:sope45-ldap-tools      ########################################### [ 50%]
  37:sope45-gdl1-mysql      ########################################### [ 51%]
  38:sope45-gdl1-tools      ########################################### [ 53%]
  39:sope45-xml-tools       ########################################### [ 54%]
  40:ogo-database-setup     ########################################### [ 56%]
PostgreSQL not yet initialized.
(will be initialized by the initscript)
Found '/etc/init.d/postgresql'
Initializing the PostgreSQL database at location /var/lib/pgsql/data  done
Starting PostgreSQL                                                   done
OK! PostgreSQL runs now: (9532 9533 9536 9537 9538)
We're on PostgreSQL 8 (8.1)
checking /var/lib/pgsql/data/postgresql.conf
  need to patch /var/lib/pgsql/data/pg_hba.conf for 8.1
  backup current one to /var/lib/pgsql/data/pg_hba.conf.20070126-153940
checking /var/lib/pgsql/data/pg_hba.conf
  need to patch /var/lib/pgsql/data/postgresql.conf for 8.1
  backup current one to /var/lib/pgsql/data/postgresql.conf.20070126-153940
The changes we've made require that we restart PostgreSQL...
Shutting down PostgreSQLpostmaster stopped
                                                                      done
Starting PostgreSQL                                                   done
OK! PostgreSQL runs again: (9638 9639 9641 9642 9643)
creating database user: OGo
Shall the new role be allowed to create more new roles? (y/n) n
  ... OK! ()
creating the database itself: OGo
  ... OK! ()
  we've successfully created both the user OGo and the raw database OGo
  we'll now fill the database with the scheme itself
checking the logfile created during scheme rollin... /tmp/database_setup_psql.sh.20070126-153940.log
removing log - not needed anymore
  41:ogo-theme-default      ########################################### [ 57%]
  42:ogo-webui-resource-en  ########################################### [ 58%]
  43:ogo-webui-app          ########################################### [ 60%]
error: %trigger(mod_ngobjweb-2.0.54-trunk_r1189.1.i586) scriptlet failed, exit status 1
  44:ogo-pda                ########################################### [ 61%]
  45:ogo-webui-mailer       ########################################### [ 63%]
  46:ogo-webui-resource-de  ########################################### [ 64%]
adding group skyrix.
adding user ogo.
  47:ogo-environment        ########################################### [ 65%]
  48:ogo-webui-calendar     ########################################### [ 67%]
  49:ogo-webui-contact      ########################################### [ 68%]
  50:ogo-webui-news         ########################################### [ 69%]
  51:ogo-webui-project      ########################################### [ 71%]
  52:ogo-webui-task         ########################################### [ 72%]
  53:ogo-meta               ########################################### [ 74%]
  54:ogo-pda-devel          ########################################### [ 75%]
  55:ogo-theme-blue         ########################################### [ 76%]
  56:ogo-theme-kde          ########################################### [ 78%]
  57:ogo-theme-ooo          ########################################### [ 79%]
  58:ogo-theme-orange       ########################################### [ 81%]
  59:ogo-webui-mailer-devel ########################################### [ 82%]
  60:ogo-webui-resource-basq########################################### [ 83%]
  61:ogo-webui-resource-dk  ########################################### [ 85%]
  62:ogo-webui-resource-es  ########################################### [ 86%]
  63:ogo-webui-resource-fr  ########################################### [ 88%]
  64:ogo-webui-resource-hu  ########################################### [ 89%]
  65:ogo-webui-resource-it  ########################################### [ 90%]
  66:ogo-webui-resource-jp  ########################################### [ 92%]
  67:ogo-webui-resource-nl  ########################################### [ 93%]
  68:ogo-webui-resource-no  ########################################### [ 94%]
  69:ogo-webui-resource-pl  ########################################### [ 96%]
  70:ogo-webui-resource-ptbr########################################### [ 97%]
  71:ogo-webui-resource-pt  ########################################### [ 99%]
  72:ogo-webui-resource-sk  ########################################### [100%]
curl -o sope-mod_ngobjweb-trunk-latest.tar.gz http://download.opengroupware.org/nightly/sources/trunk/sope-mod_ngobjweb-trunk-latest.tar.gz
kyack:/tmp/OGo # tar xf sope-mod_ngobjweb-trunk-latest.tar.gz
kyack:/tmp/OGo # cd sope-mod_ngobjweb/
kyack:/tmp/OGo/sope-mod_ngobjweb # cp handler.c handler.c.original
kyack:/tmp/OGo/sope-mod_ngobjweb # sed "s/ap_http_method(/ap_http_scheme(/g" handler.c \
>   | sed "s/ap_run_http_method(/ap_run_http_scheme(/g" > handler_new.c
kyack:/tmp/OGo/sope-mod_ngobjweb # mv handler_new.c handler.c
kyack:/tmp/OGo/sope-mod_ngobjweb # /usr/sbin/apxs2 -c *.c
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o config.lo config.c && touch config.slo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o globals.lo globals.c && touch globals.slo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o handler.lo handler.c && touch handler.slo
handler.c: In function 'ngobjweb_handler':
handler.c:279: warning: passing argument 1 of 'ap_strstr' discards qualifiers from pointer target type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o NGBufferedDescriptor.lo NGBufferedDescriptor.c && touch NGBufferedDescriptor.slo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o ngobjweb_module.lo ngobjweb_module.c && touch ngobjweb_module.slo
ngobjweb_module.c:27: warning: missing braces around initializer
ngobjweb_module.c:27: warning: (near initialization for 'ngobjweb_cmds[0].func')
ngobjweb_module.c:27: warning: initialization from incompatible pointer type
ngobjweb_module.c:35: warning: initialization from incompatible pointer type
ngobjweb_module.c:43: warning: initialization from incompatible pointer type
ngobjweb_module.c:51: warning: initialization from incompatible pointer type
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o scanhttp.lo scanhttp.c && touch scanhttp.slo
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o sns.lo sns.c && touch sns.slo
/usr/lib/apr-1/build/libtool --silent --mode=link gcc -o config.la  -rpath /usr/lib/apache2 -module -avoid-version    sns.lo scanhttp.lo ngobjweb_module.lo NGBufferedDescriptor.lo handler.lo globals.lo config.lo
kyack:/tmp/OGo/sope-mod_ngobjweb # for file in *.o
>  do
>   ld -Bshareable -o $(basename $file .o).so $file
>  done
kyack:/tmp/OGo/sope-mod_ngobjweb # make all
gcc  -shared -fPIC -o mod_ngobjweb.so globals.o handler.o NGBufferedDescriptor.o scanhttp.o sns.o config.o ngobjweb_module.o  
kyack:/tmp/OGo/sope-mod_ngobjweb # cp mod_ngobjweb.so  /usr/lib/apache2/
kyack:/tmp/OGo/sope-mod_ngobjweb # rcapache2 start
Starting httpd2 (prefork)                                             done
kyack:/tmp/OGo/sope-mod_ngobjweb # 
kyack:/tmp/OGo/sope-mod_ngobjweb # rcogo-webui start
Starting ogo-webui-1.1:                                               done