Cannot perform the following tasks: Run configure hook of "core" snap

Hi,

When I run snap set system refresh.timer=04:00

I get error: cannot perform the following tasks:

  • Run configure hook of “core” snap (run hook “configure”: cannot set hostname “test-server.co.uk”: name not valid)

I know the domain is a domain I don’t own, however it is certainly not invalid

This is unexpected indeed. I’ve checked in unit tests, but the hotstname test-server.co.uk do not fail in the checks on 2.53 branch or (2.53.2 tag which is before more fixes for hostname landed). What version of snapd do you have? Please attach the output of snap version and snap get system -d.

From the symptoms it looks like it’s running the initial code: https://github.com/snapcore/snapd/pull/9094 ?

which didn’t allow dot-delimited hostnames. It was later corrected and relaxed in 2 more PRs.

Heh, yeah, I checked the wrong tag, 2.53.2 was where we fixed it already.

@tom543 Can you confirm if updating snapd fixes it (e.g. sudo snap refresh snapd) ?