• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

service_plan CLI tool error

Tozz

Regular Pleskian
Hello,

Id like to report 2 issues:

/opt/psa/bin/service_plan has an option to configure the Service Plan shell. According to the help output:

Code:
    -shell     <shell_name|false>      Allows/disallows access to server
                                       shell with FTP user account
                                       credentials

Thus I configured a service_plan with "-shell false". This seems to work alright, but when we create a new subscription with this service plan I get:

Code:
An error occurred during domain creation: An error occurred during changing of hosting settings: Some fields are empty or contain an improper value. 
('shell' = 'false')

This was tested in Plesk 11.5.

Also:

The CLI tool and function to enable/disable "Mail services for this domain" does not work. The CLI tool reports everything is okay, but in Plesk the checkbox is not altered and the system configuration isn't updated either. Updating the checkbox in Plesk GUI works okay. This was tested in Plesk 11.0
 
The CLI tool and function to enable/disable "Mail services for this domain" does not work. The CLI tool reports everything is okay, but in Plesk the checkbox is not altered and the system configuration isn't updated either. Updating the checkbox in Plesk GUI works okay. This was tested in Plesk 11.0
UI checkbox shows value of Mail service for only main domain of subscription,
however if use CLI utility to disable/enable Mail service for domain it will disable/enable it only for the domain you are updating.
If you update main domain via cli utility then checkbox in UI will be changed.
 
Last edited:
I have tried reproduce it. I have created plan with following method:

# /usr/local/psa/bin/service_plan -c SHELL -shell false
The hosting plan 'SHELL' was successfully created.

After that I created subscription but synchronization failed with error like:

Syncing the subscription with its service plan failed because some of the services or resources defined in the plan cannot be actually provisioned with the subscription. Available value indicates the actual state of a resource or a service in the system. Clicking OK will initiate setting the subscription values according to the available values.

SSH access to the server shell under the subscription's system user Forbidden - /bin/rbash eeee.vi

We have submitted corresponding bugreport (#141254 for your reference)
 
Last edited:
UI checkbox shows value of Mail service for only main domain of subscription,
however if use CLI utility to disable/enable Mail service for domain it will disable/enable it only for the domain you are updating.
If you update main domain via cli utility then checkbox in UI will be changed.

I am aware of that. eg. I have subscription example.com, and I update example.com. Then the checkbox in the UI is not changed and the configuration is not updated.
 
I am aware of that. eg. I have subscription example.com, and I update example.com. Then the checkbox in the UI is not changed and the configuration is not updated.

What exact command are you using for update mail service?
 
/opt/psa/bin/mail --on example.com
or
/opt/psa/bin/mail --off example.com

ok, now i see we are using different commands. the command below works correctly.
Code:
# /usr/local/psa/bin/domain -u domain.tld -mail_service false
I'll check /usr/local/psa/bin/mail utility...
 
I've also checked mail utility on 11.5.30 and 11.0.9 and it also works correctly - mail service status changed and correctly shown in UI.
Tozz, does the status of mail service changed in DB after you update it via mail utility?
Code:
mysql> select ds.type, ds.status from domains d left join DomainServices ds on d.id=ds.dom_id  where name='domain.tld';
 
Back
Top