-
Notifications
You must be signed in to change notification settings - Fork 277
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
[bug]: Unexplained restart in standalone mode #1017
Comments
|
Ok so the last restart happened at 11h30 today:
I don't have a |
panic when writing wal. I'll try to reproduce it. |
@stone1100 Awesome. Let me know if you need anything or need me to test something. |
@NetForces If write some data before current time? |
@stone1100 Yes this happens in my scenario as if a sensor was for some reason not able to send a data point (Wi-Fi not available or turned-off), it will save that data point so that it is transmitted later on with the timestamp in the past. For this, I use the x method. For example: w.AddPoint(context.TODO(), api.NewPoint("co2").
AddTag("sensorUUID", t.UUID).
AddField(api.NewLast("co2", float64(t.CO2))).SetTimestamp(sensorDatapointTimestamp)) Where |
Forget that, looks like my node crashed completely... The multiple restart probably crashed the datastore. I'll start from scratch with a fresh datastore. |
@stone1100 ok, the timeframe of the restart seems to match some of the points where I write data with a timestamp in the past. I need to add more debug log on the service that received data and writes it to LinDB to make sure and see if I can find a pattern for you. Give me a couple of days and I should be able to provide that information. |
@stone1100 Ok I was able to capture many restarts this afternoon and each have a corresponding to write where I use a time in the past. These are indicated by the The date/time in the first [] is the timestamp I am sending LindDB.
So for a test I will right now disable these
Anyway I'll let you know if the LinDB process survives the night without these. |
I know the reason.
It will be fixed next version this week. Thank you for your report and test. |
Ok, I recreated the database for a 30d behead and 30d ahead. Will see how that holds. |
I created a separate issue: #1019 |
fixed(v0.3.1) |
Awesome. I have just updated my system. Will let you know how it goes. |
FYI service did not restart through the night which is a good thing. However #1019 |
Describe the bug
I am running the latest LinDB on Ubuntu 20.10 as a service with the following unit file
I see that it restarts multiple time per day:
But the logs don't show much, except that it did restart:
To Reproduce (Required)
Steps to reproduce the behavior:
Expected behavior (Required)
The service should not restart
What's your LinDB version? (Required)
Screenshots
None
Additional context
Pretty much a vanilla install. I simply untared the binaries in
/opt
installed the unit file, started the service and create a DB from the WebUI.Then I have a Go client that listens for sensor data and commits it to the LinDB database.
The text was updated successfully, but these errors were encountered: