-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachment handling has some new problems #3449
Comments
I should add: We deal with attachments all the time and never had an issue like this come up until we updated to 1.8.101. The issue doesn't seem to affect PDF files, which continue to work normally. Tried clearing caches, different computers, etc., but problem is the same. |
Try to remove the new block from nginx and check. |
Also are you using Apache in addition to nginx? Or just nginx? |
Are you using CloudFlare? #3431 (comment) |
Removing that block from the nginx config fixed the issue. .xlsx file downloads working again. We're only using nginx. We are not using Cloudflare. |
Apache is not running on our system. |
Can you share your nginx config when the new block is added. |
Our nginx config file is here.
|
New block is in the wrong place. This block of code has to be inserted in the very specific place in the nginx config: nginx configuration |
I have the same issue. Taking a third look at the example configuration for nginx solved it. I also had the added config in the wrong place. |
Also notice that the latest version of the block has |
Thanks everyone for the help. I didn't know about the nginx location clauses ordering policy. |
SInce this one was caused by my own error (didn't put the nginx clause in the right place) I will close this ticket. Thanks again to the Freescout team. |
We're using 1.8.101 on Ubuntu and nginx, installed with the script.
Email has an attached Excel (.xlsx) file. When we click on the download link, a new, blank tab is shown (Firefox), or the system tries to download it as an .htm file for some reason (Chrome). See attached video grab, as I know that sounds weird. If we click 'Download all', a zip files is successfully created, and we can download and open it.
/var/www/html/storage/logs/web-server.log has this error when we try downloading the Excel file:
2023/10/09 21:36:20 [error] 5304#5304: *1257256 open() "/var/www/html/public/storage/attachment/6/3/1/Book1-3.xlsx" failed (2: No such file or directory), client: 113.11.246.207, server: service.fr8.vu, request: "GET /storage/attachment/6/3/1/Book1-3.xlsx?id=37286&token=253c9fa8aca6576aaf8bc1371ef4bbeb HTTP/1.1", host: "service.fr8.vu", referrer: "https://service.fr8.vu/conversation/8238?folder_id=3"
On the filesystem I did find /var/www/html/storage/app/attachment/6/3/1/Book1-3.xlsx, but it doesn't appear to be in the location where the server is looking.
In the last update, the instructions read to add this 'location' block to the nginx config. Seems too coincidental to me that this isn't related. We copied/pasted it in, and no syntax errors were thrown when we added it. Maybe we installed it incorrectly?
chrome_503.mp4
The text was updated successfully, but these errors were encountered: