Removing chroot from unbound breaks unbound-checkconf

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sat Sep 10, 2022 5:50    Post subject: Removing chroot from unbound breaks unbound-checkconf Reply with quote
Dear tatsuya46:
(https://forum.dd-wrt.com/phpBB2/profile_sec.php?mode=viewprofile&u=76801)

Would like to comment about:

#7584 (removing chroot from unbound breaks "unbound-checkconf") – DD-WRT
https://svn.dd-wrt.com/ticket/7584

I commented out "chroot" clause in my /jffs/etc/unbound.conf, and unbound-checkconf didn't report any errors! I have been using this unbound.conf for months.
Code:
# grep chroot /jffs/etc/unbound.conf
# chroot: ""
# unbound-checkconf /jffs/etc/unbound.conf
unbound-checkconf: no errors in /jffs/etc/unbound.conf

Could it be something else? White spaces? Incomplete quotation marks? Bad commas?

Mind to attach your unbound.conf? I don't see it in the ticket....

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sat Sep 10, 2022 13:45    Post subject: Reply with quote
Quote:
root@DD-WRT:/jffs/etc# grep chroot /jffs/etc/unbound.conf
# chroot: ""

root@DD-WRT:/jffs/etc# unbound-checkconf /jffs/etc/unbound.conf
/tmp/jffs/etc/: No such file or directory
[1662796337] unbound-checkconf[18022:0] fatal error: bad chdir directory

Did you notice the difference in the 2 paths. The one with error was "/tmp/..."!

Somehow unbound-checkconf was not using the path+file you specified?


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum