Skip to main content

Remote User Account Transfer fails

Comments

9 comments

  • keat63
    I'm pretty sure that both servers require SSH access, and to be able to talk to each other through the firewalls etc. When I did mine, I ensured that both IP's where whitelisted in CSF, CPHULK and Host Acess Control
    0
  • GoWilkes
    Update: I added "Shell Access" to the account and tried to use "Transfer Tool", but it didn't work, either. The error message is very long, but it starts with: The remote basic credential check failed due to an error (The system failed to escalate privileges to root on "123.45.67.89" with "sudo" or "su" because of an error: Failed to escalate to root) and response: Connecting to 123.45.67.89:1234 as example...using method password...Connection Success Waiting for login prompt ....Done waiting for login prompt. Normalizing user level shell... Done normalizing shell. Attempting to obtain root using method "sudo w/wheel pass" Sending password for sudo w/wheel pass... sudo w/wheel pass already failed, sending empty strings until it dies.... Failed because the user was not in the sudoers file Resetting Terminal....Done. Attempting to obtain root using method "su w/wheel pass" Failed because the user did not have permission to run the command. Resetting Terminal....Done. Failed to obtain root. warning ssh transport failed (The remote basic credential check failed due to an error (The system failed to escalate privileges to root on "123.45.67.89" with "sudo" or "su" because of an error: Failed to escalate to root) and response: Connecting to 123.45.67.89:1234 as example...using method password...Connection Success Waiting for login prompt ....Done waiting for login prompt. Normalizing user level shell... Done normalizing shell. Attempting to obtain root using method "sudo w/wheel pass" Sending password for sudo w/wheel pass... sudo w/wheel pass already failed, sending empty strings until it dies.... Failed because the user was not in the sudoers file Resetting Terminal....Done. Attempting to obtain root using method "su w/wheel pass" Failed because the user did not have permission to run the command. Resetting Terminal....Done. Failed to obtain root.); trying whostmgr " warning whostmgr transport failed (Net::WebSocket::X::BadHTTPStatus: Received invalid HTTP status: 401 (Access Denied) - must be 101
    (followed by dozens of lines of modules that failed; I can paste the entire list if it's necessary) I double checked that I can SSH to the account using the username and password, so that's not the problem here, either. I also wanted to mention that, on the new VPS, I do not have a directory created for /home/example. So the script obviously never made it that far.
    0
  • cPRex Jurassic Moderator
    In the most recent error output, it's wanting to use the root user to perform the transfer. If you're using Transfer Tool in WHM, that is a root-level migration tool, so you'd need root access to the Source machine to perform that work. If you don't have root access to the Source, it would be better to use the "Transfer or Restore a cPanel Account" function in WHM on the Destination as the cPanel user.
    0
  • GoWilkes
    I have root access to both VPSs, and I turned off the firewall on both servers. I don't have Host Access Control set up on either machine. I didn't think to disable cPHulk, though, so I'll try that tonight. The settings I used under "Transfer or Restore a cPanel Account" were: Enable Restricted Restore: off Transfer from Remote cPanel Account: on Remote Server: 123.45.67.89 (just the IP, no protocol) Remote username: example (the actual username for the account on the old server) Remote password: [password for example] Dedicated IP Address: off This is the method that worked to compress the account on the old VPS, so connecting wasn't an issue. It just wouldn't copy the .tar.gz file to the new VPS. This makes me think that the issue isn't with cPHulk, but it has to be a setting... somewhere. The settings I used in "Transfer Tool" (which is supposedly the "best" option, although I don't know why) were: Remote Server Address: 123.45.67.89 (just the IP, no protocol) Remote SSH Port: 1234 (not the real port, of course, but I entered the right one) Login: User Username: example (the actual username for the account on the old server) Authentication Method: Password Password: [password for example] Root Escalation Method: su Root Password: [password for "root"> Restricted Restore: off Advanced Remote Server Type: cPanel & WHM Everything else was left to the default. I also tried using sudo instead of su, but that didn't change anything. This method didn't seem to do anything, it failed while trying to connect to the old VPS.
    0
  • cPRex Jurassic Moderator
    It's interesting to me that Transfer Tool fails to connect at all, as that would indicate an SSH issue, most likely. It might be best to have us look at the systems through a ticket if you'd like to submit one. If you do, please include the ticket number here so I can update the community with our findings.
    0
  • GoWilkes
    Alrighty, the ticket # is 93982283
    0
  • cPRex Jurassic Moderator
    I do see there's been a few replies to that ticket, but we also seem to be struggling to get access. I'm following along with that ticket on my end now as well so I'll be sure to see those updates.
    0
  • GoWilkes
    It's resolved now, and it appears to have been an ID-ten-T error on my end :-O There wasn't a resolution to the "Transfer or Restore a cPanel Account" error, but the tech figured out my problem with "Transfer Tool". I was applying the User on the first screen, under Authentication > Login. But per John: When selecting "User" instead of "root" the interface will ask for the "Root Escalation Method" which requires the selection of "su" or "sudo". The su and sudo commands are used to escalate from a user to the root user. In order to use su or sudo, the provided user must be added to the "wheel" group on the source server. "User" is typically used instead of "root" in Trasfer Tool when the remote/source server does not allow direct root SSH logins.
    The appropriate method would have been to select "Root (default)", then the next page let's me select the account that I want to transfer. I didn't know that... it appeared that selecting Root here would have transferred the entire server. Regardless, selecting Root and then selecting the account to be transferred on the second page worked without any errors :)
    0
  • cPRex Jurassic Moderator
    I'm glad it's going well now!
    0

Please sign in to leave a comment.