• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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