1833625 Members
3589 Online
110062 Solutions
New Discussion

syslog message

 
SOLVED
Go to solution
Paul_481
Respected Contributor

syslog message

Hi,

Keeps getting this error message from syslog.
I was wondering what is it.

Feb 8 01:29:23 edw-dev : getty: cannot open "tty0p5". errno: 2
Feb 8 14:29:37 edw-dev above message repeats 59 times
Feb 8 01:29:23 edw-dev : getty: cannot open "tty0p1". errno: 2
Feb 8 14:29:37 edw-dev above message repeats 59 times
Feb 8 01:29:43 edw-dev : getty: cannot open "tty0p1". errno: 2
Feb 8 01:29:43 edw-dev : getty: cannot open "tty0p5". errno: 2
Feb 8 01:49:24 edw-dev : getty: cannot open "tty0p1". errno: 2
Feb 8 14:49:37 edw-dev above message repeats 59 times
Feb 8 01:49:24 edw-dev : getty: cannot open "tty0p5". errno: 2
Feb 8 14:49:37 edw-dev above message repeats 59 times
Feb 8 01:49:44 edw-dev : getty: cannot open "tty0p5". errno: 2
Feb 8 01:49:44 edw-dev : getty: cannot open "tty0p1". errno:


Regards,

Paul
9 REPLIES 9
Bharat Katkar
Honored Contributor

Re: syslog message

Hi Paul,
could you check this kernel parameters:
npty and nstrpty

Regards,

You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor
Solution

Re: syslog message

Paul,
What does your /etc/inittab file say. If you are not using tty0px then simply replace "respawn" with "off" for these entries in inittab and save.
Then just say "#init -q", messages should stop.

Regards,
You need to know a lot to actually know how little you know
Paul_481
Respected Contributor

Re: syslog message

Hello Bharat,

Thanks for your reply, for the kernel parameters the value are both "60".

I already change "respawn" to "off", how will this affect the system?

Regards,
Paul
B. Hulst
Trusted Contributor

Re: syslog message

Hi,

Off means it will not try to restart a new process after error. In your case you got file not found error 2 and it restarts the process again and again and again...

Regards,
Bob
john korterman
Honored Contributor

Re: syslog message

Hi Paul,

it sounds to me as if something (newly installed?) is trying to use two non-existing device files. Do the files /dev/tty0p5 and /dev/tty0p1 actually exist?
It is difficult to say what causes this, but check if the time when the messages appear in syslog coincide with the starting up of crontab programs. Not a very scientific approach, but it may at least exclude something.

regards,
John K.
it would be nice if you always got a second chance
Paul_481
Respected Contributor

Re: syslog message

Ok, thanks everyone for the reply.
Trond Haugen
Honored Contributor

Re: syslog message

One way to find what the errno is:
$ grep " 2 " /usr/include/sys/errno.h
#define ENOENT 2 /* No such file or directory */

That is on TAB infront of the number. And one behind.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Bill Hassell
Honored Contributor

Re: syslog message

Serial ports are used for terminals and modems. If you don't have any wires connected to the serial ports (other than the console) then turn off the getty's to the ports. You can always turn them on when you connect a modem or terrminal.

For everyone, decoding errno values is always tricky to remember so I created a script called errno. Run it with the errno number or the errno name (errno enoent) and will not only find the value in the header file (errno.h) but will also extract the description of the error from the errno(2) man page.


Bill Hassell, sysadmin
Robert Salter
Respected Contributor

Re: syslog message

Bill, nice little tool, heck I'd give you 10 points if this were my thread.
Time to smoke and joke