Cannot edit articles
Asked by Thomas_Manninger:

Hi,

i installed a new confluence installation, which is accessed with http.

I can create articles, but not edit. When i start edit an article, i get the following error message:

16-Aug-2017 08:28:39.979 SEVERE \[http-nio-8090-exec-4\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null

I am using CentOS 7, my confluence version s 6.2.1

How can i resolve my problem?  

Thanks!


Answers:
author: AnnWorley
body: [@Thomas_Manninger](/t5/user/viewprofilepage/user-id/1145717) Please see the example under the heading, "If you're using Confluence 6.0 or later with Synchrony" on this page:

[Proxying Atlassian server applications with Apache HTTP Server (mod_proxy_http)](https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html)

You need an entry for Synchrony (collaborative editing) in your proxy configuration.

The server.xml is (correctly) set up to direct requests on port 8090 back through the proxy, that's probably why the issue still presents itself when you access the instance directly on that port.

I wanted to share some other general information on Collaborative Editing:

[Troubleshooting Collaborative Editing](https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html)

Please check out the network diagrams on:

[Administering Collaborative Editing](https://confluence.atlassian.com/doc/administering-collaborative-editing-858772086.html#AdministeringCollaborativeEditing-ProxyandSSLconsiderationsproxy)

comments: author: Aleksandr Serebriakov
body: Hi,

We have same mesages in logs, but collaborative editing works:  

31-Oct-2017 13:21:09.636 SEVERE \[http-nio-8082-exec-9\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null  
31-Oct-2017 13:24:24.836 SEVERE \[http-nio-8082-exec-8\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null  
31-Oct-2017 13:24:35.513 SEVERE \[http-nio-8082-exec-8\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null  
31-Oct-2017 13:24:43.320 SEVERE \[http-nio-8082-exec-2\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null  
31-Oct-2017 13:26:54.707 SEVERE \[http-nio-8082-exec-11\] org.springframework.web.socket.server.support.DefaultHandshakeHandler.handleInvalidUpgradeHeader Handshake failed due to invalid Upgrade header: null

We use apache mod_proxy (Apache 2.4.x)., Revers proxy configuration:

\<VirtualHost \*:80\>  
ServerName wiki.domainname.com  
DocumentRoot /var/www/html/wiki  
ErrorLog /var/log/httpd/wiki-error_log  
CustomLog /var/log/httpd/wiki-access_log combined  
HostnameLookups Off  
UseCanonicalName Off  
ServerSignature off  
RemoteIPHeader X-Forwarded-For  
ProxyVia On  
ProxyPreserveHost On  
# RewriteEngine On  
ProxyRequests Off

RewriteEngine On  
RewriteCond %{REQUEST_URI} !\^/synchrony  
RewriteRule \^/(.\*) <http://127.0.0.1:8082/$1> \[P\]  
# Auth changes in 2.4 - see <http://httpd.apache.org/docs/2.4/upgrading.html#run-time>  
\<Proxy \*\>  
Require all granted  
\</Proxy\>

ProxyPass /synchrony <http://127.0.0.1:8091/synchrony>  
\<Location /synchrony\>  
Require all granted  
RewriteEngine on  
RewriteCond %{HTTP:UPGRADE} \^WebSocket$ \[NC\]  
RewriteCond %{HTTP:CONNECTION} Upgrade$ \[NC\]  
RewriteRule .\* ws://127.0.0.1:8091%{REQUEST_URI} \[P\]  
\</Location\>

ProxyPass / <http://127.0.0.1:8082/>  
ProxyPassReverse / <http://127.0.0.1:8082/>

\<Location /\>  
Require all granted  
\</Location\>

\</VirtualHost\>

What is wrong in our configuration?


author: Shannon S
body: Hi Thomas,

Can you let me know, does it occur for all users and on multiple browsers, and multiple workstations? Is the user logged out after this error occurs?

I have another user that was able to resolve the issue by changing the directives in vhosts container following this article:

[Using Apache with Mod Proxy](https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html)

So you may want to take a look at this and see if it matches your situation.

Kind Regards,  
Shannon

comments: author: Thomas_Manninger
body: Hi,

thanks for the answer.

I already tried multiple browsers and users.

I created a new user, created a new site and published. After i start editing and click "save", i get the same error again.

The user is not logged out after the error occurs.

The problem occurs also, if i access confluence directly by access port :8090.

server.xml Connector:

\<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="docs.corp.domain.at" proxyPort="80" scheme="http" /\>

<br />

And my apache vhost:

\<VirtualHost \*:80\>  
ServerName docs.corp.domain.at  

ProxyRequests Off  
ProxyVia Off  

\<Proxy \*\>  
Require all granted  
\</Proxy\>  

ProxyPass / http://localhost:8090/  
ProxyPassReverse / http://localhost:8090/  
\</VirtualHost\>

Can you help me?


Tags: synchrony