dnschef icon indicating copy to clipboard operation
dnschef copied to clipboard

Failed to open log file for writing,

Open kolet opened this issue 8 years ago • 9 comments

root@scw-8bceb9:~/down/dnschef# ./dnschef.py -i 10.1.20.92 --fakeip xx.xx.xx.xx --logfile=1 _ _ __ | | version 0.3 | | / _| __| |_ __ ___ ___| |__ ___| |_ / _ | '_ / |/ | ' \ / _ \ | | (| | | | _ \ (| | | | / | _,|| ||/_|| ||__|_| [email protected]

[] DNSChef started on interface: 10.1.20.92 [] Using the following nameservers: 8.8.8.8 [*] Cooking all A replies to point to xx.xx.xx.xx [!] Failed to open log file for writing. `

first time using this python script everything work great. BUT when restarting my server i receive this error

the log file show this [08/Feb/2017:14:01:48 +0000] DNSChef is active.

i tried to remove the dnschef folder and download it from the beging i am receiving the same error.

kolet avatar Feb 08 '17 14:02 kolet

same here, but in my case i throws this exception by first start. version 0.3

7c avatar Feb 21 '17 18:02 7c

To sort this out: did you check whether there was a different process running on the IP/port combination you tried to start DNSChef on? IIRC the "failed to open log file" error pops up in this case as well.

0x4d4c avatar Mar 06 '17 18:03 0x4d4c

actualy i did, i closed all proccess ,checked that no one of the port were taken. the only thing to make it work is to reset the whole server..

kolet avatar Mar 09 '17 14:03 kolet

This is a gimmick, bad error reporting. What's actually happening is IOError code 13 (permission denied) is thrown on an attempt to bind to the default port 53 which requires the root permissions

emirotin avatar Jun 16 '17 15:06 emirotin

i have same error even i start with root? any solution for that?

dpicollege avatar Jan 08 '18 11:01 dpicollege

Same problem here. Nothing's running on port 53, but I get "Failed to open log file for writing".

pkosmala avatar Oct 25 '18 19:10 pkosmala

In my case, it was systemd-resolved on port 53. I stopped it and dnschef started working as usual.

https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu

GrrrDog avatar Jan 25 '19 11:01 GrrrDog