Need help with Media setup

I am struggling to send posts with images. Posts will go out fine but only show a a black image, probably indicating the image couldn’t be loaded from the server.
When I copy and paste an image I can see that “something” is added, the image is recognized but won’t show.
The default Akkoma webclient shows a white space representing the picture, on my Lapop I use Tokodon which recognizes that there is a picture, even allows to edit, but it shows all black
Because two clients show the same behaviour I presume the issue is server side, and most likely my media setup.

Here’s what I believe is the relevant part of my config:

config :pleroma, Pleroma.Upload,base_url: “https://fediversemedia.zell-mbc.com”
config :pleroma, Pleroma.Uploaders.Local, uploads: “uploads”

When I look on the server I can see the image has been uploaded to ./uploads and it’s viewable on the server. Other than that no errors in the log which would provide a hint.

Here’s my nginx conf:

server {server_name fediversemedia.zell-mbc.com;
location ~ ^/(media|proxy) {
    proxy_cache akkoma_media_cache;
    proxy_pass http://localhost:4001;  # or wherever your Akkoma backend listens
}…

I have to admit I never really understood the new Media setup so I think this is most likely just a configuration issue. It’d be great if anyone was able to spot what’s wrong or can provide a few troubleshooting ideas?
Not sure if it’s relevant, but I am running Akkoma with docker compose.

ah you’re very close to there - change

config :pleroma, Pleroma.Upload,base_url: “https://fediversemedia.zell-mbc.com”

to

config :pleroma, Pleroma.Upload,base_url: "https://fediversemedia.zell-mbc.com/media/”

Thanks for getting back so quickly! Made the change, docker compose down –rmi all, and all that…Should I expect the image in that previous post come to live? I mean the image is in uploads, it could be found?

I also had a look at my nginx logs now, but can’t find anything obvious either.

Should a curl like below get me the image?

curl -I https://fediversemedia.zell-mbc.com/79ea27dfaa1906fdd2096c0c4e7ca553680e4ceb2cfe563373e298569f8ef097.png
HTTP/1.1 301 Moved Permanently
Server: nginx/1.26.3
Date: Wed, 29 Oct 2025 12:49:24 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: https://social.zell-mbc.com/79ea27dfaa1906fdd2096c0c4e7ca553680e4ceb2cfe563373e298569f8ef097.png

Is there any other way for me to test the media url short of sending another post to the world? :slight_smile:

ah right yeah your URL won’t change in the database for existing posts

adding a redirect on fediversemedia.zell-mbc → fediversemedia.zell-mbc/media/ will solve the old stuff

1 Like

Was wondering for a moment if updating the Postgres db wouldn’t be easier, was hoping for a table = posts, but the table structure I found looks a little more complex so I keep my hands off :slight_smile:

By the way, found a way to test if media is working. Before, when I copied an image into a new post it would only show as black window, now I can actually see the image.
Confirmed with akkoma_fe and Tokodon.

So we are good, problem solved, and as always, thank you very much for your help!