Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: crash and restart after updating to 2.0 #617

Closed
ksurl opened this issue Feb 17, 2023 · 1 comment
Closed

Bug: crash and restart after updating to 2.0 #617

ksurl opened this issue Feb 17, 2023 · 1 comment
Labels
🪲 bug Something isn't working server Relates to the main binary (server or client)

Comments

@ksurl
Copy link
Contributor

ksurl commented Feb 17, 2023

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
@binwiederhier binwiederhier added 🪲 bug Something isn't working server Relates to the main binary (server or client) labels Feb 17, 2023
@binwiederhier
Copy link
Owner

Done in 38e7801

Will likely release tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working server Relates to the main binary (server or client)
Projects
None yet
Development

No branches or pull requests

2 participants