[bug] Media proxy returns 424 Failed Dependency for all requests #526
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#526
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
Gentoo Linux
Version
v3.8.0
PostgreSQL version
15.2
What were you trying to do?
After activating the media proxy, all requests to it for images return an HTTP error 424 Failed Dependency after exactly 5 seconds.
A test post demonstrating this error is available at https://akkoma.pikaböl.se/notice/AUwOggNPhamXI484nI
My setup consists of two virtual machines, one running an Apache reverse proxy that terminates TLS and proxies to Akkoma running on the other VM. The Akkoma VM does not have a publicly routable IP address.
What did you expect to happen?
I was expecting the media proxy to serve images.
What actually happened?
I get this HTTP error back:
Looking at the source code, it looks like the only place this error can be generated is at https://akkoma.dev/AkkomaGang/akkoma/src/branch/stable/lib/pleroma/web/media_proxy/media_proxy_controller.ex#L88 if a HEAD request to the full image URL (obtained by Base64 decoding the last part of the request URL) fails. But that URL (https://akkoma.xn--pikabl-0xa.se/media/b5cfd91f90581e24edb7c02ef5226c1ae6cbbef613b95b2e1d7348fd8c725501.JPG) works both from a web browser and from the command line om the VM running my Akkoma server:
Logs
Severity
I cannot use the software
Have you searched for this issue?
I finally looked deep enough at Wireshark to figure out that this was a bug in my firewall's NAT rules. Akkoma really couldn't connect to itself to fetch the original image from
/media/
.