Broken links after migration Confluence

Alexey Astafyev
Contributor
September 24, 2021

Hi there.

We've recently migrated Confluence with small update (7.4 => 7.13) to another server by XLM backup. No errors/warnings were during restore process. And on the first view everything looked great. But as soon as we began using the new instance we noticed many pages with broken links. They are highlighted red color.

How can we find all broken links and fix them?

5 answers

1 accepted

2 votes
Answer accepted
Danila Bystrov
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!
September 24, 2021

Had today the same problem

seems like recreating db with LC_COLLATE C and LC_CTYPE C solves the problem.

Did you change LC_COLLATE 'C' LC_CTYPE 'C' to

LC_COLLATE 'en_GB.UTF-8' LC_CTYPE 'en_GB.UTF-8' or smth else?

Alexey Astafyev
Contributor
September 24, 2021

We created DB by command

CREATE DATABASE DBName WITH ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;

Is it correctly, is it?

Alexey Astafyev
Contributor
September 27, 2021

@Danila Bystrov

thanks a lot for your advice. I have double checked DB settings on both instances and noticed that LC_COLLATE and LC_CTYPE were different. Recreating DB has solved our issue.

Like Kishan Sharma likes this
1 vote
Artem Fomin - DevOps Action
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.
September 24, 2021

Something like this?

UPDATE BODYCONTENT
SET BODY = REPLACE( BODY, 'OLDURL', 'NEWURL' )
WHERE BODY LIKE '%OLDURL%';

Alexey Astafyev
Contributor
September 24, 2021

I am afraid it's not suitable, because base URL hasn't been changed

Artem Fomin - DevOps Action
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.
September 24, 2021

Then where do these links point to? External resources? Jira?

Alexey Astafyev
Contributor
September 25, 2021

They point to Confluence internal pages

0 votes
Zander Human
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!
May 21, 2024

Hi, I had problem after migrating to cloud where link were broken, I used this new application Easy Link Checker to find where these links are. 

Let me know if this app worked for you as well. 

➡️ Easy Link Checker 

0 votes
Alexey Astafyev
Contributor
September 24, 2021

Is the way to use sql queries to find broken links?

0 votes
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2021

Hi @Alexey Astafyev Welcome to the Atlassian Community!

I would suggest opening a ticket with Atlassian support at https://support.atlassian.com/contact/ in order to have the links fixed. 

Alexey Astafyev
Contributor
September 24, 2021

Ok, I've already done it.

Like Kishan Sharma likes this
Dmitriy Dmitrov
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!
June 15, 2023

@Alexey Astafyevdid u fix this error?

Alexey Astafyev
Contributor
September 6, 2023

@Dmitriy Dmitrov yes, we have recreated the database with the proper collation (as it was previous instance)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events