89luca89 / lilipod

Lilipod is a simple container manager, able to download, unpack and use OCI images from various container registries.
GNU General Public License v3.0
240 stars 11 forks source link

Runtime error during initial "Starting container" #16

Open eugenesan opened 2 months ago

eugenesan commented 2 months ago

During initial start, I am seeing the following in the lilipod log:

...
Get:77 http://archive.ubuntu.com/ubuntu noble/main amd64 dbus-user-session amd64 1.14.10-4ubuntu4 [9960 B]
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/89luca89/lilipod/pkg/logging.ReadLog({0x990060, 0xc0000aa220?}, 0xfffffff1886e0900, 0xfffffff1886e0900, 0x1, 0x0)
/home/user/Develop/src/lilipod/pkg/logging/logging.go:127 +0x6a7
github.com/89luca89/lilipod/cmd.logs(0xc000286008, {0xc0000e0d00?, 0x4?, 0x8ca620?})
/home/user/Develop/src/lilipod/cmd/logs.go:80 +0x2c9
github.com/spf13/cobra.(*Command).execute(0xc000286008, {0xc0000c4060, 0x2, 0x2})
/home/user/Develop/src/lilipod/vendor/github.com/spf13/cobra/command.go:940 +0x882
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001ea908)
/home/user/Develop/src/lilipod/vendor/github.com/spf13/cobra/command.go:1068 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
/home/user/Develop/src/lilipod/vendor/github.com/spf13/cobra/command.go:992
main.main()
/home/user/Develop/src/lilipod/main.go:109 +0x5b
...

Otherwise the container seems to be functioning normally, except I can't recall if podman does set the hostname but lilipod surely doesn't.

Container: ubuntu:24.04, lilpod: 0.0.3(68b04f2), distrobox: 0.7.1.0

P.S. After initial start is done and contaner is running, "lilipod logs" returns nothing. Is that by design?