Can't connect to the server Looks like your session expired. Log in again to keep working.

Hi guys.

 

Cant create new pages anymore. Seems like session is exespiring each time I try.
Her my apache settings.

 

<VirtualHost *:80>
ServerAdmin webmaster@domain.lan
Servername wiki.domain.lan
DocumentRoot /opt/atlassian/confluence
ProxyPreserveHost On
# Servers to proxy the connection, or
# List of application servers Usage
ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/
RewriteEngine on
RewriteCond %{SERVER_NAME} =wiki.domain.lan
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

--

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@domain.lan
Servername wiki.uluru.dk
DocumentRoot /opt/atlassian/confluence
ProxyPreserveHost On
# Servers to proxy the connection, or
# List of application servers Usage
ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/


SSLCertificateFile /etc/letsencrypt/live/wiki.domain.lan/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/wiki.domain.lan/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

----

I found suggestion to also modify the server.xml file, and I've tried the following:

 

<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol" />
proxyName="wiki.domain.lan" proxyPort="443" scheme="https"

 

 

Any help or suggestions would be appreciated.

Thank you.

 

 

1 answer

0 vote
Ann Worley Atlassian Team Jan 03, 2018

Hi!

I understand you cannot create new pages any more in your Confluence instance. Please let me know if you can edit existing pages.

If you are seeing this behavior after an upgrade from Confluence 5.x to a version higher than Confluence 6, the issue could be that you need to set up the proxy to support collaborative editing.

Please see this configuration guide if the editing issues are happening after an upgrade: Using Apache with mod_proxy

If there was no Confluence upgrade involved, please let me know when you started noticing that you couldn't create pages, and whether there were any recent changes or upgrades in the environment that may correspond with that time.

It would also be helpful to know the error message you see that indicates your session is expiring.

 

I look forward to hearing whether the proxy configuration helps.

Hi Ann.
Thank you for replying.

 

I've tried the following:

<VirtualHost *:80>
ServerAdmin webmaster@domain.lan
Servername wiki.domain.lan
# DocumentRoot /opt/atlassian/confluence
# ProxyPreserveHost On
# Servers to proxy the connection, or
# List of application servers Usage
ProxyRequests Off
ProxyVia Off

<Proxy *>
Require all granted
</Proxy>

ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/
RewriteEngine on
RewriteCond %{SERVER_NAME} =wiki.domain.lan
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

 

All mod proxy modules enabled.
I still have no idea whats wrong. The config above worked in 6.2 and 6.3 on my own server but after update to 6.5/6.6 it all went  downhill.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

143 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you