1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Internal error while deleting Email

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by afterXleep, Aug 16, 2012.

  1. afterXleep

    afterXleep Guest

    0
     
    When deleting a mailbox in a domain I get "Internal Error" message and the mailbox is not deleted.

    Note that page gets disabled after that and a refresh is needed.

    Logs wont say much.

    Any ideas?
     

    Attached Files:

  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Any errors in /var/log/sw-cp-server/error_log and /usr/local/psa/admin/logs/panel.log ?

    Did you try remove email with corresponding CLI utility? What sort of output there?
     
  3. afterXleep

    afterXleep Guest

    0
     
    Hi Igor.

    I tried to disable the mailbox and the delete the account, but still unsucsessfully. Here are the last log on both files

    This is the last error from the error_log:

    Code:
    2012-08-17 01:53:18: (mod_fastcgi.c.2582) FastCGI-stderr: PHP Fatal error:  Call to undefined method mail_Facade::redirectOnOff() in /usr/local/psa/admin/plib/mail/AbstractFacade.php on line 197
    And this is the error from panel_log

    Code:
    2012-08-16T23:49:25-04:00 ERR (3): Unable to create mailname object: Unable create account with ID "34"
    Regarding the CLI, I did not. Actually not familiar with it.

    Thanks,

    Daniel
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Try to run

    # /usr/local/psa/bin/mail -r user@domain.com

    and post output here.
     
  5. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    /usr/local/psa/bin/mail --help

    Usage: mail command <mail_name> [options]
    Available commands:
    --create or -c <mail>@<domain> creates mail account
    --update or -u <mail>@<domain> updates mail account parameters
    --remove or -r <mail>@<domain> removes mail account
    --info or -i <mail>@<domain> retrieves mail account information
    --on <domain> enables mail service for domain
    --off <domain> disables mail service for domain

    and so on ...

    Thus to remove and email, you run

    /usr/local/psa/bin/mail --remove email@domain.com
     
  6. afterXleep

    afterXleep Guest

    0
     
    Thank you, it was removed correctly via CLI. However my customer wont have access to the command line. Any ideas why the Internal Error in the panel?

    Daniel
     
  7. Tozz

    Tozz Regular Pleskian

    26
    23%
    Joined:
    Jun 30, 2006
    Messages:
    168
    Likes Received:
    3
    Location:
    Netherlands
    I had the same issue. Unable to delete using CP and unable to remove subscription using /opt/psa/bin/subscription --remove. Removing broken addresses using /opt/psa/bin/mail -r <email address> works, and I'm then able to remove the subscroiption as well.

    This seems like a bug to me? Why would the 'subscription' tool fail where the 'mail' tool works okay?
     
Loading...