realm / realm-object-server

Tracking of issues related to the Realm Object Server and other general issues not related to the specific SDK's
https://realm.io
293 stars 42 forks source link

Backup fails, how to move data from digitalocean to realm cloud? #368

Closed anyaalstriem closed 6 years ago

anyaalstriem commented 6 years ago

Goals

Realm object server backup

Expected Results

When I run the backup ros backup --from oncobase28 --to backup command I get this error

error: ERROR:
error: /home/medibase/oncobase28/sync does not exist.
command failed: /home/medibase/.nvm/versions/node/v8.11.1/lib/node_modules/realm-object-server/node_modules/realm-sync-server/bin/realm-backup

running locate command I can find sync in data subdirectory, it is the required script to run?

medibase@roche-onco-realm:~$ locate ~/oncobase28/*sync
/home/medibase/oncobase28/data/sync
/home/medibase/oncobase28/node_modules/async
/home/medibase/oncobase28/node_modules/foreachasync
/home/medibase/oncobase28/node_modules/fs-extra/lib/copy-sync
/home/medibase/oncobase28/node_modules/fs-extra/lib/move-sync
/home/medibase/oncobase28/node_modules/kubernetes-client/node_modules/async
/home/medibase/oncobase28/node_modules/realm/src/object-store/src/sync
/home/medibase/oncobase28/node_modules/winston/node_modules/async

trying ros backup --from oncobase28/data --to backup fails too

error: terminate called after throwing an instance of '
error: realm::LogicError'
error: what():  History schema version (as specified by the Replication implementation passed to the SharedGroup constructor) was not consistent across the session

Version of Realm and Tooling

astigsen commented 6 years ago

Closing this for now as it relates to an outdated version of ROS. Please reopen if the issue resurfaces with the latest version.