OVH Cloud OVH Cloud

[erreur] open pty, No such file or directory

15 réponses
Avatar
nico
Bonjour,

Au lancement d'un prog (p3nfsd), j'ai le message suivant :

open pty: No such file or directory

J'ai essayé diverses chose comme ln -s /dev/ptmx /dev/pty

Mais sans succès :(

Que puis-je faire ?

Merci d'avance.

Nicolas.

10 réponses

1 2
Avatar
nico
Le message que j'obtiens exactement :

p3nfsd: version 5.16, using /dev/ttyS0 (19200), mounting on /psion.stand/mnt
open pty: No such file or directory
p3nfsd: to stop the server do "ls /psion.stand/mnt/exit". (pid 3749)

Le montage fonctionne bien ms pas de terminal coté psion.

--
nico
Avatar
Nicolas George
nico wrote in message <4238bc48$0$31199$:
p3nfsd: version 5.16, using /dev/ttyS0 (19200), mounting on /psion.stand/mnt
open pty: No such file or directory


Utilise strace pour savoir quel device il essaie d'ouvrir exactement.

Avatar
nico
Salut,

Merci pour ta réponse, j'ai ceci :

open("/dev/ptyp0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp1", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp3", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp5", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp6", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp7", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp8", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp9", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyp0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptypa", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptypb", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptypc", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptypd", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptype", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptypf", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq1", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq3", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq5", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq6", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq7", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq8", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq9", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyq0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqa", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqb", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqc", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqd", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqe", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyqf", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr1", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr3", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr5", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr6", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr7", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr8", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr9", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyr0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyra", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyrb", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyrc", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyrd", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyre", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyrf", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys1", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys3", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys5", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys6", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys7", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys8", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys9", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptys0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptysa", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptysb", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptysc", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptysd", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptyse", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/ptysf", O_RDWR) = -1 ENOENT (No such file or directory)



je vais retenter divers ln ce soir, on vera bien.

En tout cas merci pour l'info je ne connaissais pas cette commande.


Nicolas.
Avatar
nico
En tout cas merci pour l'info je ne connaissais pas cette commande.
En fait j'ai eu le temps de tester tout de suite mais hmmm tjrs le même

message d'erreur. Aurai-je louper quelque chose ?

Merci.

--
nico

Avatar
nico
Bonjour,

ln -s /dev/ptmx /dev/ptyp0

Fonctionne mais maintenant le prob avec : /dev/ttyp0

J'ai tenté ceci :
ln -s /dev/pts/0 /dev/ttyp0

Mais j'ai le message /dev/ttyp0: Input/output error

Comment faire ?

--
nico
Avatar
Khanh-Dang
Au lancement d'un prog (p3nfsd), j'ai le message suivant :

open pty: No such file or directory


Question bête... As-tu le support des /dev/pty dans ton noyau ?

Avatar
nico
Khanh-Dang wrote:

Au lancement d'un prog (p3nfsd), j'ai le message suivant :

open pty: No such file or directory


Question bête... As-tu le support des /dev/pty dans ton noyau ?


oui.

--
nico


Avatar
Nicolas George
nico wrote in message <42393225$0$17047$:
Merci pour ta réponse, j'ai ceci :


Ce n'est certainement pas exhaustif. Est-il question de /dev/ptmx avant ?

open("/dev/ptyp0", O_RDWR) = -1 ENOENT (No such file or directory)


Quelle version du noyau ? Si c'est un 2.6 tardif, est-ce que l'option
CONFIG_LEGACY_PTYS est active ?

Avatar
nico
Nicolas George wrote:

nico wrote in message <42393225$0$17047$:
Merci pour ta réponse, j'ai ceci :


Ce n'est certainement pas exhaustif. Est-il question de /dev/ptmx avant ?
Non.

Je précise que c'est un prog un peu vieux (1998 à peu pres)

Quelle version du noyau ? Si c'est un 2.6 tardif, est-ce que l'option
CONFIG_LEGACY_PTYS est active ?
uname -a

Linux nicolas 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686 AMD
Athlon(tm) XP 2200+ unknown GNU/Linux

pour le CONFIG_LEGACY_PTYS je ne sais pas.

--
nico


Avatar
Nicolas George
nico wrote in message <423a0144$0$17289$:
pour le CONFIG_LEGACY_PTYS je ne sais pas.


Il y a probablement un /proc/config.gz qui doit donner la réponse.

1 2