dosubot[bot] commented on issue #3007: URL: https://github.com/apache/hugegraph/issues/3007#issuecomment-4305860779
<!-- Answer --> This error (`Unexpected varint 997580932 with too many bytes(6)`) indicates a **binary serialization format mismatch** — the `BytesBuffer.readVInt()` method encounters byte sequences it can't decode because they were written in an incompatible format [[1]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/serializer/BytesBuffer.java#L469-L472). **Most likely cause**: HugeGraph 1.7.0 (master branch) introduced a massive serialization refactoring via the new `hugegraph-struct` module [[2]](https://github.com/apache/incubator-hugegraph/pull/2889), which changed how data is encoded. If you have **existing data in the hstore directory from a previous version**, the new serializer cannot read it. The error fires during startup because `ServerInfoManager` tries to read the persistent `server-1` system vertex, which was written in the old format. A very similar varint parsing error was reported before in a multi-node cluster setup [[3]](https://github.com/apache/hugegraph/issues/2311#issuecomment-1719114375). **Recommended solutions:** 1. **If your hstore has data from an older version** — HugeGraph does not support in-place upgrades when the binary format changes [[4]](https://github.com/apache/hugegraph/issues/452#issuecomment-482563100). You need to: - Back up data from the **old version** using `hugegraph-tools backup` - Clear the hstore data directory completely - Start 1.7.0 fresh, then restore via `hugegraph-tools restore` 2. **If this is a new/test cluster with no important data** — simply delete the hstore data directory and restart. Fresh system vertices will be created in the correct format. 3. **If the error persists even with an empty data directory** — this would indicate a bug in the 1.7.0 serialization layer. In that case, please confirm: - That the data directory was truly empty before startup - The exact git commit hash you compiled from - Whether all 3 nodes use the exact same build - Whether a single-node setup also fails Additionally, the hstore backend has [documented serialization inconsistencies](https://github.com/apache/hugegraph/pull/2424) compared to RocksDB, so if you need immediate functionality, trying RocksDB as a temporary backend may help isolate the issue. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fhugegraph). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fhugegraph#message_id=09655b15-309c-4aca-8f44-eed7e397d36a) [](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fhugegraph) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fhugegraph) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
