org.apache.jmeter.report.dashboard.GenerationException: Cannot create temporary directory "temp"

jmeter generate html report
customize jmeter report dashboard
error generating the report: org apache jmeter report core sampleexception could not read metadata
jmeter data exporter json is unable to export data
how to generate load test report in jmeter
how to share jmeter html reports
jmeter look and feel
jmeter load test dashboard

I have a test plan with a thread group and a HttpRequest . The test runs successfully creating a .csv file with the results. When i try to generate reports using jmeter dashboard report generation with the command jmeter -g .csv file -o outputfile , I get the below exception.

ERROR - jmeter.report.dashboard.ReportGenerator: Cannot create temporary directory "temp".

FATAL - jmeter.JMeter: An error occurred:  org.apache.jmeter
.report.dashboard.GenerationException: Cannot create temporary directory "temp".

        at org.apache.jmeter.report.dashboard.ReportGenerator.createTempDir(Repo
rtGenerator.java:287)
        at org.apache.jmeter.report.dashboard.ReportGenerator.generate(ReportGen
erator.java:203)
        at org.apache.jmeter.JMeter.start(JMeter.java:478)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:259)

An error occurred: Cannot create temporary directory "temp".
errorlevel=

1

You need to provide a writable location for the temp directory.

https://jmeter.apache.org/usermanual/properties_reference.html

jmeter.reportgenerator.temp_dir

Sets the temporary directory used by the generation process if it needs file I/O operations. Defaults to: temp

Getting "cannot create temp directory" error trying to generate jmeter , Try setting jmeter.reportgenerator.temp_dir to be sure to set a temp dir where you have creation / write permissions. 14.2 Configuring Dashboard Generation¶. Dashboard generation uses JMeter properties to customize the report. Some properties are used for general settings and others are used for a particular graph configuration or exporter configuration.

Following is the syntax to generate Dashboard report from existing csv file:

jmeter -g <log file> -o <Path to output folder>

here,

-g log file name (can be absolute file path also)
-o output folder but not file name (can be absolute folder path)

Note: If you give absolute paths and if it contains spaces in the path, then keep the absolute path in double quotes.

eg:

jmeter -g sample.csv "D:/temp folder/"

here, the assumption is that sample.csv is present in bin directory of JMeter. (same directory as jmeter.bat)

jmeter.report.dashboard.ReportGenerator: Cannot create temporary , JMeter: An error occurred: org.apache.jmeter .report.dashboard.​GenerationException: Cannot create temporary directory "temp". This crash was crawled from  FIX Unable to Execute File in the Temporary Directory. Setup Aborted 100% Working [UPDATED] - Duration: 2:34. Processing Brains 37,773 views

Try the following command:

jmeter -g <.jtl file location> -o <Path to output folder>

or

jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>

Also, Ensure JMeter has the rights to create and write in the folder "temp"(output directory).

63614 – Distributed testing: Unable to generate Dashboard report at , GenerationException: Error while processing samples:Mismatch src/core/org/​apache/jmeter/report/dashboard/ReportGenerator.java | 2 +- configuration or check if line 58376 in '/tmp/D07302019_133924/SDIS/log/20KB/SDIS.log' is Also I beleive as the JTL file size increases Jmeter could not handle  FIX Unable to Execute File in the Temporary Directory. Setup Aborted 100% Working [UPDATED] - Duration: 2:34. Processing Brains 38,239 views

jmeter: org.apache.jmeter.report.dashboard.GenerationException , FATAL - jmeter.JMeter: An error occurred: org.apache.jmeter .report.dashboard.​GenerationException: Cannot create temporary directory "temp". at  ☻ docker-compose up INTERNAL ERROR: cannot create temporary directory! Was running low on space: ☻ df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 112Gi 110Gi 2.1Gi 99% 28778708 543018 98% / After removing a container

How to Generate Jmeter Report Dashboard, JMeter: An error occurred: org.apache.jmeter .report.dashboard.​GenerationException: Cannot create temporary directory "temp". at  In the C: drive, create a new folder, name it Temp. (Replace C: with the drive where your operating system is installed) Right-click This PC or My Computer, depending on which version of Windows you have, and select Properties from the menu.

org.apache.jmeter.report.dashboard.GenerationException, JMeter: An error occurred: org.apache.jmeter .report.dashboard.​GenerationException: Cannot create temporary directory "temp". at  Fix for: Windows cannot find setup.exe Make sure you typed the name correctly and then try again - Duration: 2:15. Elioth Santillan 134,374 views

Comments
  • can you add the command that you tried?