Skip to content
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: I upgraded my server surreal version and lost all my data #4030

Open
2 tasks done
mimib00 opened this issue May 13, 2024 · 9 comments
Open
2 tasks done

Bug: I upgraded my server surreal version and lost all my data #4030

mimib00 opened this issue May 13, 2024 · 9 comments
Assignees
Labels
bug Something isn't working question Further information is requested topic:datastore This involves the Datastore engine and transaction code topic:rust This is related to the Rust embedded library

Comments

@mimib00
Copy link

mimib00 commented May 13, 2024

Describe the bug

I Lost all my data when i upgraded my surreal version, I was using version 1.0.0 and upgraded it to 1.4.2 and now I when i connect to it with surrealist I can't see any table

Steps to reproduce

Upgrade version from 1.0.0 to 1.4.2

Expected behaviour

Not lose my data

SurrealDB version

v1.4.2 for linux on aarch64 (docker)

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

EDIT 1:

I have done more testing and I found out That when I use latest version of surreal and surrealist I can't see my data or access on My API layer but now I reverted my surreal back to 1.0 and surrealist to 1.11.0 and I can see my data and my api can access the data

@mimib00 mimib00 added bug Something isn't working triage This issue is new labels May 13, 2024
@phughk
Copy link
Contributor

phughk commented May 13, 2024

Hi @mimib00, can you confirm that the rocksdb file storage has the same file size still?

@phughk phughk self-assigned this May 13, 2024
@phughk phughk added topic:rust This is related to the Rust embedded library topic:datastore This involves the Datastore engine and transaction code question Further information is requested and removed triage This issue is new labels May 13, 2024
@mimib00
Copy link
Author

mimib00 commented May 13, 2024

Hi @mimib00, can you confirm that the rocksdb file storage has the same file size still?

Yeah that's the weird thing the data was still on the disk but surrealdb 1.4.2 and surrealist 2.0.5 can't see it for some reason

I have edited the main bug question with more details you can check it

@kearfy
Copy link
Member

kearfy commented May 13, 2024

Hey @mimib00, did you upgrade from v1.0.0? Or perhaps one of it's beta's

@mimib00
Copy link
Author

mimib00 commented May 13, 2024

Hey @mimib00, did you upgrade from v1.0.0? Or perhaps one of it's beta's

The database was in 1.0.0 and updated to v1.4.2 using docker-compose

@phughk
Copy link
Contributor

phughk commented May 13, 2024

@mimib00 can you confirm the docker volumes you have please?

@mimib00
Copy link
Author

mimib00 commented May 13, 2024

he docker volumes you have please?

what do you mean by that?

if you mean that the volume exists and has permissions it does cause as soon as I reverted the database version in the docker-compose file to 1.0 every worked just fine and the data is there

@phughk
Copy link
Contributor

phughk commented May 16, 2024

Could you please export the 1.0 database and import it into the latest (either 1.4 or 1.5).

I was wondering if it was the case that a separate image would have had separate storage, explaining the above.

Either way, exporting and importing should solve the problem, whatever the underlying infra issue is. The data will only disappear if it isn't found.

@mimib00
Copy link
Author

mimib00 commented May 17, 2024

I'm busy with other projects at the moment, but I'll give it a try as soon as I'm free and update you here

@nathanschwarz
Copy link

@mimib00 there's a bug I also encountered on Surrealist when upgrading surrealDB versions. In my case the data is not lost, Surrealist just can't show the results in the UI, if you manually query your data you should be able to see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested topic:datastore This involves the Datastore engine and transaction code topic:rust This is related to the Rust embedded library
Projects
None yet
Development

No branches or pull requests

4 participants