Articles in this section

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

kb: bug Plesk for Windows Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

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%\var\modules\site-import\sessions\site-migration-[domain-id]
    • For Mail Importing:
      %plesk_dir%\var\modules\site-import\sessions\mail-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

Was this article helpful?

Comments

2 comments
Date Votes
  • Thanks for your info ! I've done my changes editing .json files !

    Do you know if there's a way to create an import session using Plesk cli ?

    I asked to claude.ai and she said:

    plesk bin mail --imap-import-messages <domain> <mailname> --src-host <source_server> --src-login <source_username> --src-password '<source_password>'

    i've to test

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

    Thank you.
    It works perfectly for ID 1-9, but from ID 10+ it is without function.
    How could that be and what can I do to remove them?

    Best regards
    Frank

    0

Please sign in to leave a comment.