Project

General

Profile

Actions

Bug #2731

closed

Can't stat file "/var/rudder/cfengine-community/inputs/failsafe.cf" for parsing !!! System error for stat: "No such file or directory"

Added by Gonéri Le Bouder over 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
5 (lowest)
Assignee:
Jonathan CLARKE
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

root@srv00015:/var# aptitude install rudder-inventory-ldap
The following NEW packages will be installed:
  rudder-inventory-ldap 
0 packages upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/1900 kB of archives. After unpacking 5833 kB will be used.
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  rudder-inventory-ldap 

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
Selecting previously deselected package rudder-inventory-ldap.
(Reading database ... 23283 files and directories currently installed.)
Unpacking rudder-inventory-ldap (from .../rudder-inventory-ldap_2.3.8-squeeze0_amd64.deb) ...
Setting up rudder-inventory-ldap (2.3.8-squeeze0) ...
Stopping enhanced syslogd: rsyslogd.
Starting enhanced syslogd: rsyslogd.
slapd[22782]: [INFO] Using /etc/default/slapd for configuration
slapd[22787]: [INFO] Launching OpenLDAP configuration test...
slapd[22789]: [OK] OpenLDAP configuration test successful
slapd[22790]: [INFO] Launching OpenLDAP replication...
slapd[22791]: [INFO] no replica found in configuration, aborting lauching slurpd
slapd[22792]: [INFO] no db_recover done
slapd[22793]: [INFO] Launching OpenLDAP...
slapd[22794]: [OK] file descriptor limit set to 1024
slapd[22801]: [OK] OpenLDAP started on port 389 and 636

root@srv00015:/var# aptitude install rudder-server-root
The following NEW packages will be installed:
  apache2{a} apache2-mpm-worker{a} apache2.2-bin{a} apache2.2-common{a} 
  postgresql{a} postgresql-8.4{a} postgresql-client-8.4{a} 
  postgresql-client-common{a} postgresql-common{a} 
  rudder-cfengine-community{a} rudder-inventory-endpoint{a} rudder-jetty{a} 
  rudder-policy-templates{a} rudder-reports{a} rudder-server-root 
  rudder-webapp{a} 
0 packages upgraded, 16 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/112 MB of archives. After unpacking 180 MB will be used.
Do you want to continue? [Y/n/?] 
WARNING: untrusted versions of the following packages will be installed!

Untrusted packages could compromise your system's security.
You should only proceed with the installation if you are certain that
this is what you want to do.

  rudder-server-root rudder-policy-templates rudder-jetty 
  rudder-inventory-endpoint rudder-cfengine-community rudder-webapp 
  rudder-reports 

Do you want to ignore this warning and proceed anyway?
To continue, enter "Yes"; to abort, enter "No": Yes
Preconfiguring packages ...              
Selecting previously deselected package apache2.2-bin.
(Reading database ... 23640 files and directories currently installed.)
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.16-6+squeeze7_amd64.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.16-6+squeeze7_amd64.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.16-6+squeeze7_amd64.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.16-6+squeeze7_amd64.deb) ...
Selecting previously deselected package postgresql-client-common.
Unpacking postgresql-client-common (from .../postgresql-client-common_113_all.deb) ...
Selecting previously deselected package postgresql-client-8.4.
Unpacking postgresql-client-8.4 (from .../postgresql-client-8.4_8.4.12-0squeeze1_amd64.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_113_all.deb) ...
Selecting previously deselected package postgresql-8.4.
Unpacking postgresql-8.4 (from .../postgresql-8.4_8.4.12-0squeeze1_amd64.deb) ...
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_8.4.12-0squeeze1_all.deb) ...
Selecting previously deselected package rudder-cfengine-community.
Unpacking rudder-cfengine-community (from .../rudder-cfengine-community_2.3.8-squeeze0_amd64.deb) ...
Selecting previously deselected package rudder-jetty.
Unpacking rudder-jetty (from .../rudder-jetty_2.3.8-squeeze0_all.deb) ...
Selecting previously deselected package rudder-inventory-endpoint.
Unpacking rudder-inventory-endpoint (from .../rudder-inventory-endpoint_2.3.8-squeeze0_all.deb) ...
Selecting previously deselected package rudder-policy-templates.
Unpacking rudder-policy-templates (from .../rudder-policy-templates_2.3.8-squeeze0_all.deb) ...
Selecting previously deselected package rudder-reports.
Unpacking rudder-reports (from .../rudder-reports_2.3.8-squeeze0_all.deb) ...
Selecting previously deselected package rudder-webapp.
Unpacking rudder-webapp (from .../rudder-webapp_2.3.8-squeeze0_all.deb) ...
Selecting previously deselected package rudder-server-root.
Unpacking rudder-server-root (from .../rudder-server-root_2.3.8-squeeze0_all.deb) ...
Processing triggers for man-db ...
Setting up apache2.2-bin (2.2.16-6+squeeze7) ...
Setting up apache2.2-common (2.2.16-6+squeeze7) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.
Enabling module reqtimeout.
Setting up apache2-mpm-worker (2.2.16-6+squeeze7) ...
Starting web server: apache2.
Setting up apache2 (2.2.16-6+squeeze7) ...
Setting up postgresql-client-common (113) ...
Setting up postgresql-client-8.4 (8.4.12-0squeeze1) ...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.
Setting up postgresql-common (113) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Setting up postgresql-8.4 (8.4.12-0squeeze1) ...
Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)...
Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main...
Configuring postgresql.conf to use port 5432...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
Starting PostgreSQL 8.4 database server: main.
Setting up postgresql (8.4.12-0squeeze1) ...
Setting up rudder-cfengine-community (2.3.8-squeeze0) ...
cfengine-community[24068]: [INFO] Using /etc/default/cfengine-community for configuration
cfengine-community[24071]: [INFO] Using /var/rudder/cfengine-community for Cfengine workdir
cfengine-community[24072]: [INFO] Halting Cfengine Community cf-serverd...
cfengine-community[24073]: [INFO] can't read PID file, not stopping cf-serverd
cfengine-community[24074]: [INFO] Halting Cfengine Community cf-execd...
cfengine-community[24075]: [INFO] can't read PID file, not stopping cf-execd
cfengine-community[24081]: [INFO] Found no Cfengine Community cf-serverd processes running
cfengine-community[24088]: [INFO] Found no Cfengine Community cf-execd processes running
cfengine-community[24098]: [INFO] Using /etc/default/cfengine-community for configuration
cfengine-community[24101]: [INFO] Using /var/rudder/cfengine-community for Cfengine workdir
cfengine-community[24102]: [INFO] Launching Cfengine Community cf-serverd...
There is no readable input file at promises.cf
 !!! System error for stat: "No such file or directory" 
cf-agent was not able to get confirmation of promises from cf-promises, so going to failsafe
Can't stat file "/var/rudder/cfengine-community/inputs/failsafe.cf" for parsing
 !!! System error for stat: "No such file or directory" 
cfengine-community[24223]: [ALERT] no PID file for cf-serverd after 30 seconds. Trying again...
There is no readable input file at promises.cf
 !!! System error for stat: "No such file or directory" 
cf-agent was not able to get confirmation of promises from cf-promises, so going to failsafe
Can't stat file "/var/rudder/cfengine-community/inputs/failsafe.cf" for parsing
 !!! System error for stat: "No such file or directory" 
Actions #1

Updated by Gonéri Le Bouder over 12 years ago

The problem come from rudder-cfengine-community:

root@srv00015:/var# dpkg -i ./cache/apt/archives/rudder-cfengine-community_2.3.8-squeeze0_amd64.deb
Selecting previously deselected package rudder-cfengine-community.
(Reading database ... 24129 files and directories currently installed.)
Unpacking rudder-cfengine-community (from .../rudder-cfengine-community_2.3.8-squeeze0_amd64.deb) ...
Setting up rudder-cfengine-community (2.3.8-squeeze0) ...
cfengine-community[26773]: [INFO] Using /etc/default/cfengine-community for configuration
cfengine-community[26777]: [INFO] Using /var/rudder/cfengine-community for Cfengine workdir
cfengine-community[26778]: [INFO] Halting Cfengine Community cf-serverd...
cfengine-community[26779]: [INFO] can't read PID file, not stopping cf-serverd
cfengine-community[26780]: [INFO] Halting Cfengine Community cf-execd...
cfengine-community[26781]: [INFO] can't read PID file, not stopping cf-execd
cfengine-community[26787]: [INFO] Found no Cfengine Community cf-serverd processes running
cfengine-community[26794]: [INFO] Found no Cfengine Community cf-execd processes running
cfengine-community[26804]: [INFO] Using /etc/default/cfengine-community for configuration
cfengine-community[26807]: [INFO] Using /var/rudder/cfengine-community for Cfengine workdir
cfengine-community[26808]: [INFO] Launching Cfengine Community cf-serverd...
There is no readable input file at promises.cf
 !!! System error for stat: "No such file or directory" 
cf-agent was not able to get confirmation of promises from cf-promises, so going to failsafe
Can't stat file "/var/rudder/cfengine-community/inputs/failsafe.cf" for parsing
 !!! System error for stat: "No such file or directory" 

Actions #2

Updated by Gonéri Le Bouder over 12 years ago

Installation is ok if I install "rudder-agent" first and then install with rudder-cfengine-community --force-overwrite (because of #2733)

root@srv00015:/var# dpkg -i --force-overwrite ./cache/apt/archives/rudder-cfengine-community_2.3.8-squeeze0_amd64.deb

Actions #3

Updated by Jonathan CLARKE about 12 years ago

  • Priority changed from N/A to 5 (lowest)

This workaround should not be used. In 2.3, rudder-agent must not be installed on the same machine as rudder-cfengine-community.

The reason that no failsafe.cf file is found is because it is intended to be added later when the rudder-init.sh command is run (manually). This should not break the installation in any way, so is essentially a cosmetic bug - can you confirm, Gonéri?

Please note that in 2.4, the rudder-cfengine-community package has been removed, and rudder-agent will be used instead on both the Rudder server and nodes. rudder-agent installs "initial promises" automatically, so this bug should no longer occur.

Actions #4

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from New to Discussion
  • Assignee changed from Jonathan CLARKE to Gonéri Le Bouder
  • Target version set to 2.3.9

Also updating status

Actions #5

Updated by Gonéri Le Bouder about 12 years ago

I agree, my workaround if a bad idea. BTW, the initial problem is:

(...)
There is no readable input file at promises.cf
 !!! System error for stat: "No such file or directory" 
(...)

Actions #6

Updated by Jonathan CLARKE about 12 years ago

  • Assignee changed from Gonéri Le Bouder to Jonathan CLARKE

This can be fixed by making the packaging not start cfengine on first install (or just if there is no failsafe.cf file).

Actions #7

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from Discussion to Pending technical review
  • % Done changed from 0 to 100

Applied in changeset commit:94a6d6e4674c3ce34e57af6f8bb0197cc182bf35.

Actions #8

Updated by Nicolas PERRON about 12 years ago

It's OK to me.

Actions #9

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from Pending technical review to Released
Actions #10

Updated by Nicolas PERRON almost 12 years ago

  • Project changed from Rudder to 34
  • Category deleted (11)
Actions #11

Updated by Benoît PECCATTE over 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF