local hostname is invalid when $USER is not set
Bug #1274780 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Low
|
Andrew Wilkins |
Bug Description
juju local deploy no longer works with the wordpress charm. The agent errors. The issue first appears with r2264, though might be older. The wordpress charm has not changed, and there is no issue deploying it to canonistack or aws. The all-machines.log found at
http://
doesn't say what exactly went wrong.
Related branches
lp:~axwalk/juju-core/lp1274780-osuser-fallback
- Juju Engineering: Pending requested
-
Diff: 120 lines (+63/-4)3 files modifiedprovider/local/environprovider.go (+9/-1)
provider/local/environprovider_test.go (+53/-3)
provider/local/export_test.go (+1/-0)
summary: |
- Wordpress charm no longer works with local deploy. + local hostname is invalid when $USER is not set |
Changed in juju-core: | |
importance: | High → Low |
Changed in juju-core: | |
status: | Triaged → In Progress |
assignee: | nobody → Andrew Wilkins (axwalk) |
milestone: | none → 1.18.0 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
milestone: | 1.18.0 → 1.17.3 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I tailed the mysql unit log as it was being installed.
fatal: file /etc/postfix/ main.cf: parameter myhostname: bad parameter value: -local-machine-1
2014-01-31 02:40:06 INFO install Setting up postfix (2.9.6-1~12.04.1) ... postfix' . dynamicmaps. cf dynamicmaps. cf dynamicmaps. cf localdomain, localhost 127.0.0. 0]/104 [::1]/128 delimiter: + main.cf (and others) as needed. To view Postfix configuration d/postfix reload'. main.cf: parameter myhostname: bad parameter value: -local-machine-1 agent; however:
2014-01-31 02:40:07 INFO install Adding group `postfix' (GID 113) ...
2014-01-31 02:40:07 INFO install Done.
2014-01-31 02:40:07 INFO install Adding system user `postfix' (UID 106) ...
2014-01-31 02:40:07 INFO install Adding new user `postfix' (UID 106) with group `postfix' ...
2014-01-31 02:40:08 INFO install Not creating home directory `/var/spool/
2014-01-31 02:40:08 INFO install Creating /etc/postfix/
2014-01-31 02:40:08 INFO install Adding tcp map entry to /etc/postfix/
2014-01-31 02:40:08 INFO install Adding sqlite map entry to /etc/postfix/
2014-01-31 02:40:08 INFO install Adding group `postdrop' (GID 114) ...
2014-01-31 02:40:08 INFO install Done.
2014-01-31 02:40:08 INFO install setting myhostname: -local-machine-1
2014-01-31 02:40:08 INFO install setting alias maps
2014-01-31 02:40:08 INFO install setting alias database
2014-01-31 02:40:08 INFO install mailname is not a fully qualified domain name. Not changing /etc/mailname.
2014-01-31 02:40:08 INFO install setting destinations: localdomain, localhost, localhost.
2014-01-31 02:40:08 INFO install setting relayhost:
2014-01-31 02:40:08 INFO install setting mynetworks: 127.0.0.0/8 [::ffff:
2014-01-31 02:40:08 INFO install setting mailbox_size_limit: 0
2014-01-31 02:40:08 INFO install setting recipient_
2014-01-31 02:40:08 INFO install setting inet_interfaces: all
2014-01-31 02:40:10 INFO install /etc/aliases does not exist, creating it.
2014-01-31 02:40:10 INFO install WARNING: /etc/aliases exists, but does not have a root alias.
2014-01-31 02:40:10 INFO install
2014-01-31 02:40:10 INFO install Postfix is now set up with a default configuration. If you need to make
2014-01-31 02:40:10 INFO install changes, edit
2014-01-31 02:40:10 INFO install /etc/postfix/
2014-01-31 02:40:10 INFO install values, see postconf(1).
2014-01-31 02:40:10 INFO install
2014-01-31 02:40:10 INFO install After modifying main.cf, be sure to run '/etc/init.
2014-01-31 02:40:10 INFO install
2014-01-31 02:40:10 INFO install Running newaliases
2014-01-31 02:40:10 INFO install newaliases: warning: valid_hostname: misplaced hyphen: -local-machine-1
2014-01-31 02:40:10 INFO install newaliases: fatal: file /etc/postfix/
2014-01-31 02:40:10 INFO install dpkg: error processing postfix (--configure):
2014-01-31 02:40:10 INFO install subprocess installed post-installation script returned error exit status 75
2014-01-31 02:40:10 INFO install dpkg: dependency problems prevent configuration of mailutils:
2014-01-31 02:40:10 INFO install mailutils depends on default-mta | mail-transport-
2014-01-31 02:40:10 INFO install Package default-mta is not installed.
2014-01-31 02:40:10 INFO install Package postfix which provides defaul...