Skip to content
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

klippy.log empty #594

Closed
legend069 opened this issue Jan 22, 2023 · 6 comments
Closed

klippy.log empty #594

legend069 opened this issue Jan 22, 2023 · 6 comments

Comments

@legend069
Copy link

What happened

using the fluidd web GUI klippy.log is empty, been like that for a while when ever i tried to look at it.

loaded up winscp to take a look and noticed something funny has happened to the log numbering.

image

Client

Fluidd

Browser

Firefox

How to reproduce

several rebooting, and still don't get a log file.

if i open klippy.log1 it looks like it should and has a correct time/date stamp with it.

guess it all started form #516

Additional information

No response

@legend069 legend069 added the bug Something isn't working label Jan 22, 2023
@Arksine Arksine added user help request and removed bug Something isn't working labels Jan 23, 2023
@Arksine
Copy link
Owner

Arksine commented Jan 23, 2023

Moonraker itself should not modify the file names. Without moonraker.log I can't diagnose this, however from the screenshot it appears that some other software is modifying the log files and possibly compressing them.

@legend069
Copy link
Author

sorry, thought i uploaded the logfile.
moonraker(12).log

the only other software i think i have installed i samba,
otherwise it's just the standard klipper/fluidd stuff.

@Arksine
Copy link
Owner

Arksine commented Jan 25, 2023

There isn't anything in the log that stands out other than this:

Unsafe Shutdown Count: 273

When you remove power from the Pi without safely shutting down the OS then strange things can happen, usually as a result of file system corruption. That said, something on your machine is renaming the log files (see the klippy.log.1, moonraker.log.1). There are also compressed files (see the .xz files). If you are using a specific distrubution (such as FluiddPi) then you might want to see assistance in the Fluidd Discord, GitHub, etc.

@legend069
Copy link
Author

legend069 commented Jan 25, 2023

that doesn't explain how at the moment klipper is currently writing logs to the wrong file though?

when the file structure changed in #516
i'm wondering if it failed to write the log file so it tried to create a new one. resulting in several files.

it's going to be alot easier if i just wipe the card and reinstall everything.

@Arksine
Copy link
Owner

Arksine commented Jan 25, 2023

Keep in mind that on your system the update created symbolic links to the existing config and log folders. The underlying file structure wasn't changed. I'm unsure as to why Klipper would create an empty file then log to another, however my suspicion would be that its most likely something to do with the software modifying your log files rather than Moonraker.

Edit: It appears that FluiddPi has enabled log management via logrotate.d for Klipper (and Moonraker). This is most likely what is causing the issue.

@legend069
Copy link
Author

i'll close this issue now, i've wiped the card and started again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants