• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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