I am attempting to repair a Confluence Data Center space, using the Fix Missing Attachments Script. Our attachments are stored in a shared volume with the path: /data/confluence/sharedhome/attachments
When I run the script (Confluence is down), I get the error message:
[Error] - The directory "/data/confluence/sharedhome/attachments/ver003" is not a valid attachments directory
When I run the script on this path: /data/confluence/sharedhome/attachments I get this error.
Cleaning up the Byte Order Marker in Attachments.txt if any
Traceback (most recent call last):
File "FixMissingAttachments.py", line 430, in <module>
os.path.join(attachmentPath.strip(), 'ver003', mod(space), mod(page), content.strip(), version.strip()))
File "FixMissingAttachments.py", line 310, in mod
the_id = int(the_id)
ValueError: invalid literal for int() with base 10: '"6717442"'
I'm running the script as the user that starts the Confluence service.