LoginSignup
1
0

More than 5 years have passed since last update.

Mastodon(開発環境)で画像がアップロードできない

Last updated at Posted at 2018-01-15

問題

Mastodon(開発環境)で画像アップロード周りが全く動かない。
特にプロフィール画像アップロードでは以下のエラーが出た。

Cocaine::CommandNotFoundError
mastodon/app/services/update_account_service.rb
def call(account, params, raise_error: false)
    was_locked = account.locked
    update_method = raise_error ? :update! : :update
    account.send(update_method, params).tap do |ret| # <=ここ
    ...

調べてみるとffmpegがnot installという記事が多かったので入れてみる。
が、効果なし。
https://stackoverflow.com/questions/33801072/cocainecommandnotfounderror

解決方法

コンソールでaccountを叩いてみたら、Install ImageMagickと言われた。
…あれ、入ってなかったの…?

普通にHomebrewで、brew install imagemagickで解決。
画像投稿も問題なし。

ただ、何故かgifだけ壊れて表示されない…。
アップロード時のサムネ(smallサイズ)は平気なのに。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0