Forums

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

Web Resource : Could not find a file in configured directories

Marine Tm
Contributor
August 13, 2021

Hi,

I am trying to install web resource using script runner in my jira software test environement instance. However I am getting an error saying 'You need to configure at least one alternate resource directory before using a web-resource, see the documentation' & 'Could not find <tt>kb.css</tt> in configured resource directories:'.

I created one file 'kb.css' and put it under 'C:\Program Files\Atlassian\Application Data\JIRA\' location.

-> kb.css contains :

.cv-kb-portal-view .cv-kb-view-iframe-container .kb-view-iframe{
width: 100% !important;
}
.cv-kb-portal-view .aui-page-panel-inner.cv-kb-portal-view-inner{
width: 80% !important;
}


I have put this line 'JVM_REQUIRED_ARGS='-Dplugin.resource.directories=C:\Program Files\Atlassian\Application Data\JIRA\kb.css' in setenv.sh file as suggested in web resource documentation. I restarted jira instance several times but this seems taking no effect. I am still getting the same error as mentioned above.

I have entered below details in web resource :

Note : KB Window

Context : customerportal

Key : kb

Resources : kb.css

 

So how can I configure resource directory so my script file can be found?

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
August 13, 2021

I suspect you might need to escape the space character in the path you've given to the plugin-resource-directory parameter

Marine Tm
Contributor
August 13, 2021

@Nic Brough -Adaptavist-  Hello,

there is no space character

Nic Brough -Adaptavist-
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.
August 13, 2021 edited

Er, there very much is.  Please re-read the path you gave us, there is a space in "Program Files"

Marine Tm
Contributor
August 16, 2021

Hello @Nic Brough -Adaptavist-  because there is a space in my desk as you see in this picture below

 

Captuddddre.PNG

Nic Brough -Adaptavist-
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.
August 16, 2021

Right, so you see that there is a space in the path and what you said earlier is wrong. Try escaping it in the parameter.

Marine Tm
Contributor
August 16, 2021

@Nic Brough -Adaptavist-  i will change the directory and see if it works ...

thank you

Marine Tm
Contributor
August 16, 2021

@Nic Brough -Adaptavist-  

the error persist

 

 

kb.PNG

Nic Brough -Adaptavist-
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.
August 16, 2021

How have you escaped the space in the parameter?

Marine Tm
Contributor
August 16, 2021

i finally found the mistake ....

my file kb.css is located on

'C:\Program Files\Atlassian\Application Data\JIRA'

then i just remove the \kb.css in the url :

C:\Program Files\Atlassian\Application Data\JIRA\kb.css

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, out of office, loom, confluence, async collaboration, meeting recaps, remote teamwork, team alignment, knowledge sharing, AI-powered notes, productivity tools, workforce continuity, teamwork collection

Put your meeting notes on autopilot with Loom + Confluence

AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.

Learn more
AUG Leaders

Atlassian Community Events