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

Cocaine causing hangs on gif uploads #9362

Closed
hugogameiro opened this issue Nov 27, 2018 · 2 comments
Closed

Cocaine causing hangs on gif uploads #9362

hugogameiro opened this issue Nov 27, 2018 · 2 comments

Comments

@hugogameiro
Copy link
Contributor

I have been running into a problem where gif uploads stop working when several Mastodon instances share the same host server.

After digging into this, I notice that adding 'loglevel' => 'warning' to /app/models/media_attachment.rb would solve the problem.

Then, I found the source of the problem: thoughtbot/cocaine#96 and tested this PR thoughtbot/cocaine#97 that solves the problem.

As currently Paperclip-av-transcoder still hardcodes Cocaine https://github.com/ruby-av/paperclip-av-transcoder/blob/master/lib/paperclip/paperclip_processors/transcoder.rb#L78 and is not using Terrapin, the Cocaine PR is the one that solved it. Although the same PR has been also pushed to thoughtbot/terrapin#5

@Gargron
Copy link
Member

Gargron commented Nov 27, 2018

Fixed in #9368

@Gargron Gargron closed this as completed Nov 27, 2018
@hugogameiro
Copy link
Contributor Author

In case someone reaches this issue, I ended up using the forked version of thoughtbot/terrapin#5 because randomly this was causing media upload failures, getting jobs stuck in Sidekiq and I couldn't find another solution.

Other issues that I reported and that were affected by this: #12088 #12812 #9368

Observations: could only repeat the issue with Docker (both local and remote object storage) on servers where multiple instances were hosted.

The 'loglevel' => 'warning' in /app/models/media_attachment.rb is not needed if running this fork.

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

No branches or pull requests

2 participants