Skip to content

Agent crashing after about 30 minutes with *PANIC* #90

Description

@niKaphalor

Hello there,

after i have installed and configured the agent on a Lenovo t14 Gen3 with Ubuntu 24.04 LTS, the agent crashes constantly after about 30 to 40 minutes.

panic: runtime error: invalid memory address or nil pointer dereference

Aug 04 16:08:34 ni-pf4fxekv systemd[1]: openuem-agent.service: Consumed 1min 21.524s CPU time, 360.7M memory peak, 0B memory swap peak.
Aug 04 16:11:15 ni-pf4fxekv systemd[1]: Started openuem-agent.service - OpenUEM Agent.
Aug 04 16:11:15 ni-pf4fxekv openuem-agent[430272]: badger 2026/08/04 16:11:15 INFO: All 0 tables opened in 0s
Aug 04 16:11:15 ni-pf4fxekv openuem-agent[430272]: badger 2026/08/04 16:11:15 INFO: Discard stats nextEmptySlot: 0
Aug 04 16:11:15 ni-pf4fxekv openuem-agent[430272]: badger 2026/08/04 16:11:15 INFO: Set nextTxnTs to 0
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: panic: runtime error: invalid memory address or nil pointer dereference
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xbf2a24]
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: goroutine 2134 [running]:
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: github.com/open-uem/openuem-agent/internal/agent.(*Agent).ProcessProfileResponse(0x1bbb3d8d5520, 0x0, 0x2?)
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /home/gh-runner/actions-runner/_work/openuem-agent-debian-installer/openuem-agent-debian-installer/build/openuem-agent/internal/agent/agent_linux.go:482 +0x164
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: github.com/open-uem/openuem-agent/internal/agent.(*Agent).GetUnixConfigureProfiles(0x1bbb3d8d5520)
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /home/gh-runner/actions-runner/work/openuem-agent-debian-installer/openuem-agent-debian-installer/build/openuem-agent/internal/agent/agent_linux.go:469 +0x45c
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: reflect.Value.call({0xcda540?, 0x1bbb3d7f1620?, 0x2?}, {0xe65929, 0x4}, {0x1bbb4867b400, 0x0, 0x2?})
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /usr/local/go/src/reflect/value.go:586 +0xf06
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: reflect.Value.Call({0xcda540?, 0x1bbb3d7f1620?, 0x1bbb442419a8?}, {0x1bbb4867b400?, 0x9849c8?, 0x1bbb43d16000?})
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /usr/local/go/src/reflect/value.go:369 +0xb9
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: github.com/go-co-op/gocron/v2.callJobFuncWithParams({0xcda540?, 0x1bbb3d7f1620?}, {0x0, 0x0, 0x1bbb3d9f9460?})
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /root/go/pkg/mod/github.com/go-co-op/gocron/v2@v2.19.1/util.go:28 +0x245
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: github.com/go-co-op/gocron/v2.(*executor).runJob(
, {{0xec3ae0, 0x1bbb3d8b66e0}, {0xec3ae0, 0x1bbb3d8b7270}, 0x1bbb3d7f1630, {0xa3, 0xbf, 0xe8, 0x49, ...}, ...}, ...)
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /root/go/pkg/mod/github.com/go-co-op/gocron/v2@v2.19.1/executor.go:478 +0xf25
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: github.com/go-co-op/gocron/v2.(*executor).start.func1.1({{0xec3ae0, 0x1bbb3d8b66e0}, {0xec3ae0, 0x1bbb3d8b7270}, 0x1bbb3d7f1630, {0xa3, 0xbf, 0xe8, 0x49, 0x1e, ...}, ...})
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /root/go/pkg/mod/github.com/go-co-op/gocron/v2@v2.19.1/executor.go:249 +0x9c
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: created by github.com/go-co-op/gocron/v2.(*executor).start.func1 in goroutine 2133
Aug 04 16:47:10 ni-pf4fxekv openuem-agent[430272]: /root/go/pkg/mod/github.com/go-co-op/gocron/v2@v2.19.1/executor.go:248 +0xc55
Aug 04 16:47:10 ni-pf4fxekv systemd[1]: openuem-agent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 04 16:47:10 ni-pf4fxekv systemd[1]: openuem-agent.service: Failed with result 'exit-code'.
Aug 04 16:47:10 ni-pf4fxekv systemd[1]: openuem-agent.service: Consumed 1min 50.479s CPU time, 252.3M memory peak, 0B memory swap peak.//

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions