Image upload problems after the latest upgrade

I am almost there with the version 3.12.2 but I can’t upload own images and I see images in other peoples posts only if I click the empty space for the image

avatars and background images are ok

I created the media subdomain

this upgrade was complicated, I can only copy paste commands, I don’t know a shit about computers

I run my own single user server

media proxy is enabled, images are ok but uploading own images doesn’t work:
Error: Upload failed. Try again later

without logs we can’t really help you - though it sounds like you haven’t set the upload’s base_url

I get this after reboot:

Apr 25 16:27:41 server systemd[1]: Started akkoma.service - Akkoma social network.
Apr 25 16:28:12 server mix[848]: 16:28:12.535 [info] Found emoji packs:
Apr 25 16:28:13 server mix[848]: 16:28:13.729 [info] Running Pleroma.Web.Endpoint with cowboy 2.10.0 at 127.0.0.1:4000 (http)
Apr 25 16:28:13 server mix[848]: 16:28:13.748 [info] Access Pleroma.Web.Endpoint at https://subdomain.domain.com
Apr 25 16:28:14 server mix[848]: 16:28:14.035 [info] Postgrex.Protocol (#PID<0.964.0>) disconnected: ** (DBConnection.ConnectionError) client #PID<0.1116.0> exited
Apr 25 16:28:14 server mix[848]: 16:28:14.045 [notice] Application pleroma exited: :stopped
Apr 25 16:28:15 server mix[848]: 16:28:15.149 [info] Found emoji packs:
Apr 25 16:28:15 server mix[848]: 16:28:15.211 [info] Running Pleroma.Web.Endpoint with cowboy 2.10.0 at 127.0.0.1:4000 (http)
Apr 25 16:28:15 server mix[848]: 16:28:15.211 [info] Access Pleroma.Web.Endpoint at https://subdomain.domain.com
Apr 25 16:28:57 server mix[848]: 16:28:57.916 request_id=F8mSx7yVSFdI0NwAAB4i [error] Could not fetch user https://mastodon.social/users/nohuescasino, {nil, {:error, {“Object has been deleted”, "https://mastodon.social/users/nohuescas>
Apr 25 16:28:57 server mix[848]: 16:28:57.943 request_id=F8mSx7yVSFdI0NwAAB4i [error] Could not fetch user https://mastodon.social/users/nohuescasino, {nil, {:error, {“Object has been deleted”, "https://mastodon.social/users/nohuesca

those are just boot logs

we need logs for when your upload fails

if only I knew where to find those logs

the same place you got the startup logs from
Just try to upload something and watch what shows up

I don’t see anything related to this in the log, some things get uploaded now but it fails most of the time

that sounds like it could either be your connection, or your reverse proxy setup

check your browser’s logs (F12) when you attempt to upload and it fails, this should give you more information

browser log:

TypeError: can’t access dead object
method blob:https://subdomain.domain.com/21dac8d9-040b-47b6-b6cb-7ec7e26e549d:674
insert https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
C https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
x https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
F https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
z https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
M https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
x https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
effect https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
run https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
update https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
o https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2
O https://subdomain.domain.com/static/js/470.460312ce8a16616e27e3.js:2

that tells us nearly nothing, though in all my years of developing in a browser I have never seen that error message

it must be the reverse proxy setup that is not correct
what should I check?

check if your http requests are going through

I get this when I upload an 1.1MB image

file=flower.JPG
POST: HTTP/1.1 413 Request Entity Too Large
Server: nginx/1.25.1
Date: Fri, 26 Apr 2024 14:08:29 GMT
Content-Type: text/html
Content-Length: 183
Connection: close

well

that… should tell you all you need to know

your upload is too big and nginx is refusing it

thanks, it did

I forgot about nginx, the limit in Akkoma is about 15MB for uploads