Error on setting up Static DHCP

Please follow the below template, it will help us to help you!

Expected Behaviour:

Address is assigned and confirmation appears in blue dialog at top of screen

Actual Behaviour

Address appears to be assigned, but red dialog appears at top of screen with error: "There was a problem applying your settings. Debugging information: PHP error (2): fopen/etc/dnsmasq.d/04-pihole-static-dhcp.conf): failed to open stream: No such file or directory in /var/www/html/admin/scripts/pi-hole/php/savesettings.php:66"

Debug Token:

pp2qbejkvj

Check below file:

less /etc/dnsmasq.d/04-pihole-static-dhcp.conf

There should only be lines that resemble below:

dhcp-host=AA:BB:CC:DD:EE:FF,10.0.0.3,hostname

Does the file have correct permissions (644) and ownership (root/root) ?

pi@noads:~ $ stat /etc/dnsmasq.d/04-pihole-static-dhcp.conf
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)

If not:

sudo touch /etc/dnsmasq.d/04-pihole-static-dhcp.conf

sudo chmod 644 /etc/dnsmasq.d/04-pihole-static-dhcp.conf

sudo chown root:root /etc/dnsmasq.d/04-pihole-static-dhcp.conf

04-pihole-static-dhcp.conf lists the entry appropriately. it looks like my device is also picking it up fine.

stat looks fine as well:

stat /etc/dnsmasq.d/04-pihole-static-dhcp.conf File: /etc/dnsmasq.d/04-pihole-static-dhcp.conf
Size: 57 Blocks: 8 IO Block: 4096 regular file
Device: b302h/45826d Inode: 128293 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)

Can you touch it without errors ?

sudo touch /etc/dnsmasq.d/04-pihole-static-dhcp.conf

Thinking bout disk error etc.

Got same error, worked after i hit save 2 times

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.