• 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 BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved "plesk" command not found in bach after upgrade from Debian 9 to 10

umara

New Pleskian
Server operating system version
Debian 10
Plesk version and microupdate number
Plesk Obsidian 18.0.48
Hello,

Today I have updated my system from Debian 9 to 10. During installation process I have followed instructions posted here -> https://support.plesk.com/hc/en-us/...upgrade-procedure-on-Linux-server-with-Plesk-

I have plesk admin however got some issues:
- I had to restore from backup domain and mail settings
- as did that, I had to connect again hosting to domains (which was kinda strange) however DB settings is missing.

When tried to check phpmyadmin got following error: "Failed to store CSRF token in session! Probably sessions are not working properly."
I found a fix on plesk support (https://support.plesk.com/hc/en-us/...on-Probably-sessions-are-not-working-properly) however it require "plesk" command which is missing.

To fix plesk command I tried this article: Plesk and its command-line utilities do not work due to missing Plesk packages - Support Cases from Plesk Knowledge Base
Now I have latest plesk, but still command is not working.
Help would be here much appreciated as of now I cannot update mariadb with all DB I already have in the system.
 
Can you check if the plesk command is available in this directory?

# ls -l /usr/sbin/plesk

Or is it the plesk command itself that gives an error on the command line?
 
Last edited:
Hey,

plesk command itself gives an error "bash: plesk: command not found"
BUT I checked location you mentioned and it seems command itself is there, however to run it I have to go into /usr/sbin/ and then ./plesk
 
It looks like your PATH is incorrect if you have to go to that directory.

What's the output of this command?

# echo $PATH
 
You miss the /usr/sbin and /sbin in your PATH environment variable.

Are you logged in as root? You should be root in order to execute the plesk command.
 
Hey, I am terribly sorry. I spent Saturday night on making clients sites and mails live. (at least those are working).
Yes, I was logged in as root (first ssh by user -> su -> root pass -> root).

I've added plsk command location into path and not works like a charm - big thank you!

However now I have issues with other services (like dovecot which is not installed but installed is trying to update is, so I had to disable automatic installation for updates) and with mariadb who is missing information about databases (but db are running fine). But those are topics for different thread :)

Anyway - big thank you @maartenv because I missed "path" and your hint helped a lot! :)
 
Back
Top