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

Error on open file: failed to send packet header: EOF #20

Open
sbengo opened this issue Mar 27, 2018 · 0 comments
Open

Error on open file: failed to send packet header: EOF #20

sbengo opened this issue Mar 27, 2018 · 0 comments

Comments

@sbengo
Copy link
Collaborator

sbengo commented Mar 27, 2018

Hi,

We have detected a strange case when the reader is trying to open a new file.
This device hadn't update its nmon file since 5am. After trying to close it and open the new file generated by rotation (the next day at 00:00), the error following error shows up:

Error on Remote Reader :failed to send packet header: EOF

With this error, the open reader becomes null so it won't gather any data until (not checked) until the next file rotation.

Seems related with:

Log entries:

...
time="2018-03-27 00:00:17" level=info msg="[*nmon.Server] [NMONDEVICE]Init gather cycle for device NMONDEVICE"
time="2018-03-27 00:00:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: Import Nmon data on remote device (NMONDEVICE) "
time="2018-03-27 00:00:17" level=info msg="UpdateContent: Got new 0 lines from NmonFile "
time="2018-03-27 00:00:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: this import has generated 0 Datapoints"
time="2018-03-27 00:00:17" level=info msg="STATS Device :  polling took [0.000102 seconds] "
time="2018-03-27 00:00:17" level=info msg="STATS Device: last scan send took [0.000000 seconds]"
time="2018-03-27 00:00:17" level=info msg="STATS INFLUX: influx send took [0.000001 seconds]"
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]Init gather cycle for device NMONDEVICE"
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: Import Nmon data on remote device (NMONDEVICE) "
time="2018-03-27 00:01:17" level=info msg="Detected Nmon File change OLD [<PATH>/NMONDEVICE_180326_0000.nmon] NEW [<PATH>NMONDEVICE_180327_0000.nmon]"
time="2018-03-27 00:01:17" level=info msg="UpdateContent: Got new 0 lines from NmonFile "
time="2018-03-27 00:01:17" level=error msg="Error on Remote Reader :failed to send packet header: EOF"
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: File  <PATH>/NMONDEVICE_180327_0000.nmon has been reopened after change detected "
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: Process --pending Buffer before load data again "
time="2018-03-27 00:01:17" level=info msg="ProcessChunk: Decoding Chunk for Timestamp 2018-03-26 05:06:16 +0200 CEST  with 57 Elements "
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: Reset remaining  (58) lines in buffer"
time="2018-03-27 00:01:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: File  <PATH>/NMONDEVICE_180327_0000.nmon should be rescanned for new sections/columns "
time="2018-03-27 00:01:17" level=error msg="[*nmon.Server] [NMONDEVICE]ImportData: Error on Section Initializations after reopen file :Trying to read data without open reader "
time="2018-03-27 00:01:17" level=error msg="[*nmon.Server] [NMONDEVICE]Error in  import Nmon Data from Device <UUID>: ERROR: Trying to read data without open reader"
time="2018-03-27 00:01:17" level=info msg="STATS Device :  polling took [0.000000 seconds] "
time="2018-03-27 00:01:17" level=info msg="STATS Device: last scan send took [0.000000 seconds]"
time="2018-03-27 00:01:17" level=info msg="STATS INFLUX: influx send took [0.000000 seconds]"
time="2018-03-27 00:02:17" level=info msg="[*nmon.Server] [NMONDEVICE]Init gather cycle for device NMONDEVICE"
time="2018-03-27 00:02:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: Import Nmon data on remote device (NMONDEVICE) "
time="2018-03-27 00:02:17" level=warning msg="Trying to read data without open reader"
time="2018-03-27 00:02:17" level=info msg="UpdateContent: Got new 0 lines from NmonFile "
time="2018-03-27 00:02:17" level=info msg="[*nmon.Server] [NMONDEVICE]ImportData: this import has generated 0 Datapoints"
time="2018-03-27 00:02:17" level=info msg="STATS Device :  polling took [0.000206 seconds] "
time="2018-03-27 00:02:17" level=info msg="STATS Device: last scan send took [0.000000 seconds]"
time="2018-03-27 00:02:17" level=info msg="STATS INFLUX: influx send took [0.000001 seconds]"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant