• 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!
  • 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.

Error: Cannot find grep

DanderSella

New Pleskian
Hello everyone,

I have a little problem with my plesk installation at the moment and unfortunately do not have enough knowledge to solve it on my own. I would therefore be glad if I could get a hint on this.

I tried to log in into my Plesk but I can't proceed due to the following error:

Code:
Internal error: Unable to exec utility listmng: listmng: listmng: Cannot find grep program System error 2: No such file or directory

File Unix.php

Line 147

Type PleskUtilException


I'm running Plesk 11.5.30 on Ubuntu 10.04. What's strange is that I didn't make any changes on the server lately. At least not that I'm aware of.

I tried running plesks "bootstrap.sh repair" and uninstalled mailman but I keep getting the error.

When I run /opt/psa/admin/sbin/listmng via ssh I get the same error, so I guess it's not able to use the grep command. I don't know how to solve that problem though. grep is installed in /bin/, and can be called system wide.

I'd appreciate any kind of help.
 
The only thing I can think of is that /bin is missing from your PATH variable, due to a corrupted/edited/wrong bashrc. Or in other words:
You need to start a shell as the PSA user. I'm guessing that wuld be sw-cp-server, or maybe psaadm (not sure).

So, run as root:
su sw-cp-server --shell=/bin/bash

and then see if you can execute "grep". If not, your shell initialization is wrong and you need to fix that.
 
Back
Top