Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence: nonProxy config issue causing editor timeout

Walter Phippeny June 28, 2019

Running Confluence 6.15.4 on Debian 9 behind a local Apache ProxyPass and connecting over SSH fpr admin. MySQL DB and it's also on the localhost.

confluence is sitting behind a corporate proxy and marketplace isn't accessible, but users on the company networks can access and edit. I decided to try and configure proxy settings as recommend as JVM System properties.

/var/atlassian/confluence/bin/setenv.sh:

CATALINA_OPTS="-Dhttp.proxyHost=192.168.123.150 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=192.168.123.150 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost\|*.dev.local\|192.168.*"

confluence starts up and is available without issue from within the same network as the server. If I run a "ps aux" I see the following:

root 5325 48.4 39.0 4088296 1582336 ? Sl 19:05 4:59 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dhttp.proxyHost=192.168.123.150 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=192.168.123.150 -Dhttps.proxyPort=8080 -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts=localhost|*.dev.local|192.168.* -Dignore.endorsed.dirs= -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap start

 

But users coming in from a different network on-site get the attached error when trying to create or edit an article.

editor-timeout.png

I read an article that said there were issues with the nonProxy setting under setenv.sh and that the should be defined under <Confluence Install>/conf/catalina.properties. So, I removed it from setenv.sh and added the following line at the end of catalina.properties:

http.nonProxyHosts=*.dev.local|localhost|192.168.*|127.0.0.1

Restarted and everything came back up again, but still the same issue. Editor times out.

With the proxy settings there, I'm able to reach Marketplace and update plugins without an issue; so, the proxy settings are working and I can get offnet. This Confluence is also connected to Jira for authentication and the noProxy settting for the jira URL in the same network is working too. Everything works except when attempting to create or edit from a different network. When I remove the settings from setenv.sh and catalina.properties, the editor timeout goes away, but, as you might imagine, the marketplace is no longer accessible.

Anyone have an idea?

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events