Actions
Bug #14511
closedDpkg error when installing rudder-agent on Ubuntu 18.04.2
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Small
Priority:
76
Name check:
Fix check:
Regression:
Description
Hi,
I've installed rudder-agent 5.0.8 on Ubuntu 18.04.2 following the documentation.
Dpkg crash. Here is the install log :
Thu Mar 21 10:13:46 CET 2019 - Starting rudder-agent pre installation script Thu Mar 21 10:13:47 CET 2019 - Starting rudder-agent post installation script slibclean: not found CFEngine binaries copied to workdir cat: /opt/rudder/etc/uuid.hive: No such file or directory /opt/rudder/share/package-scripts/rudder-agent-postinst: 205: /opt/rudder/share/package-scripts/rudder-agent-postinst: /var/rudder/cfengine-community/bin/cf-promises: Permission denied /opt/rudder/share/package-scripts/rudder-agent-postinst: 229: /opt/rudder/share/package-scripts/rudder-agent-postinst: /var/rudder/cfengine-community/bin/cf-key: Permission denied
Updated by Alexis Mousset almost 6 years ago
Hi,
Which command did you execute to get to these messages? Did you run them as root?
What is the content of /etc/apt/sources.list.d/rudder.list?
What does sudo sh -x /opt/rudder/share/package-scripts/rudder-agent-postinst true deb true $(cat /var/rudder/cfengine-community/policy_server.dat)
give? (it is the postinstall script that seems to fail)
Updated by Pierre-Benoît JOUBERT almost 6 years ago
Hi Alexis,
- The apt-get error is not very verbose :
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: rudder-agent 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5839 kB of archives. After this operation, 45.4 MB of additional disk space will be used. Preconfiguring packages ... Selecting previously unselected package rudder-agent. (Reading database ... 98506 files and directories currently installed.) Preparing to unpack .../rudder-agent_5.0.8-bionic0_amd64.deb ... Unpacking rudder-agent (5.0.8-bionic0) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up rudder-agent (5.0.8-bionic0) ... Created symlink /etc/systemd/system/multi-user.target.wants/rudder-agent.service → /lib/systemd/system/rudder-agent.service. Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service. Created symlink /etc/systemd/system/rudder-agent.service.requires/rudder-cf-execd.service → /lib/systemd/system/rudder-cf-execd.service. Created symlink /etc/systemd/system/multi-user.target.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service. Created symlink /etc/systemd/system/rudder-agent.service.wants/rudder-cf-serverd.service → /lib/systemd/system/rudder-cf-serverd.service. INFO: Ensuring correct permissions on the keys directory... Done. INFO: Creating keys for Rudder agent...dpkg: error processing package rudder-agent (--configure): installed rudder-agent package post-installation script subprocess returned error exit status 126 Processing triggers for libc-bin (2.27-3ubuntu1) ... Errors were encountered while processing: rudder-agent E: Sub-process /usr/bin/dpkg returned an error code (1)
So, a cat on /var/log/rudder/install/rudder-agent.log give me that :Thu Mar 21 10:13:46 CET 2019 - Starting rudder-agent pre installation script Thu Mar 21 10:13:47 CET 2019 - Starting rudder-agent post installation script slibclean: not found CFEngine binaries copied to workdir cat: /opt/rudder/etc/uuid.hive: No such file or directory /opt/rudder/share/package-scripts/rudder-agent-postinst: 205: /opt/rudder/share/package-scripts/rudder-agent-postinst: /var/rudder/cfengine-community/bin/cf-promises: Permission denied /opt/rudder/share/package-scripts/rudder-agent-postinst: 229: /opt/rudder/share/package-scripts/rudder-agent-postinst: /var/rudder/cfengine-community/bin/cf-key: Permission denied
- cat /etc/apt/sources.list.d/rudder.list
deb http://repository.rudder.io/apt/5.0/ bionic main
- sudo sh -x /opt/rudder/share/package-scripts/rudder-agent-postinst true deb true $(cat /var/rudder/cfengine-community/policy_server.dat)
cat: /var/rudder/cfengine-community/policy_server.dat: No such file or directory + set -e + CFRUDDER_FIRST_INSTALL=true + CFRUDDER_OS=deb + CFRUDDER_USE_SYSTEMD=true + CFRUDDER_SERVER= + CFE_DIR=/var/rudder/cfengine-community + RUDDER_CMD=/opt/rudder/bin/rudder + LOG_FILE=/var/log/rudder/install/rudder-agent.log + [ -d /proc/self/fd ] + ls /proc/self/fd + [ 0 -gt 2 ] + [ 1 -gt 2 ] + [ 2 -gt 2 ] + [ 3 -gt 2 ] + eval exec 3>&- + exec + [ -z true ] + [ -z deb ] + [ -z true ] + date + echo Thu Mar 21 11:57:16 CET 2019 - Starting rudder-agent post installation script + [ ! -f /var/rudder/cfengine-community/policy_server.dat ] + [ = ] + type getent + getent hosts rudder + [ != ] + [ true = true ] + [ deb = aix ] + [ deb != deb ] + [ true = true ] + /bin/systemctl daemon-reload + /bin/systemctl enable rudder-agent rudder-cf-execd rudder-cf-serverd + [ -f /var/rudder/tmp/migration-rudder-service-rename ] + [ -f /var/rudder/tmp/migration-rudder-service-systemd ] + [ -f /etc/init.d/rudder ] + rm -f /var/rudder/tmp/migration-rudder-service-rename + rm -f /var/rudder/tmp/migration-rudder-service-systemd + rm -f /var/rudder/tmp/migration-rudder-service-enabled + rm -f /var/rudder/tmp/migration-rudder-cf-serverd-disabled + [ -f /etc/ld.so.conf.d/rudder.conf ] + grep -q /opt/rudder/lib /etc/ld.so.conf + [ true != true ] + I_SET_THE_LOCK=0 + [ ! -f /opt/rudder/etc/disable-agent ] + ln -sf /var/rudder/cfengine-community/policy_server.dat /opt/rudder/etc/policy_server.dat + [ -x /var/rudder/cfengine-community/bin/cf-execd ] + true + type slibclean + cp -r -f /opt/rudder/bin/cf-agent /opt/rudder/bin/cf-check /opt/rudder/bin/cf-execd /opt/rudder/bin/cf-key /opt/rudder/bin/cf-monitord /opt/rudder/bin/cf-net /opt/rudder/bin/cf-promises /opt/rudder/bin/cf-runagent /opt/rudder/bin/cf-serverd /opt/rudder/bin/cf-upgrade /var/rudder/cfengine-community/bin/ + cp -r -f /opt/rudder/bin/rpmvercmp /var/rudder/cfengine-community/bin/ + ls -1 /var/rudder/cfengine-community/bin/ + wc -l + NB_COPIED_BINARIES=11 + [ 11 -gt 0 ] + echo CFEngine binaries copied to workdir + [ -f /var/rudder/cfengine-community/inputs/rudder-server-roles.conf ] + mkdir -p /var/backups/rudder + cp -r /var/rudder/cfengine-community/inputs/rudder-server-roles.conf /var/backups/rudder/ + RESTORE_SERVER_ROLES_BACKUP=1 + cat /opt/rudder/etc/uuid.hive + true + RUDDER_UUID= + [ ! -f /var/rudder/cfengine-community/inputs/promises.cf ] + /var/rudder/cfengine-community/bin/cf-promises + [ != root ] + mkdir -p /var/rudder/cfengine-community/inputs + rm -rf /var/rudder/cfengine-community/inputs/common /var/rudder/cfengine-community/inputs/distributePolicy /var/rudder/cfengine-community/inputs/failsafe.cf /var/rudder/cfengine-community/inputs/inventory /var/rudder/cfengine-community/inputs/promises.cf /var/rudder/cfengine-community/inputs/rudder-directives.cf /var/rudder/cfengine-community/inputs/rudder-server-roles.conf /var/rudder/cfengine-community/inputs/rudder-system-directives.cf /var/rudder/cfengine-community/inputs/run_interval /var/rudder/cfengine-community/inputs/server-roles + cp -r /opt/rudder/share/initial-promises/common /opt/rudder/share/initial-promises/distributePolicy /opt/rudder/share/initial-promises/failsafe.cf /opt/rudder/share/initial-promises/inventory /opt/rudder/share/initial-promises/promises.cf /opt/rudder/share/initial-promises/rudder-directives.cf /opt/rudder/share/initial-promises/rudder-server-roles.conf /opt/rudder/share/initial-promises/rudder-system-directives.cf /opt/rudder/share/initial-promises/run_interval /opt/rudder/share/initial-promises/server-roles /var/rudder/cfengine-community/inputs/ + mkdir -p /var/rudder/ncf/common + rm -rf /var/rudder/ncf/common/10_ncf_internals /var/rudder/ncf/common/20_cfe_basics /var/rudder/ncf/common/30_generic_methods /var/rudder/ncf/common/40_it_ops_knowledge /var/rudder/ncf/common/50_techniques /var/rudder/ncf/common/60_services /var/rudder/ncf/common/ncf-hooks.d /var/rudder/ncf/common/ncf.conf /var/rudder/ncf/common/promises.cf /var/rudder/ncf/common/service_mapping.cf + cp -r /opt/rudder/share/initial-ncf/10_ncf_internals /opt/rudder/share/initial-ncf/20_cfe_basics /opt/rudder/share/initial-ncf/30_generic_methods /opt/rudder/share/initial-ncf/40_it_ops_knowledge /opt/rudder/share/initial-ncf/50_techniques /opt/rudder/share/initial-ncf/60_services /opt/rudder/share/initial-ncf/ncf-hooks.d /opt/rudder/share/initial-ncf/ncf.conf /opt/rudder/share/initial-ncf/promises.cf /opt/rudder/share/initial-ncf/service_mapping.cf /var/rudder/ncf/common/ + [ 1 = 1 ] + cp -r /var/backups/rudder/rudder-server-roles.conf /var/rudder/cfengine-community/inputs/rudder-server-roles.conf + printf INFO: Ensuring correct permissions on the keys directory... INFO: Ensuring correct permissions on the keys directory...+ chmod 700 /var/rudder/cfengine-community/ppkeys + echo Done. Done. + [ ! -f /var/rudder/cfengine-community/ppkeys/localhost.priv ] + printf INFO: Creating keys for Rudder agent... INFO: Creating keys for Rudder agent...+ /var/rudder/cfengine-community/bin/cf-key -T 4096
Updated by François ARMAND over 5 years ago
- Assignee set to Alexis Mousset
- Target version set to 5.0.10
- Severity set to Major - prevents use of part of Rudder | no simple workaround
- User visibility set to Getting started - demo | first install | Technique editor and level 1 Techniques
- Priority changed from 0 to 70
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.10 to 5.0.11
- Priority changed from 70 to 69
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.11 to 5.0.12
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.12 to 5.0.13
- Priority changed from 69 to 67
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.13 to 5.0.14
- Priority changed from 67 to 65
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
- Priority changed from 65 to 64
Updated by Benoît PECCATTE about 5 years ago
- Effort required set to Small
- Priority changed from 64 to 77
This is probably not the case anymore, small because we first need to check.
Updated by Benoît PECCATTE about 5 years ago
- Status changed from New to Rejected
- Priority changed from 77 to 76
Could not reproduce. This has probably been fixed in the meantime (open in 5.0.10 tested in 5.0.14).
Feel free to reopen if it's not the case.
Actions