JMeter - Error when starting test plan- keytool error: proxysever.jks (access is denied)

user3558286

I am following JMeter User guide to start recording my first test plan. When I click the Start button in HTTP Test Script Recorder, I got this error:

Could not create script recorder – see log for details >> keytool error:java.io.FileNotFoundException: proxyserver.jks (Access is denied)

How could I fix this error? Thanks in advance.

Dmitri T
  • Background: JMeter creates a self-signed SSL certificate in order to be able to decrypt and record HTTPS requests, this proxyserver.jks is a Java Keystore which is being generated by JMeter in its "bin" folder when you start HTTP(S) Test Script Recorder proxy

  • Explanation: The error you are getting most probably indicates that you don't have permissions to write anything into the "bin" folder of your JMeter installation

  • Workarounds:

    1. You can try launching JMeter with elevated rights (run as administrator or superuser or whoever having write access to JMeter's "bin" folder
    2. You can change the location where JMeter tries to generate this proxyserver.jks file by adding the next line to user.properties file:

      proxy.cert.directory=/path/to/folder/where/you/have/write/access
      

      JMeter restart will be required to pick the property up.

      Another option is passing the property value via -J command-line argument like

      jmeter -Jproxy.cert.directory=/path/to/folder/where/you/have/write/access -n -t ....
      

    Check out Apache JMeter Properties Customization Guide for more information regarding JMeter properties and ways of setting and overriding them

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Java Keytool error after importing certificate , "keytool error: java.io.FileNotFoundException & Access Denied"

JMeter: Why get error when try to save test plan

"Access Is Denied" error when attempting to remote to Exchange server on localhost

JMeter error when generating dashboard at end of test

An error occurred (AccessDenied) when calling the DeleteBucket operation: Access Denied

access jmeter.log file when lunching test from jenkins jmeter.log (Permission denied) java.io.FileNotFoundException: error

Access denied error when trying to save file to directory

Access denied message when starting HeidiSQL

Error "The user denied your request" when generate Access Token Instagram

Access Denied Error when trying to post messages to SQS

An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied

ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Access Denied

MySQL error access denied

Error when starting gitk

Authentication error "Access Denied" in AngularFire when using Internet Explorer 9

Spring AWS: Access denied error when deploying war on Elastic Beanstalk

Error when starting treesheets

Error when starting fsi

Error apache : access denied

PSSession Access Denied Error

Why error "Access Denied" when creating a adhoc report in JasperReports Server?

ER_ACCESS_DENIED_ERROR when connecting to Mysql database

Getting an error from the application when recording a Jmeter test plan

JMeter cannot collect CPU per process due to Access Denied error

Error when starting BitCoin

Running jre keytool results in the Permission Denied error

Process creation failed with error: Access is denied when starting project in debug mode

Access Denied Error When AssociateVPCWithHostedZone Using Lambda & Boto3

Get-ChildItem return access denied error when run as "SYSTEM"

TOP Ranking

HotTag

Archive