HTTP Error on uploading files
Asked by stefan_reichenstein:

I am currently unable to attach any files to any pages. Every time I am presented with an HTTP Error, whether it is dragging and dropping or selecting a file from my filesystem.

I have so far: restarted Confluence, restarted the server, verified Confluence's max filesize, verified my php's 'upload_max_filesize' and 'post_max_size', upgraded confluence.  
On top of this nothing shows up in Confluence's logs (in Diagnostic mode).

A potentially related issue is that I am unable to update or install plugins from the marketplace (or modify licenses), but I am able to upload and uninstall them.

Any help would be appreciated. Thanks.


Answers:
author: AnnWorley
body: Are you using NGINX or any other proxy? I found this similar issue that was solved at the proxy: [Getting HTTP Error, when uploading a file](https://community.atlassian.com/t5/Confluence-questions/Getting-HTTP-Error-when-uploading-a-file/qaq-p/175027)

If it's not the proxy, please post a screen shot of the HTTP error (use the little camera icon :))

comments: author: stefan_reichenstein
body: I am using Apache's mod_proxy. Everything was working for a few weeks before it stopped, and nothing proxy related was changed. I'm happy to play around with it, but I'm not sure where to start.

![http_error.png](https://community.atlassian.com/t5/image/serverpage/image-id/4209i2780495DEF0FFA93/image-dimensions/415x259?v=v2 "http_error.png")


author: AnnWorley
body: Let's identify or eliminate the proxy as the culprit by connecting directly from your workstation as described in:

[How do I bypass a proxy to test network connectivity](https://confluence.atlassian.com/confkb/how-do-i-bypass-a-proxy-to-test-network-connectivity-402031184.html)

If you get the same error we can go from there.


author: stefan_reichenstein
body: Thanks Ann, this issue somehow resolved itself, which is disconcerting. However my users seem to be able to upload images so I think for now this is (somewhat) resolved.

While we're at it, I seem to be unable to log into this tunnel or connecting to the server directly through confluence's port) (ie myserver.com:\<port\>/confluence). Any suggestions on resolving this?


author: AnnWorley
body: When it says: "After setting up the tunnel browse to http://hostname:\<local port\> and the local port will be forwarded to the Confluence port on the remote host." it means "After setting up the tunnel browse to http://workstation's_hostname:\<local port\> and the local port will be forwarded to the Confluence port on the remote host.

The proxy will usually not allow you to connect to http://server:port directly.


author: stefan_reichenstein
body: I am able to access my website though both localhost:\<local-port\> and myserver.com:\<remote-port\>, but I am unable to log into either on various browsers and computers


author: AnnWorley
body: Stefan, you cannot log into Confluence at all? What error do you see when you try to log in? When did this start?


author: stefan_reichenstein
body: I am able to access my website though both localhost:\<local-port\> and myserver.com:\<remote-port\>, but I am unable to login when using these ports.

I am able to login normally through the proxy.


author: AnnWorley
body: Please let me know what error you see when you cannot log in. Is it an error indicating wrong username or pasword or is it "not permitted"?

For more clues, please search the \<confluence_home\>/logs/atlassian-confluence.log for errors that contain your username.  
Note: The \<confluence_home\> directory is the path defined in the following file: \<confluence_install\>/confluence/WEB-INF/classes/confluence-init.properties

Does your company use any external SSO or other user management layer between the clients and Confluence or do you log into the plain vanilla login screen?


author: stefan_reichenstein
body: Unfortunately there are no errors getting displayed and we let confluence manage its user directory.

The relevant lines form the log file are:
> 2017-08-09 15:42:56,238 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.BaseLoginFilter\] doFilter doFilter : ____ Attempting login for : '/dologin.action'  
> 2017-08-09 15:42:56,239 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.PasswordBasedLoginFilter\] login login : 'user' and password provided - remember me : false - attempting login request  
> 2017-08-09 15:42:56,241 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.PasswordBasedLoginFilter\] runAuthentication runAuthentication : 'user' does not require elevated security check. Attempting authentication...  
> 2017-08-09 15:42:56,265 INFO \[http-nio-8090-exec-3\] \[atlassian.confluence.cache.DeferredOperationsCache\] sync Synchronising deferred operations (0 putIfAbsent, 0 put, 1 remove, 0 get) to cache \[com.atlassian.confluence.user.crowd.CachedCrowdUserDao.ATTRIBUTE_CACHE\]  
> 2017-08-09 15:42:56,266 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.auth.DefaultAuthenticator\] login login : 'user' has been authenticated  
> 2017-08-09 15:42:56,267 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.auth.DefaultAuthenticator\] authoriseUserAndEstablishSession authoriseUser : 'user' can login according to the RoleMapper  
> 2017-08-09 15:42:56,268 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.PasswordBasedLoginFilter\] runAuthentication runAuthentication : 'user' was successfully authenticated  
> 2017-08-09 15:42:56,270 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.BaseLoginFilter\] doFilter doFilter : Login completed for 'null' - os_authstatus = 'success'  
> 2017-08-09 15:42:56,270 DEBUG \[http-nio-8090-exec-3\] \[atlassian.seraph.filter.BaseLoginFilter\] redirectToOriginalDestination redirectToOriginalDestination : Login redirect to: /confluence/


Tags: confluence-server

http

server

upload