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

-- 
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.
# automatically generated by the maintainer scripts of bareos-database-common
# any changes you make will be preserved, though your comments
# will be lost!  to change your settings you should edit this
# file and then run "dpkg-reconfigure bareos-database-common"

# dbc_install: configure database with dbconfig-common?
#              set to anything but "true" to opt out of assistance
dbc_install=''

# dbc_upgrade: upgrade database with dbconfig-common?
#              set to anything but "true" to opt out of assistance
dbc_upgrade=''

# dbc_remove: deconfigure database with dbconfig-common?
#             set to anything but "true" to opt out of assistance
dbc_remove=''

# dbc_dbtype: type of underlying database to use
#       this exists primarily to let dbconfig-common know what database
#       type to use when a package supports multiple database types.
#       don't change this value unless you know for certain that this
#       package supports multiple database types
dbc_dbtype=''

# dbc_dbuser: database user
#       the name of the user who we will use to connect to the database.
dbc_dbuser=''

# dbc_dbpass: database user password
#       the password to use with the above username when connecting
#       to a database, if one is required
dbc_dbpass=''

# dbc_dballow: allowed host to connect from
#       only for database types that support specifying the host from
#       which the database user is allowed to connect from
#       this string defines for which host the dbc_dbuser is allowed
#       to connect
#       this value is only really used again when you reconfigure the
#       package
dbc_dballow=''

# dbc_dbserver: database host.
#       leave unset to use localhost (or a more efficient local method
#       if it exists).
dbc_dbserver=''

# dbc_dbport: remote database port
#       leave unset to use the default.  only applicable if you are
#       using a remote database.
dbc_dbport=''

# dbc_dbname: name of database
#       this is the name of your application's database.
dbc_dbname='bareosdatabasecommon'

# dbc_dbadmin: name of the administrative user
#       this is the administrative user that is used to create all of the above
#       The exception is the MySQL/MariaDB localhost case, where this value is
#       ignored and instead is determined from /etc/mysql/debian.cnf.
dbc_dbadmin=''

# dbc_basepath: base directory to hold database files
#       leave unset to use the default.  only applicable if you are
#       using a local (filesystem based) database.
dbc_basepath=''

##
## postgresql specific settings.  if you don't use postgresql,
## you can safely ignore all of these
##

# dbc_ssl: should we require ssl?
#       set to "true" to require that connections use ssl
dbc_ssl=''

# dbc_authmethod_admin: authentication method for admin
# dbc_authmethod_user: authentication method for dbuser
#       see the section titled "AUTHENTICATION METHODS" in
#       /usr/share/doc/dbconfig-common/README.pgsql for more info
dbc_authmethod_admin=''
dbc_authmethod_user=''

##
## end postgresql specific settings
##

Reply via email to