HW 2.6 EOF occurred in violation of protocol (_ssl.c:1822)

I’m getting the error below when I start mongod with KMIP encryption. The mongod command hangs and the kmip service throws the error below. PyKMIP installed
with no errors.

vagrant@database:~/shared/certs$ hostname -f
database.m310.mongodb.university

vagrant@database:~/shared/certs$ sum *
28187 2 ca.pem
05787 4 client.pem
45651 4 server.pem

vagrant@database:~/shared/certs$ ps -ef|grep mongo|grep -v grep
vagrant@database:~/shared/certs$
vagrant@database:~/shared/certs$mongod --dbpath “/home/vagrant/M310-HW-2.6/r0” --logpath “/home/vagrant/M310-HW-2.6/r0/mongo
.log.log” --port 31260 --enableEncryption --kmipServerName infrastructure.m310.mongodb.university --kmipServerCAFile ~/
shared/certs/ca.pem --kmipClientCertificateFile ~/shared/certs/client.pem

[vagrant@infrastructure shared]$ hostname -f
infrastructure.m310.mongodb.university

[vagrant@infrastructure shared]$ python pykmip_server.py
2019-04-21 13:23:18,529 - main - INFO - Starting KMIP server

2019-04-21 13:11:13,231 - kmip.services.kmip_server - ERROR - KMIPServer <class ‘ssl.SSLEOFError’> EOF occurred in violation of protocol (_ssl.c:1822)

vagrant@database:~/M310-HW-2.6/r0$ more mongo.log.log
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] MongoDB starting : pid=22540 port=31260 dbpath=/home/vagrant/M310-HW-2.6/r0 64-bit host=database
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] db version v3.2.22
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] git version: 105acca0d443f9a47c1a5bd608fd7133840a58dd
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] allocator: tcmalloc
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] modules: enterprise
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] build environment:
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] distmod: ubuntu1404
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] distarch: x86_64
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] target_arch: x86_64
2019-04-21T13:37:41.033+0000 I CONTROL [initandlisten] options: { net: { port: 31260 }, security: { enableEncryption: true, kmip: { clientCertificateFile: “/home/vagrant/shared/certs/client.pem”, serverCAFile: “/home/vagrant/shared/certs/ca.pem”, serverName: “infrastructure.m310.mongodb.university” } }, storage: { dbPath: “/home/vagrant/M310-HW-2.6/r0” }, systemLog: { destination: “file”, path: “/home/vagrant/M310-HW-2.6/r0/mongo.log.log” } }
2019-04-21T13:37:41.057+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),verbose=(recovery_progress),extensions=[local=(entry=mongo_addWiredTigerEncryptors)],encryption=(name=AES256-CBC,keyid=".system"),
2019-04-21T13:37:41.124+0000 I STORAGE [initandlisten] Created KMIP key with id: 2
2019-04-21T13:37:41.194+0000 I STORAGE [initandlisten] Encryption key manager initialized using KMIP key with id: 2.
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten]
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten]
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten] ** We suggest setting it to ‘never’
2019-04-21T13:37:41.194+0000 I CONTROL [initandlisten]
2019-04-21T13:37:41.206+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/home/vagrant/M310-HW-2.6/r0/diagnostic.data’
2019-04-21T13:37:41.207+0000 I NETWORK [initandlisten] waiting for connections on port 31260
2019-04-21T13:37:41.207+0000 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker

@Steve_Muller_37471

What makes you think there are any errors here? This is the standard set of display messages when you start a mongod process without --fork. To log into the shell, open a new window and simply log in.

Thanks for the quick response. It’s working. I thought I’d configured something wrong when I saw the message below pop-up when I started it. Thanks for the help!

[vagrant@infrastructure shared]$ python pykmip_server.py
2019-04-21 13:23:18,529 - main - INFO - Starting KMIP server

2019-04-21 13:11:13,231 - kmip.services.kmip_server - ERROR - KMIPServer <class ‘ssl.SSLEOFError’> EOF occurred in violation of protocol (_ssl.c:1822)

1 Like