chrisss404 / check-mk-arm

Checkmk for Raspberry Pi.
182 stars 23 forks source link

Redis seg fault on Raspberry Pi 5 #64

Closed solarisfire closed 5 months ago

solarisfire commented 6 months ago

Running Pi OS (based on Debian Bookworm) - I know it's not directly supported, just wondering if you had any ideas?

Starting agent-receiver...OK
Starting mkeventd...OK
Starting rrdcached...OK
Starting npcd...OK
Starting nagios...OK
Starting apache...OK
Starting redis...jemalloc: Unsupported system page size
jemalloc: Unsupported system page size
/omd/sites/pifive/etc/rc.d/85-redis: line 10: 336019 Segmentation fault      $DAEMON $OPTS
OK
Initializing Crontab...OK
solarisfire commented 6 months ago

Hmmm, I installed redis-server and copied the binary from /bin/redis-server into /omd/sites/pifive/bin and it starts up just fine now... Seems to be an issue with the compiled redis-server binary...?

realiter commented 6 months ago

Indeed, I have the same issue.

strace ./redis-server gives that:

prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 munmap(0x7ffede460000, 83227) = 0 readlinkat(AT_FDCWD, "/etc/je_malloc.conf", 0x7fffd5b56ec8, 4096) = -1 ENOENT (No such file or directory) write(2, ": Unsupported system p"..., 41: Unsupported system page size ) = 41 getrandom("\xe7\x5b\x1d\x0a\xbb\xfb\xa2\x64", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55564214c000 brk(0x555642170000) = 0x555642170000

martux69 commented 6 months ago

I think, it relates to this : https://github.com/jemalloc/jemalloc/issues/467#issuecomment-1876990263 I have no pi5 so I'm not able to test anything relating to this.

realiter commented 6 months ago

there is a link to: https://bugzilla.redhat.com/show_bug.cgi?id=2240293 "[Bug 2240293] Redis fails to start on aarch64 with 16kb pages" where a patch is mentioned.

martux69 commented 6 months ago

Yes, it seems so be the same solution in both urls. But as mentioned before I have no pi5 and as far as I can see with the implemented patch I could have trouble to run with a pi4.

chrisss404 commented 5 months ago

Won't fix.