System is unable to email report. Reason: java.io.IOException Unable to delete file

Here is what I got while running.

With Katalon 5.2, on Windows

System is unable to email report. Reason: java.io.IOException: Unable to delete file: C:\Users\ADMINI~1\AppData\Local\Temp\20180116_030007.zip	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)	at com.kms.katalon.execution.util.MailUtil.sendSummaryMail(MailUtil.java:131)	at com.kms.katalon.execution.launcher.ReportableLauncher.sendReportEmail(ReportableLauncher.java:147)	at com.kms.katalon.execution.launcher.ReportableLauncher.sendReport(ReportableLauncher.java:122)	at com.kms.katalon.execution.launcher.ReportableLauncher.preExecutionComplete(ReportableLauncher.java:79)	at com.kms.katalon.execution.launcher.ProcessLauncher.onWatchdogComplete(ProcessLauncher.java:171)	at com.kms.katalon.execution.launcher.LaunchWatchdog.notifyProcessTerminated(LaunchWatchdog.java:135)	at com.kms.katalon.execution.launcher.LaunchWatchdog.run(LaunchWatchdog.java:65)	at java.lang.Thread.run(Thread.java:745)

Snip20180116_99.png

Does this always happen for every test suite? Can you restart Katalon Studio and try again?

Vinh Nguyen said:

Does this always happen for every test suite? Can you restart Katalon Studio and try again?

Yes, almost every time. I start Katalon with console mode.

Andy Zhang said:

Vinh Nguyen said:

Does this always happen for every test suite? Can you restart Katalon Studio and try again?

Yes, almost every time. I start Katalon with console mode.

Hm I have no problems here. That error message looks like there is another process using it, so Katalon Studio can’t delete it:

Is there any chance to restart your computer and try again?

Vinh Nguyen said:

Andy Zhang said:

Vinh Nguyen said:

Does this always happen for every test suite? Can you restart Katalon Studio and try again?

Yes, almost every time. I start Katalon with console mode.

Hm I have no problems here. That error message looks like there is another process using it, so Katalon Studio can’t delete it:
https://stackoverflow.com/questions/5977811/problems-deleting-a-file-with-java-apache-commons-io

Is there any chance to restart your computer and try again?

Thank you, Vinh.

I also open Katalon on desktop, so when I run Katalon with console mode, the error occurs.

I am also getting the same error when i run the script through command mode.

Dheena said:

I am also getting the same error when i run the script through command mode.

This error indicates these files are currently used. So kindly execute your console mode command when you completely close Katalon Studio UI.

Same here, I have Katalon closed, not running at all. I start my testsuite from the command line and I get that same error.

Capture d’écran 2018-02-28 16.07.23.png

1 Like

Eric Constantineau said:

same with me, i got this error when i try to run from jenkins

Hi guys,
Thank you for reporting the issue. I have logged a ticket for further investigation. We will look into this asap.
Thank you for using Katalon Studio,
Alice

Hi,
Has the error been fixed yet? Well with me it’s happening in version 5.10.1

@Silva, can you share a screenshot of the error you encounter?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.