can't read environment file no hint of actual yaml error

Bug #1320218 reported by Kapil Thangavelu
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

i made a trivial edit to my environments.yaml file, and then discovered that juju could no longer read the file.

all juju commands now fail with an inscrutable error message

$ juju env --debug
2014-05-16 12:49:01 INFO juju.cmd supercommand.go:301 running juju-1.19.3-saucy-amd64 [gc]
2014-05-16 12:49:01 ERROR juju.cmd supercommand.go:304 couldn't read the environment

i've verified that the file is valid yaml with the expected structure.

after some debugging the underlying cause was 'default' environment no longer pointed to a valid environment name ( i had renamed it, it was not active) and this inspite of current-environment pointing to a different environment.

at min a nicer error message would be nice, at most ignoring resolution of default unless it was actually needed.

Revision history for this message
Curtis Hovey (sinzui) wrote :

As an aside, This happened to me 2 days ago.

Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: config ui
Curtis Hovey (sinzui)
summary: - can't read environment file no hint of actual error
+ can't read environment file no hint of actual yaml error
tags: added: bitesized
tags: added: bitesize
removed: bitesized
Revision history for this message
Sidharth Nandury (nsidharth1991) wrote :

the same error affected me today. Any solutions?

Revision history for this message
Anastasia (anastasia-macmood) wrote :

We no longer have environments.yaml on Juju 2.

Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.