Actions
Bug #21615
closedArchitecture #21645: reinstate rudder-webapp package
Error at server upgrade in debian 11
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
webapp does not start anymore.
root@server:~# apt install rudder-server Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: rudder-reports rudder-server-relay rudder-server-root Use 'apt autoremove' to remove them. The following additional packages will be installed: rudder-agent rudder-relay rudder-reports rudder-server-relay rudder-server-root The following packages will be REMOVED: rudder-webapp The following NEW packages will be installed: rudder-relay rudder-server The following packages will be upgraded: rudder-agent rudder-reports rudder-server-relay rudder-server-root 4 upgraded, 2 newly installed, 1 to remove and 26 not upgraded. Need to get 181 MB of archives. After this operation, 5501 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-server-root all 7.2.0~beta2~git202208180300-debian11 [1504 B] Get:2 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-reports all 7.2.0~beta2~git202208180300-debian11 [1492 B] Get:3 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-server-relay all 7.2.0~beta2~git202208180300-debian11 [1508 B] Get:4 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-relay amd64 7.2.0~beta2~git202208180300-debian11 [4677 kB] Get:5 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-agent amd64 7.2.0~beta2~git202208180300-debian11 [2901 kB] Get:6 https://repository.rudder.io/rtf/apt/7.2-nightly bullseye/main amd64 rudder-server amd64 7.2.0~beta2~git202208180300-debian11 [174 MB] Fetched 181 MB in 2min 4s (1459 kB/s) apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! Reading changelogs... Done Preconfiguring packages ... (Reading database ... 40130 files and directories currently installed.) Preparing to unpack .../rudder-server-root_7.2.0~beta2~git202208180300-debian11_all.deb ... Unpacking rudder-server-root (7.2.0~beta2~git202208180300-debian11) over (7.1.4~git202208180259-debian11) ... Preparing to unpack .../rudder-reports_7.2.0~beta2~git202208180300-debian11_all.deb ... Unpacking rudder-reports (7.2.0~beta2~git202208180300-debian11) over (7.1.4~git202208180259-debian11) ... (Reading database ... 40119 files and directories currently installed.) Removing rudder-webapp (7.1.4~git202208180259-debian11) ... (Reading database ... 37774 files and directories currently installed.) Preparing to unpack .../rudder-server-relay_7.2.0~beta2~git202208180300-debian11_all.deb ... Unpacking rudder-server-relay (7.2.0~beta2~git202208180300-debian11) over (7.1.4~git202208180259-debian11) ... dpkg: warning: unable to delete old directory '/var/rudder/share': Directory not empty dpkg: warning: unable to delete old directory '/var/rudder/lib/relay': Directory not empty dpkg: warning: unable to delete old directory '/var/rudder/inventories/accepted-nodes-updates': Directory not empty dpkg: warning: unable to delete old directory '/var/log/rudder/apache2': Directory not empty dpkg: warning: unable to delete old directory '/usr/lib/systemd/system': Directory not empty dpkg: warning: unable to delete old directory '/opt/rudder/etc/rudder-pkg': Directory not empty dpkg: warning: unable to delete old directory '/opt/rudder/etc/relayd': Directory not empty Selecting previously unselected package rudder-relay. Preparing to unpack .../rudder-relay_7.2.0~beta2~git202208180300-debian11_amd64.deb ... Adding 'diversion of /opt/rudder/etc/relayd/logging.conf to /opt/rudder/etc/relayd/logging.conf.distrib by rudder-relay' Adding 'diversion of /opt/rudder/etc/relayd/main.conf to /opt/rudder/etc/relayd/main.conf.distrib by rudder-relay' Adding 'diversion of /opt/rudder/etc/rudder-networks-24.conf to /opt/rudder/etc/rudder-networks-24.conf.distrib by rudder-relay' Adding 'diversion of /opt/rudder/etc/rudder-networks-policy-server-24.conf to /opt/rudder/etc/rudder-networks-policy-server-24.conf.distrib by rudder-relay' Adding 'diversion of /opt/rudder/etc/rudder-pkg/rudder-pkg.conf to /opt/rudder/etc/rudder-pkg/rudder-pkg.conf.distrib by rudder-relay' Unpacking rudder-relay (7.2.0~beta2~git202208180300-debian11) ... Preparing to unpack .../rudder-agent_7.2.0~beta2~git202208180300-debian11_amd64.deb ... INFO: A backup copy of Rudder agent credentials and id has been done in /var/backups/rudder Unpacking rudder-agent (7.2.0~beta2~git202208180300-debian11) over (7.1.4~git202208180259-debian11) ... Selecting previously unselected package rudder-server. Preparing to unpack .../rudder-server_7.2.0~beta2~git202208180300-debian11_amd64.deb ... Unpacking rudder-server (7.2.0~beta2~git202208180300-debian11) ... Setting up rudder-reports (7.2.0~beta2~git202208180300-debian11) ... Setting up rudder-agent (7.2.0~beta2~git202208180300-debian11) ... locale: Cannot set LC_ALL to default locale: No such file or directory Setting up rudder-relay (7.2.0~beta2~git202208180300-debian11) ... Setting up rudder-server-relay (7.2.0~beta2~git202208180300-debian11) ... Setting up rudder-server (7.2.0~beta2~git202208180300-debian11) ... Installing new version of config file /etc/default/rudder-jetty ... + touch /opt/rudder/etc/trigger-policy-generation + cp /opt/rudder/share/plugins/scale-out-relay/server-node-to-relay /opt/rudder/share/commands/ + cp /opt/rudder/share/plugins/scale-out-relay/server-relay-to-node /opt/rudder/share/commands/ Job for rudder-jetty.service failed because the control process exited with error code. See "systemctl status rudder-jetty.service" and "journalctl -xe" for details. Setting up rudder-server-root (7.2.0~beta2~git202208180300-debian11) ... Processing triggers for rsyslog (8.2102.0-2) ... Processing triggers for libc-bin (2.31-13+deb11u3) ...
webapp fails as it unable to connect to postgres.
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "rudder"
Updated by Alexis Mousset over 2 years ago
it seems to that postinst considered it a new install and wiped everything.
Updated by Alexis Mousset over 2 years ago
the rudder-users.xml file has been replaced by default one without backup.
Updated by Alexis Mousset over 2 years ago
Resolution seems lost in upgrade command:
root@server:~# apt upgrade The following packages were automatically installed and are no longer required: [...] rudder-agent rudder-api-client rudder-reports rudder-server-relay rudder-server-root rudder-webapp Use 'apt autoremove' to remove them. The following NEW packages will be installed: [...] The following packages have been kept back: rudder-agent rudder-reports rudder-server-relay rudder-server-root The following packages will be upgraded: [...] 26 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Updated by Benoît PECCATTE over 2 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
Updated by Benoît PECCATTE over 2 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-packages/pull/2656
Updated by Benoît PECCATTE over 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-packages|cd8fbf6bd82711f730a043272e9f400ff3b893cb.
Updated by Vincent MEMBRÉ over 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.0~rc1 which was released today.
Actions