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

Local Volume with conf fails entrypoint.sh #20

Open
jimusik opened this issue Apr 22, 2021 · 3 comments
Open

Local Volume with conf fails entrypoint.sh #20

jimusik opened this issue Apr 22, 2021 · 3 comments

Comments

@jimusik
Copy link

jimusik commented Apr 22, 2021

Maybe I'm missing something but I'm running a Docker with the instructions:

docker run -dt \
  --name nxfilter \
  -v nxfilter-conf:/nxfilter/conf \
  -v nxfilter-log:/nxfilter/log \
  -v nxfilter-db:/nxfilter/db \
  -p 80:80 -p 443:443 -p 53:53/udp \
  -p 19002-19004:19002-19004 \
  packetworks/nxfilter-base:latest

The docker crashes when it tries to "cp -a /nxfilter/conf-default/. /nxfilter/conf/". My work around is to mount it with a modified "conf" folder - copy the files and change the volume. If I run the docker and get a bash prompt, there's no /nxfilter/conf-default loaded. Am I missing something?

Thanks.

p.s. for full clarity I'm running the docker on Synology through the web-gui - I have not tried to compose using an SSH as I am able to launch it successfully with my work around.

@cron410
Copy link
Member

cron410 commented Apr 26, 2021

Appears NXfilter no longer includes the conf-default directory. The offending lines have been removed from entrypoint.sh and image test passed. Please let me know how it works out for you.

@jimusik
Copy link
Author

jimusik commented May 31, 2021

@cron410 This did not seem to fix the issue. Now the conf folder fails to get the files from the zip folder. I'll see if I can reverse engineer what you did here but I hope it's as easy as just copying those files early in the process to the local volume. For now, my work around is to fill the conf file from the zip off the website and the process works. It's bombing with a null error related I must assume to not having files in the local conf folder.

@cron410
Copy link
Member

cron410 commented Jun 28, 2021

So I just ran your exact Docker Run command on a fresh Ubuntu Docker host and it created it's own config and had no issues. Since I do not have Synology at my disposal, there's not much I can do. I can help flesh out any ideas you have to fix it if that helps, I'm just not very familiar with Synology's version of Docker.

Edit:
Here's a screenshot.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants