Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1805

SLES11 CFengine Enterprise hub 3.6.3-1 RPM not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Platform:
      Linux

      Description

      I've tried to install the CFengine Enterprise RPM (Hub) from http://cfengine.com/cfengine-enterprise-free-25/ on a SLES11 SP3 machine.
      However if I try to bootstrap to hub I get the following error and Mission Portal isn't able to connect to the database.

      <pre>
      R: This host assumes the role of policy server
      R: Updated local policy from policy server
      R: Started the server
      R: Started the scheduler
      2015-01-12T10:16:44+0100 notice: /default/cfe_internal_call_update/commands/'"/var/cfengine/bin/cf-agent" -f update.cf'[0]: Q: ".../c
      f-agent" -f u": 2015-01-12T10:16:44+0100 notice: /default/cfe_internal_update_processes/methods/'TAKING CARE CFE HUB PROCESSES'/defau
      lt/maintain_cfe_hub_process/commands/'"/var/cfengine/bin/cf-hub"'[0]: Q: "...in/cf-hub"": 2015-01-12T10:16:43+0100 error: Connection
      to database 'cfsettings' failed with message: 'could not connect to server: No such file or directory
      Q: ".../cf-agent" -f u": Q: "...in/cf-hub"": Is the server running locally and accepting
      Q: ".../cf-agent" -f u": Q: "...in/cf-hub"": connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
      Q: ".../cf-agent" -f u": Q: "...in/cf-hub"": '
      Q: ".../cf-agent" -f u": Q: "...in/cf-hub"": 2015-01-12T10:16:44+0100 error: You might need to start redis/postresql

      2015-01-12T10:16:44+0100 notice: Bootstrap to '10.116.249.110' completed successfully!
      </pre>

      Seems like there's something wrong with the permissions, according to posgresql.log:

      <pre>
      FATAL: data directory "/var/cfengine/state/pg/data" has group or world access
      DETAIL: Permissions should be u=rwx (0700).
      </pre>

      But even "chmod 0700 /var/cfengine/state/pg/data && su cfpostgres -c '/var/cfengine/bin/initdb -D /var/cfengine/state/pg/data'" doesn't create the database:

      <pre>
      FATAL: "/var/cfengine/state/pg/data" is not a valid data directory
      DETAIL: File "/var/cfengine/state/pg/data/PG_VERSION" is missing.
      </pre>

      Here is the CFEngineHub-Install.log:

      <pre>
      + set -x
      + PREFIX=/var/cfengine
      + '[' 1 -eq 1 ']'
      + chkconfig --add cfengine3
      insserv: Service network is missed in the runlevels 4 to use service cfengine3
      cfengine3 0:off 1:off 2:on 3:on 4:on 5:on 6:off
      + '[' 1 -eq 2 ']'
      + MP_APACHE_USER=cfapache
      + '[' -d /var/cfengine/cfapache ']'
      + /usr/sbin/usermod -d /var/cfengine/cfapache cfapache
      + mkdir -p /var/cfengine/cfapache/.ssh
      + chown -R cfapache:cfapache /var/cfengine/cfapache
      + echo 'Host *
      StrictHostKeyChecking no
      UserKnownHostsFile=/dev/null'
      + '[' '!' -f /var/cfengine/masterfiles/promises.cf ']'
      + /bin/cp -R /var/cfengine/share/NovaBase/masterfiles /var/cfengine/
      + touch /var/cfengine/masterfiles/cf_promises_validated
      + find /var/cfengine/masterfiles -type d -exec chmod 700 '{}' ';'
      + find /var/cfengine/masterfiles -type f -exec chmod 600 '{}' ';'
      + '[' -f /var/cfengine/lib/php/mcrypt.so ']'
      + '[' -f /var/cfengine/lib/php/curl.so ']'
      + cp /var/cfengine/lib/php/apc.ini /var/cfengine/lib/php/cfengine-enterprise-api.ini /var/cfengine/lib/php/cfmod.ini /var/cfengine/httpd/php/lib
      + cp /var/cfengine/lib/php/apc.so /var/cfengine/lib/php/cfengine-enterprise-api.so /var/cfengine/lib/php/cfmod.so /var/cfengine/httpd/php/lib/php/extensions/no-debug-non-zts-20100525
      + '[' -f /var/cfengine/CF_CLIENT_SECRET_KEY.tmp ']'
      ++ dd if=/dev/urandom bs=1024 count=1
      ++ head -n 1
      ++ tr -dc a-zA-Z0-9
      ++ fold -w 32
      + UUID=AvJbiojjgbOYSh2TLkLoDcRtrc6hhZS2
      + sed -i s/CFE_SESSION_KEY/AvJbiojjgbOYSh2TLkLoDcRtrc6hhZS2/ /var/cfengine/share/GUI/application/config/config.php
      + sed -i s/CFE_CLIENT_SECRET_KEY/AvJbiojjgbOYSh2TLkLoDcRtrc6hhZS2/ /var/cfengine/share/GUI/application/config/appsettings.php
      + sed -i s/CFE_CLIENT_SECRET_KEY/AvJbiojjgbOYSh2TLkLoDcRtrc6hhZS2/ /var/cfengine/share/db/ootb_settings.sql
      + cp -r /var/cfengine/share/GUI/Apache-htaccess /var/cfengine/share/GUI/api /var/cfengine/share/GUI/application /var/cfengine/share/GUI/dc-scripts /var/cfengine/share/GUI/disabled.html /var/cfengine/share/GUI/favicon.ico /var/cfengine/share/GUI/htaccess /var/cfengine/share/GUI/images /var/cfengine/share/GUI/index.php /var/cfengine/share/GUI/phpcfenginenova /var/cfengine/share/GUI/README /var/cfengine/share/GUI/README.md /var/cfengine/share/GUI/scripts /var/cfengine/share/GUI/system /var/cfengine/share/GUI/themes /var/cfengine/httpd/htdocs
      + mkdir -p /var/cfengine/httpd/htdocs/tmp
      + mv /var/cfengine/httpd/htdocs/htaccess /var/cfengine/httpd/htdocs/.htaccess
      + chmod 755 /var/cfengine/httpd
      + chown -R root:root /var/cfengine/httpd/htdocs
      + chmod a+rx /var/cfengine/httpd/htdocs/api/dc-scripts/common.sh /var/cfengine/httpd/htdocs/api/dc-scripts/git-wrapper.sh /var/cfengine/httpd/htdocs/api/dc-scripts/masterfiles-stage.sh /var/cfengine/httpd/htdocs/api/dc-scripts/post-update.sh /var/cfengine/httpd/htdocs/api/dc-scripts/pre-fetch.sh /var/cfengine/httpd/htdocs/api/dc-scripts/ssh-wrapper.sh
      + chmod a+rx /var/cfengine/httpd/htdocs/api/dc-scripts/dc-workspace-settings.pl
      + mkdir -p /var/cfengine/plugins
      + chown -R root:root /var/cfengine/plugins
      + chmod 700 /var/cfengine/plugins
      + chown root:cfapache /var/cfengine/httpd/logs
      + chmod 775 /var/cfengine/httpd/logs
      + chown cfapache:cfapache /var/cfengine/httpd/htdocs/tmp
      + chown -R cfapache:cfapache /var/cfengine/httpd/htdocs/api/static
      + chown cfapache:cfapache /var/cfengine/httpd/htdocs/application/logs
      + '[' 1 -eq 1 ']'
      + DCWORKDIR=/opt/cfengine
      + /var/cfengine/design-center/bin/cf-sketch --inputs=/var/cfengine/design-center --installsource=/var/cfengine/share/NovaBase/sketches/cfsketches.json --install-all
      + mkdir -p /opt/cfengine/userworkdir/admin/.ssh
      + mkdir -p /opt/cfengine/stage_backup
      + mkdir -p /opt/cfengine/dc-scripts
      + mkdir -p /opt/cfengine/masterfiles_staging
      + mkdir -p /opt/cfengine/masterfiles.git
      + touch /opt/cfengine/userworkdir/admin/.ssh/id_rsa.pvt
      + chmod 600 /opt/cfengine/userworkdir/admin/.ssh/id_rsa.pvt
      + cat
      + cat
      + chmod 700 /opt/cfengine/dc-scripts/params.sh
      + chown -R cfapache:cfapache /opt/cfengine/userworkdir
      + chown -R cfapache:cfapache /opt/cfengine/dc-scripts
      + chown -R cfapache:cfapache /opt/cfengine/stage_backup
      + chown -R cfapache:cfapache /opt/cfengine/masterfiles.git
      + chown cfapache:cfapache /opt/cfengine
      + cp -R /var/cfengine/masterfiles/cfe_internal /var/cfengine/masterfiles/cf_promises_validated /var/cfengine/masterfiles/controls /var/cfengine/masterfiles/def.cf /var/cfengine/masterfiles/inventory /var/cfengine/masterfiles/lib /var/cfengine/masterfiles/promises.cf /var/cfengine/masterfiles/services /var/cfengine/masterfiles/sketches /var/cfengine/masterfiles/templates /var/cfengine/masterfiles/update /var/cfengine/masterfiles/update.cf /opt/cfengine/masterfiles_staging
      + chown -R cfapache:cfapache /opt/cfengine/masterfiles_staging
      + chmod 700 /opt/cfengine/stage_backup
      + chmod -R 700 /opt/cfengine/userworkdir
      + GIT=/var/cfengine/bin/git
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git init'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git config user.email admin@cfengine.com'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git config user.name admin'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c 'echo -e '\''/cf_promise_\n..sw[po]\n*~\n#*#'\'' >.gitignore'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git add .gitignore'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git commit -m '\''Ignore cf_promise_*'\'''
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git add *'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git commit -m '\''Initial pristine masterfiles'\'''
      + cd /opt/cfengine/
      + su cfapache -c '/var/cfengine/bin/git clone --no-hardlinks --bare /opt/cfengine/masterfiles_staging /opt/cfengine/masterfiles.git'
      + find /opt/cfengine/masterfiles.git -type d -exec chmod 700 '{}' ';'
      + find /opt/cfengine/masterfiles.git -type f -exec chmod 600 '{}' ';'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git branch CF_WORKING_BRANCH'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git remote rm origin'
      + cd /opt/cfengine/masterfiles_staging
      + su cfapache -c '/var/cfengine/bin/git remote add origin /opt/cfengine/masterfiles.git'
      + '[' '!' -f /usr/bin/curl ']'
      + MAN_CONFIG=
      + MAN_PATH=
      + '[' -f /etc/SuSE-release ']'
      + MAN_CONFIG=/etc/manpath.config
      + MAN_PATH=MANDATORY_MANPATH
      + '[' -f /etc/manpath.config ']'
      ++ cat /etc/manpath.config
      ++ grep cfengine
      + MAN='MANDATORY_MANPATH /var/cfengine/share/man'
      + '[' -z 'MANDATORY_MANPATH /var/cfengine/share/man' ']'
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-agent -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-agent /usr/local/sbin/cf-agent
      + '[' -f /usr/share/man/man8/cf-agent.8.gz ']'
      + rm -f /usr/share/man/man8/cf-agent.8.gz
      + /var/cfengine/bin/cf-agent -M
      + gzip /usr/share/man/man8/cf-agent.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-promises -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-promises /usr/local/sbin/cf-promises
      + '[' -f /usr/share/man/man8/cf-promises.8.gz ']'
      + rm -f /usr/share/man/man8/cf-promises.8.gz
      + /var/cfengine/bin/cf-promises -M
      + gzip /usr/share/man/man8/cf-promises.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-key -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-key /usr/local/sbin/cf-key
      + '[' -f /usr/share/man/man8/cf-key.8.gz ']'
      + rm -f /usr/share/man/man8/cf-key.8.gz
      + /var/cfengine/bin/cf-key -M
      + gzip /usr/share/man/man8/cf-key.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-execd -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-execd /usr/local/sbin/cf-execd
      + '[' -f /usr/share/man/man8/cf-execd.8.gz ']'
      + rm -f /usr/share/man/man8/cf-execd.8.gz
      + /var/cfengine/bin/cf-execd -M
      + gzip /usr/share/man/man8/cf-execd.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-serverd -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-serverd /usr/local/sbin/cf-serverd
      + '[' -f /usr/share/man/man8/cf-serverd.8.gz ']'
      + rm -f /usr/share/man/man8/cf-serverd.8.gz
      + /var/cfengine/bin/cf-serverd -M
      + gzip /usr/share/man/man8/cf-serverd.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-monitord -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-monitord /usr/local/sbin/cf-monitord
      + '[' -f /usr/share/man/man8/cf-monitord.8.gz ']'
      + rm -f /usr/share/man/man8/cf-monitord.8.gz
      + /var/cfengine/bin/cf-monitord -M
      + gzip /usr/share/man/man8/cf-monitord.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-runagent -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-runagent /usr/local/sbin/cf-runagent
      + '[' -f /usr/share/man/man8/cf-runagent.8.gz ']'
      + rm -f /usr/share/man/man8/cf-runagent.8.gz
      + /var/cfengine/bin/cf-runagent -M
      + gzip /usr/share/man/man8/cf-runagent.8
      + for i in cf-agent cf-promises cf-key cf-execd cf-serverd cf-monitord cf-runagent cf-hub
      + '[' -f /var/cfengine/bin/cf-hub -a -d /usr/local/sbin ']'
      + ln -sf /var/cfengine/bin/cf-hub /usr/local/sbin/cf-hub
      + '[' -f /usr/share/man/man8/cf-hub.8.gz ']'
      + rm -f /usr/share/man/man8/cf-hub.8.gz
      + /var/cfengine/bin/cf-hub -M
      + gzip /usr/share/man/man8/cf-hub.8
      + '[' '!' -f /var/cfengine/ppkeys/localhost.priv ']'
      + /var/cfengine/bin/cf-key
      + '[' -f /var/cfengine/bin/cf-twin ']'
      + /bin/cp /var/cfengine/lib/php/apc.so /var/cfengine/lib/php/cfengine-enterprise-api.so /var/cfengine/lib/php/cfmod.so /var/cfengine/httpd/php/lib/php/extensions/no-debug-non-zts-20100525
      + /bin/cp /var/cfengine/lib/php/apc.ini /var/cfengine/lib/php/cfengine-enterprise-api.ini /var/cfengine/lib/php/cfmod.ini /var/cfengine/httpd/php/lib
      + /bin/cp /var/cfengine/bin/cf-agent /var/cfengine/bin/cf-twin
      + CFENGINE_MP_DEFAULT_CERT_LOCATION=/var/cfengine/httpd/ssl/certs
      + CFENGINE_MP_DEFAULT_KEY_LOCATION=/var/cfengine/httpd/ssl/private
      + CFENGINE_OPENSSL=/var/cfengine/bin/openssl
      + mkdir -p /var/cfengine/httpd/ssl/certs
      + mkdir -p /var/cfengine/httpd/ssl/private
      ++ hostname -f
      + CFENGINE_LOCALHOST=ITAG-IM-VPS114.aargau.ktag.ch
      + CFENGINE_MP_CERT=/var/cfengine/httpd/ssl/certs/ITAG-IM-VPS114.aargau.ktag.ch.cert
      + CFENGINE_MP_KEY=/var/cfengine/httpd/ssl/private/ITAG-IM-VPS114.aargau.ktag.ch.key
      + '[' '!' -f /var/cfengine/httpd/ssl/certs/ITAG-IM-VPS114.aargau.ktag.ch.cert ']'
      + /var/cfengine/bin/openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -utf8 -sha256 -subj /CN=ITAG-IM-VPS114.aargau.ktag.ch -keyout /var/cfengine/httpd/ssl/private/ITAG-IM-VPS114.aargau.ktag.ch.key -out /var/cfengine/httpd/ssl/certs/ITAG-IM-VPS114.aargau.ktag.ch.cert -config /var/cfengine/ssl/openssl.cnf
      Generating a 2048 bit RSA private key
      ..............+++
      ..................................................................................................+++
      writing new private key to '/var/cfengine/httpd/ssl/private/ITAG-IM-VPS114.aargau.ktag.ch.key'


      + sed -i -e s:INSERT_CERT_HERE:/var/cfengine/httpd/ssl/certs/ITAG-IM-VPS114.aargau.ktag.ch.cert:g /var/cfengine/httpd/conf/extra/httpd-ssl.conf
      + sed -i -e s:INSERT_CERT_KEY_HERE:/var/cfengine/httpd/ssl/private/ITAG-IM-VPS114.aargau.ktag.ch.key:g /var/cfengine/httpd/conf/extra/httpd-ssl.conf
      + '[' '!' -d /var/cfengine/state/pg/data ']'
      + mkdir -p /var/cfengine/state/pg/data
      + chown -R cfpostgres /var/cfengine/state/pg
      + cd /tmp
      + su cfpostgres -c '/var/cfengine/bin/initdb -D /var/cfengine/state/pg/data'
      + touch /var/log/postgresql.log
      + chown cfpostgres /var/log/postgresql.log
      ++ cat /proc/meminfo
      ++ grep '^MemTotal:.*[0-9]+ kB'
      ++ awk '

      {print $2}

      '
      + total=10223876
      + echo 10223876
      + grep -q '^[0-9]+$'
      + '[' 0 -ne 0 ']'
      + upper=67108864
      + lower=8388608
      + '[' 10223876 -gt 8388608 ']'
      + maint=2GB
      + '[' 10223876 -ge 67108864 ']'
      + shared=2496
      + shared=2496MB
      + effect=6988
      + effect=6988MB
      + sed -i -e 's/^.effective_cache_size.*/effective_cache_size=6988MB/' /var/cfengine/share/postgresql/postgresql.conf.cfengine
      + sed -i -e 's/^shared_buffers.*/shared_buffers=2496MB/' /var/cfengine/share/postgresql/postgresql.conf.cfengine
      + sed -i -e 's/^maintenance_work_mem.*/maintenance_work_mem=2GB/' /var/cfengine/share/postgresql/postgresql.conf.cfengine
      + cp /var/cfengine/share/postgresql/postgresql.conf.cfengine /var/cfengine/state/pg/data/postgresql.conf
      + chown cfpostgres /var/cfengine/state/pg/data/postgresql.conf
      + cd /tmp
      + su cfpostgres -c '/var/cfengine/bin/pg_ctl -w -D /var/cfengine/state/pg/data -l /var/log/postgresql.log start'
      + TRYNO=1
      + LISTENING=no
      + echo -n 'pinging pgsql server'
      pinging pgsql server+ '[' 1 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 1 + 1
      + TRYNO=2
      + '[' 2 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 2 + 1
      + TRYNO=3
      + '[' 3 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 3 + 1
      + TRYNO=4
      + '[' 4 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 4 + 1
      + TRYNO=5
      + '[' 5 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 5 + 1
      + TRYNO=6
      + '[' 6 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 6 + 1
      + TRYNO=7
      + '[' 7 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 7 + 1
      + TRYNO=8
      + '[' 8 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 8 + 1
      + TRYNO=9
      + '[' 9 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 9 + 1
      + TRYNO=10
      + '[' 10 -le 10 ']'
      + echo -n .
      .++ cd /tmp
      ++ su cfpostgres -c '/var/cfengine/bin/psql -l 1>/dev/null 2>/dev/null'
      + ALIVE=
      + '[' 1 -eq 0 ']'
      + sleep 1
      ++ expr 10 + 1
      + TRYNO=11
      + '[' 11 -le 10 ']'
      + echo done
      done
      + '[' no = no ']'
      + echo 'Couldnot create necessary database and users, make sure Postgres server is running..'
      Couldnot create necessary database and users, make sure Postgres server is running..
      + mkdir -p /var/cfengine/config
      + /var/cfengine/httpd/bin/apachectl start
      + '[' '!' -f /var/cfengine/config/redis.conf ']'
      + cat
      + /var/cfengine/bin/redis-server /var/cfengine/config/redis.conf
      + /var/cfengine/bin/cf-consumer
      ++ dd if=/dev/urandom bs=1024 count=1
      ++ head -n 1
      + CFE_ROBOT_PWD=o8FG1g3A6dL7guDctHJ3mtMOn0FkK0ZN
      + /var/cfengine/httpd/php/bin/php /var/cfengine/httpd/htdocs/index.php cli_tasks create_cfe_robot_user o8FG1g3A6dL7guDctHJ3mtMOn0FkK0ZN
      2015-01-12T10:15:54+0100 error: Connection to database 'cfsettings' failed with message: 'could not connect to server: No such file or directory
      Is the server running locally and accepting
      connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
      '
      cfengine-enterprise-api: Connection to database 'cfsettings' failed with message: 'could not connect to server: No such file or directory
      Is the server running locally and accepting
      connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
      '
      cfengine-enterprise-api: Unable to connect to database, log-level set to: debug
      cfengine-enterprise-api: Initialized crypto
      cfengine-enterprise-api: CFEngine Enterprise API module initialized
      Error:: A Database Error Occurred
      SQLSTATE[08006] [7] could not connect to server: Connection refused
      Is the server running on host "localhost" (::1) and accepting
      TCP/IP connections on port 5432?
      could not connect to server: Connection refused
      Is the server running on host "localhost" (127.0.0.1) and accepting
      TCP/IP connections on port 5432?,Filename: /var/cfengine/httpd/htdocs/core/Cf_DB_pdo_driver.php,Line Number: 31+ rm -f /var/cfengine/CF_CLIENT_SECRET_KEY.tmp
      + exit 0
      </pre>

      Any ideas what the problem could be?

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              cyris212 Patrick Winter (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel