Skip to content
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

Can't download file. Spinning ruby process. #993

Closed
LutzSteinborn opened this issue Apr 17, 2019 · 4 comments
Closed

Can't download file. Spinning ruby process. #993

LutzSteinborn opened this issue Apr 17, 2019 · 4 comments
Assignees

Comments

@LutzSteinborn
Copy link

Hi,
then I'm trying to download a file I'm getting no answer and a endless running ruby process on the server. Restarting apache didn't help. I have to kill the process directly.
Any idea what is wrong?

Regards
Lutz

Environment:
Redmine version 4.0.2.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 5.2.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 2.7.4
Filesystem
Redmine plugins:
redmine_dmsf 2.0.0
redmine_issue_evm 4.2.1
Running on ubuntu 16 LTS

@LutzSteinborn
Copy link
Author

Hi,

so no one has an idea?
Then I'm stracing one of this hanging ruby processes all of them are at this point:
strace: Process 7125 attached
select(11, [0 10], NULL, NULL, NULL
It looks like the ruby process is spinning around in a loop.
Any hint for deeper debugging?

Regards
Lutz

@picman
Copy link
Collaborator

picman commented Apr 18, 2019

Check log/production.log.

@LutzSteinborn
Copy link
Author

ok, strange situation. I have this in the prodution.log:

Started GET "/redmine/dmsf/files/157/view?download=878" for 10.4.0.15 at 2019-04-18 10:50:46 +0200
Processing by DmsfFilesController#view as HTML
Parameters: {"download"=>"878", "id"=>"157"}
Current user: pauli (id=3)
No such file or directory @ rb_sysopen - /opt/redmine-4.0.2/files/dmsf/2015/03/150324144632_25_Planung_Controlling_20150319.xlsm
Completed in 527428ms (ActiveRecord: 8032.6ms)

527428ms !!!!
Why it needs so much time for not finding the file?

Then I'm search for the missing file I can find it here:
files/dmsf/p_general-admin-project-controlling/150324144632_25_Planung_Controlling_20150319.xlsm

Looks like the converting of the files didnt work. But then I'm starting the converting script again it tells me nothing todo.
rake redmine:dmsf_convert_documents RAILS_ENV="production"

So how can I force the script to convert again?

Regards
Lutz

@picman
Copy link
Collaborator

picman commented Apr 18, 2019

Yes, the migration obviously failed to relocated existing files. Please see #799 and #767 for a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants