-
Notifications
You must be signed in to change notification settings - Fork 570
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
unexpected EOF error #230
Comments
Hi W-Jie Do you happen to have a log file from when server crashed? It's possible that there's detailed information about the cause of the crash.
An unexpected EOF error means that the AOF was truncated for some reason. 249MB isn't too large.
The queue.db file is used for geofence notifications from the SETHOOK command. |
Hi @tidwall The queue.db file is not empty, and whether the message is triggered is not taken away? |
I'm closing this issue for now because it's a few months old, but feel free to reopen if you are still running into problems. Thanks! |
I am experiencing the same issue running this in Kubenetes:
Any ideas? It is restarting more than 100 times so far... |
@tidwall my file is 470MB , could it be an issue ? |
@hmarcelodn any findings for your issue? Currently I am running with the same |
About eight months ago someone pinged me and said they ran into an issue with their AOF being corrupted. They too were using Kubernetes and in the cloud. After some investigating apparently the block store environment padded a bunch zeros to the tail end of the AOF file. It was unclear how that happened but after wiping out the zeros the AOF loaded. Could this possibly be the same issue? |
I am running on top of Kubernetes and using cinder openstack as backend storage. I did a tail for the aof and did not find the bunch zeros. |
@jwillmer Did you use |
@tidwall I did not. I used a normal editor to get rid of the last line and all works again. Next time it happens I will do that and post it. I also updated to the latest version today so that it is easier to investigate. |
This commit addresses issue #230, where an AOF file will sometimes not load due to the file being padded with trailing zeros. It's uncertain what is causing this corruption, but it appears to be coming from outside of the tile38-server process. I suspect it's due to some block store layer in Kubernetes/Docker cloud environments. This fix allows for Tile38 to start up by discovering the trailing zeros while loading the AOF and safely truncating the file as to not include the zeros in the future.
I pushed an update that addresses this issue (93e3a06). |
Nice, I will update to this version as soon as the new docker image is available in the hub 👍 |
This commit addresses issue #230, where an AOF file will sometimes not load due to the file being padded with trailing zeros. It's uncertain what is causing this corruption, but it appears to be coming from outside of the tile38-server process. I suspect it's due to some block store layer in Kubernetes/Docker cloud environments. This fix allows for Tile38 to start up by discovering the trailing zeros while loading the AOF and safely truncating the file as to not include the zeros in the future.
Hi, tidwall.
Someday my server crash unexpectedly, and I try to restart tile38 server. When loading AOF file, then get error and exit.
So, I cleaned the AOF file and restart, but all the data are loss.
Before cleaning, I find that the appendonly.aof file size is 249MB, is the aof file too large or damaged?
And, why the queue.db file size is 0 ? What is it used for?
Thank you!
The text was updated successfully, but these errors were encountered: