Hello. Recently i've moved confluence to another physical server. After that old attachements to pages no longer accessible because they are still have old server URL in link.
Can anybody suggest how-to fix it?
Hi Vadim,
You should be able to bulk update this globally on the instance but keep in mind this method should be done with caution and I recommend a lot of select statements first to pinpoint the best approach to change URLs.
// Ex, https://oldBaseUrl and https://newBaseUrl UPDATE BODYCONTENT SET BODY = REPLACE(BODY,'<old_string>','<new_string>');
This is the underlying issue I think you run into https://confluence.atlassian.com/confkb/some-attachments-or-links-are-no-longer-accessible-after-server-migration-214862724.html . I recommend installing Source Editor where you can copy a page and try the approach with search and replace in a controlled manner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problems good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How are the attachements "no longer accessible" - do you mean via page -> attachments? Do they show up there, but give an error when clicked? What is the error?
Can you check that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the answer. Here is screenshot
Screenshot_2.png
If i click on that attachement it points to old URL, what used before migration.
image2017-3-10 14:29:19.png
And yes, base url is correct and attachments dir path correct also.
<property name="attachments.dir">${confluenceHome}/attachments</property>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, ok, that looks like someone has embedded the link as a link, instead of using Confluence's internal links. I think
Before I go any further down that path, I'd like to confirm it - could you edit the page, and look at the exact type of link there is there. Is it a full web link, or an "embed attachment" macro? (Don't need to save the page). If you're not sure, then can you have a look in "view source" and see how the link is shown in there?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't need more tools. You need tools that actually work together – the way humans do. See how Loom + Confluence help teams collaborate with more context, more connection, and fewer calendar invites. 💪
See inside
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.