• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

email Cron Daemon - No such file or directory

dorotheaK

New Pleskian
Hallo,

I hope someone can help me here because I am very confused and cannot find a solution.
I am using Parallels Plesk Panel 11.0.9 and since yesterday I keep recieving emails from Cron Daemon, more or less every 10 minutes.

I recieve the following email.


---------- Forwarded message ----------
From: Cron Daemon <[email protected]>
Date: 2013/11/25
Subject: Cron <root@cascaraamarga> /.../... /.../.... /usr/sbin/httpd
To: [email protected]

/bin/sh: /.../...: No such file or directory


I cannot find these directories in my ftp, there is no such folders bin/sh/.
What does it mean and what do you suggest to do for stop recieving the emails?

Thank you in advance!
 
Hi dorotheaK,

do you have SSH access to that VPS? If yes, try the following:

1. connect to SSH
2. login
3. execute this command: crontab -e

If you get a list of entries, doublecheck them. If all is ok, you could set MAILTO="" which prevents sending the mails to you.

Kind regards
Henning
 
Hallo and thank you for your answer!
I am really new using this and I dont know where I have to put the command crontab -e
I have ssh and I log in using root user via my ip url:port (is that right?),
then I enter the parallels Plesk Panel 11.0.9, but I cannot find where to run this command,
Could you specify please?
thank you!

Hi dorotheaK,

do you have SSH access to that VPS? If yes, try the following:

1. connect to SSH
2. login
3. execute this command: crontab -e

If you get a list of entries, doublecheck them. If all is ok, you could set MAILTO="" which prevents sending the mails to you.

Kind regards
Henning
 
Hi DorotheaK,

Execute this command directly After logged in via SSH, then you should see many lines...
One of them is MAILTO=
 
Hi DorotheaK,

Execute this command directly After logged in via SSH, then you should see many lines...
One of them is MAILTO=

Do you mean in the terminal of my computer? Maybe I sound silly,
sorry for asking so much details, but in the SSH login invoronment I don know how to execute a command.
 
Thank you very much for your patience!
well I do the following,
1. in the browser I connected using the ssh datos (then Parallels Plesk Panel apears),
2. then I opened the terminal in my computer and wrote crontab -e
and got this:

Mac-dorita:Downloads tea$ crontab -e
crontab: no crontab for tea - using an empty one


~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/tmp/crontab.mola0JbB7j" 0L, 0C


I also tried to connect via ssh like saying here:
http://support.hostgator.com/articles/hosting-guide/lets-get-started/how-do-i-get-and-use-ssh-access
Mac
To open the terminal in Mac go to Applications → Utilities → Terminal
Then type in the following command:
ssh -p 2222 [email protected]

Replace cpanelusr with your username and ip.add.re.ss with your IP address.


and got this:

Mac-dorita:Downloads tea$ ssh -p 2222 [email protected]
ssh: connect to host 5.9.202.22 port 2222: Connection refused

I dont know what am I doing wrong?
 
You aren't connected to your Server ;-)
You just ran the command on your Mac :)

Please do it After connecting to your Server!

Is it a Root Server?

Check your Port:

(Port 2222 would be used for Shared and Reseller accounts, 22 is the default for Dedicated & VPS. Dedicated or VPS have the option of logging in with the root WHM username and password.)
 
Last edited:
I didnt notice that I had to use port 22. I was using 2222. Now seams to connect?¿
I have the following in my teminal:
Does it seam to you OK?

Last login: Tue Nov 26 14:01:15 on ttys000
Mac-dorita:Downloads tea$ ssh -p 22 [email protected]
The authenticity of host '5.9.202.22 (5.9.202.22)' can't be established.
RSA key fingerprint is bb:6e:3e:7c:7e:5f:4b:fe:9b:78:d7:38:c7:ff:8a:02.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added '5.9.202.22' (RSA) to the list of known hosts.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Last login: Sun Nov 24 19:18:45 2013 from 82.146.61.120
[root@cascaraamarga ~]# crontab -e

*/10 * * * * /.../... /.../.... /usr/sbin/http
MAILTO="" (this one line I added it myself)
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
-- INSERT --
 
Hi DorotheaK,

please put the line above the */10 line and restart cron (service crond restart).
Then the messages shouldn't be delivered anymore.

Please try and give a feedback :)
 
Hi DorotheaK. Were you able to fix this so far? I think the cron is point to this, "/bin/sh: /.../...: No such file or directory" but it doesn't exists. Try to check this via ssh.
 
Back
Top