• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

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