Robert Stuttaford
2012-11-01 03:00:03 UTC
So, backups work great. I can backup my production database no problem,
with no effect on the running system.
But restoring the data on a different transactor (my dev machine) is not so
straight-forward.
So far, this is what I'm doing, but I keep running into an error:
- delete database on local transactor (because otherwise I get
":restore/collision The name '<database>' is already in use by a different
database {:db/error :restore/collision}")
- kill all connected peers (should this be this necessary?)
- restore database
- boot up a peer, which tries to connect on startup (to sync schema)
- get error "Caused by: clojure.lang.ExceptionInfo: :peer/request-failed
:database-deleted {:db/error :peer/request-failed, :request
:start-database}"
At the time of this error, I can see the database listed on
http://datomic-rest:9001/data/local, but attempting to view it causes "Resource
not found."
After many combinations or restarts of the transactor and peers and
database deletes and restores and forcibly killing all my running java
processes, I eventually win through to a working restore.
But I've no idea what causes the success.
Sometimes the output of the restore is:
0 of 1 segments copied.
63 of 63 segments copied.
And sometimes it is:
0 of 0 segments copied.
63 of 63 segments copied.
Not sure why it differs.
Size of database backup on disk is ~700kb.
Production system is using datomic-free-0.8.3524
Development system is using datomic-free-0.8.3561
I haven't yet tried to restore a backup on the production system. Given
this difficulty, I'm concerned about how that's going to go when I finally
have to.
Assistance is most appreciated!
with no effect on the running system.
But restoring the data on a different transactor (my dev machine) is not so
straight-forward.
So far, this is what I'm doing, but I keep running into an error:
- delete database on local transactor (because otherwise I get
":restore/collision The name '<database>' is already in use by a different
database {:db/error :restore/collision}")
- kill all connected peers (should this be this necessary?)
- restore database
- boot up a peer, which tries to connect on startup (to sync schema)
- get error "Caused by: clojure.lang.ExceptionInfo: :peer/request-failed
:database-deleted {:db/error :peer/request-failed, :request
:start-database}"
At the time of this error, I can see the database listed on
http://datomic-rest:9001/data/local, but attempting to view it causes "Resource
not found."
After many combinations or restarts of the transactor and peers and
database deletes and restores and forcibly killing all my running java
processes, I eventually win through to a working restore.
But I've no idea what causes the success.
Sometimes the output of the restore is:
0 of 1 segments copied.
63 of 63 segments copied.
And sometimes it is:
0 of 0 segments copied.
63 of 63 segments copied.
Not sure why it differs.
Size of database backup on disk is ~700kb.
Production system is using datomic-free-0.8.3524
Development system is using datomic-free-0.8.3561
I haven't yet tried to restore a backup on the production system. Given
this difficulty, I'm concerned about how that's going to go when I finally
have to.
Assistance is most appreciated!
--
-- You received this message because you are subscribed to the Google Groups Datomic group. To post to this group, send email to ***@googlegroups.com. To unsubscribe from this group, send email to datomic+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/datomic?hl=en
-- You received this message because you are subscribed to the Google Groups Datomic group. To post to this group, send email to ***@googlegroups.com. To unsubscribe from this group, send email to datomic+***@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/datomic?hl=en