Forums

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

Can not store Attechments to S3

Sven Finsterwalder
Contributor
June 28, 2024

Our Jira DC (9.12.x) is running on OpenShift.

We use the filestore-config.xml to setup our own S3 Bucket.

filestore-config.png

The feature flag was enabled correctly as per these instructions.

We have start the pod and in the jira-log we can read this:

"logger":"com.atlassian.jira.filestore.FileStoreSwitcher",
"message":"Due to the feature com.atlassian.jira.attachments.storage.configurable being disabled, the attachments storage is not configurable. Defaulting to attachments stored in the Jira home"

But for avatars ist works and they are stored in our S3 Bucket

What we are missing? Or is it not support on Jira?

 

if i call GET on the "DarkFeature" <baseURL>/rest/internal/1.0/darkFeatures/com.atlassian.jira.attachments.storage.configurable

It returns "{"enabled": true}" so why the FileStoreSwitcher says it it disabled?

2 answers

1 accepted

1 vote
Answer accepted
Sven Finsterwalder
Contributor
July 1, 2024

We found the "problem" ... it was the way how we enable the "DarkFeature"

On that page How to manage dark features in Jira | Jira | Atlassian Documentation the sentence

In order to enable a feature flag, type <feature_flag_name>.enabled in the Enable dark feature text area and click the Add button.

does not work with that DarkFeature.

We only have to add "com.atlassian.jira.attachments.storage.configurable" without the ".enabled" at the end and now it works as expected.

We can upload Attachment and they will be saved at the S3 Bucket.

 

Unfortunately, the corresponding rest call now shows "false".  <baseURL>/rest/internal/1.0/darkFeatures/com.atlassian.jira.attachments.storage.configurable BUT it works.

0 votes
Yevhen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2024
Sven Finsterwalder
Contributor
June 30, 2024

Thank you, but as I wrote above "The feature flag was enabled correctly as per these instructions." It is enabled.

jira-darkfeature.png

And I have also restart the pod, but the flag seems to be ignored.

Yevhen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 30, 2024

Sorry, I missed it completely that you did enabled this feature. It should be supported for this Jira version as far I know, but I am not a Jira SME.

Sven Finsterwalder
Contributor
June 30, 2024

no problem. 

On that page Configuring file attachments | Administering Jira applications Data Center 9.12 | Atlassian Documentation

there is one sentense:

"This feature isn't supported for on-premise deployments or for any customers not running Jira in AWS."

So did we need a real AWS Bucket?

I wish I could take a look in the FileStoreSwitcher class ...

Yevhen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2024

I think you need to configure 2 separate s3-filestore ids - for avatars and attachments, and pre-create AWS S3 buckets for each of those.

Sven Finsterwalder
Contributor
July 1, 2024

For now I have disabled the entry for avatars and deploy it again, restart the pod and it does not work.

The "FileStoreSwitcher" says again "Due to the feature com.atlassian.jira.attachments.storage.configurable being disabled, the attachments storage is not configurable..."

 

Yevhen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2024

But you did specify bucket name and region?

Sven Finsterwalder
Contributor
July 1, 2024

yes sure, in my sceenshot above i made it invisible.

if i call GET on the "DarkFeature" <baseURL>/rest/internal/1.0/darkFeatures/com.atlassian.jira.attachments.storage.configurable

It returns "{"enabled": true}" so why the FileStoreSwitcher says it it disabled?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12
TAGS
AUG Leaders

Atlassian Community Events