Error after 6.19 upgrade on a Debian Bookworm system

Hello,

Just upgraded to 6.19 and got an error for an OpenVPN container:

```bash
L’unité (unit) incus.service a commencé à démarrer.
nov. 29 13:56:42 buzz incusd[507004]: time=“2025-11-29T13:56:42+01:00” level=error msg=“Failed writing error for HTTP response” err=“write unix /var/lib/incus/unix.socket->@: write: broken pipe” url=/1.0 writeErr=“write unix /var/lib/incus/unix.socket->@: write: broken pipe”
nov. 29 13:56:42 buzz incusd[507004]: time=“2025-11-29T13:56:42+01:00” level=error msg=“Failed writing error for HTTP response” err=“write unix /var/lib/incus/unix.socket->@: write: broken pipe” url=/1.0 writeErr=“write unix /var/lib/incus/unix.socket->@: write: broken pipe”
nov. 29 13:56:43 buzz incusd[507004]: panic: runtime error: invalid memory address or nil pointer dereference
nov. 29 13:56:43 buzz incusd[507004]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x14483e7]
nov. 29 13:56:43 buzz incusd[507004]: goroutine 437 [running]:
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/shared/archive.Unpack({0xc000636180, 0x5d}, {0xc000178500, 0x73}, 0x0, 0xc3199330, 0x0)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/shared/archive/archive.go:191 +0xe7
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/storage.ImageUnpack({0xc00004b740, 0x56}, {{0xc0016c0140, 0x40}, {0xc001484200, 0x7}, 0xc000d0e6f0, {0x23065a7, 0x6}, {0x231a29f, …}, …}, …)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/storage/utils.go:610 +0x565
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/storage.(*backend).EnsureImage.(*backend).imageFiller.func6({{0xc0016c0140, 0x40}, {0xc001484200, 0x7}, 0xc000d0e6f0, {0x23065a7, 0x6}, {0x231a29f, 0xa}, 0xc000d0e5d0, …}, …)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/storage/backend.go:1724 +0x205
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/storage/drivers.genericRunFiller({0x27be0a8, 0xc000bf22d0}, {{0xc0016c0140, 0x40}, {0xc001484200, 0x7}, 0xc000d0e6f0, {0x23065a7, 0x6}, {0x231a29f, …}, …}, …)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/storage/drivers/generic_vfs.go:1213 +0x2d8
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/storage/drivers.(*btrfs).CreateVolume(0xc000bf22d0, {{0xc0016c0140, 0x40}, {0xc001484200, 0x7}, 0xc000d0e6f0, {0x23065a7, 0x6}, {0x231a29f, 0xa}, …}, …)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/storage/drivers/driver_btrfs_volumes.go:93 +0x54d
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/storage.(*backend).EnsureImage(0xc000740540, {0xc0016c0140, 0x40}, 0x0)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/storage/backend.go:3621 +0x19ef
nov. 29 13:56:43 buzz incusd[507004]: main.imageCreateInPool(0x2062240?, 0xc00059f680, {0xc001236410?, 0xc000506050?})
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/cmd/incusd/images.go:985 +0x55
nov. 29 13:56:43 buzz incusd[507004]: main.ImageDownload({0x278dc10, 0xc000934960}, 0x0, 0xc000c86200, 0x0, 0xc0005db7e0)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/cmd/incusd/daemon_images.go:299 +0x175a
nov. 29 13:56:43 buzz incusd[507004]: main.autoUpdateImage({0x278dc10, 0xc000934960}, 0xc000c86200, 0x0, 0x8b8, 0xc00120e240, {0xc00055cf28, 0x7}, 0x0?)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/cmd/incusd/images.go:2337 +0x98d
nov. 29 13:56:43 buzz incusd[507004]: main.autoUpdateImages({0x278dc10, 0xc000934960}, 0xc000c86200)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/cmd/incusd/images.go:1979 +0x8b4
nov. 29 13:56:43 buzz incusd[507004]: main.autoUpdateImagesTask.func1.1(0x0?)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/cmd/incusd/images.go:1845 +0x1f
nov. 29 13:56:43 buzz incusd[507004]: github.com/lxc/incus/v6/internal/server/operations.(*Operation).Start.func1(0xc000abd680)
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/operations/operations.go:306 +0x26
nov. 29 13:56:43 buzz incusd[507004]: created by github.com/lxc/incus/v6/internal/server/operations.(*Operation).Start in goroutine 535
nov. 29 13:56:43 buzz incusd[507004]: /build/incus/internal/server/operations/operations.go:305 +0x106
nov. 29 13:56:43 buzz systemd[1]: incus.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
░░ Subject: Unit process exited
```

I would like to know how to investigate further.

I’ll take a look shortly. I think I know what’s going on there.

The second commit should take care of the crash you’ve ran into.
I’ll push an updated package as soon as the fix has been reviewed and merged.

Thanks a lot :slight_smile:

The fix was merged and updated packages are building now.

Great !
Just installed the new packages and the openvpn container went back after manual start.

Thanks again for your prompt reply.