setting core.refresh.hold to "forever" in /var/lib/snapd/config.json leads to "cannot unmarshal snap "core" option "refresh.hold" into *time.Time: parsing time "\"forever\"" as "\"2006-01-02T15:04:05Z07:00\"": cannot parse "forever\"" as "2006", json: "forever""
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Committed
|
Undecided
|
Maciej Borzecki |
Bug Description
The public cloud team wants to disable all snap refreshs during image build.
What we do currently in a chroot is:
$ pushd "$scratch_
$ jq -c '.data.
$ mv state.json.tmp state.json
$ popd
but when such a image boots, the snapd.service journal contains the following message(s):
Feb 01 08:22:28 ip-172-31-37-149 snapd[380]: stateengine.go:149: state ensure error: internal error: cannot unmarshal snap "core" option "refresh.hold" into *time.Time: parsing time "\"forever\"" as "\"2006-
Feb 01 08:22:28 ip-172-31-37-149 snapd[380]: stateengine.go:149: state ensure error: internal error: cannot unmarshal snap "core" option "refresh.hold" into *time.Time: parsing time "\"forever\"" as "\"2006-
Feb 01 08:22:28 ip-172-31-37-149 snapd[380]: stateengine.go:149: state ensure error: internal error: cannot unmarshal snap "core" option "refresh.hold" into *time.Time: parsing time "\"forever\"" as "\"2006-
Feb 01 08:22:28 ip-172-31-37-149 snapd[380]: stateengine.go:149: state ensure error: internal error: cannot unmarshal snap "core" option "refresh.hold" into *time.Time: parsing time "\"forever\"" as "\"2006-
Changed in snapd: | |
assignee: | nobody → Maciej Borzecki (maciek-borzecki) |
status: | New → In Progress |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Can you indicate what is the version if the snapd package and the snapd snap installed in the system?