-
Notifications
You must be signed in to change notification settings - Fork 79
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
Cannot read property 'slice' of undefined #206
Comments
Hey @madsbredholt! Thanks for letting us know about this. I'm debugging this issue right away. Can you let me know how to exactly replicate this bug? What did you do and what is your configuration when this started happening? Thanks! 😄 |
Hi,
I am not sure how to replicate it.
I have not been able to figure out how to reproduce.
I have attached our docker stack file and logagent config files.
Regards
Mads
…________________________________
Fra: Adnan Rahić <[email protected]>
Sendt: tirsdag 3. mars 2020 10:49
Til: sematext/logagent-js <[email protected]>
Kopi: Mads bredholt <[email protected]>; Mention <[email protected]>
Emne: Re: [sematext/logagent-js] Cannot read property 'slice' of undefined (#206)
Hey @madsbredholt<https://github.com/madsbredholt>! Thanks for letting us know about this. I'm debugging this issue right away. Can you let me know how to exactly replicate this bug? What did you do and what is your configuration when this started happening? Thanks! 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#206?email_source=notifications&email_token=AB47WFET2VLHRVTD3SBFUQDRFTHCLA5CNFSM4K7SRDQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENSZTYY#issuecomment-593861091>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB47WFD7DQQDRRCUUWQTZK3RFTHCLANCNFSM4K7SRDQQ>.
|
Okay. I've tested the latest release with Docker Compose and running it with Docker from the command line. I'll take a look at your specific Docker Stack configuration, and get back to you. |
Hey @madsbredholt. I've tested every single case with your specific configuration and did not manage to reproduce the issue. However, I did manage to find the reason why your configuration was not shipping parsed files from the host. PR #207 fixes it. I'll let you know once the fix is released. |
@adnanrahic the original error is probably a problem reading the log data from docker socket. ‘docker-loghose/lib/parser.js:77:37’ - Did it happen while ‘dockerd’ service made a restart? Try to restart dockerd to reproduce it. |
Ok,
Thanks
Regards Mads
…________________________________
Fra: Adnan Rahić <[email protected]>
Sendt: tirsdag 3. mars 2020 17:47
Til: sematext/logagent-js <[email protected]>
Kopi: Mads bredholt <[email protected]>; Mention <[email protected]>
Emne: Re: [sematext/logagent-js] Cannot read property 'slice' of undefined (#206)
Hey @madsbredholt<https://github.com/madsbredholt>. I've tested every single case with your specific configuration and did not manage to reproduce the issue.
However, I did manage to find the reason why your configuration was not shipping parsed files from the host. PR #207<#207> fixes it. I'll let you know once the fix is released.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#206?email_source=notifications&email_token=AB47WFDLN3VW5KIDZFDHO7LRFUYA7A5CNFSM4K7SRDQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUHYPQ#issuecomment-594050110>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB47WFC6DMTRHH62HBZLLB3RFUYA7ANCNFSM4K7SRDQQ>.
|
We will try and get back to you.
Regards
Mads
…________________________________
Fra: Megastef <[email protected]>
Sendt: tirsdag 3. mars 2020 23:22
Til: sematext/logagent-js <[email protected]>
Kopi: Mads bredholt <[email protected]>; Mention <[email protected]>
Emne: Re: [sematext/logagent-js] Cannot read property 'slice' of undefined (#206)
@adnanrahic<https://github.com/adnanrahic> the original error is probably a problem reading the log data from docker socket. ‘docker-loghose/lib/parser.js:77:37’ - Did it happen while ‘docherd’ service made a restart? Try to restart dockerd to reproduce it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#206?email_source=notifications&email_token=AB47WFE44FD6VUCBS6KMUZ3RFV7KZA5CNFSM4K7SRDQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENVMXZA#issuecomment-594201572>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB47WFHSITLDYAQMNYMRLNLRFV7KZANCNFSM4K7SRDQQ>.
|
Sure, I'll wait for that. In the meantime, I've pushed version 3.0.22 that fixes your other issue, mentioned through email. 😄 |
@madsbredholt can we assume this is no longer an issue for you? |
We have not had the opportunity to look at it for a while.
We will let you know if it occurs again 🙂
Regards
Mads
…________________________________
Fra: Otis Gospodnetić <[email protected]>
Sendt: tirsdag 5. mai 2020 22:51
Til: sematext/logagent-js <[email protected]>
Kopi: Mads bredholt <[email protected]>; Mention <[email protected]>
Emne: Re: [sematext/logagent-js] Cannot read property 'slice' of undefined (#206)
@madsbredholt<https://github.com/madsbredholt> can we assume this is no longer an issue for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#206 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB47WFARNPRHJUBK2OAPUA3RQB36PANCNFSM4K7SRDQQ>.
|
We get the following in our logs after having upgraded from 2.0.184 to 3.0.21.
2020-03-02T11:05:13.016Z v3.0.21 pid[6] Container 4c41c2667758bd56da960ff10957c6c4575e24591f2cb1edcf9b5aafb7215ce6 /tmp-xb-backup setting LOGSENE_ENABLED=true
Please contact [email protected] to report the error:
UncaughtException:TypeError: Cannot read property 'slice' of undefined
TypeError: Cannot read property 'slice' of undefined
at BufferList.shallowSlice (/usr/local/lib/node_modules/@sematext/logagent/node_modules/bl/bl.js:210:29)
at DestroyableTransform. (/usr/local/lib/node_modules/@sematext/logagent/node_modules/docker-loghose/lib/parser.js:77:37)
at Array.forEach ()
at DestroyableTransform.publish (/usr/local/lib/node_modules/@sematext/logagent/node_modules/docker-loghose/lib/parser.js:75:13)
at DestroyableTransform.parse [as _transform] (/usr/local/lib/node_modules/@sematext/logagent/node_modules/docker-loghose/lib/parser.js:67:10)
at DestroyableTransform.Transform._read (/usr/local/lib/node_modules/@sematext/logagent/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/usr/local/lib/node_modules/@sematext/logagent/node_modules/readable-stream/lib/_stream_transform.js:172:83)
at doWrite (/usr/local/lib/node_modules/@sematext/logagent/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/usr/local/lib/node_modules/@sematext/logagent/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at DestroyableTransform.Writable.write (/usr/local/lib/node_modules/@sematext/logagent/node_modules/readable-stream/lib/_stream_writable.js:334:11)
The text was updated successfully, but these errors were encountered: