neolink icon indicating copy to clipboard operation
neolink copied to clipboard

Segmentation fault with 4 x 4K B800 cameras

Open Nuffe71 opened this issue 2 years ago • 4 comments

Version: 0.40.0 (pulled from dockerhub 26.5.2022) With 4 B800 cameras connected to neolink it crashes. Only one of the cameras is visible in Frigate. The terminal screen shows constant segmentation fault (but logs does not). The restart count for the container was previously 742 for 6 hours "uptime". Now in 2 minutes 17.

docker-compose: neolink: image: thirtythreeforty/neolink container_name: neolink ports: - 8554:8554 volumes: - /mnt/nas_container/neolink/neolink.toml:/etc/neolink.toml <-- nfs mount. restart: unless-stopped environment: RUST_LOG: debug

toml-file (renamed to txt to allow upload): neolink.txt

Container status: State Dead false Error ExitCode 139 FinishedAt 2022-05-27T18:02:31.701136061Z OOMKilled false Paused false Pid 0 Restarting true Running true StartedAt 2022-05-27

T18:02:27.139335141Z Status restarting

Logs: _neolink_logs.txt

Nuffe71 avatar May 27 '22 18:05 Nuffe71

This is probably the usual know issue with docker containers. User have reported that it works if you use a Debian based image rather than an alpine. Your welcome to try but you need to be familiar with building dockerfiles.

QuantumEntangledAndy avatar May 28 '22 09:05 QuantumEntangledAndy

Thanks for the info. I have now a new, own neolink image basing on debian-slim.

Nuffe71 avatar May 29 '22 20:05 Nuffe71

Hi @Nuffe71 , can you post the debian-based Dockerfile?

gleepwurp avatar Aug 01 '22 14:08 gleepwurp

  1. Download the latest neolink debian version from here
  2. Extract the files to a folder
  3. Get the entrypoint.sh from this same repo and place it in the same folder as the app
  4. Create the Dockerfile (again, use the same folder from step 2)
FROM debian:stable-slim

WORKDIR /usr/local/src/neolink

USER root

RUN apt update -y && apt upgrade -y

RUN apt install -y \
        libgstrtspserver-1.0-0 \
        libgstreamer1.0-0 \
        libgstreamer-plugins-bad1.0-0 \
        gstreamer1.0-plugins-good \
        gstreamer1.0-plugins-bad

RUN apt clean && apt autoremove -y

COPY neolink /usr/local/bin/
RUN chmod +x /usr/local/bin/neolink

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

CMD ["/usr/local/bin/neolink", "rtsp", "--config", "/etc/neolink.toml"]
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8554
  1. docker build . --tag yourownneolink

marcosandremartins avatar Oct 11 '22 09:10 marcosandremartins