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
Question: Error: IoError(Os { code: 21, kind: Other, message: "No such file or directory" }) in Docker #53
Comments
The docker is trying to read the file |
Googling around for info on the container station I think you may need to use a shared folder with the neolink.conf in and set it up as shown in here. I am not an expert on this though. |
If you use container station though is it not being hosted externally? I don't expect this method to be able to connect to your camera on your local LAN |
Perhaps I am misunderstanding container station though |
Oh I see wiki on QNAP suggests you have a box running on your local LAN ok I think I understand now. But I think your issues if that you have not got the config setup for mounting, please correct me if this is not the case |
Yes I have the modified neolink.conf file that I thought I manually copied to the /etc folder. I understand a bit about linux, but the file structure sometimes gets me. |
So you've manually put it inside the container at /etc/neolink.conf? If that's the case you don't need
Since this line of code is saying: Find /neolink.conf outside the container and put it inside the container at /etc/neolink.conf I think that you were getting errors because it wasn't able to find /neolink.conf outside the container |
I guess I didn't put it manually in the container no. Just in the filesystem as I thought it would copy it over with that command. I think I was also getting the.toml and .conf confused with each other. I dont actually have a .conf file anywhere that I have created or modified, only the neolink.toml. |
I placed my modified neolink.toml config file in the Qnap's file dir /usr/local/bin/neolink (because it looks like the command is looking there for the file to copy over to the container file structure /etc/). Maybe I am just not understanding the file structure properly? |
Mind you I'm not a docker expert. I was just reading the manual on the -v switch. Perhaps someone who is an expert can comment. |
I think I got it figured out for the most part and the container is actually running now. It was having an issue with -v switch and pulling the config from the right path. Thanks for your help in at least pointing me in the right direction, I appreciate it! |
I placed the modified .toml config in root and used the following command to launch: docker run -p 8554:8554 --restart=on-failure --volume=$PWD/neolink.toml:/etc/neolink.toml thirtythreeforty/neolink |
…feature/pir Rework PIR data and fetch status
Describe the bug
If anyone can assist with this I would greatly appreciate it. I am very green when it comes to Docker and Containers, but am trying to learn. I just cannot find any help with this anywhere. When using the following CMD to load the image to a container using Portainer and Container Station on QNAP (even directly via SSH):
docker run --rm -p 9554:8554 -v /neolink.conf:/etc/neolink.conf mr2jzgte/neolink
or
docker run --rm -p 9554:8554 -v /neolink.conf:/etc/neolink.conf thirtythreeforty/neolink
or
docker run
-p 8554:8554
--restart=on-failure
--volume=$PWD/config.toml:/etc/neolink.toml
thirtythreeforty/neolink
I receive the following errors:
Error: IoError(Os { code: 21, kind: Other, message: "Is a directory" })
or
Error: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
To Reproduce
Expected behavior
For the Docker image to load into the container and run properly without any errors.
Versions
Neolink software: latest
Reolink camera model and firmware: D800 with latest firmware
The text was updated successfully, but these errors were encountered: