t2bot / matrix-media-repo

Highly configurable multi-domain media repository for Matrix.

Home Page:https://docs.t2bot.io/matrix-media-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v1.3.2 still showing issues thumbnailing svg files

williamkray opened this issue · comments

using docker container, v1.3.2. svg uploads are working, but thumbnails seem to throw a familiar 0x0 error. config file has uncommented image/svg+xml format for thumbnail support. here's an example of a remote piece of media uploaded in a public room:

docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:39:35.810 Z" level=warning msg="Continuing upload without lock! Set up Redis to make this warning go away." allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46752" requestId=REQ-261 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 server=aguiarvieira.pt userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:39:35.971 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46752" requestId=REQ-261 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 server=aguiarvieira.pt userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:39:35.971 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46752" requestId=REQ-261 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:39:41.192 Z" level=info msg="Replying with result: *_responses.DownloadResponse &{ContentType:image/svg+xml Filename:galo1.svg SizeBytes:3336 Data:0xc000403e90 TargetDisposition:infer}" contentLength=0 contentType="" host=mssj.me method=GET queryString="" remoteAddr="172.27.0.6:46760" requestId=REQ-264 resource=/_matrix/media/r0/download/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:40:49.123 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46764" requestId=REQ-269 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 server=aguiarvieira.pt userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:40:49.123 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46764" requestId=REQ-269 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:41:05.118 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46764" requestId=REQ-270 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 server=aguiarvieira.pt userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:41:05.118 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:46764" requestId=REQ-270 resource=/_matrix/media/r0/thumbnail/aguiarvieira.pt/4924dde5c50851cbe86ead364369df5f14235e0f1702087860703723520 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"

and here's one for a couple locally uploaded svg files:

docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:24:07.280 Z" level=error msg="Unexpected error locating media: context deadline exceeded" allowRemote=true contentLength=0 contentType="" filename="" host=mssj.me mediaId=106d0c7b48b2d99a15be480f5b13e1d6f988a7651701686842161627136 method=GET queryString="" remoteAddr="172.27.0.6:56146" requestId=REQ-148 resource=/_matrix/media/r0/download/aguiarvieira.pt/106d0c7b48b2d99a15be480f5b13e1d6f988a7651701686842161627136 server=aguiarvieira.pt userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:24:07.280 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="" remoteAddr="172.27.0.6:56146" requestId=REQ-148 resource=/_matrix/media/r0/download/aguiarvieira.pt/106d0c7b48b2d99a15be480f5b13e1d6f988a7651701686842161627136 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
wreck@mssj:~/docker-matrix$ docker compose logs matrix-media-repo | grep 68464be0146916a38c149d076f4b051d7a852d821701335953936744448
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:14:33.578 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=68464be0146916a38c149d076f4b051d7a852d821701335953936744448 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:48790" requestId=REQ-118 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/68464be0146916a38c149d076f4b051d7a852d821701335953936744448 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:14:33.578 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:48790" requestId=REQ-118 resource=/_matrix/media/r0/thumbnail/mssj.me/68464be0146916a38c149d076f4b051d7a852d821701335953936744448 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"

docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:16:42.513 Z" level=info msg="Replying with result: *r0.MediaUploadedResponse &{ContentUri:mxc://mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496}" contentLength=14359 contentType=image/svg+xml host=mssj.me method=POST queryString="filename=schildichat-concept-icon1.svg" remoteAddr="172.27.0.6:48198" requestId=REQ-128 resource=/_matrix/media/r0/upload userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:16:42.773 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:48198" requestId=REQ-129 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:16:42.773 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:48198" requestId=REQ-129 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:16:51.417 Z" level=info msg="Replying with result: *_responses.DownloadResponse &{ContentType:image/svg+xml Filename:schildichat-concept-icon1.svg SizeBytes:14359 Data:0xc0002745e8 TargetDisposition:infer}" contentLength=0 contentType="" host=mssj.me method=GET queryString="" remoteAddr="172.27.0.6:48198" requestId=REQ-130 resource=/_matrix/media/r0/download/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:46:37.792 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:60046" requestId=REQ-312 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 22:46:37.792 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:60046" requestId=REQ-312 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"

apologies if i'm missing some log contents, i'm grepping for the media uri as my logs are very chatty with lots of other content and i have no way to run an isolated test of this.

thumbnails section of config file:

# The thumbnail configuration for the media repository.
thumbnails:
  # The maximum number of bytes an image can be before the thumbnailer refuses.
  maxSourceBytes: 2097152000 # 10MB default, 0 to disable

  # The number of workers to use when generating thumbnails. Raise this number if thumbnails
  # are slow to generate or timing out.
  #
  # Maximum memory usage = numWorkers multiplied by the maximum image source size
  # Average memory usage is dependent on how many thumbnails are being generated by your users
  numWorkers: 100

  # All thumbnails are generated into one of the sizes listed here. The first size is used as
  # the default for when no width or height is requested. The media repository will return
  # either an exact match or the next largest size of thumbnail.
  sizes:
    - width: 32
      height: 32
    - width: 96
      height: 96
    - width: 320
      height: 240
    - width: 640
      height: 480
    - width: 768   # This size is primarily used for audio thumbnailing.
      height: 240
    - width: 800
      height: 600

  # To allow for thumbnails to be any size, not just in the sizes specified above, set this to
  # true (default false). When enabled, whatever size requested by the client will be generated
  # up to a maximum of the largest possible dimensions in the `sizes` list. For best results,
  # specify only one size in the `sizes` list when this option is enabled.
  dynamicSizing: true 

  # The content types to thumbnail when requested. Types that are not supported by the media repo
  # will not be thumbnailed (adding application/json here won't work). Clients may still not request
  # thumbnails for these types - this won't make clients automatically thumbnail these file types.
  types:
    - "image/jpeg"
    - "image/jpg"
    - "image/png"
    - "image/apng"
    - "image/gif"
    - "image/heif"
    - "image/heic"
    - "image/webp"
    - "image/bmp"
    - "image/tiff"
    - "image/svg+xml" # Be sure to have ImageMagick installed to thumbnail SVG files
    - "audio/mpeg"
    - "audio/ogg"
    - "audio/wav"
    - "audio/flac"
    - "video/mp4" # Be sure to have ffmpeg installed to thumbnail video files

  # Animated thumbnails can be CPU intensive to generate. To disable the generation of animated
  # thumbnails, set this to false. If disabled, regular thumbnails will be returned.
  allowAnimated: true

  # Default to animated thumbnails, if available
  defaultAnimated: true

  # The maximum file size to thumbnail when a capable animated thumbnail is requested. If the image
  # is larger than this, the thumbnail will be generated as a static image.
  maxAnimateSizeBytes: 1048576000 # 10MB default, 0 to disable

  # On a scale of 0 (start of animation) to 1 (end of animation), where should the thumbnailer try
  # and thumbnail animated content? Defaults to 0.5 (middle of animation).
  stillFrame: 0.5

  # How many days after a thumbnail is generated before it expires and is deleted. The thumbnail
  # can be regenerated safely - this just helps free up some space in your datastores. Set to
  # zero or negative to disable. Defaults to disabled.
  expireAfterDays: 7

one more attempt to load the already-uploaded image in browser, this time with debug logging on:

docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:06:42.186 Z" level=debug msg="Enabling rate limit"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:06:42.187 Z" level=info msg="Started up. Listening at http://0.0.0.0:8000" address="0.0.0.0:8000"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:06:52.052 Z" level=info msg="Replying with result: *_responses.DownloadResponse &{ContentType:image/png Filename:. SizeBytes:30868 Data:0xc00022f0f8 TargetDisposition:infer}" contentLength=0 contentType="" host=jobmachine.org method=GET queryString="" remoteAddr="172.27.0.6:35280" requestId=REQ-0 resource=/_matrix/media/r0/download/mssj.me/c0e5a6c0ce99343720eef3f59034bcbf54732340 userAgent="FreshpingBot/1.0 (+https://freshping.io/)"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:21.942 Z" level=debug msg="Using generator: svgGenerator" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:35280" requestId=REQ-1 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:21.949 Z" level=debug msg="Using generator: svgGenerator" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=68464be0146916a38c149d076f4b051d7a852d821701335953936744448 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:41042" requestId=REQ-2 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/68464be0146916a38c149d076f4b051d7a852d821701335953936744448 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:22.221 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:35280" requestId=REQ-1 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:22.221 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:35280" requestId=REQ-1 resource=/_matrix/media/r0/thumbnail/mssj.me/a6960c030b4d11be80b9864e028e55b8cad176901702083912055914496 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:22.243 Z" level=error msg="Unexpected error locating media: png: error encoding thumbnail: png: invalid format: invalid image size: 0x0" allowRemote=true contentLength=0 contentType="" host=mssj.me mediaId=68464be0146916a38c149d076f4b051d7a852d821701335953936744448 method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:41042" requestId=REQ-2 requestedAnimated=true requestedHeight=600 requestedMethod=scale requestedWidth=800 resource=/_matrix/media/r0/thumbnail/mssj.me/68464be0146916a38c149d076f4b051d7a852d821701335953936744448 server=mssj.me userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"
docker-matrix-matrix-media-repo-1  | time="2023-09-13 23:07:22.243 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=mssj.me method=GET queryString="height=600&method=scale&width=800" remoteAddr="172.27.0.6:41042" requestId=REQ-2 resource=/_matrix/media/r0/thumbnail/mssj.me/68464be0146916a38c149d076f4b051d7a852d821701335953936744448 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0"

strangly enough, this seems like it's client related... thumbnails aren't loading in schildichat but load fine in the latest element-web. not sure if this is worth keeping open.

I have also been getting this with gifs... Though element-web is also effected.
If the thumbnail was previously cached by the client it seems good, but if it gets cleared and has to get a new one it can't.

2024-01-22T08:03:59.303195665Z time="2024-01-22 08:03:59.302 Z" level=info msg="Comparing datastores against config..."
2024-01-22T08:05:25.139566876Z time="2024-01-22 08:05:25.138 Z" level=error msg="Unexpected error locating media: context deadline exceeded" allowRemote=true contentLength=0 contentType="" host=alteria.xyz mediaId=6a398bc70fc993d71f5630aa0e4f4e308caa9730 method=GET queryString="height=576&method=scale&width=576" remoteAddr="172.18.0.2:45836" requestId=REQ-1 requestedAnimated=true requestedHeight=576 requestedMethod=scale requestedWidth=576 resource=/_matrix/media/r0/thumbnail/alteria.xyz/6a398bc70fc993d71f5630aa0e4f4e308caa9730 server=alteria.xyz userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0"
2024-01-22T08:05:25.139697874Z time="2024-01-22 08:05:25.139 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=alteria.xyz method=GET queryString="height=576&method=scale&width=576" remoteAddr="172.18.0.2:45836" requestId=REQ-1 resource=/_matrix/media/r0/thumbnail/alteria.xyz/6a398bc70fc993d71f5630aa0e4f4e308caa9730 userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0"

Managed to get it with a png as well

2024-01-22T08:13:31.715832315Z time="2024-01-22 08:13:31.715 Z" level=info msg="Replying with result: *_responses.DownloadResponse &{ContentType:image/png Filename:Ryonia%20Coruscare_Base_SFW.png SizeBytes:4477667 Data:0xc0002d4288 TargetDisposition:infer}" contentLength=0 contentType="" host=alteria.xyz method=GET queryString="allow_remote=false" remoteAddr="172.18.0.2:48950" requestId=REQ-109 resource=/_matrix/media/r0/download/alteria.xyz/6937538202d145b81aaec08bcb94628dfc41fb851749344420366385152 userAgent=Synapse/1.93.0
2024-01-22T08:13:36.105455535Z time="2024-01-22 08:13:36.104 Z" level=error msg="Unexpected error locating media: context deadline exceeded" allowRemote=true contentLength=0 contentType="" host=alteria.xyz mediaId=6a398bc70fc993d71f5630aa0e4f4e308caa9730 method=GET queryString="height=576&method=scale&width=576" remoteAddr="172.18.0.2:42956" requestId=REQ-104 requestedAnimated=true requestedHeight=576 requestedMethod=scale requestedWidth=576 resource=/_matrix/media/r0/thumbnail/alteria.xyz/6a398bc70fc993d71f5630aa0e4f4e308caa9730 server=alteria.xyz userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0"
2024-01-22T08:13:36.105502800Z time="2024-01-22 08:13:36.105 Z" level=info msg="Replying with result: *_responses.ErrorResponse &{Code:M_UNKNOWN Message:Unexpected Error InternalCode:M_UNKNOWN}" contentLength=0 contentType="" host=alteria.xyz method=GET queryString="height=576&method=scale&width=576" remoteAddr="172.18.0.2:42956" requestId=REQ-104 resource=/_matrix/media/r0/thumbnail/alteria.xyz/6a398bc70fc993d71f5630aa0e4f4e308caa9730 userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36.0 (KHTML, like Gecko) Chrome/118.0.5993.159 Safari/537.36.0"

I will not that my client eventually threw a "Profile not Saved" message, but then in the bg the pfp and the thumbnail image for it loaded.
Maybe this is related to a timeout error of some sort? Not sure why the gif still wouldn't be eventually processed though.

Edit: Seems like my synapse server keeled over when re-uploading the gif to my pfp. This didn't happen when looking for the thumbnail, so I'm wondering if it's getting knocked out by the gif taking to long to process maybe?

@Ryonez your issue appears to be different, and related to MMR taking too long to download the file.

Thank you for the pointer. I'll look into that and make a new issue if I have trouble getting it sorted.