Login Problem

Problems, questions, or anything else related to the MV3D server.

Moderator: SirGolan

Login Problem

Postby jhamel » Mon Jul 18, 2011 10:19 pm

Hi,
I tried out the mv3d 3 days ago at the first time. Mostly all works good, I could connect to the server and the Panda3d renderer works also. But since Sunday I have a big problem, I can't never connect to the server. I run the server on localhost( Ubuntu natty), on Virtualbox (Ubuntu Lucid) and on a root server(Ubuntu Lucid). All the same problem, I get ever and on all systems the same error message. Also, I change a lot the configurations, re-initialize the server, stop, start and restart it, all the same, this is the error on the client side:
Code: Select all
 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: https://localhost:8080/service/>
2011-07-19 00:08:47+0200 [HTTPPageGetter,client] Unhandled Error
   Traceback (most recent call last):
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
       current.result = callback(current.result, *args, **kw)
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1076, in gotResult
       _inlineCallbacks(r, g, deferred)
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
   --- <exception caught here> ---
     File "/misc/Projekte/py3d-worlds/MV/mv3d/client/state.py", line 67, in onLogin
       self.client.svc = yield self.client.conductor.getService(service)
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
     File "/misc/Projekte/py3d-worlds/MV/mv3d/net/client.py", line 747, in getService
       pws = yield self.getTempPasswords(sl)
     File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
       result = result.throwExceptionIntoGenerator(g)
     File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 349, in throwExceptionIntoGenerator
       return g.throw(self.type, self.value, self.tb)
   exceptions.TypeError: exceptions must be classes, or instances, not str
   
2011-07-19 00:08:47+0200 [HTTPPageGetter,client] Stopping factory <HTTPClientFactory: https://localhost:8080/service/>
 

At the Server Side I see this:
Code: Select all
accout.py line 958, UnauthozizedLogin ("invalid Credentials")


Here is one of my configuration files, perhaps you see something wrong .

Code: Select all
 [Overseer]
# Define the services to register (corresponds to sections below)
serviceNames=Overseer, Subordinate
# Define connection factories to use (corresponds to sections below)
connectionFactories=PBClient, HttpClient
name=Overseer
# If specified, run an ssh console on this port
#consolePort=4444
# For ssh console, this is a list of users:passwords separated by comas
#consoleUsers=mike:pass
# Put all MV3D data in the following folder. ~ expands to your home directory.
dataRoot=~/.mv3d

[PBClient]
type=mv3d.net.client.PBConFactory
# If you are running your own login service, you'll want to change the value
# of loginServices to point at it
loginServices=https://localhost:8080/Login
defaultCredentials=mike:pass

[HttpClient]
type=mv3d.net.client.JSONConFactory
protocol=https

[HttpServer]
type=mv3d.server.network.HttpServer
# The port to run the login service on
port=8080
# set this to "on" to use SSL (recommended)
ssl=off
# list of servers that can authenticate logins
authenticators=self/Account
# list of pages (corresponds to sections below)
#pages=GuidePage
# list of anonymously accessible pages (corresponds to sections below)
anonPages=GuidePage
# a comma separated list of static entries in the form of url:location
# honestly, though, you REALLY should use a separate webserver for these
# because you don't want your game server wasting time serving static content.
static=static:media/staticweb

[Overseer]
type=mv3d.server.overseer.OverseerService
loginService=https://localhost:8080/Login
accountService=pb://localhost:1999/Account
publicLocation=pb://localhost:1999/Overseer
startPort=1997

[Subordinate]
type=mv3d.server.overseer.SubordinateService
interfaces=mv3d.server.overseer.SubordinateServiceView
grantPermissions=all:admin
# todo: make this more configurable.
svnExe=c:\\Program Files (x86)\\Subversion\\bin\\svn.exe


Bye,
Juergen Hamel
jhamel
 
Posts: 17
Joined: Fri Jul 15, 2011 11:07 am

Re: Login Problem

Postby SirGolan » Tue Jul 19, 2011 12:59 am

Ahh ok.. So looking at the line number from the server side exception, it looks like there was an error while attempting to validate the user's authentication token. There should be more errors on the server. If you could select all the lines on the server log and paste them here, I can probably get a better idea of what's going on.

Thanks,

Mike
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Login Problem

Postby jhamel » Tue Jul 19, 2011 9:10 am

Hi,
here is the serverside code:

Code: Select all
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,0,79.226.191.183   79.226.191.183 - - [19/Jul/2011:08:49:10 +0000] "POST /service/ HTTP/1.0" 302 340 "-" "MV3D"
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,1,79.226.191.183   79.226.191.183 - - [19/Jul/2011:08:49:11 +0000] "POST /__session_key__32aac0a2315bc5fcdc4e391f1574bec5/service/ HTTP/1.0" 302 244 "-" "MV3D"
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,2,79.226.191.183   79.226.191.183 - - [19/Jul/2011:08:49:11 +0000] "POST /service/ HTTP/1.0" 200 66 "-" "MV3D"
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   Traceback (most recent call last):
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 916, in authenticateResponse
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       d = self.getAccount(user)
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 815, in getAccount
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       d = self.getAccountServer()
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 800, in getAccountServer
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 800, in getAccountServer
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 800, in getAccountServer
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   --- <exception caught here> ---
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 823, in _inlineCallbacks
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       result = g.send(result)
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/util/conductor.py", line 488, in getOneService
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       raise ConnectError("No services passed in to getOneService!")
Di 19 Jul 2011 10:49:11    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   mv3d.util.conductor.ConnectError: No services passed in to getOneService!
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   Traceback (most recent call last):
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/login.py", line 516, in <lambda>
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       username, session.challenge, cryptData))
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 959, in authenticateResponse
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       return d.addCallback(gotAcct).addErrback(error)
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 235, in addErrback
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       errbackKeywords=kw)
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 213, in addCallbacks
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       self._runCallbacks()
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   --- <exception caught here> ---
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 371, in _runCallbacks
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       self.result = callback(self.result, *args, **kw)
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183     File "mv3d/server/account.py", line 958, in error
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183       raise UnauthorizedLogin("Invalid credentials.")
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   twisted.cred.error.UnauthorizedLogin: Invalid credentials.
Di 19 Jul 2011 10:49:12    pb://85.214.140.105   0   HTTPChannel,3,79.226.191.183   79.226.191.183 - - [19/Jul/2011:08:49:11 +0000] "POST /service/ HTTP/1.0" 200 966 "-" "MV3D"
Di 19 Jul 2011 10:50:11    pb://85.214.140.105   0   -   session given the will to live for 3600 more seconds


I hope, it will help you,

best regards,
Juergen
jhamel
 
Posts: 17
Joined: Fri Jul 15, 2011 11:07 am

Re: Login Problem

Postby SirGolan » Wed Jul 20, 2011 1:01 am

I just logged in to your server. It looks like your account, realm, and sim services have no data associated with them. So there's no accounts defined which is why you are getting the error. Are you trying to set up a cluster of servers or just a stand-alone one? Which configuration server are you starting?

Mike
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Login Problem Solved

Postby jhamel » Fri Jul 22, 2011 7:34 pm

Hi,
after a new clean Install and work on the configuration files ( I have now all below etc/grid/overseer ) runs the server well. The client starting from 751-visualogre works also now, I see the ground and can move around, the client from the trunk works not :-( The error is
Code: Select all
 File "/misc/Projekte/py3d-worlds/MV/mv3d/client/view/realm.py", line 18, in <module>
       from mv3d.client.ui.ogre3d import CaelumSky
     File "/misc/Projekte/py3d-worlds/MV/mv3d/client/ui/ogre3d.py", line 56, in <module>
       ogreVersion = getOgreVersion()
     File "/misc/Projekte/py3d-worlds/MV/mv3d/client/ui/ogre3d.py", line 39, in getOgreVersion
       if hasattr(ogre, "Version__"):
   exceptions.NameError: global name 'ogre' is not defined

But for now it is ok, I am really happy. Ty all for the help,

bye
Juergen
jhamel
 
Posts: 17
Joined: Fri Jul 15, 2011 11:07 am


Return to Server Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron