pedrocesarti / distributed-jmeter-docker

58 stars 56 forks source link

JMeter 5.0 Provide option to supply rmi_keystore.jks or disable ssl #11

Open mookkiah opened 3 years ago

mookkiah commented 3 years ago

Running pedrocesarti/jmeter-docker:latest works just fine. But when we use 5.0, we are getting error about missing rmi_keystore.jks.

Please setup the ssl as part of the image or provide instruction to setup. For the helm chart, as servers and master runs within the same namespace, we could add a configmap for user.properties by disabling ssl.

Please help fixing this to work out of the box as per below expectation. Or please share your recommendation to resolve.

Hint: https://stackoverflow.com/a/50113228/3846562

mahendran@mm-lab distributed-jmeter-docker % docker run -p 1099:1099 -p 50000:50000 -d pedrocesarti/jmeter-docker:5.0 server
Unable to find image 'pedrocesarti/jmeter-docker:5.0' locally
5.0: Pulling from pedrocesarti/jmeter-docker
802b00ed6f79: Already exists 
c93b65a61a80: Already exists 
a9885ada077a: Already exists 
a89352ec9377: Already exists 
4afde0273ed2: Already exists 
f32ac35cfe65: Already exists 
f3cf53b433e6: Pull complete 
c3f32cffbf36: Pull complete 
7bdbf78f71a5: Pull complete 
db5a40be7a83: Pull complete 
cf7563f1be76: Pull complete 
b7428079b964: Pull complete 
a981ce4facce: Pull complete 
86b6d6b69852: Pull complete 
Digest: sha256:49ab4d13bd08aae8d4fd07cc15d1020afbd5d6b9c2e3dd1b074f8f478b480e86
Status: Downloaded newer image for pedrocesarti/jmeter-docker:5.0
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
8d9477abba2c098aa9ede6ef9ae94c36a0ea5542e8199441fc51655077d5337f
mahendran@mm-lab distributed-jmeter-docker % docker logs 8d9477abba2c098aa9ede6ef9ae94c36a0ea5542e8199441fc51655077d5337f
Feb 03, 2021 10:30:45 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Using local port: 50000
Server failed to start: java.rmi.server.ExportException: Listen failed on port: 50000; nested exception is: 
        java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)
An error occurred: Listen failed on port: 50000; nested exception is: 
        java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)
mahendran@mm-lab distributed-jmeter-docker %
jayachandralingam commented 3 years ago

@pedrocesar-ti I just wanted to contribute to this project... I just made few change and it started working with jmeter 5.4. Let me know if you can make me a contributor to this project. thankyou

jayachandralingam commented 3 years ago

@mookkiah simply add a line to "distributed-jmeter-docker/config/user.properties" file with "server.rmi.ssl.disable=true"... I hope this will work.