-
Notifications
You must be signed in to change notification settings - Fork 78
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
jobber refuses to load jobs due to odd logging file format issue #240
Comments
Any chance we could move this forward? I found out that the reason for this was a copy&paste issue for 2 jobber configurations sharing the same log-path. I understand that this is a configuration issue, but beside that really can happen, the second point is, that clearing the log ( I would really love to have this just a little more robust / warning alike. Any chance of a discussion about this? |
Yeah. I’ll look into it this weekend.
… On Apr 3, 2019, at 1:35 PM, Eugen Mayer ***@***.***> wrote:
Any chance we could move this forward? I found out that the reason for this was a copy&paste issue for 2 jobber configurations sharing the same log-path.
I understand that this is a configuration issue, but beside that really can happen, the second point is, that clearing the log ( echo "" > logfile ) makes the file broken too.
I would really love to have this just a little more robust / warning alike. Any chance of a discussion about this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@dshearer thank you a lot, let me know if you need anything |
I agree with your suggestion. Unfortunately I'm sick, so I may not make much progress this weekend. |
No worries, i wish you to get better soon. |
The doctors resuscitated me just so I could work on this bug. |
Back from the dead - that is real bad ass :) |
I guess this one died? :) |
Lol... Sorry. I’ll get to it.
… On Feb 22, 2020, at 11:19 PM, Eugen Mayer ***@***.***> wrote:
I guess this one died? :)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
i suddently happen to notice that no jobber-jobs are running and also
jobber list
does not list any.Searching for quiet a while a happen to notice that
jobber reload
fails with
Call to Jobber failed: Invalid log file: /mnt/log/dwcore/cron-history: size is less than entry size
This was a log file before, and even if i do
echo "" > /mnt/log/dwcore/cron-history
to flush the logfile, i get the same error message. Only if rm the file entirely, i can reload the jobs and let them run.
My jobs log config looks like this:
I am currently not even able to explain what this error message actually mean, but for sure it should not road-block running jobber if the log-file does have an "unexpected EOL" or even "a blank line" or whatever it might actually be
is that actually supposed to happen / is by design?
Version
tried 1.3.2 and 1.3.4
Suggestion
If that is by design, i would at least try to start a discussion if that makes sense.
I suggest, never fail to load or run jobs because of the logfile being missformatted, non existing or even like in this case ( i do not even no ) not being of the "right size"? Always load the jobs, always run them
Workarround
I could ensure this does not happen when remove the runLog configuration entirely, which i did
The text was updated successfully, but these errors were encountered: