[Dachs-support] dachs error

Nathanaël Jourdane njourdane at irap.omp.eu
Mon Sep 17 15:08:02 CEST 2018


Le lundi 17 septembre 2018, 14:33:08 CEST Markus Demleitner a écrit :
> I would suspect that somehow the pgsphere package doesn't get
> installed (or perhaps initialised).  

pgsphere and q3c are installed on the postgres container, but I think that for some reason 
the containers are not correctly linked.

> Do you have a moment to look into this or should I start digging?
Carlos, for information the interesting commit (the one which breaks everything) is here: 
https://github.com/roipoussiere/docker-dachs/commit/
97c8addf8cc3d72383198f8d6a326b25fe23a5db

> > Sure, just follow the links I've posted: the full error messages are in
> > comment! :)
> 
> Yeah, but I don't like web browsers that manage to display the abyss
> of javascript and weirdness that is github's web interface (there are
> few enough of them), so I tend to avoid following links there if I
> can help it.  And either way, good ol' inline text is preferred any
> day.

Ok. So here it is:

Successfully built f455b9c9616f
Successfully tagged dachs:chbrandt
Creating myPostgres ... done
Creating myDachs    ... done
Attaching to myPostgres, myDachs
myPostgres  | 
myPostgres  | ===================================================
myPostgres  | This is the PostgreSQL counterpart of DaCHS server.
myPostgres  | Unless you want to put your hands on the databse,
myPostgres  | you should be good to go and deal with the DaCHS
myPostgres  | server main conatiner itself.
myPostgres  | 
myPostgres  | To make use of this guy here, just make sure to
myPostgres  | run "dachs:server" with docker "--link" option
myPostgres  | pointing to this container here.
myPostgres  | ===================================================
myPostgres  | 
myPostgres  | 2018-09-14 16:03:27 UTC [11-1] LOG:  redirecting log output to logging 
collector process
myPostgres  | 2018-09-14 16:03:27 UTC [11-2] HINT:  Future log output will appear in 
directory "pg_log".
myDachs     | 
myDachs     | ================================================
myDachs     | This the (main) DaCHS server container, where
myDachs     | DaCHS daemon is meant to run.
myDachs     | This container expects to use another container
myDachs     | as the PostgreSQL databse server.
myDachs     | 
myDachs     | The Postgres container must be named *postgres*.
myDachs     | Using the proper name will make the connection
myDachs     | "just work".
myDachs     | 
myDachs     | Apart from that restriction, DaCHS management
myDachs     | proceed as usual (imp, pub, etc.).
myDachs     | ================================================
myDachs     | 
myDachs     | Waiting for postgres to come up...
myDachs     | /usr/lib/python2.7/dist-packages/gavo/base/config.py:600: UserWarning: /
var/gavo/etc/defaultmeta.txt does not exist, registry interface  will be broken
myDachs     |   srcPath)
myDachs     | /usr/lib/python2.7/dist-packages/gavo/user/initdachs.py:315: UserWarning: 
SQL script file for /usr/share/postgresql/contrib/q3c.sql not found.  There are many 
reasons why that may be ok, but unless you know what you are doing, you probably 
should install the corresponding postgres extension.
myDachs     |   " extension."%scriptPath)
myDachs     | /usr/lib/python2.7/dist-packages/gavo/user/initdachs.py:332: UserWarning: 
SQL script file /usr/share/postgresql/contrib/q3c.sql failed.  Try running manually using 
psql.  While it hasn't run, the q3c extension is not available.
myDachs     |   " available."%(scriptPath, sourceName))
myDachs     | Traceback (most recent call last):
myDachs     |   File "/usr/bin/gavo", line 11, in <module>
myDachs     |     load_entry_point('gavodachs==1.2', 'console_scripts', 'gavo')()
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/user/cli.py", line 151, in main
myDachs     |     sys.exit(initdachs.main())
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/user/initdachs.py", line 455, in 
main
myDachs     |     initDB(dsn)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/user/initdachs.py", line 428, in 
initDB
myDachs     |     _importBasicResources()
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/user/initdachs.py", line 415, in 
_importBasicResources
myDachs     |     importing.process(rsc.getParseOptions(), [rdId])
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/user/importing.py", line 111, in 
process
myDachs     |     res = api.makeData(dd, parseOptions=opts, connection=connection)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/data.py", line 466, in 
makeData
myDachs     |     processSource(res, forceSource, feeder, parseOptions, connection)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/data.py", line 195, in 
__exit__
myDachs     |     self._exitSuccess()
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/data.py", line 178, in 
_exitSuccess
myDachs     |     feeder.__exit__(None, None, None)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/dbtable.py", line 104, in 
__exit__
myDachs     |     table._Feeder.__exit__(self, *args)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/table.py", line 146, in 
__exit__
myDachs     |     self.table.importFinished()
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/dbtable.py", line 402, in 
importFinished
myDachs     |     self.runScripts("postCreation")
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rsc/table.py", line 252, in 
runScripts
myDachs     |     self._runScripts(self, phase, **kwargs)
myDachs     |   File "/usr/lib/python2.7/dist-packages/gavo/rscdef/scripting.py", line 252, in 
runScripts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.g-vo.org/pipermail/dachs-support/attachments/20180917/66f5ee03/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.g-vo.org/pipermail/dachs-support/attachments/20180917/66f5ee03/attachment-0002.sig>


More information about the Dachs-support mailing list