Bug#556467: user ajaxterm should be part of tty group

2010-01-01 Thread Julien Valroff
Hi Evgeni,

Le vendredi 20 novembre 2009 à 00:39 +0200, Evgeni Dobrev a écrit :
 Hi Julien,
 
 
 On Thu, 19 Nov 2009 at 20:41 +0100, Julien Valroff wrote:
 
  package ajaxterm
  tags 556467 + unreproducible
  thanks
  
  Hi Evgeni,
  
  Le lundi 16 novembre 2009 à 23:16 +0200, Evgeni Dobrev a écrit :
   Hi Julien,
  [...]
   I have added my user to the tty group and it is working when the
   --daemon option is not set. There is also a similar ticket in
 Ubuntu.
   
   https://bugs.launchpad.net/ubuntu/+source/ajaxterm/+bug/397951
 
 [...]
  I guess your issue can have 2 origins:
  
  1/ a misconfiguration on your system (would you please check the
 rights
  on /dev/ptmx are 0666 as they should be?)
 
 These are the permissions of /dev/ptmx
 
 crw-rw-rw- 1 root root 5, 2 Nov 20 00:33 /dev/ptmx
 
  
  2/ a specificity on ppc - which I haven't been able to find while
  googling, but as I do not know anything about this platform...
  
 
 It should have nothing to do with the platform.  I have not had much
 time to look at it, but the fact that when run from the command
 line without the --daemon command line option everything is ok means
 something is wrong with the forking of the daemon process and the
 permissions. I hope I will be able to take a look at it with pdb
 during
 the weekend.
 

Have you had a chance to look at this issue?

After different tests on different systems, I still couldn't reproduce
it.

Cheers,
Julien




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556467: user ajaxterm should be part of tty group

2009-11-19 Thread Julien Valroff
package ajaxterm
tags 556467 + unreproducible
thanks

Hi Evgeni,

Le lundi 16 novembre 2009 à 23:16 +0200, Evgeni Dobrev a écrit :
 Hi Julien,
[...]
 I have added my user to the tty group and it is working when the
 --daemon option is not set. There is also a similar ticket in Ubuntu.
 
 https://bugs.launchpad.net/ubuntu/+source/ajaxterm/+bug/397951

Sorry for the late answer.

I have now set up various VM's and tried various configurations, but
none suffers from the issue you described.

As I can only setup i386 VM's (and also run amd64 machines for which I
have no problem with ajaxterm), I guess your issue can have 2 origins:

1/ a misconfiguration on your system (would you please check the rights
on /dev/ptmx are 0666 as they should be?)

2/ a specificity on ppc - which I haven't been able to find while
googling, but as I do not know anything about this platform...

Cheers,
Julien




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556467: user ajaxterm should be part of tty group

2009-11-19 Thread Evgeni Dobrev
Hi Julien,


On Thu, 19 Nov 2009 at 20:41 +0100, Julien Valroff wrote:

 package ajaxterm
 tags 556467 + unreproducible
 thanks
 
 Hi Evgeni,
 
 Le lundi 16 novembre 2009 à 23:16 +0200, Evgeni Dobrev a écrit :
  Hi Julien,
 [...]
  I have added my user to the tty group and it is working when the
  --daemon option is not set. There is also a similar ticket in Ubuntu.
  
  https://bugs.launchpad.net/ubuntu/+source/ajaxterm/+bug/397951

[...]
 I guess your issue can have 2 origins:
 
 1/ a misconfiguration on your system (would you please check the rights
 on /dev/ptmx are 0666 as they should be?)

These are the permissions of /dev/ptmx

crw-rw-rw- 1 root root 5, 2 Nov 20 00:33 /dev/ptmx

 
 2/ a specificity on ppc - which I haven't been able to find while
 googling, but as I do not know anything about this platform...
 

It should have nothing to do with the platform.  I have not had much
time to look at it, but the fact that when run from the command
line without the --daemon command line option everything is ok means
something is wrong with the forking of the daemon process and the
permissions. I hope I will be able to take a look at it with pdb during
the weekend.


 Cheers,
 Julien


Cheers,

evgeni



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556467: user ajaxterm should be part of tty group

2009-11-16 Thread Julien Valroff
Hi Evgeni,

Le lundi 16 novembre 2009 à 13:36 +0200, Evgeni Dobrev a écrit :
 Package: ajaxterm
 Version: 0.10-4
 Severity: grave
 Justification: renders package unusable
 
 
 The ajaxterm user does not have permissions to open the tty device. As a
 result pty.py throws OSError: out of pty devices (see Traceback after this 
 text). 
 
 'mount | grep pts' returns (gid 5 being tty) :
 
 devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
 
 When ajaxterm or the user it runs as is added to the tty group it runs ok.

Would you please send your /etc/default/ajaxterm file?

Cheers,
Julien




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556467: user ajaxterm should be part of tty group

2009-11-16 Thread Evgeni Dobrev
Hi Julien,

-- /etc/default/ajaxterm

# Default start options for Ajaxterm
# Sourced by /etc/init.d/ajaxterm

#
# This is a POSIX shell fragment
#

# Allow to change the default port used by Ajaxterm
#PORT=8022

# Allow to use a different port than 22 to connect to the ssh server
#SERVERPORT=22

--

I have added my user to the tty group and it is working when the
--daemon option is not set. There is also a similar ticket in Ubuntu.

https://bugs.launchpad.net/ubuntu/+source/ajaxterm/+bug/397951

evgeni


On Mon, 16 Nov 2009 at 19:35 +0100, Julien Valroff wrote:

 Hi Evgeni,
 
 Le lundi 16 novembre 2009 à 13:36 +0200, Evgeni Dobrev a écrit :
  Package: ajaxterm
  Version: 0.10-4
  Severity: grave
  Justification: renders package unusable
  
  
  The ajaxterm user does not have permissions to open the tty device. As a
  result pty.py throws OSError: out of pty devices (see Traceback after 
  this text). 
  
  'mount | grep pts' returns (gid 5 being tty) :
  
  devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
  
  When ajaxterm or the user it runs as is added to the tty group it runs ok.
 
 Would you please send your /etc/default/ajaxterm file?
 
 Cheers,
 Julien
 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#556467: user ajaxterm should be part of tty group

2009-11-16 Thread Evgeni Dobrev
Package: ajaxterm
Version: 0.10-4
Severity: grave
Justification: renders package unusable


The ajaxterm user does not have permissions to open the tty device. As a
result pty.py throws OSError: out of pty devices (see Traceback after this 
text). 

'mount | grep pts' returns (gid 5 being tty) :

devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

When ajaxterm or the user it runs as is added to the tty group it runs ok.


evgeni



Traceback (most recent call last):
  File /usr/lib/python2.5/SocketServer.py, line 222, in handle_request
self.process_request(request, client_address)
  File /usr/share/ajaxterm/qweb.py, line 1323, in process_request
return BaseHTTPServer.HTTPServer.process_request(self,*p)
  File /usr/lib/python2.5/SocketServer.py, line 241, in process_request
self.finish_request(request, client_address)
  File /usr/lib/python2.5/SocketServer.py, line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File /usr/lib/python2.5/SocketServer.py, line 522, in __init__
self.handle()
  File /usr/lib/python2.5/BaseHTTPServer.py, line 316, in handle
self.handle_one_request()
  File /usr/lib/python2.5/BaseHTTPServer.py, line 310, in handle_one_request
method()
  File /usr/share/ajaxterm/qweb.py, line 1297, in do_POST
self.serve('GET')
  File /usr/share/ajaxterm/qweb.py, line 1289, in serve
appiter=self.server.wsgiapp(environ, self.start_response)
  File /usr/share/ajaxterm/ajaxterm.py, line 509, in __call__
term=self.session[s]=self.multi.create(w,h)
  File /usr/share/ajaxterm/ajaxterm.py, line 371, in __call__
r=self.orig(*l)
  File /usr/share/ajaxterm/ajaxterm.py, line 390, in create
pid,fd=pty.fork()
  File /usr/lib/python2.5/pty.py, line 107, in fork
master_fd, slave_fd = openpty()
  File /usr/lib/python2.5/pty.py, line 29, in openpty
master_fd, slave_name = _open_terminal()
  File /usr/lib/python2.5/pty.py, line 70, in _open_terminal
raise os.error, 'out of pty devices'
OSError: out of pty devices



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.30-2-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ajaxterm depends on:
ii  adduser   3.111  add and remove users and groups
ii  python2.5.4-2An interactive high-level object-o
ii  python-support1.0.4  automated rebuilding support for P

Versions of packages ajaxterm recommends:
ii  lighttpd [httpd]  1.4.24-1   A fast webserver with minimal memo
ii  openssh-server1:5.1p1-8  secure shell server, an rshd repla
pn  python-psyco  none (no description available)
ii  webfs [httpd] 1.21-5.2   lightweight http server for static

ajaxterm suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org