initscript ltsp-cluster-lbserver, action "start" failed

Bug #938034 reported by Asmo Koskinen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ltsp-cluster-lbserver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I can't install 'ltsp-cluster-lbserver' package.

This is fresh up-to-date 12.04. Here is error message (sorry for finnish).

oot@lubuntu-root:~# apt-get install ltsp-cluster-lbserver
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot... Valmis
Seuraavat UUDET paketit asennetaan:
  ltsp-cluster-lbserver
0 päivitetty, 1 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.
Noudettavaa arkistoa 0 t/14,6 kt.
Toiminnon jälkeen käytetään 114 k t lisää levytilaa.
Selecting previously unselected package ltsp-cluster-lbserver.
(Luetaan tietokantaa... 85592 files and directories currently installed.)
Puretaan pakettia ltsp-cluster-lbserver (.../ltsp-cluster-lbserver_2.0.0-0ubuntu3_all.deb)...
Suoritetaan kohteen man-db liipaisimia...
Suoritetaan kohteen ureadahead liipaisimia...
Tehdään asetuksia: ltsp-cluster-lbserver (2.0.0-0ubuntu3) ...
update-rc.d: warning: ltsp-cluster-lbserver stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1)
 * Starting ltsp-cluster-lbserver... [fail]
invoke-rc.d: initscript ltsp-cluster-lbserver, action "start" failed.
dpkg: virhe käsiteltäessä ltsp-cluster-lbserver (--configure):
 aliprosessi installed post-installation script palautti virhetilakoodin 1
Käsittelyssä tapahtui liian monta virhettä:
 ltsp-cluster-lbserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@lubuntu-root:~#

And here is info about ltsp setup. This is root-server for ltsp-cluster.

root@lubuntu-root:~# ltsp-info
server information:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu precise (development branch)
Release: 12.04
Codename: precise

server packages:
ii ldm-server 2:2.2.5-2
ii ltsp-cluster-control 2.0.2-0ubuntu1
iF ltsp-cluster-lbserver 2.0.0-0ubuntu3
ii ltsp-server 5.3-0ubuntu1
ii ltsp-server-standalone 5.3-0ubuntu1
un ltsp-utils <none>
ii ltspfs 1.0-1

packages in chroot: /opt/ltsp/i386
ii ldm 2:2.2.5-2
un ldm-themes <none>
ii ldm-ubuntu-theme 2:2.0.45
un ldm-ubuntu-themes <none>
ii ltsp-client 5.3-0ubuntu1
ii ltsp-client-core 5.3-0ubuntu1
ii ltspfsd 1.0-1
ii ltspfsd-core 1.0-1

found: /opt/ltsp/i386/etc/lts.conf

found image: /opt/ltsp/images/i386.img

root@lubuntu-root:~#

Best Regards Asmo Koskinen.

Revision history for this message
Asmo Koskinen (asmok) wrote :
Download full text (3.6 KiB)

I can log in root-server, but there is no change to use Unity (or anything else), because root-server is only for command line users.

Feb 23 10:52:44 lubuntu-root sshd[2357]: Accepted password for ltsp001 from 10.0.0.100 port 34104 ssh2

Feb 23 10:52:46 lubuntu-root ltsp-directory[965]: ,ip=10.0.0.100,username=ltsp001,mac=08:00:27:41:02:18,appservip=10.0.0.50,display=7,code=3

So problem seems to me that application-server is wrong one. Should be 10.0.0.55, now it is 10.0.0.50, because of ltsp-cluster-
lbserver not running.

Feb 23 10:48:20 lubuntu-root ltsp-directory[1201]: ,ip=10.0.0.100,username=ltsp001,mac=08:00:27:41:02:18,appservip=10.0.0.50,display=7,code=3

Feb 23 10:48:29 lubuntu-root ltsp-directory[1199]: ,ip=10.0.0.100,username=ltsp001,mac=08:00:27:41:02:18,appservip=10.0.0.50,display=7,code=4,termaccess=0,publickey=

Feb 23 10:48:32 lubuntu-root ltsp-directory[966]: ,ip=10.0.0.100,mac=08:00:27:41:02:18,display=0.0,code=2

I can ping '10.0.0.55'/'lubuntu-app'.

oot@lubuntu-root:~# ping 10.0.0.55
PING 10.0.0.55 (10.0.0.55) 56(84) bytes of data.
64 bytes from 10.0.0.55: icmp_req=1 ttl=64 time=0.937 ms

root@lubuntu-root:~# ping lubuntu-app
PING lubuntu-app (10.0.0.55) 56(84) bytes of data.
64 bytes from lubuntu-app (10.0.0.55): icmp_req=1 ttl=64 time=0.785 ms

Here is my 'lbsconfig.xml'.

root@lubuntu-root:~# cat /etc/ltsp/lbsconfig.xml
<?xml version="1.0"?>
<lbsconfig>
    <lbservice listen="*:8008" max-threads="1" refresh-delay="60" returns="$IP"/>
    <lbslave is-slave="false"/>
    <mgmtservice enabled="true" listen="*:8001"/>
    <nodes>
        <group default="true" name="lubuntu">
            <node address="http://10.0.0.55:8000" name="lubuntu-app"/>
        </group>
    </nodes>
    <rules>
        <variable name="LOADAVG" weight="50">
            <rule capacity=".7"/>
        </variable>
        <variable name="NBX11SESS" weight="25">
            <rule capacity="$CPUFREQ*$CPUCOUNT*$CPUCOUNT/120" critical="$CPUFREQ*$CPUCOUNT*$CPUCOUNT/100"/>
        </variable>
        <variable name="MEMUSED" weight="25">
            <rule capacity="$MEMTOTAL-100000"/>
        </variable>
    </rules>
</lbsconfig>
root@lubuntu-root:~#

And LTSP-Cluster Control Center sees login progress.

Date and time Terminal Node ID MAC Address Terminal Address Boot Server Address Application Server Address User Name Event
2012-02-23 10:52:46 3 08:00:27:41:02:18 10.0.0.100 10.0.0.50 10.0.0.50 ltsp001 User login

This is updated 12.04.

root@lubuntu-root:~# apt-get install -f
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot... Valmis
0 päivitetty, 0 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.
1 ei asennettu kokonaan tai poistettiin.
Toiminnon jälkeen käytetään 0 t lisää levytilaa.
Tehdään asetuksia: ltsp-cluster-lbserver (2.0.0-0ubuntu3) ...
update-rc.d: warning: ltsp-cluster-lbserver stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1)
 * Starting ltsp-cluster-lbserver... ...

Read more...

Revision history for this message
Asmo Koskinen (asmok) wrote :

I add this info, too.

Feb 23 10:44:24 lubuntu-root ltsp-directory[1201]: ,ip=10.0.0.100,mac=08:00:27:41:02:18,display=0.0,code=2, - cannot_set_status: This message is not set in text-en.phpThis is not a valid IP address : appServIp=0.0.0.0
Feb 23 10:44:24 lubuntu-root ltsp-directory[1201]: ,ip=10.0.0.100,mac=08:00:27:41:02:18,display=0.0,code=2

From LTSP-Cluster Admin Center.

Hardware specification

MEMTOTAL='119564'
CPUFREQ='2121.415'
CPUNAME='Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz'
CPUCOUNT='1'
CPUVENDOR='GenuineIntel'
PCIID='1022:2000'
PCIID='106b:003f'
PCIID='8086:1237'
PCIID='8086:2415'
PCIID='8086:2829'
PCIID='8086:7000'
PCIID='8086:7111'
PCIID='8086:7113'
PCIID='80ee:beef'
PCIID='80ee:cafe'
Current configuration

 LANG='en_EN.UTF-8'
 LDM_DIRECTX='True'
 LDM_SERVER='%LOADBALANCER%'
 LOCAL_APPS_MENU='True'
 SCREEN_07='ldm'
 TIMESERVER='ntp.ubuntu.com'
 XKBLAYOUT='en'

Best Regards Asmo Koskinen.

Revision history for this message
Asmo Koskinen (asmok) wrote :

I did try this:

root@lubuntu-root:~# /usr/bin/python /usr/sbin/ltsp-cluster-lbserver /etc/ltsp/lbsconfig.xml
Traceback (most recent call last):
  File "/usr/sbin/ltsp-cluster-lbserver", line 5, in <module>
    from lbserver import main
ImportError: No module named lbserver

Best Regards Asmo Koskinen.

Revision history for this message
Asmo Koskinen (asmok) wrote :

 I forced earlier 'ltsp-cluster-lbserver' package to use:

https://launchpad.net/ubuntu/precise/i386/ltsp-cluster-lbserver/2.0.0-0ubuntu2

Now ltsp-cluster works as expected.

1909 ? Sl 0:00 /usr/bin/python /usr/sbin/ltsp-cluster-lbserver --daemon --logfile=/var/log/ltsp-cluster-lbserver.log /etc/ltsp/lbsconfig.xml

root@lubuntu-root:~# tail /var/log/ltsp-cluster-lbserver.log
Start MGMT Service...
Start HTTP Server...
lubuntu-root - - [25/Feb/2012 17:58:20] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 17:58:25] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 17:58:55] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 17:59:04] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 18:01:33] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 18:01:36] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 18:02:09] "GET /?group=default HTTP/1.0" 200 -
lubuntu-root - - [25/Feb/2012 18:02:18] "GET /?group=default HTTP/1.0" 200 -

Feb 25 18:02:18 lubuntu-root ltsp-directory[2192]: ,ip=10.0.0.100,username=ltsp001,mac=08:00:27:41:02:18,appservip=10.0.0.55,display=7,code=3

From LTSP-Cluster Control Center

Date and time Terminal Node ID MAC Address Terminal Address Boot Server Address Application Server Address User Name Event
2012-02-25 17:59:04 3 08:00:27:41:02:18 10.0.0.100 10.0.0.50 10.0.0.55 ltsp001 User login

Best Regards Asmo Koskinen.

Revision history for this message
Asmo Koskinen (asmok) wrote :
Download full text (8.5 KiB)

Here are results for python >>> import lbserver. First one is 'ltsp-cluster-lbserver_2.0.0-0ubuntu2_all.deb', secaond one is 'ltsp-cluster-lbserver_2.0.0-0ubuntu3_all.deb'.

-----

root@lubuntu-root:~# python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc
# /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
# /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
import stat # precompiled from /usr/lib/python2.7/stat.pyc
# /usr/lib/python2.7/genericpath.pyc matches
/usr/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
# /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
# /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
# /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
import types # precompiled from /usr/lib/python2.7/types.pyc
# /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
# /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
# /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
import abc # precompiled from /usr/lib/python2.7/abc.pyc
# /usr/lib/python2.7/_weakrefset.pyc matches
/usr/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
# /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
# /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
# /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
import re # precompiled from /usr/lib/python2.7/re.pyc
# /usr/lib/python2.7/sre_compile.pyc matches
/usr/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
# /usr/lib/python2.7/sre_constants.pyc matches
/usr/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
# /usr/lib/python2.7/sitecustomize.pyc matches
/usr/lib/python2.7/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.7/sitecustomize.pyc
import encodings # directory /u...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ltsp-cluster-lbserver (Ubuntu):
status: New → Confirmed
Revision history for this message
Carlos Colombo (pu-carlos-r7) wrote :

Could this problem be related to PYTHONPATH?

Just added the following line on /usr/sbin/ltsp-cluster-lbserver and the problem is gone.

--- ltsp-cluster-lbserver-old 2012-03-15 10:27:56.526743156 -0300
+++ ltsp-cluster-lbserver 2012-03-15 10:21:55.878745861 -0300
@@ -2,6 +2,7 @@
 # Wrapper to start lbagent

 import sys
+sys.path.append('/usr/share/pyshared')
 from lbserver import main
 from lbserver import utils

Best regards,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.