jonasplaum opened a new issue, #175:
URL: https://github.com/apache/couchdb-pkg/issues/175

   An update from couchdb 3.4.2 to 3.4.3 using the .deb files fails in some 
cases.
   This likely affects other versions of couchdb, but we discovered it, because 
of a config change on our nodes between the two versions.
   With `DEBCONF_DEBUG=developer dpkg -i 
/var/cache/couchdb_3.4.3~bookworm_amd64.deb` I get the following log:
   ```
   (Lese Datenbank ... 43637 Dateien und Verzeichnisse sind derzeit 
installiert.)
   Vorbereitung zum Entpacken von .../couchdb_3.4.3~bookworm_amd64.deb ...
   Warning! Configuration files found in /etc/couchdb, these require manual 
migration!
   Entpacken von couchdb (3.4.3~bookworm) über (3.4.3~bookworm) ...
   debconf (developer): frontend started
   debconf (developer): frontend running, package name is couchdb
   debconf (developer): starting /var/lib/dpkg/info/couchdb.postrm upgrade 
3.4.3~bookworm
   couchdb (3.4.3~bookworm) wird eingerichtet ...
   debconf (developer): frontend started
   debconf (developer): frontend running, package name is couchdb
   debconf (developer): starting /var/lib/dpkg/info/couchdb.config configure 
3.4.2~bookworm
   debconf (developer): <-- SET couchdb/cookie 
''eaa86b009a4fc4510151614d2e94adbcfab68c0c7c74757ea0ee2ca55d41f458''
   debconf (developer): --> 0 value set
   debconf (developer): <-- SET couchdb/bindaddress 0.0.0.0
   debconf (developer): --> 0 value set
   debconf (developer): <-- 127.0.0.1
   debconf (developer): --> 20 Unsupported command "127.0.0.1" (full line was 
"127.0.0.1") received from confmodule.
   debconf (developer): <-- INPUT high couchdb/mode
   debconf (developer): --> 30 question skipped
   debconf (developer): <-- GO
   debconf (developer): --> 0 ok
   dpkg: Fehler beim Bearbeiten des Paketes couchdb (--install):
    »installiertes post-installation-Skript des Paketes couchdb«-Unterprozess 
gab den Fehlerwert 128 zurück
   Trigger für man-db (2.11.2-2) werden verarbeitet ...
   Fehler traten auf beim Bearbeiten von:
    couchdb
   ```
   The Problem is `20 Unsupported command "127.0.0.1" ` 
   After some digging I found, that the config script 
`/var/lib/dpkg/info/couchdb.config` gets the existing bind_address from the 
local.ini.
   It uses `grep '^bind_address' /opt/couchdb/etc/local.ini | cut -d ' ' -f 3` 
to do so, but in my case it returns two lines instead of just one:
   ```
   0.0.0.0
   127.0.0.1
   ```
   This is because we also configure prometheus and because of this there are 
two bind_adresses in our local.ini:
   ```
   [prometheus]
   additional_port = true
   bind_address = 127.0.0.1
   port = 17986
   ```
   After commenting out the prometheus config, the update works as expected.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to