Plesk

Cannot create or migrate Plesk domain: The user already exists

Symptoms

Cause

The user john.doe doesn't exist in the psa database:

# plesk db "select * from sys_users where login = 'john.doe'"
Empty output

However, is already present in the system:

# less /etc/passwd | grep john.doe
john.doe:x:10006:1004::/var/www/vhosts/example.com:/bin/false

Resolution

  1. Connect to the server via SSH.

  2. Delete the user john.doe from the system:

    # userdel john.doe

  3. Move his home directory:

    # mv /var/www/vhosts/example.com ~/

  4. Create the domain once again.
    In case of migration, remove the subscription from the target server and re-migrate it.

Exit mobile version