• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Subscription downgrade not syncing, but real values correct

Bitpalast

Plesk addicted!
Plesk Guru
CentOS 7.2 64 bit, 12.5.30, latest version

Active subscription: 500 MB mailbox size, but no mailboxes, only redirects.
New subsription: 10 MB mailbox size.

Changing subscription to new subscription fails:
subscription value: 500 MB
package value: 10 MB
available value: 500 MB
Wrong, because there are not mailboxes, meaning it is impossible that a mailbox is set to 500 MB.

Tried to run
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=DOMAIN.TLD
to recalculate statistics for that subscription, but no effect. Issue remains.

It is also impossible to individually adapt the subscription parameters of the existing subscription to 10 MB instead of 500. System is complaining that a mailbox is using the 500 MB value. But no mailboxes are present.
 
Thank you for your suggestion. We have tried this solution, and but one error it seems that it ran, but the issue remains. Maybe the script did not execute correctly?

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php MailUsage
[2016-12-05 11:27:05] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailbox_usage' '--in-blocks'] with exit code [1]
[2016-12-05 11:27:05] ERR [panel] Error during calculation disk usage for mailnames on service node local : Usage: /usr/local/psa/admin/bin/mailbox_usage [--fast | --handlers-only | --all]

This error was displayed fairly soon after starting script.php. The script then proceeded to updating application software packages (Wordpress), too, (which it probably should not do).

Probably a case for call-in support?
 
[2016-12-05 11:27:05] ERR [panel] Error during calculation disk usage for mailnames on service node local : Usage: /usr/local/psa/admin/bin/mailbox_usage [--fast | --handlers-only | --all]
Try to repair mail settings with

# plesk repair mail -y

before starting daily maintenance script.
 
Repairing the mail server configuration
Reconfiguring all domains and mailboxes ......................... [2016-12-06 11:17:02] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mchk'] with exit code [1]
[FAILED]
- mchk failed:

Error messages: 0; Warnings: 0; Errors resolved: 0

exit status 1
 
What is output of

# /usr/local/psa/admin/sbin/mchk --with-spam

?
 
Issue with
==> Checking for: mail_drweb_restore... fail

Full output:
# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... fail
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok
Errors occured in mail restore procedure
Some utilities have exited with errors:
/usr/lib64/plesk-9.0:/usr/lib64/plesk-9.0/remote_mail_restore:/usr/local/psa/admin/sbin
 
Log reveals:
==> Checking for: mail_drweb_restore... /usr/local/psa/admin/sbin/drwebmng execution failed:
/usr/local/psa/admin/sbin/drwebmng[27120]: Unable to reload drweb antivirus daemon
/usr/local/psa/admin/sbin/drwebmng execution failed:
/usr/local/psa/admin/sbin/drwebmng[27120]: Unable to reload drweb antivirus daemon
fail

No indication here or elsewhere, why it cannot reload the daemon. But obviously not important, because:
Then I have reloaded drwebd by "/etc/init.d/drwebd restart" to make sure that the daemon can be reloaded. It was restarted without errors.
Then I have disabled drwebd by "/etc/init.d/drwebd stop" to be able to proceed to repair script. It exited without errors.
Then I have run "plesk repair mail -y". It exited without errors.

Good until here.

Then I have run "/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php MailUsage". It raised this error (dashed line added to separate the output from the case description):
------------------------------------------------------------------------------------------------
[2016-12-07 09:50:20] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mailbox_usage' '--in-blocks'] with exit code [1]
PleskUtilException: '/usr/local/psa/admin/bin/mailbox_usage' '--in-blocks' failed with code 1.

stdout:


stderr:
Usage: /usr/local/psa/admin/bin/mailbox_usage [--fast | --handlers-only | --all]

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 65
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(integer '0', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(integer '0', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#2 /usr/local/psa/admin/plib/Service/Agent.php(150): Service_Agent_Transport_Local->process(string '3181eb5a8deceb5c33f6b9680829d2a8', array)
#3 /usr/local/psa/admin/plib/DailyMaintainance/Task/MailUsage.php(65): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/DailyMaintainance/Task/MailUsage.php(18): DailyMaintainance_Task_MailUsage->_runUnix()
#5 /usr/local/psa/admin/plib/DailyMaintainance/Runner/Task.php(26): DailyMaintainance_Task_MailUsage->run(array)
#6 /usr/local/psa/admin/plib/DailyMaintainance/task-script.php(14): DailyMaintainance_Runner_Task->run()

[2016-12-07 09:50:20] ERR [panel] Error during calculation disk usage for mailnames on service node local : Usage: /usr/local/psa/admin/bin/mailbox_usage [--fast | --handlers-only | --all]
------------------------------------------------------------------------------------------------

Then I tried to look at mailbox_usage, but I do not understand what exactly the command expects as input / in what form. So stuck again :-(
 
Will this error negatively impact an upgrade from Plesk 12.5.30 to Plesk Onyx, e.g. will an upgrade fail because the upgrade scripts run a mailbox check, see this error and halt in the middle of an upgrade?
 
Back
Top