Skip to content

IOError KMSDatabase not found #10

Closed
@ghost

Description

Hello,
With this new version of pyKMS, nothing works at all.

I'm providing you the log file from py-kms.

Output of /usr/bin/python /root/py-kms/server.py 10.0.0.254 -v

`
TCP server listening at 10.0.0.254 on port 1688.
Connection accepted: 10.0.0.1:49670
RPC bind request received.
RPC bind acknowledged.
Received activation request.
Received V6 request on Thu Jul 27 22:30:42 2017.
Connection closed: 10.0.0.1:49670

Exception happened during processing of request from ('10.0.0.1', 49670)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 652, in init
self.handle()
File "/root/py-kms/server.py", line 113, in handle
res = bytes(handler.populate())
File "/root/py-kms/rpcBase.py", line 41, in populate
return self.generateResponse(self.parseRequest())
File "/root/py-kms/rpcRequest.py", line 18, in generateResponse
responseData = kmsBase.generateKmsResponseData(request['pduData'], self.config)
File "/root/py-kms/kmsBase.py", line 299, in generateKmsResponseData
return messagehandler.executeRequestLogic()
File "/root/py-kms/kmsRequestV5.py", line 66, in executeRequestLogic
responseBuffer = self.serverLogic(decrypted['request'])
File "/root/py-kms/kmsBase.py", line 160, in serverLogic
kmsdata = parse(tokenize(open(kmsdb)), lesslist=False)['KmsData'][0]
IOError: [Errno 2] No such file or directory: 'KmsDataBase.xml'

Connection accepted: 10.0.0.1:49671
RPC bind request received.
RPC bind acknowledged.
Received activation request.
Received V6 request on Thu Jul 27 22:30:45 2017.
Connection closed: 10.0.0.1:49671

Exception happened during processing of request from ('10.0.0.1', 49671)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 290, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 318, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 652, in init
self.handle()
File "/root/py-kms/server.py", line 113, in handle
res = bytes(handler.populate())
File "/root/py-kms/rpcBase.py", line 41, in populate
return self.generateResponse(self.parseRequest())
File "/root/py-kms/rpcRequest.py", line 18, in generateResponse
responseData = kmsBase.generateKmsResponseData(request['pduData'], self.config)
File "/root/py-kms/kmsBase.py", line 299, in generateKmsResponseData
return messagehandler.executeRequestLogic()
File "/root/py-kms/kmsRequestV5.py", line 66, in executeRequestLogic
responseBuffer = self.serverLogic(decrypted['request'])
File "/root/py-kms/kmsBase.py", line 160, in serverLogic
kmsdata = parse(tokenize(open(kmsdb)), lesslist=False)['KmsData'][0]
IOError: [Errno 2] No such file or directory: 'KmsDataBase.xml'

^CTraceback (most recent call last):
File "/root/py-kms/server.py", line 129, in
main()
File "/root/py-kms/server.py", line 78, in main
server.serve_forever()
File "/usr/lib/python2.7/SocketServer.py", line 231, in serve_forever
poll_interval)
File "/usr/lib/python2.7/SocketServer.py", line 150, in _eintr_retry
return func(*args)
KeyboardInterrupt
root@pykms:~# `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions