Attachments Error on HTTPS, HTTP OK!

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
paradigm
Posts: 1
Joined: Thu May 18, 2017 11:52 am

Attachments Error on HTTPS, HTTP OK!

Post by paradigm »

Hi guys,

I've searched the forum (and the rest of the internet) for this problem before resorting to a thread of my own, so please go easy.

We had (still have, but in the process of being retired) an instance of Hesk 2.7.1 (also got mods for hesk 3.0.0 RC 1, but I don't think this is a mods for hesk problem - correct me if I'm wrong!) that sat on IIS on Windows Server 2008 R2. In an effort to move away from Windows and on-prem, i've moved the DB and the front end to a single Ubuntu 16.04 LTS server sat in AWS. The move has gone smoothly, hesk is working fine for the most part, but attachments appear to have broken themselves.

If a user or an admin tries to upload an attachment, we get the simple error message of "An error occurred when trying to upload. Please try again later." Checking the settings I can see that Hesk agrees the attachments folder exists and is writable (it wasn't, but I fixed the permissions for both attachments and cache after realising our pop3-fetching wasn't working due to the inability to create folders/files in cache). I've also tried to move to a new attachments folder (newattachements in /var/www/hesk/htdocs/), which hesk also agrees is writable. This is odd enough, and debugging-mode doesn't add anything more verbose to the error displayed unfortunately.

However I then tried http (which I need to eventually disable the listener for in apache2) and attachments work, which is REALLY confusing.

Does anyone have a suggestion on where to look for the answer to this?

Regards
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Attachments Error on HTTPS, HTTP OK!

Post by mkoch227 »

This may be a Mods for HESK issue as attachments are uploaded right when it is selected and not when the form is submitted, which is different then regular HESK behavior. When the attachment fails to upload, open your web browser's dev console (F12 for Chrome.... not 100% sure what the shortcut is for other browsers). Do any errors appear in the console?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply