Actions
Bug #16151
closedrudder-server-root does no install postgresql-server on centos 8
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
One user reported that installation failed,
Running scriptlet: rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch 17/79 /opt/rudder/share/package-scripts/rudder-reports-postinst: line 8: /var/log/rudder/install/rudder-reports-20191107163721.log: No such file or directory warning: %post(rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch) scriptlet failed, exit status 1 <pre> database doesn't start <pre> Nov 07 15:16:21 localhost.localdomain systemd[1]: Starting PostgreSQL database server... Nov 07 15:16:21 localhost.localdomain systemd[1]: postgresql.service: Control process exited, code=exited status=1 Nov 07 15:16:21 localhost.localdomain systemd[1]: postgresql.service: Failed with result 'exit-code'. Nov 07 15:16:21 localhost.localdomain systemd[1]: Failed to start PostgreSQL database server. </pre> installing postgresql-server beforehand solves the issue
Updated by Alexis Mousset about 5 years ago
- Status changed from New to Rejected
Did not reproduce:
NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"
Please reopen with information if happens again, maybe a problem with the postgresql stream. Closing.
[root@server ~]# yum install rudder-server-root Failed to set locale, defaulting to C Last metadata expiration check: 0:00:03 ago on Fri Dec 6 14:38:04 2019. Dependencies resolved. =============================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================== Installing: rudder-server-root noarch 1398866025:6.0.0.beta1-1.EL.8 Rudder_6.0 10 k Installing dependencies: apr x86_64 1.6.3-9.el8 AppStream 125 k apr-util x86_64 1.6.1-6.el8 AppStream 105 k centos-logos-httpd noarch 80.5-2.el8 AppStream 24 k copy-jdk-configs noarch 3.7-1.el8 AppStream 27 k httpd x86_64 2.4.37-12.module_el8.0.0+185+5908b0db AppStream 1.7 M httpd-filesystem noarch 2.4.37-12.module_el8.0.0+185+5908b0db AppStream 35 k httpd-tools x86_64 2.4.37-12.module_el8.0.0+185+5908b0db AppStream 102 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.232.b09-0.el8_0 AppStream 32 M javapackages-filesystem noarch 5.3.0-1.module_el8.0.0+11+5b8c10bd AppStream 30 k libpq x86_64 10.5-1.el8 AppStream 188 k lua x86_64 5.3.4-10.el8 AppStream 192 k mod_http2 x86_64 1.11.3-3.module_el8.0.0+185+5908b0db AppStream 158 k mod_ssl x86_64 1:2.4.37-12.module_el8.0.0+185+5908b0db AppStream 130 k postgresql x86_64 10.6-1.module_el8.0.0+15+f57f353b AppStream 1.5 M postgresql-server x86_64 10.6-1.module_el8.0.0+15+f57f353b AppStream 5.1 M python3-lxml x86_64 4.2.3-1.el8 AppStream 1.5 M python3-mod_wsgi x86_64 4.6.4-3.el8 AppStream 2.5 M python3-webencodings noarch 0.5.1-6.el8 AppStream 27 k rsyslog-pgsql x86_64 8.37.0-9.el8 AppStream 19 k tzdata-java noarch 2019a-1.el8 AppStream 188 k lksctp-tools x86_64 1.0.18-3.el8 BaseOS 100 k openldap-clients x86_64 2.4.46-9.el8 BaseOS 202 k rudder-reports noarch 1398866025:6.0.0.beta1-1.EL.8 Rudder_6.0 14 k rudder-agent x86_64 1398866025:6.0.0.beta1-1.EL.8 Rudder_6.0 7.3 M rudder-server-relay x86_64 1398866025:6.0.0.beta1-1.EL.8 Rudder_6.0 3.2 M rudder-webapp x86_64 1398866025:6.0.0.beta1-1.EL.8 Rudder_6.0 113 M Installing weak dependencies: apr-util-bdb x86_64 1.6.1-6.el8 AppStream 25 k apr-util-openssl x86_64 1.6.1-6.el8 AppStream 27 k python3-html5lib noarch 1:0.999999999-6.el8 AppStream 214 k Enabling module streams: httpd 2.4 javapackages-runtime 201801 postgresql 10 Transaction Summary =============================================================================================================================================================== Install 30 Packages Total download size: 170 M Installed size: 318 M Is this ok [y/N]: y Downloading Packages: (1/30): apr-util-bdb-1.6.1-6.el8.x86_64.rpm 22 kB/s | 25 kB 00:01 (2/30): apr-util-1.6.1-6.el8.x86_64.rpm 91 kB/s | 105 kB 00:01 (3/30): apr-util-openssl-1.6.1-6.el8.x86_64.rpm 454 kB/s | 27 kB 00:00 (4/30): apr-1.6.3-9.el8.x86_64.rpm 105 kB/s | 125 kB 00:01 (5/30): centos-logos-httpd-80.5-2.el8.noarch.rpm 460 kB/s | 24 kB 00:00 (6/30): copy-jdk-configs-3.7-1.el8.noarch.rpm 507 kB/s | 27 kB 00:00 (7/30): httpd-filesystem-2.4.37-12.module_el8.0.0+185+5908b0db.noarch.rpm 672 kB/s | 35 kB 00:00 (8/30): httpd-tools-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64.rpm 986 kB/s | 102 kB 00:00 (9/30): javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch.rpm 579 kB/s | 30 kB 00:00 (10/30): libpq-10.5-1.el8.x86_64.rpm 1.6 MB/s | 188 kB 00:00 (11/30): lua-5.3.4-10.el8.x86_64.rpm 1.6 MB/s | 192 kB 00:00 (12/30): mod_http2-1.11.3-3.module_el8.0.0+185+5908b0db.x86_64.rpm 1.7 MB/s | 158 kB 00:00 (13/30): mod_ssl-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64.rpm 1.5 MB/s | 130 kB 00:00 (14/30): httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64.rpm 2.1 MB/s | 1.7 MB 00:00 (15/30): postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64.rpm 2.1 MB/s | 1.5 MB 00:00 (16/30): python3-html5lib-0.999999999-6.el8.noarch.rpm 1.0 MB/s | 214 kB 00:00 (17/30): python3-lxml-4.2.3-1.el8.x86_64.rpm 1.9 MB/s | 1.5 MB 00:00 (18/30): postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64.rpm 2.2 MB/s | 5.1 MB 00:02 (19/30): python3-webencodings-0.5.1-6.el8.noarch.rpm 518 kB/s | 27 kB 00:00 (20/30): rsyslog-pgsql-8.37.0-9.el8.x86_64.rpm 494 kB/s | 19 kB 00:00 (21/30): tzdata-java-2019a-1.el8.noarch.rpm 1.9 MB/s | 188 kB 00:00 (22/30): lksctp-tools-1.0.18-3.el8.x86_64.rpm 940 kB/s | 100 kB 00:00 (23/30): python3-mod_wsgi-4.6.4-3.el8.x86_64.rpm 2.0 MB/s | 2.5 MB 00:01 (24/30): openldap-clients-2.4.46-9.el8.x86_64.rpm 1.7 MB/s | 202 kB 00:00 (25/30): rudder-reports-6.0.0.beta1-1.EL.8.noarch.rpm 177 kB/s | 14 kB 00:00 (26/30): rudder-server-root-6.0.0.beta1-1.EL.8.noarch.rpm 276 kB/s | 10 kB 00:00 (27/30): rudder-server-relay-6.0.0.beta1-1.EL.8.x86_64.rpm 3.6 MB/s | 3.2 MB 00:00 (28/30): rudder-agent-6.0.0.beta1-1.EL.8.x86_64.rpm 5.4 MB/s | 7.3 MB 00:01 (29/30): rudder-webapp-6.0.0.beta1-1.EL.8.x86_64.rpm 10 MB/s | 113 MB 00:11 (30/30): java-1.8.0-openjdk-headless-1.8.0.232.b09-0.el8_0.x86_64.rpm 1.3 MB/s | 32 MB 00:24 --------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 6.1 MB/s | 170 MB 00:27 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: copy-jdk-configs-3.7-1.el8.noarch 1/1 Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.el8_0.x86_64 1/1 Running scriptlet: rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 1/1 Running scriptlet: rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 1/1 Preparing : 1/1 Installing : libpq-10.5-1.el8.x86_64 1/30 Installing : postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 2/30 Installing : apr-1.6.3-9.el8.x86_64 3/30 Running scriptlet: apr-1.6.3-9.el8.x86_64 3/30 Installing : apr-util-bdb-1.6.1-6.el8.x86_64 4/30 Installing : apr-util-openssl-1.6.1-6.el8.x86_64 5/30 Installing : apr-util-1.6.1-6.el8.x86_64 6/30 Running scriptlet: apr-util-1.6.1-6.el8.x86_64 6/30 Installing : httpd-tools-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 7/30 Running scriptlet: rudder-agent-1398866025:6.0.0.beta1-1.EL.8.x86_64 8/30 Installing : rudder-agent-1398866025:6.0.0.beta1-1.EL.8.x86_64 8/30 Running scriptlet: rudder-agent-1398866025:6.0.0.beta1-1.EL.8.x86_64 8/30 Created symlink /etc/systemd/system/multi-user.target.wants/rudder-agent.service -> /usr/lib/systemd/system/rudder-agent.service. Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-execd.service -> /usr/lib/systemd/system/rudder-cf-execd.service. Created symlink /etc/systemd/system/rudder-agent.service.requires/rudder-cf-execd.service -> /usr/lib/systemd/system/rudder-cf-execd.service. Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-serverd.service -> /usr/lib/systemd/system/rudder-cf-serverd.service. Created symlink /etc/systemd/system/rudder-agent.service.wants/rudder-cf-serverd.service -> /usr/lib/systemd/system/rudder-cf-serverd.service. Running scriptlet: httpd-filesystem-2.4.37-12.module_el8.0.0+185+5908b0db.noarch 9/30 Installing : httpd-filesystem-2.4.37-12.module_el8.0.0+185+5908b0db.noarch 9/30 Running scriptlet: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 10/30 Installing : postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 10/30 Running scriptlet: postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 10/30 Installing : rsyslog-pgsql-8.37.0-9.el8.x86_64 11/30 Installing : rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch 12/30 Running scriptlet: rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch 12/30 INFO: Initializing PostgreSQL ...WARNING: using obsoleted argument syntax, try --help WARNING: arguments transformed to: postgresql-setup --initdb --unit postgresql * Initializing database in '/var/lib/pgsql/data' * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log Done INFO: Setting PostgreSQL as a boot service...Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service -> /usr/lib/systemd/system/postgresql.service. Done INFO: Waiting for PostgreSQL to be up... Done INFO: Creating Rudder PostgreSQL user...Done INFO: Creating Rudder PostgreSQL database... Done Installing : openldap-clients-2.4.46-9.el8.x86_64 13/30 Installing : lksctp-tools-1.0.18-3.el8.x86_64 14/30 Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64 14/30 Installing : tzdata-java-2019a-1.el8.noarch 15/30 Installing : python3-webencodings-0.5.1-6.el8.noarch 16/30 Installing : python3-html5lib-1:0.999999999-6.el8.noarch 17/30 Installing : python3-lxml-4.2.3-1.el8.x86_64 18/30 Installing : lua-5.3.4-10.el8.x86_64 19/30 Installing : copy-jdk-configs-3.7-1.el8.noarch 20/30 Installing : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 21/30 Installing : java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.el8_0.x86_64 22/30 Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.el8_0.x86_64 22/30 Installing : centos-logos-httpd-80.5-2.el8.noarch 23/30 Installing : mod_http2-1.11.3-3.module_el8.0.0+185+5908b0db.x86_64 24/30 Installing : httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 25/30 Running scriptlet: httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 25/30 Installing : mod_ssl-1:2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 26/30 Installing : rudder-server-relay-1398866025:6.0.0.beta1-1.EL.8.x86_64 27/30 Running scriptlet: rudder-server-relay-1398866025:6.0.0.beta1-1.EL.8.x86_64 27/30 INFO: Setting Apache HTTPd as a boot service...Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service -> /usr/lib/systemd/system/httpd.service. Done INFO: Creating users ... Done INFO: Configuring systemd services...Created symlink /etc/systemd/system/multi-user.target.wants/rudder-relayd.service -> /usr/lib/systemd/system/rudder-relayd.service. Created symlink /etc/systemd/system/rudder-server.service.requires/rudder-relayd.service -> /usr/lib/systemd/system/rudder-relayd.service. Done Adding password for user rudder Adding password for user rudder INFO: No usable SSL certificate detected for Rudder relay HTTP/S support, generating one automatically...Generating a RSA private key .....................+++++ ..........................................+++++ writing new private key to '/opt/rudder/etc/ssl/rudder.key' ----- Done INFO: Starting services... Done INFO: rudder-server-relay setup complete. Installing : python3-mod_wsgi-4.6.4-3.el8.x86_64 28/30 Running scriptlet: rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 29/30 Installing : rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 29/30 Running scriptlet: rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 29/30 warning: user ncf-api-venv does not exist - using root warning: group ncf-api-venv does not exist - using root warning: user rudder-slapd does not exist - using root warning: group rudder-slapd does not exist - using root INFO: Creating groups ...INFO: Creating users ... Done INFO: Setting up systemd ... Done INFO: Restarting rudder-slapd...Redirecting to /bin/systemctl status rudder-slapd.service Done SUMMARY OF OPTIONS: Allowed networks: 10.0.2.15/24 192.168.46.2/24 Force LDAP reset: no Initializing LDAP database... done. This appears to be a distributed Rudder server setup. You should manually change the passwords for the WebDAV, PostgreSQL and OpenLDAP services now, and reflect these changes across all servers. This cannot be done automatically currently. See https://docs.rudder.io/reference/current/administration/multi_server.html Cleaning up temporary directories... done. Restarting jetty... done. Reinitialization complete, Rudder is currently reloading. You can access it via https://server.rudder.local/rudder INFO: Launching script to check if a migration is needed ... Done INFO: Make sure Rudder webapp is started... Done INFO: Make sure Apache HTTPd is started... Done INFO: No disable file detected and no agent executor process either. Restarting agent service...ok: stop service rudder-agent succeeded ok: start service rudder-agent succeeded Done INFO: Inventory older than 3 days, resending ...Rudder agent 6.0.0.beta1 Node uuid: root Start execution with config [20191206-144042-68766cd7] M| State Technique Component Key Message E| compliant Inventory inventory The inventory has been successfully sent info Rudder agent was run on a subset of policies - not all policies were checked ## Summary ##################################################################### 1 components verified in 3 directives => 1 components in Enforce mode -> 1 compliant Execution time: 14.69s ################################################################################ Done FINISH: Rudder agent check ran properly, please look at messages above to see if there has been any error. INFO: Applying selinux policy... Done Running scriptlet: rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 30/30 Installing : rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 30/30 Running scriptlet: rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 30/30 Created symlink /etc/systemd/system/multi-user.target.wants/rudder-server.service -> /usr/lib/systemd/system/rudder-server.service. Running scriptlet: copy-jdk-configs-3.7-1.el8.noarch 30/30 Running scriptlet: httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 30/30 Running scriptlet: rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 30/30 Verifying : apr-1.6.3-9.el8.x86_64 1/30 Verifying : apr-util-1.6.1-6.el8.x86_64 2/30 Verifying : apr-util-bdb-1.6.1-6.el8.x86_64 3/30 Verifying : apr-util-openssl-1.6.1-6.el8.x86_64 4/30 Verifying : centos-logos-httpd-80.5-2.el8.noarch 5/30 Verifying : copy-jdk-configs-3.7-1.el8.noarch 6/30 Verifying : httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 7/30 Verifying : httpd-filesystem-2.4.37-12.module_el8.0.0+185+5908b0db.noarch 8/30 Verifying : httpd-tools-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 9/30 Verifying : java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.el8_0.x86_64 10/30 Verifying : javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch 11/30 Verifying : libpq-10.5-1.el8.x86_64 12/30 Verifying : lua-5.3.4-10.el8.x86_64 13/30 Verifying : mod_http2-1.11.3-3.module_el8.0.0+185+5908b0db.x86_64 14/30 Verifying : mod_ssl-1:2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 15/30 Verifying : postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 16/30 Verifying : postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 17/30 Verifying : python3-html5lib-1:0.999999999-6.el8.noarch 18/30 Verifying : python3-lxml-4.2.3-1.el8.x86_64 19/30 Verifying : python3-mod_wsgi-4.6.4-3.el8.x86_64 20/30 Verifying : python3-webencodings-0.5.1-6.el8.noarch 21/30 Verifying : rsyslog-pgsql-8.37.0-9.el8.x86_64 22/30 Verifying : tzdata-java-2019a-1.el8.noarch 23/30 Verifying : lksctp-tools-1.0.18-3.el8.x86_64 24/30 Verifying : openldap-clients-2.4.46-9.el8.x86_64 25/30 Verifying : rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch 26/30 Verifying : rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch 27/30 Verifying : rudder-agent-1398866025:6.0.0.beta1-1.EL.8.x86_64 28/30 Verifying : rudder-server-relay-1398866025:6.0.0.beta1-1.EL.8.x86_64 29/30 Verifying : rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 30/30 Installed: rudder-server-root-1398866025:6.0.0.beta1-1.EL.8.noarch apr-util-bdb-1.6.1-6.el8.x86_64 apr-util-openssl-1.6.1-6.el8.x86_64 python3-html5lib-1:0.999999999-6.el8.noarch apr-1.6.3-9.el8.x86_64 apr-util-1.6.1-6.el8.x86_64 centos-logos-httpd-80.5-2.el8.noarch copy-jdk-configs-3.7-1.el8.noarch httpd-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 httpd-filesystem-2.4.37-12.module_el8.0.0+185+5908b0db.noarch httpd-tools-2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 java-1.8.0-openjdk-headless-1:1.8.0.232.b09-0.el8_0.x86_64 javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch libpq-10.5-1.el8.x86_64 lua-5.3.4-10.el8.x86_64 mod_http2-1.11.3-3.module_el8.0.0+185+5908b0db.x86_64 mod_ssl-1:2.4.37-12.module_el8.0.0+185+5908b0db.x86_64 postgresql-10.6-1.module_el8.0.0+15+f57f353b.x86_64 postgresql-server-10.6-1.module_el8.0.0+15+f57f353b.x86_64 python3-lxml-4.2.3-1.el8.x86_64 python3-mod_wsgi-4.6.4-3.el8.x86_64 python3-webencodings-0.5.1-6.el8.noarch rsyslog-pgsql-8.37.0-9.el8.x86_64 tzdata-java-2019a-1.el8.noarch lksctp-tools-1.0.18-3.el8.x86_64 openldap-clients-2.4.46-9.el8.x86_64 rudder-reports-1398866025:6.0.0.beta1-1.EL.8.noarch rudder-agent-1398866025:6.0.0.beta1-1.EL.8.x86_64 rudder-server-relay-1398866025:6.0.0.beta1-1.EL.8.x86_64 rudder-webapp-1398866025:6.0.0.beta1-1.EL.8.x86_64 Complete!
Actions