neolink icon indicating copy to clipboard operation
neolink copied to clipboard

Docker Compose directory error

Open NWalledge opened this issue 2 years ago • 6 comments

Describe the bug

root@Neolink:/# docker-compose up Starting e1ba3a1f7135_neolink ... done Attaching to e1ba3a1f7135_neolink e1ba3a1f7135_neolink | [2022-05-19T10:09:55Z INFO neolink] Neolink 0.4.0 (unknown commit) release e1ba3a1f7135_neolink | Error: Failed to read "/etc/neolink.toml" e1ba3a1f7135_neolink | e1ba3a1f7135_neolink | Caused by: e1ba3a1f7135_neolink | Is a directory (os error 21) root@Neolink:/# ^C

Currently getting this error

To Reproduce Steps to reproduce the behavior. Example: Create Neolink docker-compose Start docker-compose

Expected behavior It to work

Versions NVR software: Neolink software: Reolink camera model and firmware:

NWalledge avatar May 19 '22 10:05 NWalledge

You need to provide it with a config file mounted in the right place. There's an example config file in the repo.

QuantumEntangledAndy avatar May 19 '22 11:05 QuantumEntangledAndy

In the docker-compose file you've set a w rong local file path:

version: "2"
services:
  neolink:
    image: thirtythreeforty/neolink
    container_name: neolink
    ports:
      - 8554:8554
    volumes:
      - >>>WRITE HERE THE PATH TO YOUR CONFIGON YOUR LOCAL MACHINE<<<:/etc/neolink.toml
    restart: unless-stopped

abstract-entity avatar May 23 '22 16:05 abstract-entity

Still got the same error :(

NWalledge avatar May 23 '22 18:05 NWalledge

@NWalledge perhaps you could post your docker compose file for us any messages you get when you run docker-compose up

QuantumEntangledAndy avatar May 24 '22 00:05 QuantumEntangledAndy

@NWalledge I guess you map the directory containing the file instead of the link to the file ?

e1ba3a1f7135_neolink | Is a directory (os error 21)

Be sure to have something like that, pointing directly to the file adress, for each side:

- ./neolink.toml:/etc/neolink.toml

abstract-entity avatar May 24 '22 07:05 abstract-entity

I had the same issue. My docker-compose hat the following as a volume:

config.toml:/etc/neolink.toml

After changing it to the full path it worked perfectly.

D:\Library\Dokumente\SmartHome\Reolink\config.toml:/etc/neolink.toml

JayReturns avatar Apr 17 '23 06:04 JayReturns