mathewbishop / fiberglass

FiberGlass - ISC DHCP Server Interface
MIT License
8 stars 0 forks source link

cant edit config file anymore #21

Open tiigaaa opened 1 year ago

tiigaaa commented 1 year ago

Hello,

after changig the /etc/dhcp/dhcpd.conf I press the button "save config" and then i get this error.

DHCP Config Syntax Validation Internet Systems Consortium DHCP Server 4.4.3-P1 Copyright 2004-2022 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Can't open ./syntax_verify_config: Permission denied If you think you have received this message due to a bug rather than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug These pages explain the proper process and the information we find helpful for debugging. exiting.

Please can you help me? Thanks

mathewbishop commented 1 year ago

Hi @tiigaaa!

I will try to point you in the right direction!

I notice in the error message you get here, it says:

Can't open ./syntax_verify_config: Permission denied

This suggests an issue with the linux user permissions; it seems like the linux user that is running fiberglass and attempting to save the DHCP config file does not have permissions to run/open the ./syntax_verify_config file.

So you'll want to look into the linux users that you're using and make sure those users have proper permissions. One thing to note, you probably want to install fiberglass as root; if you didn't, that may be causing a permissions issue here.


Another hypothesis: When you save a DHCP config file in fiberglass, it writes it to that file named syntax_verify_config so that it can run /usr/sbin/dhcpd -t -cf ./syntax_verify_config against it to check for DHCP config syntax errors.

It appears that perhaps /usr/sbin/dhcpd does not have permission to open the syntax_verify_config file when it tries to run against it. This could also be related to the linux user that is running fiberglass, as that is probably determining which user writes the syntax_verify_config file, and therefore that file's permissions.



Hope this helps! My apologies, but I don't currently have a lot of resources to devote to support on this project.

tiigaaa commented 1 year ago

hi, many thanks i will try this today, and report back :)

tiigaaa commented 1 year ago

HI again,

i have done chmod 777 image

For me it seems that he is ablte to write the "syntax_verify_config file but then it stucks. image

The file /etc/dhcp/dhcpd.conf is also 777 image

I also have restartet the DHCP Server over the fiberglass GUI, and get this back POST /dhcp_start_stop_restart 200 3149.587 ms - 168 GET /dhcp_start_stop_restart?v_ajax 200 16.952 ms - 2494

After "POST /dhcp_config_save I just get the error, and nothing in the log. image

But im still not able to edit the config file over the fiberglass gui. > I have also tried witrh glass, same error.

BR, THANKS :)

tiigaaa commented 11 months ago

Is there anything i can do to get this working?

mathewbishop commented 11 months ago

Hi @tiigaaa,

I notice in one of your screenshots that there is an error no such file or directory, open '/var/lib/dhcp/dhcp6.leases'. Are you trying to edit the v6 config file? If so, it looks like maybe the file name (dhcp6.leases) that fiberglass expects to edit isn't there?

I apologize, but I don't currently have the time/resources to devote to this. I cannot guarantee any troubleshooting help or support and may be slow to respond.

Sorry I cannot be of more assistance! If you find the problem and want to report back, feel free!

Thanks