[GH-ISSUE #158] "Pkg: Error reading from file" #110

Closed
opened 2026-03-03 16:04:29 +03:00 by kerem · 10 comments
Owner

Originally created by @tamasgal on GitHub (Jan 26, 2019).
Original GitHub issue: https://github.com/mthenw/frontail/issues/158

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.

Originally created by @tamasgal on GitHub (Jan 26, 2019). Original GitHub issue: https://github.com/mthenw/frontail/issues/158 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.
kerem 2026-03-03 16:04:29 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@mthenw commented on GitHub (Jan 30, 2019):

Hey @tamasgal,

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

<!-- gh-comment-id:458831472 --> @mthenw commented on GitHub (Jan 30, 2019): Hey @tamasgal, thanks for creating the issue. I will take a look.
Author
Owner

@mthenw commented on GitHub (Feb 21, 2019):

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

<!-- gh-comment-id:466190408 --> @mthenw commented on GitHub (Feb 21, 2019): I released new version v.4.5.4. Please confirm that it works now.
Author
Owner

@tamasgal commented on GitHub (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?

<!-- gh-comment-id:477196330 --> @tamasgal commented on GitHub (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?
Author
Owner

@mthenw commented on GitHub (Apr 3, 2019):

@tamasgal which OS do you run?

<!-- gh-comment-id:479620585 --> @mthenw commented on GitHub (Apr 3, 2019): @tamasgal which OS do you run?
Author
Owner

@tamasgal commented on GitHub (Apr 3, 2019):

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

<!-- gh-comment-id:479630722 --> @tamasgal commented on GitHub (Apr 3, 2019): CentOS 7. It happens when the process is killed... 🤔
Author
Owner

@tamasgal commented on GitHub (May 21, 2019):

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

<!-- gh-comment-id:494438799 --> @tamasgal commented on GitHub (May 21, 2019): Unfortunately we are still fighting with this issue, even after the latest update on signal handling.
Author
Owner

@mthenw commented on GitHub (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."?

<!-- gh-comment-id:495362547 --> @mthenw commented on GitHub (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."?
Author
Owner

@tamasgal commented on GitHub (May 23, 2019):

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.

<!-- gh-comment-id:495363430 --> @tamasgal commented on GitHub (May 23, 2019): 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.
Author
Owner

@mthenw commented on GitHub (May 29, 2019):

@tamasgal any update?

<!-- gh-comment-id:497099738 --> @mthenw commented on GitHub (May 29, 2019): @tamasgal any update?
Author
Owner

@tamasgal commented on GitHub (May 29, 2019):

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

<!-- gh-comment-id:497100335 --> @tamasgal commented on GitHub (May 29, 2019): Seems to work so far! I will close this...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/frontail#110
No description provided.