fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

Impossible to restore a snapshot #52

Closed Kraymer closed 9 years ago

Kraymer commented 9 years ago

All of a sudden my attempts to stellar restore end with

Waiting for background process(1) to finish.....

Rebooting does not help.

Workaround

So i installed stellar from sources after editing following code :

def is_copy_process_running(self, snapshot):
    if snapshot.worker_pid == 1:  
        return False
    return pid_exists(snapshot.worker_pid)

Which resulted in

Background process missing, doing slow restore. Restoring database xxxxx Restore complete

and fixed my pb

Teemu commented 9 years ago

Strange, what platform are you using?

Kraymer commented 9 years ago

Ubuntu 14.04

Used restore hundreds of times with no pb whatsoever before it happened.