This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-e3e05f5e-da24-40f0-ac12-9bbd4c53b3f2 XWIKI-23582 Open

Xwiki deb upgrade removes database configuration

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d6c5b0d6-ecae-4e14-9209-84c9a36559c7 Vincent created this issue on 08/Oct/25 16:37
 
Summary: Xwiki deb upgrade removes database configuration
Issue Type: cid:jira-generated-image-avatar-e3e05f5e-da24-40f0-ac12-9bbd4c53b3f2 Bug
Assignee: Unassigned
Created: 08/Oct/25 16:37
Priority: cid:jira-generated-image-static-major-75a67984-24c8-4bc0-9a49-0f7ff557c9cf Major
Reporter: Vincent
Description:

I ran an apt update and the database configuration was overwritten while I answered no ( see below snippet ), version : 

Unpacking xwiki-pgsql-common (17.8.0+1) over (17.4.0) ...

Setting up xwiki-pgsql-common (17.8.0+1) ...

debconf: unable to initialize frontend: Dialog

debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79.)

debconf: falling back to frontend: Readline

Configuring xwiki-pgsql-common

------------------------------

The xwiki package must have a database installed and configured before it can be used. This can be optionally handled with dbconfig-common.

 

If you are an advanced database administrator and know that you want to perform this configuration manually, or if your database has already been installed and configured, you should refuse this option. Details on what needs to be

done should most likely be provided in /usr/share/doc/xwiki.

 

Otherwise, you should probably choose this option.

 

Configure database for xwiki with dbconfig-common? [yes/no] no

 

dbconfig-common: writing config to /etc/dbconfig-common/xwiki.conf

Replacing config file /etc/dbconfig-common/xwiki.conf with new version

dbconfig-common: flushing administrative password

This resulted in my instance having a new database and the configuration being overwritten, without having a backup file, so I need to reconfigure everything to get my data back. 

I kept the local versions of files that were suggested to review :

A new version (/usr/share/xwiki/default/xwiki.cfg) of configuration file /etc/xwiki/xwiki.cfg is available, but the version installed currently has been locally modified.

 

  1. install the package maintainer's version    3. show the differences between the versions            5. show a 3-way difference between available versions  7. start a new shell to examine the situation

  2. keep the local version currently installed  4. show a side-by-side difference between the versions  6. do a 3-way merge between available versions

What do you want to do about modified configuration file xwiki.cfg? 2
and

A new version (/usr/share/xwiki/default/xwiki.properties) of configuration file /etc/xwiki/xwiki.properties is available, but the version installed currently has been locally modified.

 

  1. install the package maintainer's version    3. show the differences between the versions            5. show a 3-way difference between available versions  7. start a new shell to examine the situation

  2. keep the local version currently installed  4. show a side-by-side difference between the versions  6. do a 3-way merge between available versions

What do you want to do about modified configuration file xwiki.properties? 2

seems like the choice for dbconfig-common as no should not have overwritten the file, at least that is what I understand from the description.
I would have expected at least a backup of the config file.