Bug#418715: polipo: always starts in offline mode

2007-07-18 Thread Frank Küster
DS [EMAIL PROTECTED] wrote:

 2007/7/4, Cyril Brulebois [EMAIL PROTECTED]:

 Would it be possible that polipo toggles (on|off)line modes when needed?
 (I mean: not only choosing at startup) At least documenting this (IMHO
 quite) common problem in README.Debian could be interesting. Also,
 having the mode stated in the log file could help users spot what's
 going on.


 There are scripts (named `1polipo') in the /etc/ppp/ip-{up,down}.d for
 restarting polipo at ppp on and off.
 These scripts can be copied also in /etc/network/if-{up,down}.d
 accordingly, as proposed in bug #305852 [1]. Please try to do it, and
 if it helps, I'll do it in package.

Yes, this helps.  

(Instead, I once had a problem when I switched the network (switched off
in one network, rebooted offline and plugged into new one), but I'm not
sure about the exact sequence of events.  In case this happens again,
I'll report it as a separate issue).

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#418715: polipo: always starts in offline mode

2007-07-03 Thread DS

Hi Frank!

Is this problem still actual?

I think that your system hasn't default route at the polipo daemon
start. There is offlineMode() function in
/usr/lib/polipo/polipo-control:

offlineMode() {
   # At the moment this only depends on the presence of a default route
   # Eventually this will be configurable via $OPTION_FILE
   if /sbin/route -n | grep  ^0.0.0.0  /dev/null; then
   # We have a default route - go online
   echo -n false
   else
   # We don't have a default route - go offline
   echo -n true
   fi
}

This function used when polipo starting to identify is there default
route present or not and if it isn't -- starts offline.

--
wbr
 Denis Sirotkin


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



Bug#418715: polipo: always starts in offline mode

2007-07-03 Thread Cyril Brulebois
DS [EMAIL PROTECTED] (04/07/2007):
 Is this problem still actual?

I've just had the same problem (although my sid environment hasn't been
updated for some days).

 I think that your system hasn't default route at the polipo daemon
 start.

Being neither wired or wirelessly-associated at boot-time, that's the
case here.

 This function used when polipo starting to identify is there default
 route present or not and if it isn't -- starts offline.

Would it be possible that polipo toggles (on|off)line modes when needed?
(I mean: not only choosing at startup) At least documenting this (IMHO
quite) common problem in README.Debian could be interesting. Also,
having the mode stated in the log file could help users spot what's
going on.

Cheers,

-- 
Cyril Brulebois


pgp7MjrdvAsAK.pgp
Description: PGP signature


Bug#418715: polipo: always starts in offline mode

2007-07-03 Thread DS

2007/7/4, Cyril Brulebois [EMAIL PROTECTED]:


Would it be possible that polipo toggles (on|off)line modes when needed?
(I mean: not only choosing at startup) At least documenting this (IMHO
quite) common problem in README.Debian could be interesting. Also,
having the mode stated in the log file could help users spot what's
going on.



There are scripts (named `1polipo') in the /etc/ppp/ip-{up,down}.d for
restarting polipo at ppp on and off.
These scripts can be copied also in /etc/network/if-{up,down}.d
accordingly, as proposed in bug #305852 [1]. Please try to do it, and
if it helps, I'll do it in package.

1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=305852

--
wbr
 Denis Sirotkin


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



Bug#418715: polipo: always starts in offline mode

2007-04-11 Thread Frank Küster
Package: polipo
Version: 0.9.12-1
Severity: normal

After starting the system - even with a working ethernet connection from
the beginning - polipo is always in offline mode and gives this error
message:


Only after /etc/init.d/polipo restart is browsing possible.  

This is a default etch install, I don't know which other information
would be useful.  (By the way, polipo-control is documented nowhere in
the installed package, it seems; grepping for online or on-line
doesn't give useful results).

Regards, Frank

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (99, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages polipo depends on:
ii  libc6   2.3.6.ds1-13 GNU C Library: Shared libraries

polipo recommends no packages.

-- no debconf information

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#418715: polipo: always starts in offline mode

2007-04-11 Thread Tom Ellis Huckstep
On Wed, Apr 11, 2007 at 02:35:39PM +0200, Frank Küster wrote:
 After starting the system - even with a working ethernet connection from
 the beginning - polipo is always in offline mode and gives this error
 message:
 
 Only after /etc/init.d/polipo restart is browsing possible.  

What system are you using to run your init scripts?  I noticed polipo
doesn't have an explicit dependency on $network listed in
/etc/init.d/polipo.  This could cause the problem you mention.

Tom


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



Bug#418715: polipo: always starts in offline mode

2007-04-11 Thread Frank Küster
Tom Ellis Huckstep [EMAIL PROTECTED] wrote:

 On Wed, Apr 11, 2007 at 02:35:39PM +0200, Frank Küster wrote:
 After starting the system - even with a working ethernet connection from
 the beginning - polipo is always in offline mode and gives this error
 message:
 
 Only after /etc/init.d/polipo restart is browsing possible.  

 What system are you using to run your init scripts?  I noticed polipo
 doesn't have an explicit dependency on $network listed in
 /etc/init.d/polipo.  This could cause the problem you mention.

sysvinit, with

/etc/rcS.d/S39ifupdown  
/etc/rcS.d/S40networking
/etc/rc2.d/S20polipo

so that shouldn't be the reason.  

Regards, Frank

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#418715: polipo: always starts in offline mode

2007-04-11 Thread Frank Küster
Tom Ellis Huckstep [EMAIL PROTECTED] wrote:

 On Wed, Apr 11, 2007 at 02:35:39PM +0200, Frank Küster wrote:
 After starting the system - even with a working ethernet connection from
 the beginning - polipo is always in offline mode and gives this error
 message:

Hm, it seems I sent this mail before it was complete.  Here's the error
message:

The proxy on riesling:8123 encountered the following error while fetching 
http://buildd.debian.org/build.php?arch=pkg=tetex-bin:
502 Disconnected operation and object not in cache

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)