Plesk

Unable to remove Mail Import or Website Import sessions via Plesk GUI

Symptoms

There is no possibility to remove sessions of the Mail Importing and Website Importing utilities via Plesk GUI.

Cause

The behavior is considered as a Plesk feature request with the ID #PMT-4498, which is planned to be addressed in future Plesk updates.

Resolution

As a workaround remove the sessions directories manually using one of the solutions below:

Solution for Linux servers

  1. Log into the server via SSH.
  2. Run the command below to remove sessions directory for the required domain:
    • For Website Importing:

      # rm -rf /usr/local/psa/var/modules/site-import/sessions/site-migration-[domain-id]

    • For Mail Importing:

      # rm -rf /usr/local/psa/var/modules/site-import/sessions/mail-migration-[domain-id]

    Note: to get [domain-id] execute the command below by replacing example.com with the name of the required domain:

    # plesk db "select id as '[domain-id]' from domains where name='example.com'G;" | grep -v row

    [domain-id]: 14

Solution for Windows servers

  1. Log into the server via RDP.
  2. Manually remove sessions folder for the required domain:
    • For Website Importing:
      %plesk_dir%varmodulessite-importsessionssite-migration-[domain-id]
    • For Mail Importing:
      %plesk_dir%varmodulessite-importsessionsmail-migration-[domain-id]

    Note: to get [domain-id] execute the command below via CMD by replacing example.com with the name of the required domain:

    C:> plesk db "select id as '[domain-id]' from domains where name='example.com'G;" | findstr /v row
    [domain-id]: 1

Exit mobile version