File upload from the desktop client fails with: Couldn't upload the file
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.
This is for an outdated version of Hipchat Server
This article applies to a version of Hipchat Server which will be deprecated soon. After that period the version will no longer be supported.
You should upgrade to a more recent version of Hipchat Server as soon as you can to take advantage of new features, and security and bug fixes.
Problem
When uploading a file from the client, the horizontal gauge fills up and after a few seconds, the client displays: Couldn't upload the file.
Diagnosis
The following lines will be logged in
/var/log/hipchat/coral.log
:2017-02-27T13:23:43.638397+00:00 ip-10-74-69-194 coral-2: [/room/4/share/file#REQKSUISb] ALERT: 500 error processing request /room/4/share/file : error(111, 'Connection refused') 2017-02-27T13:23:43.638449+00:00 ip-10-74-69-194 coral-2: [/room/4/share/file#REQKSUISb] ERROR: Sending API error: 500 - An internal error occurred. Please try again later. ... 2017-02-27T13:23:43.640837+00:00 ip-10-74-69-194 coral-2: [/room/4/share/file#REQKSUISb] socket.error: [Errno 111] Connection refused
- The web-app via https://<fqdn>/chat cannot be opened.
Cause
The network or host information is not properly set in one or many of the following files:
/etc/localenv.sh
/etc/chef/solo.json
/etc/hosts
/etc/monit.d/host.monitrc
/etc/ovfenv.sh
If you're deploying Hipchat Server behind a load balancer then the host information in the files above should point to the DNS name you use to connect to Hipchat Server from your client, also known as your FQDN.
For example, if you have an AWS ELB (Elastic Load Balancer) with a public DNS <elb_id>.<region_and_az>.elb.amazonaws.com in front of Hipchat Server:
- The files above should not contain this public DNS. Instead, they should point to your actual FQDN: hipchat.<your_domain>.
- The SSL certificate deployed at the ELB has to be the one generated for your FQDN by your CA.
Resolution
Refer to the resolution steps in Hipchat clients unable to connect to Hipchat Server: Couldn't load Hipchat.