Bug#336784: apt-proxy: refuses connection on the telnet debug port

2005-11-01 Thread Geert Stappers
On Tue, Nov 01, 2005 at 05:41:02PM +, Chris Halls wrote more as:
 Could you set
   debug = all:9 db:7
 then restart apt-proxy, and then send a new log.

You find it attached.
( It contains config dump, but nothing about listing on the debug port )


GSt

2005/11/01 23:31 CET [-] Log opened.
2005/11/01 23:31 CET [-] twistd 2.0.1 (/usr/bin/python2.3 2.3.5) starting up
2005/11/01 23:31 CET [-] reactor class: 
twisted.internet.selectreactor.SelectReactor
2005/11/01 23:31 CET [-] Loading /usr/sbin/apt-proxy...
2005/11/01 23:31 CET [-] [config] config value min_refresh_delay=43200
2005/11/01 23:31 CET [-] [config] config value 
complete_clientless_downloads=True
2005/11/01 23:31 CET [-] [config] config value telnet_port=9998
2005/11/01 23:31 CET [-] [config] config value telnet_user=aptproxy
2005/11/01 23:31 CET [-] [config] config value timeout=15
2005/11/01 23:31 CET [-] [config] config value cleanup_freq=86400
2005/11/01 23:31 CET [-] [config] config value cache_dir=/srv/aptproxy
2005/11/01 23:31 CET [-] [config] config value max_age=10368000
2005/11/01 23:31 CET [-] [config] [backend security] 
backends=['http://security.debian.org/debian-security', 
'http://ftp2.de.debian.org/debian-security']
2005/11/01 23:31 CET [-] [config] [backend debian] 
backends=['http://ftp.nl.debian.org/debian', 'http://ftp.de.debian.org/debian']
2005/11/01 23:31 CET [-] Loaded.
2005/11/01 23:31 CET [-] apt_proxy.apt_proxy.Factory starting on 
2005/11/01 23:31 CET [-] Starting factory apt_proxy.apt_proxy.Factory instance 
at 0x7082b558
2005/11/01 23:31 CET [-] [debug] Created new BackendServer: 
http://security.debian.org/debian-security
2005/11/01 23:31 CET [-] [debug] Created new BackendServer: 
http://ftp2.de.debian.org/debian-security
2005/11/01 23:31 CET [-] [debug] Created new BackendServer: 
http://ftp.nl.debian.org/debian
2005/11/01 23:31 CET [-] [debug] Created new BackendServer: 
http://ftp.de.debian.org/debian
2005/11/01 23:31 CET [-] set uid/gid 104/65534
2005/11/01 23:31 CET [-] [debug] Verifying database: 
/srv/aptproxy/.apt-proxy/db/access.db
2005/11/01 23:31 CET [-] [debug] Opening database 
/srv/aptproxy/.apt-proxy/db/access.db


signature.asc
Description: Digital signature


Bug#336784: apt-proxy: refuses connection on the telnet debug port

2005-11-01 Thread Geert Stappers
Package: apt-proxy
Version: 1.9.32
Severity: minor

Hello,

In the config file I have
| ;; Debugging settings.
| ;; for all debug information use this:
| ;; debug = all:9
| debug = all:4 db:0
| 
| ;; Debugging remote python console
| ;; Do not enable in an untrusted environment
| telnet_port = 9998
| telnet_user = aptproxy
| telnet_password = geheim
but when I try to connect it, I get
| telnet: Unable to connect to remote host: Connection refused
even from telnet to localhost, port 9998

What is needed to get the debug port working?


Cheers GSt


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-sparc64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages apt-proxy depends on:
ii  adduser   3.66   Add and remove users and groups
ii  bzip2 1.0.2-10   high-quality block-sorting file co
ii  debconf [debconf-2.0] 1.4.56 Debian configuration management sy
ii  logrotate 3.7.1-1Log rotation utility
ii  python2.3.5-3An interactive high-level object-o
ii  python-apt0.6.13.1   Python interface to libapt-pkg
ii  python-bsddb3 3.3.0-6Python interface to libdb3
ii  python-twisted2.0.1-5Event-based framework for internet
ii  python2.3 2.3.5-6An interactive high-level object-o

apt-proxy recommends no packages.

-- debconf information:
  apt-proxy/upgrading-v2:
  apt-proxy/upgrading-v2-result:


signature.asc
Description: Digital signature


Bug#336784: apt-proxy: refuses connection on the telnet debug port

2005-11-01 Thread Chris Halls
On Tuesday 01 Nov 2005 13:42, Geert Stappers wrote:
 | telnet_port = 9998
 | telnet_user = aptproxy
 | telnet_password = geheim

 but when I try to connect it, I get

 | telnet: Unable to connect to remote host: Connection refused

 even from telnet to localhost, port 9998

 What is needed to get the debug port working?

The configuration looks fine. Did you restart apt-proxy after changing the 
configuration? Are there any error messages in the logfile?

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#336784: apt-proxy: refuses connection on the telnet debug port

2005-11-01 Thread Geert Stappers
On Tue, Nov 01, 2005 at 02:55:45PM +, Chris Halls wrote:
 On Tuesday 01 Nov 2005 13:42, Geert Stappers wrote:
 
  What is needed to get the debug port working?
 
 The configuration looks fine. Did you restart apt-proxy after changing the 
 configuration? Are there any error messages in the logfile?

No error message in the logfile.
No signs that it is listing on port 9998.

At shutdown there are many messages.
Attached is the log file.
startup and telnet attempt is at 17:32
shutdown at 17:33.


GSt

2005/11/01 17:32 CET [-] Log opened.
2005/11/01 17:32 CET [-] twistd 2.0.1 (/usr/bin/python2.3 2.3.5) starting up
2005/11/01 17:32 CET [-] reactor class: 
twisted.internet.selectreactor.SelectReactor
2005/11/01 17:32 CET [-] Loading /usr/sbin/apt-proxy...
2005/11/01 17:32 CET [-] Loaded.
2005/11/01 17:32 CET [-] apt_proxy.apt_proxy.Factory starting on 
2005/11/01 17:32 CET [-] Starting factory apt_proxy.apt_proxy.Factory instance 
at 0x7082b530
2005/11/01 17:32 CET [-] set uid/gid 104/65534
2005/11/01 17:33 CET [-] Received SIGTERM, shutting down.
2005/11/01 17:33 CET [-] (Port  Closed)
2005/11/01 17:33 CET [-] Stopping factory apt_proxy.apt_proxy.Factory instance 
at 0x7082b530
2005/11/01 17:33 CET [-] Traceback (most recent call last):
  File /usr/lib/python2.3/site-packages/twisted/scripts/twistd.py, 
line 187, in runApp
app.runReactorWithLogging(config, oldstdout, oldstderr)
  File /usr/lib/python2.3/site-packages/twisted/application/app.py, 
line 128, in runReactorWithLogging
reactor.run()
  File 
/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py, line 199, in 
run
self.mainLoop()
  File 
/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py, line 207, in 
mainLoop
self.runUntilCurrent()
--- exception caught here ---
  File /usr/lib/python2.3/site-packages/twisted/internet/base.py, 
line 533, in runUntilCurrent
call.func(*call.args, **call.kw)
  File /usr/lib/python2.3/site-packages/twisted/internet/tcp.py, line 
792, in connectionLost
self.factory.doStop()
  File /usr/lib/python2.3/site-packages/twisted/internet/protocol.py, 
line 64, in doStop
self.stopFactory()
  File /usr/lib/python2.3/site-packages/apt_proxy/apt_proxy.py, line 
1930, in stopFactory
packages.cleanup(self)
  File /usr/lib/python2.3/site-packages/apt_proxy/packages.py, line 
298, in cleanup
backend.get_packages_db().cleanup()
exceptions.AttributeError: 'str' object has no attribute 
'get_packages_db'

2005/11/01 17:33 CET [-] Traceback (most recent call last):
  File /usr/lib/python2.3/site-packages/twisted/scripts/twistd.py, 
line 187, in runApp
app.runReactorWithLogging(config, oldstdout, oldstderr)
  File /usr/lib/python2.3/site-packages/twisted/application/app.py, 
line 128, in runReactorWithLogging
reactor.run()
  File 
/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py, line 199, in 
run
self.mainLoop()
  File 
/usr/lib/python2.3/site-packages/twisted/internet/posixbase.py, line 207, in 
mainLoop
self.runUntilCurrent()
--- exception caught here ---
  File /usr/lib/python2.3/site-packages/twisted/internet/base.py, 
line 533, in runUntilCurrent
call.func(*call.args, **call.kw)
  File /usr/lib/python2.3/site-packages/apt_proxy/misc.py, line 164, 
in process
if not self.factory.access_times.has_key(uri):
bsddb3._db.DBError: (0, 'DB object has been closed')

2005/11/01 17:33 CET [-] Received SIGTERM, shutting down.
2005/11/01 17:33 CET [-] Unhandled error in Deferred:
2005/11/01 17:33 CET [-] Traceback (most recent call last):
  File /usr/lib/python2.3/site-packages/twisted/internet/base.py, 
line 510, in runUntilCurrent
f(*a, **kw)
  File /usr/lib/python2.3/site-packages/twisted/internet/base.py, 
line 321, in stop
self.fireSystemEvent(shutdown)
  File /usr/lib/python2.3/site-packages/twisted/internet/base.py, 
line 371, in fireSystemEvent
d = callable(*args, **kw)
  File 
/usr/lib/python2.3/site-packages/twisted/application/service.py, line 207, in 
stopService
l.append(defer.maybeDeferred(service.stopService))
--- exception caught here ---
  File /usr/lib/python2.3/site-packages/twisted/internet/defer.py, 
line 117, in maybeDeferred
result = f(*args, **kw)
  File 
/usr/lib/python2.3/site-packages/twisted/application/internet.py, line 76, in 
stopService
d = self._port.stopListening()
exceptions.AttributeError: TCPServer instance has no attribute '_port'

2005/11/01 17:33 CET [-] Main loop terminated.
2005/11/01 17:33 CET [-] Server Shut Down.


signature.asc
Description: Digital signature


Bug#336784: apt-proxy: refuses connection on the telnet debug port

2005-11-01 Thread Chris Halls
On Tuesday 01 Nov 2005 17:09, Geert Stappers wrote:
 Attached is the log file.

Thanks. I forgot to ask you to turn debug on first. Could you set
  debug = all:9 db:7
then restart apt-proxy, and then send a new log. That should also dump the 
configuration that apt-proxy picked up to the logfile.

The shutdown messages are annoying, but that part of the code has already been 
rewritten so I won't chase it at the moment.

Chris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]