Nicolas François wrote:
Hello,

On Thu, Dec 25, 2008 at 12:11:20PM +1300, squ...@treenet.co.nz wrote:
Initial upgrade from pootle 1.1 to pootle 1.2 causes the init.d script to die silently without Pootle running. Nothing found in logs about a problem.

It turns out that the jToolkit installed had a deprecated library. But that should not have been fatal to Pootle.

/var/lib/python-support/python2.5/jToolkit/data/dates.py:27: DeprecationWarning: The sre module is deprecated, please import re.
  import sre
Python-Levenshtein not found. Continuing with built-in (slower) fuzzy matching.

Those warnings are just warnings, and should not cause any issues.

Exactly. Manually starting the binary shows it then runs just fine.


Applying this patch resolves the silent failure and allows later init.d piping to log the warning/errors that occur.

--- /etc/init.d/pootle.dpkg-new 2008-09-27 08:28:45.000000000 +1200
+++ /etc/init.d/pootle  2008-12-25 12:04:45.000000000 +1300
@@ -43,7 +43,7 @@
                        chmod 755 /var/run/pootle
                fi
                echo -n "Starting $DESC..."
-               if LC_ALL=C start-stop-daemon --start --quiet \
+               if LC_ALL=C start-stop-daemon --start \
                    --oknodo \
                    --pidfile $PIDFILE \
                    --exec /usr/bin/python \

Did pootle started after this change?
Did you make any other changes?

I only made that one change and Pootle worked again as before.

BTW, I forgot to mention this was cross-installing Pootle and required dependencies on a Sid/unstable platform.


I will check if that makes the daemon too verbose.
If it is not, then I will apply it.

The only noticeable difference in output here was that the startup warning appears in the log as it should.

Cheers
Amos



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

Reply via email to