If a cPanel account transfer gets stuck, fails, or needs to be stopped for any reason, you can safely abort the session using the WHM API. This can be helpful during migrations where sessions are left hanging or misbehaving.
Step-by-step Instructions
1. Get the Transfer Session ID
First, you’ll need the transfer session ID.
- Log in to WHM as root.
- Go to:
WHM >> Transfers >> Review Transfers and Restores - Find the session you want to abort and note the Transfer Session ID.
It looks something like:exampleservercopya20140206192428NtyW
2. Abort the Transfer Session via WHM API
Once you have the session ID, abort it by running the following command as root via SSH:
whmapi1 abort_transfer_session transfer_session_id=exampleservercopya20140206192428NtyW
Replace exampleservercopya20140206192428NtyW
with your actual session ID.
3. Verify the Abort
After running the command, you should receive a response indicating success. You can confirm the session is no longer active by:
- Returning to WHM >> Review Transfers and Restores
- Confirming that the session is no longer listed.
Additional Notes
- This command only works for active/in-progress sessions.
- If the session was already completed or failed, there’s no need to abort it.
- Ensure you have root SSH access to run the WHM API command.