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

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