Code Monkey home page Code Monkey logo

haus's People

Contributors

amcgregor avatar

Watchers

 avatar  avatar

haus's Issues

Migrate instance to new underlying physical host.

The old machine needs to be decommissioned prior to a move across the country. Either I need to:

  • Figure out how to wholesale move the paused VMs from the original Intel host to the new ARM one.
  • Rebuild the Docker Compose cluster, restoring Postgres database and public/system uploaded content.

Given the architectural differences, the latter may be more practical. I do have a PostgreSQL dump just prior to freezing the original cluster, as well as a docker cp extracted copy of the public/system folder.

Technically this duplicates or can naturally resolve #4.

Reference.

Media previews fail to generate, GIF upload fails.

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}}

Update to latest Mastodon version.

There have been two waves of critical security vulnerabilities since initial provisioning. The instance was shut down last week after the latest announcement to prevent exploitation until updates could be arranged.

Uploaded media needs to be external to Docker VMs.

When initially constructed, the Docker Compose setup was unable to utilize an external (dom0) mount for the /public/system directory. This needs to be corrected, and media rescued from the paused containers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.