cpanel restore broken and cannot complete still shows on cpanel restore page

cpanel-restore-fail

cpanel restore broken and cannot complete still shows on cpanel restore page

New version of Cpanel restore has improved the way, On how restoration works
Now, You can close the account restoration page and it will complete not unlike the old method of having the restore page alive.

However, on this new version there few problems & bugs, I hope the cpanel team will resolve it in coming versions.

The problem is some times, when the cpanel restore fails or canceled manually. the process on the cpanel restore page it still says in-progress.

We can resolve this in few easy steps.

Say, for an example we take Restore id : 1031412251quick20140821045631RwHA6Yo

The “1031412251quick20140821045631RwHA6Yo” restore process had ended a long time ago, but because it apparently didn’t end normally, the whmxfer.sessions table hadn’t been updated. So this is why we are still shows a message that the restore was running, as the table still showed it hadn’t completed.

We need to edit the MySQL database for transfers/restores, whmxfer. If you think a restore is no longer running,

The we need to find the restore ID.
In our case it is : 1031412251quick20140821045631RwHA6Yo.

Next, you will want to find out the process ID of this restore. You can do so by running the following:

This will give you an output similar to this:

As we can see, the process ID of this restore is 795.

Now we can check to see if this process is even running.

If it is, then the restore may still be running, and you should make sure that it is hung or going to fail.

If you think it isn’t going to work, then kill the process.

Next you will need to edit the whmxfer.sessions table in MySQL.

You can search this table by the restore ID:

This will give you a table that looks like so:

We need to update the “state” field to 100, and provide a time for the “endtime” field (something after the starttime field). Here is what you would write to update the table:

And then you can check to make sure it is updated by running this command again:

that’s all,

Make sure, You do take backups if required before starting this. We test it on live and test servers before posting.

Keep watching for more Posts. More CPanel Related post @ http://www.whir.in/tag/cpanel/

And at the end, You can always create a ticket with cpanel to resolve any kind of issues related to cpanel @ https://tickets.cpanel.net/

Comments