-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Restart FTL #12
Comments
So far FLT goes offline after 8h uptime |
Check the log to see if you can figure out why it's crashing. |
Nothing about the crash in the pihole-FTL.log |
also a debug log may be useful ... i have been running FTL since the start and havent seen this issue myself |
I appear to have grown this issue as well Debug EDIT manual start results in the following
and yes that log file is present maybe a permissions issue ? |
Do you have the .PID or .PORT files? |
ran pihole -r on my pi seems to have fixed will report back tonight as to whether it returns... on my VPS yes in |
Thanks, there's a little debate that we are having with the init daemon. If we want one that will do a lot of the work to automatically restart on failure, then that means SystemD. But that also causes problems for old SysV inits and Docker... So trying to find the best solution to handling dead daemons. (Would be nice if it would just clean up it's PID when it dies, but that's not quite as easy to do.) |
What OS and release versions are you both using? |
raspbian jessie lite |
Can you post the contents of your pihole-FTL.log, either here or on Pastebin?
|
And @technicalpyro instead of calling the daemon directly, try |
I am using raspbian Jessie on my pi and Debian x64 Jessie on the vps If it dies again I didn't check this morning I will attempt the restart using the recommended command |
I don't like the idea of being able to restart If there is nothing in the log, I can provide detailed steps on how you can help me debugging |
mine has gone off again i am running back into work but post instructions ere and i will be more than happy to assist in the debug |
As you will see in the following, we have to do some preparations first to ensure you have a proper debugging environment. Once you are used to it, you can skip most of the steps and debugging is actually quite easy and gives you insights into how software works.
Hopefully, this gives enough information so we can do proper debugging. |
i remember screen from ages ago when i ran a shell hosting company for irc bots ... ah the good old days. All commands completed successfully and i will report back when i have results Thanks for the thorough explanation i love learning so this is awesome UPDATE 0800 CST (UTC -6) no change yet but im off to work so will check again in approx 10 hours |
Addendum: Yesterday evening I have identified a potential problem in the garbage collection thread. I will have a look at this as soon as I get home today. |
i will update and see if it returns |
installed update the forward destinations over time graph seems to be broken i am running the debug again so we will see if anything funky pops up there console view of the web admin page has the following error
|
We have seen a similar error before (not sure about the exact line numbers). This was on a system that was behaving oddly overall. After restarting the particular Pi, the problem was nor reproducible any longer. Could you tell me if there is any output if you do
You don't have to post the whole thing here if there is meaningful output for both objects, like:
Note that you have to be logged in to the Pi-hole dashboard with the browser you use for trying (if you have a password set). |
will not reboot the device until all troubleshooting on this is done ... would rather it work for everyone than for just me EDIT potentially worth noting the same is occurring with the same response from the API link on my VPS |
Yeah, we definitely have to look for why that happens for you but we haven't seen it. Since you are still running Stop
Please provide the output of the following commands:
You can resume |
|
VPS restart seemed to fix it |
Ah, okak, that perfectly explains anything:
The version of You have:
In contrast, I have (up-to-date version of
Note that an update cannot update the running process of
an already running instance of |
OK thought i had killed everything befgore my last update but appears i didn't. Running Pihole -up and pihole -r to ensure im up to date here Definitely agree its a version issue now i am working out how to get my pi to do as i ask and run the latest
looks like its time for a fresh install |
Maybe you have a version of
and delete the file manually ( |
i did find one in the older working dir from the start i ended up completely reinstalling after running
with everything we have been doing it doesnt surprise me i managed to get a conflict |
Once you remove |
Please attempt the screen and see if the issue persists. I know it may or may not but that was the solution when this started happening to me although mine was never on a schedule so perhaps the nightly flush has something to do with it is that a cron job you added or just the default log end of day turnover ? |
Yep, I've got another session going and we'll see how that goes.
As it's a feature of DietPi, it's the primary reason why I think this issue is occurring. |
Ahhh ok I've never used dietpi |
I never had a dead Maybe you should try to detach explicitly this time ( |
Screen worked as expected (I detached explicitly every time, but who knows what silly thing I did to break it), and FTL doesn't appear to have crashed - but dashboard shows no data except for 4 queries today, and my count of domains being blocked.
It's 12.30am, so back to sleep for me. Hopefully this helps you in the meantime! |
I have Sat, 4.30pm, so let's take a look ;-) What I see in your debugging information makes only little sense... Your observation is correct: Please add the result of
and upload the recent part of the
|
Phone buzzed, and I take ages to fall back to sleep, so let's do this: FTL log is empty - I've never seen anything in it tbh, and it's likely that DietPi is flushing it hourly.
|
That is really odd ... Anyhow, since you are running |
I also see that there is no
If |
That's right, it doesn't get rotated because the primary Pi-hole log is cleared at midnight. I've ran that command and continued within I could use the "full" logging option ( |
Oh ... I didn't know about that:
I'm not sure what happens to Nevertheless, I cannot see how even the Pi-hole dashboard in And: Put your phone into "do-not-disturb-me" mode :-) EDIT Switching to |
I'm certain the Pi-hole log is an exception to the hour rule. @Fourdee, could you confirm please? |
DietPi-RAMlog preserves existing file permissions in So unless permissions have been changed manually, its untouched by DietPi.
The system is not borked. Closing the file handle once write is completed, then reopening it when needed again would be the correct method.
C++ implementation example, of opening a file in write mode, then closing it after completion:
|
@Fourdee I wanted to summon you only later, when I improved on the log writing, but you found your way here anyway - maybe even better :-) |
@Tntdruid seeing as we have happened upon this second similar issue are you by any chance using DietPi? EDIT just re-read the top portion of this one nevermind hope this info gives you so more places to look and resolve your issue |
@Fourdee will do that 😄 (#12 (comment)) |
Fair enough, so it was @WaLLy3K that summoned you |
would this affect the rolling log feature as well ? |
Rolling log will not work without @pi-hole/dashboard We have to keep that in mind when bug reports about not seeing the rolling window are coming in... |
|
moved to #17 |
Looks like FTL has been running for two days now, so I'd say my issue is sorted! :)
|
@WaLLy3K although I'm not in favor of magically self-fixing errors ... They are just unpredictable |
Closing due to inactivity. Please open a new issue when you encounter new/the same issue, since this one is already quite long and chaotic. |
There should be away to restart it via web ui like you can whit DNS, FTL is always offline after like 12h for me.
The text was updated successfully, but these errors were encountered: