Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear ScriptRunner Groovy cache _completely_?

Janek Schumann September 5, 2025

Dear Community,

I got a ScriptRunner / Groovy issue. We moved from Windows servers to Linux servers.
It seems that the ScriptRunner app isn't working correctly on Linux though.

The issue is case sensitive files. We get the following error:

The script could not be compiled: 
<pre>

org.codehaus.groovy.control.MultipleCompilationErrorsException: 

startup failed: 

file:/mnt/jira/shared/scripts/ClassNameWithScope.groovy: 6: 

Invalid duplicate class definition of class ClassNameWithScope : 

The sources file:/mnt/jira/shared/scripts/ClassNamewithscope.groovy and file:/mnt/jira/shared/scripts/ClassNameWithScope.groovy each contain a class with the name ClassNameWithScope. @ line 6, column 1. 

public class ClassNameWithScope ^ 1 error 

</pre>.
In the Script Editor, renaming of a file which only changes typos lower/upper case does not work.
And yet, somehow, the file was compiled. Now there are duplicated class files .... _somewhere_.
The build-in Script "Clear Groovy Cache" does not clear those files at all.
Disabling and reenabling the app does not work either.
Any thoughts?

Thanks,
Janek

2 answers

0 votes
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2025

It just reads to me that you have 2 files with the same name on the file system, not that it's a groovy cache problem. It doesn't generate new files into the script roots, it keeps them somewhere else.

0 votes
Florian Bonniec
Community Champion
September 5, 2025

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.23
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events