Skip to main content
Topic: Issue with package dnscrypt-proxy-openrc (Read 881 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Issue with package dnscrypt-proxy-openrc

So recently I installed the following two packages dnscrypt-proxy and dnscrypt-proxy-openrc.
I was unable to even start the dnscrypt-proxy service.
The first issue I ran into was the following, I tried to start the service with the following command:
rc-service dnscrypt-proxy start
And got the following error:

 * checkpath: owner `dnscrypt-proxy:dnscrypt-proxy' not found
 * checkpath: owner `dnscrypt-proxy:dnscrypt-proxy' not found
 * ERROR: dnscrypt-proxy failed to start

I used the debug flag, and eventually found out that the issue was caused by this specific script that comes with the dnscrypt-proxy-openrc package, namely: /etc/init.d/dnscrypt-proxy. The line 7 causes the problem:
command_user="${DNSCRYPT_PROXY_USER:-dnscrypt-proxy}:${DNSCRYPT_PROXY_GROUP:-dnscrypt-proxy}"
This ends up causing the problem just 10 lines below (lines 18 and 19):

checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${RC_SVCNAME}"
checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${RC_SVCNAME}"

Since the dnscrypt-proxy user and group don't exist, the error occurs, changing line 7 to the following, fixes the first issue:
command_user="${DNSCRYPT_PROXY_USER:-dnscrypt}:${DNSCRYPT_PROXY_GROUP:-dnscrypt}"

This wasn't the end of my trouble, because when the service would start, it would immediately shut off, since port 53 was already taken up by connmand, so I ended up uninstalling it, but that's not an issue with the package, but my setup.

I'm not sure where to take this issue and try to get it fixed, I'm also not sure if my fix is even proper because I'm very new to OpenRC. I'm new to this forum as well, so I don't know if this is where I'm supposed to report these kinds of issues, if I'm supposed to post this somewhere else, like the mailing list, please tell me, and I'll do it there.

Re: Issue with package dnscrypt-proxy-openrc

Reply #1
I had the same issue few months ago when I installed dnscrypt. 
I just couldn't get the service to run. So I uninstalled dnscrypt-proxy-openrc, I don't need it.

I jut start the program from :
/etc/local.d/myservicescript.start

Code: [Select]
/usr/bin/dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml &

This is not ideal I suppose, but since I'm a noobish user, I take whatever works. You may want to wait someones answer for the proper way to do this.