Project

General

Profile

Actions

Bug #17479

closed

Bug #15422: Some inventories are not correctly noticed by inotify file watcher

cannot upgrade Rudder from 6.0-nightly to 6.1-nightly on debian9

Added by Nicolas CHARLES almost 4 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

error is

********************************************************************************
INFO: dpkg may ask you if you want to replace rudder-web.properties or          
INFO: inventory-web.properties with the maintainer version if you modified it.  
INFO:                                                                           
INFO: If you accept, please keep in mind that you will lose any manual          
INFO: modification in this file, like the syslog port or the workflows and will 
INFO: certainly have to add them again.                                         
INFO:                                                                           
INFO: We recommend that you respond NO to this question                         
INFO: ('keep your currently-installed version'). Rudder's upgrade script will   
INFO: take care of this automatically.                                          
INFO:                                                                           
********************************************************************************
Unpacking rudder-webapp (6.1.0~beta4~git202005230100-debian9) over (6.0.7~rc1~git202005230324-debian9) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up rudder-reports (6.1.0~beta4~git202005230100-debian9) ...
INFO: Setting PostgreSQL as a boot service...Synchronizing state of postgresql.service with SysV service script with /l
ib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postgresql
 Done
INFO: Waiting for PostgreSQL to be up... Done
Setting up rudder-webapp (6.1.0~beta4~git202005230100-debian9) ...

Configuration file '/opt/rudder/etc/rudder-web.properties'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** rudder-web.properties (Y/I/N/O/D/Z) [default=N] ? 
Installing new version of config file /opt/rudder/etc/rudder-users.xml ...

Configuration file '/opt/rudder/etc/logback.xml'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** logback.xml (Y/I/N/O/D/Z) [default=N] ? 
Installing new version of config file /opt/rudder/etc/rudder-apache-webapp-ssl.conf ...

Configuration file '/opt/rudder/etc/openldap/slapd.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** slapd.conf (Y/I/N/O/D/Z) [default=N] ? 
Conf ncf-api-virtualenv disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2
INFO: Creating groups ... Done
INFO: Creating users ... Done
INFO: Removing ncf-api-venv user and group ...userdel: ncf-api-venv mail spool (/var/mail/ncf-api-venv) not found
userdel: ncf-api-venv home directory (/var/lib/ncf-api-venv) not found
 Done
INFO: Setting up systemd ...INFO: Restarting rudder-slapd... Done
INFO: Launching script to check if a migration is needed ...
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.
dpkg: error processing package rudder-webapp (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for rsyslog (8.24.0-1) ...
dpkg: dependency problems prevent configuration of rudder-server-root:
 rudder-server-root depends on rudder-webapp (>> 6.1.0~beta4~git000000000000); however:
  Package rudder-webapp is not configured yet.
 rudder-server-root depends on rudder-webapp (<< 6.1.0~beta4~git999999999999); however:
  Package rudder-webapp is not configured yet.

dpkg: error processing package rudder-server-root (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
 rudder-webapp
 rudder-server-root
E: Sub-process /usr/bin/dpkg returned an error code (1)

running apt install -f doesn't fix it

root@server:/home/vagrant# apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libapache2-mod-wsgi-py3 libpython3.5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up rudder-webapp (6.1.0~beta4~git202005230100-debian9) ...
Conf ncf-api-virtualenv already disabled
INFO: Creating groups ... Done
INFO: Creating users ... Done
INFO: Removing ncf-api-venv user and group ... Done
INFO: Setting up systemd ...INFO: Restarting rudder-slapd... Done
INFO: Launching script to check if a migration is needed ...
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.
dpkg: error processing package rudder-webapp (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of rudder-server-root:
 rudder-server-root depends on rudder-webapp (>> 6.1.0~beta4~git000000000000); however:
  Package rudder-webapp is not configured yet.
 rudder-server-root depends on rudder-webapp (<< 6.1.0~beta4~git999999999999); however:
  Package rudder-webapp is not configured yet.

dpkg: error processing package rudder-server-root (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
 rudder-webapp
 rudder-server-root
E: Sub-process /usr/bin/dpkg returned an error code (1)

meanwhile
root       428  0.0  0.3  69944  6360 ?        Ss   04:37   0:00 /usr/sbin/sshd -D
root      9555  0.0  0.3  95172  6760 ?        Ss   04:40   0:00  \_ sshd: vagrant [priv]
vagrant   9564  0.0  0.2  95476  4992 ?        S    04:40   0:00  |   \_ sshd: vagrant@pts/0
vagrant   9565  0.0  0.2  21388  5148 pts/0    Ss   04:40   0:00  |       \_ -bash
root      9576  0.0  0.1  49256  3608 pts/0    S    04:40   0:00  |           \_ sudo su
root      9577  0.0  0.1  50892  3204 pts/0    S    04:40   0:00  |               \_ su
root      9578  0.0  0.2  21420  5316 pts/0    S    04:40   0:00  |                   \_ bash
root     24489  0.4  2.2  85592 45668 pts/0    S+   05:01   0:00  |                       \_ apt install -f
root     24507  0.0  0.2  18540  4172 pts/1    Ss+  05:01   0:00  |                           \_ /usr/bin/dpkg --status-fd 18 --configure --pending
root     24510  0.0  0.0   4288   804 pts/1    S+   05:01   0:00  |                               \_ /bin/sh /var/lib/dpkg/info/rudder-webapp.postinst configure 6.0.7~rc1~git202005230324-deb
root     24524  0.0  0.1  11220  3156 pts/1    S+   05:01   0:00  |                                   \_ /bin/bash /opt/rudder/share/package-scripts/rudder-webapp-postinst false apache2
root     24616  0.0  0.1  11484  3344 pts/1    S+   05:01   0:00  |                                       \_ /bin/bash /opt/rudder/bin/rudder-upgrade
root     25198  0.2  1.5 133284 32300 pts/1    S+   05:01   0:00  |                                           \_ /usr/bin/python3 /opt/rudder/share/commands/package plugin disable-all
root     25247  0.0  0.0   4288   756 pts/1    S+   05:01   0:00  |                                               \_ /bin/sh -c service rudder-jetty restart
root     25248  0.0  0.2  39592  4776 pts/1    S+   05:01   0:00  |                                                   \_ systemctl restart rudder-jetty.service
root     25252  0.0  0.1  37804  2108 pts/1    S+   05:01   0:00  |                                                       \_ /bin/systemd-tty-ask-password-agent --watch


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #17482: Webapp block at start on inventory processingReleasedVincent MEMBRÉActions
Actions #1

Updated by Nicolas CHARLES almost 4 years ago

  • Related to Bug #17453: rudder package command fails when not run from a terminal added
Actions #2

Updated by Nicolas CHARLES almost 4 years ago

webapp does start, and ends
last message is

 
[2020-05-24 05:12:32+0200] INFO  application - Using configuration file defined by JVM property -Drudder.authFile : /opt/rudder/etc/rudder-users.xml
[2020-05-24 05:12:33+0200] INFO  bootstrap.liftweb.Boot - classpath
[2020-05-24 05:12:33+0200] INFO  org.reflections.Reflections - Reflections took 146 ms to scan 131 urls, producing 0 keys and 0 values 
INFO Configure inventory processing with parallelism of '1' and queue size of '50'
[2020-05-24 05:12:33+0200] INFO  inventory-processing - Incoming inventory watcher started - process existing inventories

Actions #3

Updated by Nicolas CHARLES almost 4 years ago

  • Related to deleted (Bug #17453: rudder package command fails when not run from a terminal)
Actions #4

Updated by Nicolas CHARLES almost 4 years ago

  • Parent task set to #15422

It was introduced in 15422

Actions #5

Updated by Nicolas CHARLES almost 4 years ago

  • Status changed from New to Rejected

rejected as duplucate of #17482

Actions #6

Updated by Nicolas CHARLES almost 4 years ago

  • Is duplicate of Bug #17482: Webapp block at start on inventory processing added
Actions

Also available in: Atom PDF