Reading:
Confluence Unable to edit page

Confluence Unable to edit page

Metamug
Confluence Unable to edit page

Confluence with Reverse Proxy

If you moved confluence behind a reverse proxy. Make sure you have configured the reverse proxy correctly. Since confluence is built on top of tomcat, here is a tutorial to setup apache reverse proxy with letsencrypt on tomcat. After we are sure we can access confluence server behind the reverse proxy. We can move to edit the pages.

Unable to edit confluence page

After correct configuration you may try to edit your page you get the following error.

The connection timed out. If it happens again, speak to your Confluence admin. You may be using a proxy server that prevents WebSocket connections.

If you look into the network tab you will observe the following url failing.

http://<old-base-url>/synchrony/heartbeat?_=1587883427992

Now the above url will be blocked due to mixed content error. Since you are pointing to the new SSL url and your base url in the system is still the old url with 8090.

Updating the server base url

Server Base URL confluence

If you try to edit this base url it is not editable via the browser in the Cog Icon > General configuration. To edit base url we must connect to the confluence database and run the following query

Confluence Database Update Server Base URL

As you can see the xml in the last column, bandanavalue. You need th change the xml baseUrl value to the new SSL url.

<settings>
 <doNotSave>false</doNotSave>
 <!--  other tags -->
 <baseUrl>https://new-ssl-url</baseUrl>
 <!-- other tags -->
</settings>

After you make the change restart your confluence server as follows.

sudo sh stop-confluence.sh
sudo sh start-confluence.sh

This solution is tested with Confluence 7.4 on ubuntu 18.04 server installation.



Icon For Arrow-up
Comments

Post a comment