Project

General

Profile

Actions

Bug #13661

closed

Error when installing rudder-server-relay on debian9

Added by Nicolas CHARLES over 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Relay server or API
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
45
Name check:
Fix check:
Regression:

Description

Installing rudder-server-relay on debian9 failed


# apt-get install rudder-server-relay
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-wsgi libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 libpython2.7 libpython2.7-minimal libpython2.7-stdlib python2.7 python2.7-minimal
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom python2.7-doc binfmt-support
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapache2-mod-wsgi libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 libpython2.7 rudder-server-relay
The following packages will be upgraded:
  libpython2.7-minimal libpython2.7-stdlib python2.7 python2.7-minimal
4 upgraded, 12 newly installed, 0 to remove and 130 not upgraded.
Need to get 11.5 MB of archives.
After this operation, 33.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.fr.debian.org/debian stretch/main amd64 libapr1 amd64 1.5.2-5 [96.6 kB]
Get:2 http://security.debian.org/debian-security stretch/updates/main amd64 python2.7 amd64 2.7.13-2+deb9u3 [285 kB]
Get:3 http://ftp.fr.debian.org/debian stretch/main amd64 libaprutil1 amd64 1.5.4-3 [85.8 kB]
Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u3 [1,897 kB]
Get:5 http://repository.rudder.io/rtf/apt/4.3-nightly stretch/main amd64 rudder-server-relay amd64 4.3.5~rc1~git201810150112-stretch0 [4,266 kB]
Get:6 http://ftp.fr.debian.org/debian stretch/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-3 [19.3 kB]                      
Get:7 http://ftp.fr.debian.org/debian stretch/main amd64 libaprutil1-ldap amd64 1.5.4-3 [17.4 kB]                                          
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u3 [1,382 kB]                
Get:9 http://ftp.fr.debian.org/debian stretch/main amd64 liblua5.2-0 amd64 5.2.4-1.1+b2 [110 kB]             
Get:10 http://security.debian.org/debian-security stretch/updates/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u3 [389 kB]              
Get:11 http://ftp.fr.debian.org/debian stretch/main amd64 apache2-bin amd64 2.4.25-3+deb9u5 [1,186 kB]         
Get:12 http://security.debian.org/debian-security stretch/updates/main amd64 libpython2.7 amd64 2.7.13-2+deb9u3 [1,071 kB]        
Get:13 http://ftp.fr.debian.org/debian stretch/main amd64 apache2-utils amd64 2.4.25-3+deb9u5 [217 kB]                  
Get:14 http://ftp.fr.debian.org/debian stretch/main amd64 apache2-data all 2.4.25-3+deb9u5 [162 kB]
Get:15 http://ftp.fr.debian.org/debian stretch/main amd64 apache2 amd64 2.4.25-3+deb9u5 [236 kB]
Get:16 http://ftp.fr.debian.org/debian stretch/main amd64 libapache2-mod-wsgi amd64 4.5.11-1 [91.1 kB]
Fetched 11.5 MB in 0s (13.0 MB/s)          
Reading changelogs... Done
Selecting previously unselected package libapr1:amd64.
(Reading database ... 35945 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.5.2-5_amd64.deb ...
Unpacking libapr1:amd64 (1.5.2-5) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.5.4-3_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-3) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.5.4-3_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-3) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.5.4-3_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.4-3) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../04-liblua5.2-0_5.2.4-1.1+b2_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../05-apache2-bin_2.4.25-3+deb9u5_amd64.deb ...
Unpacking apache2-bin (2.4.25-3+deb9u5) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../06-apache2-utils_2.4.25-3+deb9u5_amd64.deb ...
Unpacking apache2-utils (2.4.25-3+deb9u5) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../07-apache2-data_2.4.25-3+deb9u5_all.deb ...
Unpacking apache2-data (2.4.25-3+deb9u5) ...
Selecting previously unselected package apache2.
Preparing to unpack .../08-apache2_2.4.25-3+deb9u5_amd64.deb ...
Unpacking apache2 (2.4.25-3+deb9u5) ...
Preparing to unpack .../09-python2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7 (2.7.13-2+deb9u3) over (2.7.13-2) ...
Preparing to unpack .../10-libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) over (2.7.13-2) ...
Preparing to unpack .../11-python2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking python2.7-minimal (2.7.13-2+deb9u3) over (2.7.13-2) ...
Preparing to unpack .../12-libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) over (2.7.13-2) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../13-libpython2.7_2.7.13-2+deb9u3_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.13-2+deb9u3) ...
Selecting previously unselected package libapache2-mod-wsgi.
Preparing to unpack .../14-libapache2-mod-wsgi_4.5.11-1_amd64.deb ...
Unpacking libapache2-mod-wsgi (4.5.11-1) ...
Selecting previously unselected package rudder-server-relay.
Preparing to unpack .../15-rudder-server-relay_4.3.5~rc1~git201810150112-stretch0_amd64.deb ...
Unpacking rudder-server-relay (4.3.5~rc1~git201810150112-stretch0) ...
Setting up libapr1:amd64 (1.5.2-5) ...
Processing triggers for mime-support (3.60) ...
Setting up apache2-data (2.4.25-3+deb9u5) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libaprutil1:amd64 (1.5.4-3) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...
Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...
Setting up python2.7-minimal (2.7.13-2+deb9u3) ...
Setting up libaprutil1-ldap:amd64 (1.5.4-3) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-3) ...
Setting up apache2-utils (2.4.25-3+deb9u5) ...
Setting up apache2-bin (2.4.25-3+deb9u5) ...
Setting up python2.7 (2.7.13-2+deb9u3) ...
Setting up libpython2.7:amd64 (2.7.13-2+deb9u3) ...
Setting up apache2 (2.4.25-3+deb9u5) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Setting up libapache2-mod-wsgi (4.5.11-1) ...
apache2_invoke: Enable module wsgi
Setting up rudder-server-relay (4.3.5~rc1~git201810150112-stretch0) ...

Configuration file '/opt/rudder/etc/rudder-networks.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   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-networks.conf (Y/I/N/O/D/Z) [default=N] ? 

Configuration file '/opt/rudder/etc/rudder-networks-24.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   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-networks-24.conf (Y/I/N/O/D/Z) [default=N] ? 

Configuration file '/opt/rudder/etc/rudder-networks-policy-server.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   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-networks-policy-server.conf (Y/I/N/O/D/Z) [default=N] ? 

Configuration file '/opt/rudder/etc/rudder-networks-policy-server-24.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   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-networks-policy-server-24.conf (Y/I/N/O/D/Z) [default=N] ? 
INFO: Creating group rudder... Done
INFO: Creating group rudder-policy-reader... Done
INFO: Creating the rudder user... Done
INFO: No usable SSL certificate detected for Rudder relay HTTP/S support, generating one automatically... Done
INFO: Restarting Apache HTTPd...dpkg: error processing package rudder-server-relay (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Errors were encountered while processing:
 rudder-server-relay
E: Sub-process /usr/bin/dpkg returned an error code (1)

reruning postinst shows the issue

# ./info/rudder-server-relay.postinst configure
INFO: Restarting Apache HTTPd... Done
INFO: rudder-server-relay setup complete.

*****************************************************************************************
INFO: Now run on your root server:                                                             
INFO:   '/opt/rudder/bin/rudder-node-to-relay 6b53dbb8-6c1f-40b1-b907-6f22067ba3c6
INFO: Please look at the documentation for details (Section 'Relay servers')           
*****************************************************************************************

Note that I did run he rudder-node-to-relay prior to installing the package

Actions #1

Updated by Nicolas CHARLES over 5 years ago

systemd log show

Oct 15 14:17:44 relay systemd[1]: Started The Apache HTTP Server.
Oct 15 14:17:57 relay groupadd[32687]: group added to /etc/group: name=rudder, GID=998
Oct 15 14:17:57 relay groupadd[32687]: group added to /etc/gshadow: name=rudder
Oct 15 14:17:57 relay groupadd[32687]: new group: name=rudder, GID=998
Oct 15 14:17:58 relay groupadd[32692]: group added to /etc/group: name=rudder-policy-reader, GID=997
Oct 15 14:17:58 relay groupadd[32692]: group added to /etc/gshadow: name=rudder-policy-reader
Oct 15 14:17:58 relay groupadd[32692]: new group: name=rudder-policy-reader, GID=997
Oct 15 14:17:58 relay usermod[32696]: add 'www-data' to group 'rudder-policy-reader'
Oct 15 14:17:58 relay usermod[32696]: add 'www-data' to shadow group 'rudder-policy-reader'
Oct 15 14:17:58 relay useradd[32707]: new user: name=rudder, UID=998, GID=998, home=/var/rudder, shell=/bin/false
Oct 15 14:17:58 relay systemd[1]: Stopping The Apache HTTP Server...
Oct 15 14:17:58 relay apachectl[352]: AH00526: Syntax error on line 8 of /opt/rudder/etc/rudder-apache-relay-ssl.conf:
Oct 15 14:17:58 relay apachectl[352]: SSLCACertificateFile: file '/opt/rudder/etc/ssl/ca.cert' does not exist or is empty
Oct 15 14:17:58 relay apachectl[352]: Action 'stop' failed.
Oct 15 14:17:58 relay apachectl[352]: The Apache error log may have more information.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 15 14:17:58 relay systemd[1]: Stopped The Apache HTTP Server.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Unit entered failed state.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Failed with result 'exit-code'..
Oct 15 14:17:58 relay systemd[1]: Starting The Apache HTTP Server...
Oct 15 14:17:58 relay apachectl[358]: AH00526: Syntax error on line 8 of /opt/rudder/etc/rudder-apache-relay-ssl.conf:
Oct 15 14:17:58 relay apachectl[358]: SSLCACertificateFile: file '/opt/rudder/etc/ssl/ca.cert' does not exist or is empty
Oct 15 14:17:58 relay apachectl[358]: Action 'start' failed.
Oct 15 14:17:58 relay apachectl[358]: The Apache error log may have more information.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 15 14:17:58 relay systemd[1]: Failed to start The Apache HTTP Server.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Unit entered failed state.
Oct 15 14:17:58 relay systemd[1]: apache2.service: Failed with result 'exit-code'.

Actions #2

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.5 to 4.3.6
Actions #3

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.6 to 4.3.7
Actions #4

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.7 to 4.3.8
Actions #5

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 4.3.8 to 4.3.9
Actions #6

Updated by Alexis Mousset about 5 years ago

  • Target version changed from 4.3.9 to 4.3.10
Actions #7

Updated by François ARMAND about 5 years ago

  • Target version changed from 4.3.10 to 4.3.11
Actions #8

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 4.3.11 to 4.3.12
Actions #9

Updated by Benoît PECCATTE about 5 years ago

  • Severity set to Major - prevents use of part of Rudder | no simple workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 48
Actions #10

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 4.3.12 to 4.3.13
  • Priority changed from 48 to 47
Actions #11

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 4.3.13 to 4.3.14
Actions #12

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 4.3.14 to 587
  • Priority changed from 47 to 46
Actions #13

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 587 to 4.3.14
  • Priority changed from 46 to 45
Actions #14

Updated by Alexis Mousset almost 5 years ago

  • Status changed from New to Rejected

Not seen in 5.0, please reopen is it happens again.

Actions

Also available in: Atom PDF