Broken(brown) links, macros include doesn't work
Asked by Vladimir Fed:

Hi,   
after migration Confluence Server to another server(centos-\>debian, version Confluence 7.19.2 was not change) the links are broken and turn brown, and when you click on these links, you are taken to the editing mode and not to the working page.![Screenshot_3.jpg](/t5/image/serverpage/image-id/292528i1868A484AB6664BA/image-size/large?v=v2&px=999 "Screenshot_3.jpg") However, editing them is not available, and if you create the link again, it does not change.

![Screenshot_2.jpg](/t5/image/serverpage/image-id/292529iE4719BD71FD4D069/image-size/large?v=v2&px=999 "Screenshot_2.jpg")

I try rebuil content indexing, but it doesn't help.

The macro include page also stopped working.There are no restrictions at the page or space level. ![Screenshot_4.jpg](/t5/image/serverpage/image-id/292532iD66018F61D44F794/image-size/large?v=v2&px=999 "Screenshot_4.jpg")

There was also a problem with the inaccessibility of downloading files on the page, I solved it by restoring the page to the previous version.

I would be very grateful if you could help me find out what the problem might be.


Answers:
author: Shawn Doyle - ReleaseTEAM
body: Are these links internal, links to other Confluence pages, or external to other websites? If internal did the url to confluence itself change or did you keep it the same, e.g. you moved then renamed the server to the original server name?

If editing the link isn't available, are the permissions correct after the move? Possible that you no longer have permission to edit due to some restriction that came over not exactly as expected?

comments: author: Vladimir Fed
body: Hi [@Shawn Doyle - ReleaseTEAM](/t5/user/viewprofilepage/user-id/815120)   
This is internal links to other Confluence pages, regardless of Confluence space.  
The internal url Confluence remained the same.  
First I installed the default ?onfluence, then moved application-data directory, server.xml, setenv.sh from the original server, restored the database from backup and changed the config confluence.cfg.xml for DB connection setting( i used postgresql12)

Not sure about the restrictions, because... I can delete, unlink these links or create new ones, but after creation they remain the same


author: Shawn Doyle - ReleaseTEAM
body: next question. Do the links work? Meaning if you grabbed the link and used it in a browser, does it work?


author: Vladimir Fed
body: No, it doesn't work

I will describe the process step by step

* I'm editing an existing broken link, a try insert link by search page![Screenshot_5.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/292584i79E1C787645E37BE/image-dimensions/578x272?v=v2 "Screenshot_5.jpg")
* After my change, we see that the selected link is displayed correctly and click update![Screenshot_6.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/292585i944C8871EA7BF015/image-size/large?v=v2&px=999 "Screenshot_6.jpg")
* And link looks incorrect again

![Screenshot_8.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/292589i04444EDEFE5AD3FA/image-size/large?v=v2&px=999 "Screenshot_8.jpg")

If i copy link and paste into browser or try follow link from the page i'll get link format [http://confluence_url_name/pages/createpage.action?spaceKey=IT\&title=%D0%93%D1%80%D1%83%D0%BF%D0%BF%D0%B0+%D0%BF%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%BA%D0%B8+%D0%B8%D0%BD%D1%84%D1%80%D0%B0%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D1%8B\&linkCreation=true\&fromPageId=16222877](http://confluence_url_name/pages/createpage.action?spaceKey=IT&title=%D0%93%D1%80%D1%83%D0%BF%D0%BF%D0%B0+%D0%BF%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%BA%D0%B8+%D0%B8%D0%BD%D1%84%D1%80%D0%B0%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%82%D1%83%D1%80%D1%8B&linkCreation=true&fromPageId=16222877)

And it's look like this

![Screenshot_7.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/292588i1DC7827785D2B3CF/image-size/large?v=v2&px=999 "Screenshot_7.jpg")

that is, it looks like it can't find this page and wants to create one with the same name


author: Vladimir Fed
body: I forgot to add that not all links of this type were broken after the migration. On what basis they broke is also unclear


author: Vladimir Fed
body: [@Shawn Doyle - ReleaseTEAM](/t5/user/viewprofilepage/user-id/815120) Hi  
I have found that the problem is fixed for the link when I reassign permissions and restrictions on space and pages even though the users have access, then change the page that the link goes to, and restore from the previous version.  
This method works, but it is extremely routine, because there are more than 300 such broken links


Tags: confluence-server

migration

server