mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-26 09:35:53 +03:00
[GH-ISSUE #52] List of nodes and streams in web client becomes corrupted (0.3.0) #37
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jochenonline on GitHub (Feb 22, 2013).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/52
I have five machines running. One with the
log.io-serverand alog.io-harvester, four only with alog.io-harvester.When I start the server and afterwards the five harvesters everything looks fine. But after a while (some minutes). The names of the streams and nodes start becoming corrupted:
With time going on things get worse.
Refreshing the browser window does not help. I have to restart the server and sometimes also the harvesters.
Bug, feature or me?
@msmathers commented on GitHub (Feb 22, 2013):
Yikes, could you send me the harvester configuration files that you're using?
@jochenonline commented on GitHub (Feb 22, 2013):
Sure. I have two kinds. The first one is on the server plus one of the clients (#hostname# is replaced by the individual hostname):
This one is on the other three clients:
@CodeMichael commented on GitHub (Mar 1, 2013):
I'm getting something similar, but I noticed the server spitting error messages:
These are from apache logs
@msmathers commented on GitHub (Mar 1, 2013):
I've been unable to reproduce this problem, however I think I see what's going on. When the server receives data from the TCP socket, it casts the payload to a string and immediately processes it. If an inbound message gets chunked into multiple parts, the server will only process the first part with the valid prefix (i.e. +log, +node, etc...) and drop the rest. That would explain the invalid TCP message errors as well as the truncated node names, assuming the harvesters were reconnecting...
I think what I need to do is have the server buffer inbound messages until it hits the delimiter, and THEN process the entire buffer as a single message. I'll work on a patch this weekend, hopefully that will fix this behavior.
@msmathers commented on GitHub (Mar 4, 2013):
I just pushed v0.3.1 to npm, see if that fixes it. Feel free to reopen if behavior continues.
@jochenonline commented on GitHub (Mar 31, 2013):
Sorry for late answer. It works!!!
@Hyvi commented on GitHub (Apr 11, 2013):
0.3.3 the problem also exists.
@jochenonline commented on GitHub (Apr 11, 2013):
Not on my side...
@geek-kb commented on GitHub (Dec 6, 2016):
I'm on 0.3.4 and the problem exists.. any idea how to fix it?
harvester:
logserver:
web_server:
Thanks in advance