Forums

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

removing attachments altogether

jtdotcom
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2021

Hi,

 

When trying to migrate to the Cloud from self hosted confluence, I received the following for one of the Space:

"Failed to read 74 attachment(s). Check the Confluence log file for more details."

 

I believe these attachment are no longer exist/lost after I have backup and restore in previous versions.

 

How can I going about to bypass or remove these attachment references altogether for the migration to work for this space.

 

Regards,

Josh.

2 answers

0 votes
Carlos Viscarra March 8, 2021

Im having the exact same issue with 9 attachments that failed to migrate. 

 

The problem is I cant seem to find the spaces and pages where those files are supposed to be. Do you know how to find the name and location of the attachments? I went into the Space and deleted the attachments I thought were the issue but they were not. 

0 votes
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.
March 1, 2021

The "fix" that should really be done is to put the files back where they were removed from.  I would be worried about a backup that loses files!

If you don't want them any more, then you could just put stubs in place for the files (a simple text file with a short string in it saying that the original file has been lost for example), that would stop the errors causing problems.

The other option would be to dig through the database, removing the references in the attachments table to those files.

Carlos Viscarra March 8, 2021

The issue I am having is that the log file wont tell me which attachments failed to migrate. Any ideas why the log wont give me those details?

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.
March 8, 2021

When I've seen this in the past, the log has told me what page they were attached to, but if you are not getting anything out, then you might have to do this by force.  Read the whole attachments table in the database and check for the physical existence of every file it says is attached.

Carlos Viscarra March 8, 2021

The only positive I have is this failure to migrate is only happening with 1 space. So I am hoping the database has well defined space-attachment table references. 

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.
March 8, 2021

It's not, it's a list of attachments only, with references back to the pages they are attached to.

Suggest an answer

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

Atlassian Community Events