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

"Pkg: Error reading from file" #158

Closed
tamasgal opened this issue Jan 26, 2019 · 10 comments
Closed

"Pkg: Error reading from file" #158

tamasgal opened this issue Jan 26, 2019 · 10 comments
Labels

Comments

@tamasgal
Copy link

I am using frontail to monitor the log files coming from the DAQ system of a neutrino detector. We're very glad to have this tiny tool, thanks!

The DAQ system runs on CentOS and I decided to get the self-contained binary, however sometimes when I start frontail, I get the error:

Pkg: Error reading from file.

And the whole package seems to be broken. I then have to download it again (in fact I keep a backup copy and overwrite it regularly as a workaround).

This is probably caused due to the fact that when I run frontail with the --disable-usage-stats, I cannot quit it by pressing the CTRL+C keys, but I have to kill it using kill -9 PID. I guess some files might get corrupted due to this hard shutdown.

@mthenw
Copy link
Owner

mthenw commented Jan 30, 2019

Hey @tamasgal,

thanks for creating the issue. I will take a look.

@mthenw
Copy link
Owner

mthenw commented Feb 21, 2019

I released new version v.4.5.4. Please confirm that it works now.

@tamasgal
Copy link
Author

tamasgal commented Mar 27, 2019

Unfortunately it's not working. When the process is killed, the app image is broken:

> frontail logs/.log –ui-highlight –ui-highlight-preset frontail.json –theme dark -l 10000 -n 200 -p 8082
Pkg: Error reading from file.

Can you reopen it?

@mthenw mthenw reopened this Apr 3, 2019
@mthenw
Copy link
Owner

mthenw commented Apr 3, 2019

@tamasgal which OS do you run?

@tamasgal
Copy link
Author

tamasgal commented Apr 3, 2019

CentOS 7. It happens when the process is killed... 🤔

@tamasgal
Copy link
Author

tamasgal commented May 21, 2019

Unfortunately we are still fighting with this issue, even after the latest update on signal handling.

@mthenw
Copy link
Owner

mthenw commented May 23, 2019

Have the issue changes you reported it in January? I mean are you able to quit frontail with CTRL+C? As I understand the issue is that when you kill the process with kill -9 the next time you try to run it you get an error "Pkg: Error reading from file."?

@tamasgal
Copy link
Author

We are currently evaluating it since it might be that someone copied over an old backup file (which we used in a cronjob to repair it). I'll report back!

FYI: Two days ago I changed to supervisord and now we are managing also the frontail application with that. It sends SIGTERM, before the process was inside a tmux session and when it got killed the package has been damaged.

@mthenw
Copy link
Owner

mthenw commented May 29, 2019

@tamasgal any update?

@tamasgal
Copy link
Author

Seems to work so far! I will close this...

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

No branches or pull requests

2 participants