Skip to content

Bug: crash and restart after updating to 2.0 #617

Closed
@ksurl

Description

@ksurl

updated to 2.0 yesterday and getting random crashes. log posted below. I am running in docker with compose file:

services:
  ntfy:
    image: binwiederhier/ntfy
    user: 1001:1001
    command: serve
    volumes:
      - ./config:/etc/ntfy
      - ./config/ntfy.log:/var/log/ntfy.log
log
Logs are written to /var/log/ntfy.log
02/17/2023 10:21:19 AM
panic: runtime error: invalid memory address or nil pointer dereference
02/17/2023 10:21:19 AM
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb61cff]
02/17/2023 10:21:19 AM
02/17/2023 10:21:19 AM
goroutine 66 [running]:
02/17/2023 10:21:19 AM
heckel.io/ntfy/server.(*fileCache).Remove(0x0, {0xc0005ea040?, 0x4, 0x415008?})
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/file_cache.go:80 +0x25f
02/17/2023 10:21:19 AM
heckel.io/ntfy/server.(*Server).pruneMessages.func1()
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/server_manager.go:152 +0x7b
02/17/2023 10:21:19 AM
heckel.io/ntfy/log.(*Event).Timing(0xc000681320, 0xc000741b98)
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/log/event.go:87 +0x42
02/17/2023 10:21:19 AM
heckel.io/ntfy/server.(*Server).pruneMessages(0xc0004873f0)
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/server_manager.go:147 +0x50
02/17/2023 10:21:19 AM
heckel.io/ntfy/server.(*Server).execManager(0xc0004873f0)
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/server_manager.go:16 +0x5f
02/17/2023 10:21:19 AM
heckel.io/ntfy/log.(*Event).Timing(0xc000681200, 0xc000051788)
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/log/event.go:87 +0x42
02/17/2023 10:21:19 AM
heckel.io/ntfy/server.(*Server).runManager(0xc0004873f0)
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/server.go:1289 +0x5c
02/17/2023 10:21:19 AM
created by heckel.io/ntfy/server.(*Server).Run
02/17/2023 10:21:19 AM
	/home/runner/work/ntfy/ntfy/server/server.go:257 +0x938

Metadata

Metadata

Assignees

No one assigned

    Labels

    serverRelates to the main binary (server or client)🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions