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

Absolute paths are being appended together causing an error. #1244

Open
DeanRM opened this issue Feb 27, 2025 · 1 comment
Open

Absolute paths are being appended together causing an error. #1244

DeanRM opened this issue Feb 27, 2025 · 1 comment
Assignees

Comments

@DeanRM
Copy link

DeanRM commented Feb 27, 2025

Describe the bug
Certain docker commands are appending two container volume paths together causing an error.

To Reproduce
Unbound: v1.22.0
volumes:

  • /opt/unbound:/opt/unbound/etc/unbound
  • /opt/log:/var/log/unbound:rw

docker inspect unbound | grep -A 15 "Mounts"
"Mounts": [
{
"Type": "bind",
"Source": "/opt/unbound",
"Destination": "/opt/unbound/etc/unbound",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/log",
"Destination": "/var/log/unbound",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"

Expected behavior
I expect the checkconf to use the absolute path given.

Error messages
Input: docker exec -it unbound unbound-checkconf /opt/unbound/etc/unbound/unbound.conf
Output: /opt/unbound/etc/unbound/var/log/unbound: No such file or directory
[1740683346] unbound-checkconf[122:0] fatal error: logfile directory does not exist

System:

  • Unbound version: v1.22.0
  • OS: Debian GNU/Linux 12 (bookworm)
  • Docker version 20.10.24+dfsg1, build 297e128
  • unbound -V output: [1740685756] unbound[688:0] notice: Start of unbound 1.22.0.

Additional information
Add any other information that you may have gathered about the issue here.

@gthess gthess self-assigned this Feb 28, 2025
@gthess
Copy link
Member

gthess commented Feb 28, 2025

This seems like chroot configuration, in that case Unbound (unbound-checkconf) would want to see that the actual logging directory does exist.
Could you share your configuration?

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