Am Donnerstag, 18. Januar 2018 19:40:15 UTC+1 schrieb Jens Grüntjes:
> Am Donnerstag, 18. Januar 2018 13:11:12 UTC+1 schrieb Jörg Steffens:
> > On 18.01.2018 at 08:00 wrote Jens Grüntjes:
> > > Hi all,
> > > 
> > > I have a problem during the upgrade on a Debian Stretch system.
> > > 
> > > The upgrade fails like this:
> > > 
> > > Reading package lists... Done                              
> > > Building dependency tree                              
> > > Reading state information... Done
> > > 0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
> > > 4 not fully installed or removed.          
> > > After this operation, 0 B of additional disk space will be used.
> > > Setting up bareos-database-common (17.2.4-9.1) ...         
> > > (config) dbc_go() bareos-database-common configure 2004.
> > > dbc_config() bareos-database-common configure 2004.
> > > dbc_set_dbtype_defaults() .                         
> > > dbc_detect_installed_dbtype() pgsql.       
> > > _dbc_detect_installed_dbtype() pgsql.    
> > > dbc_register_debconf() .
> > > dbconfig-common not yet setup, deferring configuration..
> > > (postinst) dbc_go() bareos-database-common configure 2004.
> > > dbc_config() bareos-database-common configure 2004.
> > > dbc_set_dbtype_defaults() .                            
> > > dbc_read_package_debconf() .
> > > dbc_set_dbtype_defaults() .
> > > settings determined from dbc_read_package_debconf:.
> > >         dbc_install=.          
> > 
> > are that really dots and nothing else after the "="?
> > 
> > >         dbc_upgrade=.                            
> > >         dbc_remove=.       
> > >         dbc_dbtype=.                                                      
> > >     
> > >         dbc_dbuser=10 bareos-database-common/db/app-user doesn't exist.   
> > 
> > as you said, this looks terribly wrong.
> > 
> > >         dbc_dbpass=.                                                      
> > >      
> > >         dbc_dballow=.                                                     
> > >       
> > >         dbc_dbadmin=.                                      
> > >         dbc_dbadmpass=.
> > >         dbc_dbserver=.                                                    
> > >    
> > >         dbc_dbport=.                             
> > >         dbc_dbname=bareosdatabasecommon.   
> > 
> > this is also wrong.
> > 
> > >         dbc_authmethod_admin=.                                            
> > >         dbc_authmethod_user=.                              
> > >         dbc_ssl=.                                         
> > > dbc_write_package_config() .                              
> > > dbconfig-common: writing config to 
> > > /etc/dbconfig-common/bareos-database-common.conf
> > > dbc_read_package_config() .                                            
> > > dbc_postinst_cleanup() .                         
> > > dbc_forget_dbadmin_password() .                                 
> > > dbconfig-common: flushing administrative password         
> > > dbc_forget_app_password() .                         
> > > dpkg: error processing package bareos-database-common (--configure):
> > >  subprocess installed post-installation script returned error exit status 
> > > 10
> > > dpkg: dependency problems prevent configuration of bareos-database-tools:
> > >  bareos-database-tools depends on bareos-database-common (= 17.2.4-9.1); 
> > > however:
> > >   Package bareos-database-common is not configured yet.
> > >                       
> > > dpkg: error processing package bareos-database-tools (--configure):
> > >  dependency problems - leaving unconfigured
> > > dpkg: dependency problems prevent configuration of bareos-director:
> > >  bareos-director depends on bareos-database-common (= 17.2.4-9.1); 
> > > however:
> > >   Package bareos-database-common is not configured yet.                   
> > >  bareos-director depends on bareos-database-tools; however:
> > >   Package bareos-database-tools is not configured yet.
> > >                                  
> > > dpkg: error processing package bareos-director (--configure):  
> > >  dependency problems - leaving unconfigured
> > > dpkg: dependency problems prevent configuration of bareos:      
> > >  bareos depends on bareos-director (= 17.2.4-9.1); however:
> > >   Package bareos-director is not configured yet.        
> > >                                                    
> > > dpkg: error processing package bareos (--configure):
> > >  dependency problems - leaving unconfigured
> > > Errors were encountered while processing:
> > >  bareos-database-common 
> > >  bareos-database-tools                                  
> > >  bareos-director                                          
> > >  bareos                                            
> > > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > > 
> > > 
> > > I guess the problem is in the line "dbc_dbuser=10 
> > > bareos-database-common/db/app-user doesn't exist." Obviously the user nae 
> > > is wrong. I tried to change the value in the file 
> > > /etc/dbconfig-common/bareos-database-common.conf but this had no effect.
> > 
> > What else have you done after changing the file? Have you called "dpkg
> > --configure" or something there like?
> 
> I did nothing after changing the file, just "apt-get -f install"
> > 
> > Please provide your /etc/dbconfig-common/bareos-database-common.conf.
> > From what I see, this all looks fishy.
> 
> I attached the file to this post. All parameters are empty strings, so this 
> looks indeed strange.
> > 
> > Have you modified it in before the update?
> No, I modified it after the upgrade failed.
> > 
> > regards,
> > Jörg
> > 
> > -- 
> >  Jörg Steffens                   [email protected]
> >  Bareos GmbH & Co. KG            Phone: +49 221 630693-91
> >  http://www.bareos.com           Fax:   +49 221 630693-10
> > 
> >  Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
> >  Komplementär: Bareos Verwaltungs-GmbH
> >  Geschäftsführer:
> >  S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

Yesterday I realized that the repository in /etc/apt/sources.list.d/bareos.list 
was pointing at deb 
http://download.bareos.org/bareos/release/latest/Debian_8.0/ /

I changed that to Debian_9.0 but after apt-get update && apt-get upgrade the 
packages were reinstalled but the same error occurred. After that I decided to 
completely remove (nor purge) all bareos packages. I purged dbconfig-common.

After that I re-installed all the bareos packages. During installation I 
decided to install the database via dbconfig-common (the installer realized 
that there was a database installed for bareos before). The installation then 
proceeded without errors, an upgrade of the database was apparently made (a 
snippet from the installation):

…
…
creating database backup in 
/var/cache/dbconfig-common/backups/bareos-database-common_2004.2018-01-22-21.47.28.
su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.liFix3' 
PGPASSFILE='/tmp/dbconfig-common.psql_home.liFix3/.pgpass' PGSSLMODE='prefer' 
psql --set \"ON_ERROR_STOP
=1\" -q -h 'localhost' -U 'bareos' template1" 2>&1.
su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.krzcTp' 
PGPASSFILE='/tmp/dbconfig-common.psql_home.krzcTp/.pgpass' PGSSLMODE='prefer' 
pg_dump -f "/var/cache/dbc
onfig-common/backups/bareos-database-common_2004.2018-01-22-21.47.28" -h 
'localhost' -U 'bareos' bareos" 2>&1.
_dbc_apply_upgrades() 2170.
applying upgrade script for 2004 -> 2170.
applying upgrade admin sql for 2004 -> 2170.
su -s /bin/sh postgres -c "env HOME='/tmp/dbconfig-common.psql_home.q7tKpl' 
PGPASSFILE='/tmp/dbconfig-common.psql_home.q7tKpl/.pgpass' PGSSLMODE='prefer' 
psql --set \"ON_ERROR_
STOP=1\" -q -U 'postgres' bareos" 2>&1.
_dbc_apply_upgrades() 2171.
applying upgrade sql for 2004 -> 2171.
su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.MJDpMw' 
PGPASSFILE='/tmp/dbconfig-common.psql_home.MJDpMw/.pgpass' PGSSLMODE='prefer' 
psql --set \"ON_ERROR_STOP
=1\" -q -h 'localhost' -U 'bareos' bareos" 2>&1.
dbc_postinst_cleanup() .
dbc_forget_dbadmin_password() .
dbconfig-common: flushing administrative password
dbc_forget_app_password() .
…
…

I unfortunately don't know what caused the problems but at least bareos is 
working again.


Greetings, Jens

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to