[Closed] Can't download attachments
Added by Renaud Cizeron over 7 years ago
Hi guys.
I installed Redmine 3.3.4 on a redhat distrib, with ruby 2.3.4p301 and rails 4.2.9.
Everything seems OK, it runs good, but when I try to download attachment, I get this response in my browser :
GET http://zed337v5:3000/attachments/download/23/SSY_%2020170817.pptx net::ERR_EMPTY_RESPONSE
When I check logs, I get :
Started GET "/attachments/download/23/SSY_%2020170817.pptx" for 163.113.183.68 at 2017-08-23 12:36:13 +0200 Processing by AttachmentsController#download as HTML Parameters: {"id"=>"23", "filename"=>"SSY_ 20170817.pptx"} Current user: RC45516N (id=5) Sent file /logiciels/redmine-3.3.4/files/2017/08/170818143815_cf7aa8805f08d2255504190051afef58.pptx (0.1ms) Completed 200 OK in 10ms (ActiveRecord: 2.6ms)
I checked database and file system, the files are here. I tried with a small text file and it was available for preview in issue so it's good too...
here is the command I use to launch redmine :
bundle exec rails server webrick -e production -p 3000 -b 0.0.0.0 &
I have no idea why I can't get my attachments.
Any help please ?
Replies (5)
RE: Can't download attachments - Added by Renaud Cizeron over 7 years ago
Hi Toshi and thanks for your answer. I've read this topic too but it doesn't seem to fit my issue, or there is something i missed.
here is my env :
Environment: Redmine version 3.3.4.stable Ruby version 2.3.4-p301 (2017-03-30) [x86_64-linux] Rails version 4.2.9 Environment production Database adapter PostgreSQL SCM: Git 1.7.9.6 Filesystem Redmine plugins: scrum 0.17.0
But I'm not sure the issue is the same, as VVD VVD had a 404 response from Redmine in his logs, and I have a 200 response...
So Redmine said "It's OK I sent your file" but my browser never received it...
I thought it could be some WebRick or proxy or firewall configuration, or something like this..
RE: Can't download attachments - Added by Toshi MARUYAMA over 7 years ago
Why is your Rails version 4.2.9?
RE: Can't download attachments - Added by Renaud Cizeron over 7 years ago
Hello.
In the installation guide RedmineInstall , it is written 4.2 so I picked one. I'm not used to Ruby, do you think I should try another version ?
RE: [Closed] Can't download attachments - Added by Renaud Cizeron over 7 years ago
Well, it seems that after one or more restarts, it's ok now... can't know why exactly, thx for your answers Toshi.