Bug 3134 - Traceback when missing user on only one system
Summary: Traceback when missing user on only one system
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: 3.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
: 4821 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-07 14:36 CEST by Peter Åstrand
Modified: 2021-12-15 08:47 CET (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2009-05-07 14:36:10 CEST
This is probably an old HA bug. If you have a user one the primary but not on the secondary, and start a session using the primary, vsmserver on the secondary will give a traceback:

2009-05-07 13:32:47 DEBUG vsmserver: Handling connection from ('10.47.3.166', 1023)
2009-05-07 13:32:47 DEBUG2 vsmserver: Handling method sessionchange
2009-05-07 13:32:47 DEBUG vsmserver.HA: Handling session change (new, astrand/tlha-primary.lkpg.cendio.se:2)
2009-05-07 13:32:47 DEBUG vsmserver.HA: Got (new,astrand) from other node. Updating my session database
2009-05-07 13:32:47 ERROR vsmserver: Unhandled XMLRPC exception: <type 'exceptions.KeyError'> 'getpwnam(): name not found: astrand' Traceback (most recent call last):
  File "/opt/thinlinc/modules/thinlinc/vsm/async.py", line 112, in iii11
    obj . handle_read_event ( )
  File "/usr/lib/python2.6/asyncore.py", line 413, in handle_read_event
    self.handle_read()
  File "/usr/lib/python2.6/asynchat.py", line 140, in handle_read
    self.found_terminator()
  File "/opt/thinlinc/modules/thinlinc/vsm/xmlrpc.py", line 517, in found_terminator
    self . handle_request ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/xmlrpc.py", line 531, in handle_request
    self . handle_method ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/vsmserverchannel.py", line 105, in handle_method
    self . params )
  File "/opt/thinlinc/modules/thinlinc/vsm/handler_sessionchange.py", line 42, in handle
    self . handle_new ( )
  File "/opt/thinlinc/modules/thinlinc/vsm/handler_sessionchange.py", line 63, in handle_new
    HAtransfer = 0 )
  File "/opt/thinlinc/modules/thinlinc/vsm/sessionstore.py", line 354, in add_session
    new_sessinfo . update ( { 'uid' : pwd . getpwnam ( locale_encode ( username ) ) . pw_uid } )
KeyError: 'getpwnam(): name not found: astrand'

It will still continue to run, though.
Comment 1 Pierre Ossman cendio 2013-10-08 13:06:52 CEST
*** Bug 4821 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.