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

Media previews fail to generate, GIF upload fails. #1

Open
amcgregor opened this issue Feb 11, 2024 · 0 comments
Open

Media previews fail to generate, GIF upload fails. #1

amcgregor opened this issue Feb 11, 2024 · 0 comments

Comments

@amcgregor
Copy link
Member

amcgregor commented Feb 11, 2024

It seems a lack of functional ffmpeg within the Docker Compose instance is preventing media previews from being generated, and GIF uploads from succeeding. All previews appear as their blurry low-resolution colour gradients.

From Sidekiq:

2024-02-02 23:45:36 [paperclip] Trying to link /tmp/83049ba3e7c39f18c065f8380c4a581820240203-7-g6zuv2.png to /tmp/62cf0534ad5178895fa74c9049a46e0120240203-7-6zi9d6.png
2024-02-02 23:45:36 Command :: file -b --mime '/tmp/62cf0534ad5178895fa74c9049a46e0120240203-7-6zi9d6.png'
2024-02-02 23:45:36 [paperclip] Trying to link /tmp/83049ba3e7c39f18c065f8380c4a581820240203-7-g6zuv2.png to /tmp/d7a2f67237c6e685e110e1b9967cd44320240203-7-nlrzyb.png
2024-02-02 23:45:36 Command :: identify -format %m '/tmp/d7a2f67237c6e685e110e1b9967cd44320240203-7-nlrzyb.png[0]'
2024-02-02 23:45:36 Command :: convert '/tmp/d7a2f67237c6e685e110e1b9967cd44320240203-7-nlrzyb.png[0]' -auto-orient -resize "532x433>" -quality 90 +profile "!icc,*" +set modify-date +set create-date '/tmp/8e646e18b1e17d3b710f6d5f2d7ece9620240203-7-3n3kkp'
2024-02-02 23:45:36 Command :: convert '/tmp/8e646e18b1e17d3b710f6d5f2d7ece9620240203-7-3n3kkp' -depth 8 RGB:-
2024-02-02 23:45:36 [paperclip] Trying to link /tmp/8e646e18b1e17d3b710f6d5f2d7ece9620240203-7-3n3kkp to /tmp/b22a955eea96464641207821f169831820240203-7-kugk5o
2024-02-02 23:45:36 [paperclip] Trying to link /tmp/48dee1e33aad7485fe78924b668dea6920240203-7-idbea8.png to /tmp/8b2692d469c4c7e4cf729987fb758b6220240203-7-6ta2xa.png
2024-02-02 23:45:36 Command :: file -b --mime '/tmp/8b2692d469c4c7e4cf729987fb758b6220240203-7-6ta2xa.png'
2024-02-02 23:45:36 [paperclip] Trying to link /tmp/48dee1e33aad7485fe78924b668dea6920240203-7-idbea8.png to /tmp/43e20a808bb8e8213b4936965693499620240203-7-t6jwwn.png
2024-02-02 23:45:36 Command :: identify -format %m '/tmp/43e20a808bb8e8213b4936965693499620240203-7-t6jwwn.png[0]'
2024-02-02 23:45:37 Command :: convert '/tmp/43e20a808bb8e8213b4936965693499620240203-7-t6jwwn.png[0]' -auto-orient -resize "532x433>" -quality 90 +profile "!icc,*" +set modify-date +set create-date '/tmp/16f937015ec3d04cc376f0b80d985fd020240203-7-z4c6u2'
2024-02-02 23:45:37 Command :: convert '/tmp/16f937015ec3d04cc376f0b80d985fd020240203-7-z4c6u2' -depth 8 RGB:-
2024-02-02 23:45:37 [paperclip] Trying to link /tmp/16f937015ec3d04cc376f0b80d985fd020240203-7-z4c6u2 to /tmp/3addf0ef2f83533a626a05b359c0ea5220240203-7-pxwz00
2024-02-02 23:45:38 [paperclip] Trying to link /tmp/0c8c9003d6f8a08fd6817e7904641a3520240203-7-kvb2vs.mp4 to /tmp/cb4c44beb2d7cd361888dad0c5ed71ff20240203-7-zlwmt9.mp4
2024-02-02 23:45:38 Command :: file -b --mime '/tmp/cb4c44beb2d7cd361888dad0c5ed71ff20240203-7-zlwmt9.mp4'
2024-02-02 23:45:38 Command :: ffmpeg -nostdin -i '/tmp/0c8c9003d6f8a08fd6817e7904641a3520240203-7-kvb2vs.mp4' -loglevel 'fatal' -map_metadata '-1' -c:v 'copy' -c:a 'copy' -acodec 'aac' -strict 'experimental' -y '/tmp/0c8c9003d6f8a08fd6817e7904641a3520240203-7-kvb2vs20240203-7-gfzkpo.mp4'
2024-02-02 23:45:38 [paperclip] Trying to link /tmp/0c8c9003d6f8a08fd6817e7904641a3520240203-7-kvb2vs20240203-7-gfzkpo.mp4 to /tmp/a588566a42299894b3cca85b7f1e802520240203-7-yzxcp9.mp4
2024-02-02 23:45:38 Command :: ffmpeg -nostdin -ss '0' -i '/tmp/a588566a42299894b3cca85b7f1e802520240203-7-yzxcp9.mp4' -loglevel 'fatal' -vf 'scale='\''min(400\, iw):min(400\, ih)'\'':force_original_aspect_ratio=decrease' -f 'image2' -vframes '1' -y '/tmp/a588566a42299894b3cca85b7f1e802520240203-7-yzxcp920240203-7-olyvbu.png'
2024-02-02 23:45:38 Command :: convert '/tmp/a588566a42299894b3cca85b7f1e802520240203-7-yzxcp920240203-7-olyvbu.png' -depth 8 RGB:-
2024-02-02 23:45:38 [paperclip] Trying to link /tmp/a588566a42299894b3cca85b7f1e802520240203-7-yzxcp920240203-7-olyvbu.png to /tmp/1f386a6713f0b35edf03f4672f9aff3220240203-7-gesnk0.png
2024-02-02 23:45:38 2024-02-03T04:45:38.687Z pid=7 tid=2gvf class=FetchReplyWorker jid=93075e8f632e143df8dcbeef INFO: start
2024-02-02 23:45:39 2024-02-03T04:45:39.128Z pid=7 tid=2gvf class=FetchReplyWorker jid=93075e8f632e143df8dcbeef elapsed=0.441 INFO: done
2024-02-02 23:45:39 [paperclip] Trying to link /tmp/9d49f5b307971ca9a0c7fb5685906f7720240203-7-wh5do.png to /tmp/880fba907da81ae810d0ab7d835ae62020240203-7-khyxbq.png
2024-02-02 23:45:39 Command :: file -b --mime '/tmp/880fba907da81ae810d0ab7d835ae62020240203-7-khyxbq.png'
2024-02-02 23:45:39 [paperclip] Trying to link /tmp/9d49f5b307971ca9a0c7fb5685906f7720240203-7-wh5do.png to /tmp/434cb1d7cdde2f7f276b7890394d6a4120240203-7-t2lopq.png
2024-02-02 23:45:39 Command :: identify -format %m '/tmp/434cb1d7cdde2f7f276b7890394d6a4120240203-7-t2lopq.png[0]'
2024-02-02 23:45:39 Command :: convert '/tmp/434cb1d7cdde2f7f276b7890394d6a4120240203-7-t2lopq.png[0]' -auto-orient -resize "397x580>" -quality 90 +profile "!icc,*" +set modify-date +set create-date '/tmp/f5d06a78c25c77eadc5b0d32be32807e20240203-7-u3wufn'
2024-02-02 23:45:39 Command :: convert '/tmp/f5d06a78c25c77eadc5b0d32be32807e20240203-7-u3wufn' -depth 8 RGB:-
2024-02-02 23:45:40 [paperclip] Trying to link /tmp/f5d06a78c25c77eadc5b0d32be32807e20240203-7-u3wufn to /tmp/771789bca11d82c08a80586e53fed95f20240203-7-yyp2jj
2024-02-02 23:45:40 2024-02-03T04:45:40.552Z pid=7 tid=2e8z class=ActivityPub::SynchronizeFeaturedCollectionWorker jid=27781ffc48d7434953269487 INFO: Adding dead ActivityPub::SynchronizeFeaturedCollectionWorker job 27781ffc48d7434953269487
2024-02-02 23:45:40 2024-02-03T04:45:40.555Z pid=7 tid=2e8z class=ActivityPub::SynchronizeFeaturedCollectionWorker jid=27781ffc48d7434953269487 INFO: delete_by_digest(uniquejobs:41a9fd40cb09d0ff2018f9a3f15936fe) completed in 2ms
2024-02-02 23:45:40 2024-02-03T04:45:40.556Z pid=7 tid=2e8z class=ActivityPub::SynchronizeFeaturedCollectionWorker jid=27781ffc48d7434953269487 elapsed=8.541 INFO: fail
2024-02-02 23:45:40 2024-02-03T04:45:40.556Z pid=7 tid=2e8z WARN: {"context":"Job raised exception","job":{"retry":true,"queue":"pull","lock":"until_executed","args":[110358861942444760,{"hashtag":false}],"class":"ActivityPub::SynchronizeFeaturedCollectionWorker","jid":"27781ffc48d7434953269487","created_at":1705170399.42106,"lock_timeout":0,"lock_ttl":4320000,"lock_prefix":"uniquejobs","lock_args":[110358861942444760,{"hashtag":false}],"lock_digest":"uniquejobs:41a9fd40cb09d0ff2018f9a3f15936fe","enqueued_at":1706935532.0159755,"error_message":"SSL_connect returned=1 errno=0 peeraddr=95.216.69.32:443 state=error: certificate verify failed (self signed certificate) on https://radical.town/users/velexiraptor","error_class":"OpenSSL::SSL::SSLError","failed_at":1705170405.5452483,"retry_count":24,"retried_at":1706603588.2484903}}
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

1 participant