ec2-user@murano-irkyii9pj40z3h-nfqshi9pj3tb94-4xmdzwtxn3lu:~$ tailf -n 200 /var/log/murano-agent.log 2015-05-15 11:37:07.493 523 DEBUG muranoagent.openstack.common.service [-] rabbitmq.ssl = False log_opt_values /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/oslo_config/cfg.py:2195 2015-05-15 11:37:07.494 523 DEBUG muranoagent.openstack.common.service [-] rabbitmq.virtual_host = / log_opt_values /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/oslo_config/cfg.py:2195 2015-05-15 11:37:07.494 523 DEBUG muranoagent.openstack.common.service [-] ******************************************************************************** log_opt_values /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/oslo_config/cfg.py:2197 2015-05-15 11:37:07.494 523 DEBUG muranoagent.app [-] Loading plugin puppet _load_package /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/app.py:47 2015-05-15 11:37:07.497 523 DEBUG muranoagent.app [-] Loading plugin application _load_package /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/app.py:47 2015-05-15 11:37:07.499 523 DEBUG muranoagent.app [-] Loading plugin chef _load_package /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/app.py:47 2015-05-15 11:37:07.579 523 DEBUG muranoagent.app [-] Got an execution plan 'Action: Execute Body: 'return deploy(args.appName).stdout ' Files: 24910db615754fd78ce3260da98a7f74: Body: '#!/bin/bash # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. sudo apt-get update sudo apt-get -y -q install postgresql tee --append /etc/postgresql/*/main/postgresql.conf <<< "listen_addresses = ''*''" sudo iptables -I INPUT 1 -p tcp -m tcp --dport 5432 -j ACCEPT -m comment --comment "by murano, PostgreSQL" sudo /etc/init.d/postgresql restart ' BodyType: Text Name: deployPostgreSql.sh FormatVersion: 2.0.0 ID: f15afc359be4485599cb742219278500 Name: Deploy PostgreSql Parameters: appName: $appName Scripts: deploy: EntryPoint: 24910db615754fd78ce3260da98a7f74 Files: [] Options: captureStderr: true captureStdout: true Type: Application Version: 1.0.0 Version: 1.0.0 _timestamp: '14316898275750' ': _loop_func /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/app.py:80 2015-05-15 11:37:07.579 523 DEBUG application [-] Starting 'deployPostgreSql.sh' script execution run /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/executors/application/__init__.py:53 2015-05-15 11:37:26.778 523 DEBUG application [-] Script deployPostgreSql.sh execution finished with retcode: 0 run /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/executors/application/__init__.py:65 2015-05-15 11:37:26.778 523 DEBUG application [-] 'deployPostgreSql.sh' execution stdout: 'Get:1 http://http.debian.net jessie-backports InRelease [132 kB] Hit http://http.debian.net jessie InRelease Hit http://http.debian.net jessie/main amd64 Packages Get:2 http://http.debian.net jessie-backports/main amd64 Packages/DiffIndex [2161 B] Get:3 http://http.debian.net jessie-backports/main amd64 2015-05-08-1454.02.pdiff [45.0 kB] Get:4 http://http.debian.net jessie-backports/main amd64 2015-05-09-0853.16.pdiff [11.1 kB] Get:5 http://http.debian.net jessie-backports/main amd64 2015-05-09-1454.13.pdiff [1936 B] Get:6 http://http.debian.net jessie-backports/main amd64 2015-05-09-2054.18.pdiff [10.7 kB] Get:7 http://http.debian.net jessie-backports/main amd64 2015-05-10-0858.42.pdiff [3500 B] Get:8 http://http.debian.net jessie-backports/main amd64 2015-05-11-2055.12.pdiff [245 B] Get:9 http://http.debian.net jessie-backports/main amd64 2015-05-12-1452.54.pdiff [20.2 kB] Get:10 http://http.debian.net jessie-backports/main amd64 2015-05-13-1454.51.pdiff [10.2 kB] Get:11 http://http.debian.net jessie-backports/main amd64 2015-05-14-0901.56.pdiff [3477 B] Get:12 http://http.debian.net jessie-backports/main amd64 2015-05-14-0901.56.pdiff [3477 B] Fetched 241 kB in 1s (152 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libpq5 postgresql-9.4 postgresql-client-9.4 postgresql-client-common postgresql-common ssl-cert Suggested packages: postgresql-doc oidentd ident-server locales-all postgresql-doc-9.4 openssl-blacklist Recommended packages: logrotate The following NEW packages will be installed: libpq5 postgresql postgresql-9.4 postgresql-client-9.4 postgresql-client-common postgresql-common ssl-cert 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 5234 kB of archives. After this operation, 26.6 MB of additional disk space will be used. Get:1 http://http.debian.net/debian/ jessie/main libpq5 amd64 9.4.1-1 [121 kB] Get:2 http://http.debian.net/debian/ jessie/main postgresql-client-common all 165 [73.3 kB] Get:3 http://http.debian.net/debian/ jessie/main postgresql-client-9.4 amd64 9.4.1-1 [1068 kB] Get:4 http://http.debian.net/debian/ jessie/main ssl-cert all 1.0.35 [20.9 kB] Get:5 http://http.debian.net/debian/ jessie/main postgresql-common all 165 [202 kB] Get:6 http://http.debian.net/debian/ jessie/main postgresql-9.4 amd64 9.4.1-1 [3698 kB] Get:7 http://http.debian.net/debian/ jessie/main postgresql all 9.4+165 [51.7 kB] Fetched 5234 kB in 7s (726 kB/s) Selecting previously unselected package libpq5:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 26005 files and directories currently installed.) Preparing to unpack .../libpq5_9.4.1-1_amd64.deb ... Unpacking libpq5:amd64 (9.4.1-1) ... Selecting previously unselected package postgresql-client-common. Preparing to unpack .../postgresql-client-common_165_all.deb ... Unpacking postgresql-client-common (165) ... Selecting previously unselected package postgresql-client-9.4. Preparing to unpack .../postgresql-client-9.4_9.4.1-1_amd64.deb ... Unpacking postgresql-client-9.4 (9.4.1-1) ... Selecting previously unselected package ssl-cert. Preparing to unpack .../ssl-cert_1.0.35_all.deb ... Unpacking ssl-cert (1.0.35) ... Selecting previously unselected package postgresql-common. Preparing to unpack .../postgresql-common_165_all.deb ... Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' Unpacking postgresql-common (165) ... Selecting previously unselected package postgresql-9.4. Preparing to unpack .../postgresql-9.4_9.4.1-1_amd64.deb ... Unpacking postgresql-9.4 (9.4.1-1) ... Selecting previously unselected package postgresql. Preparing to unpack .../postgresql_9.4+165_all.deb ... Unpacking postgresql (9.4+165) ... Processing triggers for systemd (215-17) ... Setting up libpq5:amd64 (9.4.1-1) ... Setting up postgresql-client-common (165) ... Setting up postgresql-client-9.4 (9.4.1-1) ... update-alternatives: using /usr/share/postgresql/9.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode Setting up ssl-cert (1.0.35) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Setting up postgresql-common (165) ... debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline Adding user postgres to group ssl-cert Creating config file /etc/postgresql-common/createcluster.conf with new version Building PostgreSQL dictionaries from installed myspell/hunspell packages... Removing obsolete dictionary files: Setting up postgresql-9.4 (9.4.1-1) ... Error: The locale requested by the environment is invalid. Error: could not create default cluster. Please create it manually with pg_createcluster 9.4 main --start or a similar command (see 'man pg_createcluster'). update-alternatives: using /usr/share/postgresql/9.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode Setting up postgresql (9.4+165) ... Processing triggers for libc-bin (2.19-18) ... Processing triggers for systemd (215-17) ... listen_addresses = '*' Restarting postgresql (via systemctl): postgresql.service. ' run /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/executors/application/__init__.py:69 2015-05-15 11:37:26.778 523 DEBUG application [-] 'deployPostgreSql.sh' execution stderr: 'debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: tee: /etc/postgresql/*/main/postgresql.conf: No such file or directory ' run /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/executors/application/__init__.py:73 pg_createcluster 9.4 main --startq^C ec2-user@murano-irkyii9pj40z3h-nfqshi9pj3tb94-4xmdzwtxn3lu:~$ pg_createcluster 9.4 main --start perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "en_US.UTF-8", LC_ADDRESS = "en_US.UTF-8", LC_MONETARY = "en_US.UTF-8", LC_NUMERIC = "en_US.UTF-8", LC_TELEPHONE = "en_US.UTF-8", LC_IDENTIFICATION = "en_US.UTF-8", LC_MEASUREMENT = "en_US.UTF-8", LC_TIME = "en_US.UTF-8", LC_NAME = "en_US.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Error: The locale requested by the environment is invalid. ec2-user@murano-irkyii9pj40z3h-nfqshi9pj3tb94-4xmdzwtxn3lu:~$ sudo pg_createcluster 9.4 main --start perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = "en_US.UTF-8", LC_ADDRESS = "en_US.UTF-8", LC_MONETARY = "en_US.UTF-8", LC_NUMERIC = "en_US.UTF-8", LC_TELEPHONE = "en_US.UTF-8", LC_IDENTIFICATION = "en_US.UTF-8", LC_MEASUREMENT = "en_US.UTF-8", LC_TIME = "en_US.UTF-8", LC_NAME = "en_US.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Error: The locale requested by the environment is invalid.