[Dachs-support] DaCHS reinstallation fails

Rasmus Handberg rasmush at phys.au.dk
Mon May 10 10:45:28 CEST 2021


Hi ll,

I've had to upgrade my server where DaCHS is running (Debian 10), but 
when I have to reinstall DaCHS I get the following errors.

It looks like it is because the postgres database is already set up 
(from the last installation), but how to I proceed then?

# apt install gavodachs2-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
gavodachs2-server is already the newest version (2.3+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up gavodachs2-server (2.3+dfsg-1) ...
createdb: database creation failed: ERROR:  database "gavo" already exists
Creation of gavo database failed; assuming it's already there
and carrying on.
createuser: creation of new role failed: ERROR:  role "dachsroot" 
already exists
*** Error: While executing DB query:

   CREATE EXTENSION pg_sphere

the database engine reported:

   ERROR:  function "spoint_in" already exists with same argument types

dpkg: error processing package gavodachs2-server (--configure):
  installed gavodachs2-server package post-installation script 
subprocess returned error exit status 1
Errors were encountered while processing:
  gavodachs2-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Best regards,
Rasmus Handberg


-- 
Dr. Rasmus Handberg
Stellar Astrophysics Centre (SAC)   | Office: 1520-429
Department of Physics and Astronomy | Phone:  (+45) 87156616
Aarhus University                   | Mobile: (+45) 29927538
Ny Munkegade 120                    | E-mail: rasmush at phys.au.dk
8000 Aarhus C, Denmark              | Web: www.handberg-net.dk


More information about the Dachs-support mailing list