Panic: interface conversion: interface is nil, not string

I am getting this error for the 2nd time in 24 hours, after which it is impossible to restart hass.io. I have to resort to the following (now I know the value of snapshots!):
Restore a snapshot from ssh shell:
To get a list of snapshots:
hassio snapshots list
To restore one:
hassio snapshots restore --name xyz

hass.io seem to have become very sensitive to config errors lately. Also, quite often a hassio ha restart seems to take forever. I am running 0.65.5.

Has anyone else encountered this error?

Can confirm same issue. I’ve manually reverted my config files to what they were and still get the same error.

The strange thing is that after restoring a snapshot and after that copy back the config files that (maybe) caused the issue, hass.io restarts without problems.

The “Panic:…” issue thereby doesn’t seem to be related to a faulty config.

I think that restarting the supervisor fixed it for me.

1 Like

I got the error again, but this time I tried restarting the supervisor and it worked!
Thanks

I’ve just had this. Restarts, supervisor reloads and powering off & on all made no difference. I’ve just attempted a snapshots restore (it asked for “slug”), which appeared to be happening but then all my terminal sessions got disconnected, and I get “connection refused” when trying to reconnect to the box!

It eventually was accessible again, but Home Assistant no longer running, and any attempt to start / restart it gives the panic. Further restore attempts result in the same disconnection and having to wait quite a few minutes before being able to reconnect, after which the situation is no better.

Do I have any options beyond a complete re-install?

I’m running 0.65.3 (thought I was later than this but that’s what is reported by hassio ha info) on a Pi model 3 original.

OK, I’m up and running again, by an upgrade from the command line, restore and delete of the database file. Phew!

Spoke too soon, now doing it again. :frowning:

Now on latest version - 0.69.1. Could it be a corruption on the SD card?

core-ssh:~# hassio ha restart
ERROR
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2c7050, 0x1070b7c0)
        /home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:500 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107b8200, 0x24, 0x200, 0x0)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f6f83, 0xd, 0x7e81de6d, 0x7, 0x0, 0x0, 0x76500, 0x0, 0x0, 0x0, ...)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdHomeassistant(0x10778420)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/homeassistant.go:48 +0x540
github.com/urfave/cli.HandleAction(0x2af768, 0x324b14, 0x10778420, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f6f83, 0xd, 0x0, 0x0, 0x40bd10, 0x1, 0x1, 0x301e4d, 0x2f, 0x0, ...)
        /home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107648c0, 0x1070a140, 0x3, 0x4, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22 +0x108
core-ssh:~#
1 Like

I’ve got the same thing running on 0.69
Edit: Back up and running again. Deleting the home-assistant_v2.db and doing a full reboot did the trick. The restart did take a long time…

I eventually sussed out mine was simply happening because of a syntax error in my configuration file. I spotted a missing quote mark and all was well. Strange it’s not happened to me before…

Same for me on 0.69.1. Throwing away the .db didn’t work. Also can’t find anything wrong with the config files.

this is still here on 0.70, not able to reboot the host anymore, hassio ha restart does work mostly, only causing panic attacks when timeout errors are at hand :

core-ssh:~# hassio host reboot
ERROR
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2c7050, 0x1070b660)
	/home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:500 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107b6200, 0x24, 0x200, 0x0)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f45fc, 0x4, 0x7ed07e4b, 0x6, 0x0, 0x0, 0x76500, 0x0, 0x0, 0x0, ...)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdHost(0x10764420)
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/host.go:42 +0x4f0
github.com/urfave/cli.HandleAction(0x2af768, 0x324b18, 0x10764420, 0x0, 0x0)
	/home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f45fc, 0x4, 0x0, 0x0, 0x40bd20, 0x1, 0x1, 0x2fabdf, 0x18, 0x0, ...)
	/home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107528c0, 0x1070a180, 0x3, 0x4, 0x0, 0x0)
	/home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
	/home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22 +0x108

having same issue on .70 . I was messing with config files a bit, but ended up reverting everything and doing a reboot. Now, I cannot get HASS to load up the UI at all. When I try to do a reboot through the command line I get this error:

core-ssh:~# hassio ha restart
ERROR
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2c5f60, 0x1077d2c0)
        /home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:50                                0 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107e0200, 0                                x24, 0x200, 0x0)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/hel                                pers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f5e63, 0xd,                                 0x7e992e61, 0x7, 0x0, 0x0, 0x76000, 0x0, 0x0, 0x0, ...)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/hel                                pers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdHomeassistant(0x107864d0)
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/hom                                eassistant.go:48 +0x540
github.com/urfave/cli.HandleAction(0x2ae6d8, 0x323754, 0x107864d0, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f5e63, 0xd, 0x0, 0x0, 0x409d10, 0x1, 0x1, 0                                x300cfa, 0x2f, 0x0, ...)
        /home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107b2380, 0x1070a160, 0x3, 0x4, 0x0, 0x0)
        /home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
        /home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22                                 +0x108

I’ve also tried deleting the .db folder and doing a hard reboot. It didn’t help at all.

1 Like

Same problem here, haven’t been able to get it fixed for a week now

I’ve been getting this error as well when trying to update Hass.IO.
Otherwise everything else is working but I’m unable to update.
Has anyone been able to solve this ?

ERROR
panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2c5f60, 0x1070b660)
/home/travis/.gimme/versions/go1.7.6.linux.amd64/src/runtime/panic.go:500 +0x33c
github.com/home-assistant/hassio-cli/command/helpers.DisplayOutput(0x107b6200, 0x24, 0x200, 0x0)
/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:118 +0x3c8
github.com/home-assistant/hassio-cli/command/helpers.ExecCommand(0x2f5e63, 0xd, 0x7eb23e58, 0x6, 0x0, 0x0, 0x76000, 0x0, 0x0, 0x0, …)
/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/helpers/common.go:155 +0x308
github.com/home-assistant/hassio-cli/command.CmdHomeassistant(0x10778420)
/home/travis/gopath/src/github.com/home-assistant/hassio-cli/command/homeassistant.go:48 +0x540
github.com/urfave/cli.HandleAction(0x2ae6d8, 0x323754, 0x10778420, 0x0, 0x0)
/home/travis/gopath/src/github.com/urfave/cli/app.go:503 +0xf0
github.com/urfave/cli.Command.Run(0x2f5e63, 0xd, 0x0, 0x0, 0x409d10, 0x1, 0x1, 0x300cfa, 0x2f, 0x0, …)
/home/travis/gopath/src/github.com/urfave/cli/command.go:165 +0x6b8
github.com/urfave/cli.(*App).Run(0x107648c0, 0x1070a160, 0x3, 0x4, 0x0, 0x0)
/home/travis/gopath/src/github.com/urfave/cli/app.go:259 +0x8b0
main.main()
/home/travis/gopath/src/github.com/home-assistant/hassio-cli/main.go:22 +0x108

I just encountered this.

I believe the cause of my issue was switching from using an external db_url for recorder back to using the sqlite version. (I’m moving to using influxdb for long-term storage). I had meant to delete the existing sqlite db, but neglected to.

After I removed the db file, and rebooted the entire host, things went back to normal.

Same problem

same here.

Same problem here, I literally spent an entire day rebuilding HA from scratch, adding little pieces of my configuration until it stopped working. In the end it seems like the culprit somehow was that I was running AVAHI on my PFSense router in order for discovery to work across networks, once I turned AVAHI off on the firewall HA would work normally. This is in addition to using the new cast configuration. So for example if I brought up HA with all of my configuration (minus cast / google devices defined as media players) then everything was fine. The second I allowed HA to add the cast configuration my HA would never start again (as long as AVAHI was running on my firewall). I’m sorry I don’t have any more detailed technical information, it took me literally all day to figure this out so now I will begin working through why having AVAHI running disrupts HA. Hopefully this information will help someone…

UPDATE: If i enable AVAHI on PFSense AFTER I start HA, everything seems to work fine and HA finds my google devices on the other networks and they work fine.

same here, can’t load the Hassio web