Question

Used Mastodon 1-click Deployment, can't upload images

I used the mastodon 1-click deployment images, and I set it up to work with digitalocean spaces, but I don’t seem to be able to upload images. I keep getting “We’re sorry, but something went wrong on our end.”

When I run journalctl -u mastodon-web, I’m seeing 202 errors from the relays I’ve set up, but no record of the attempt and fail. When I check /var/log/nginx/error.log, I am seeing entries that just don’t seem to apply to the failed image upload event.

2022/12/24 00:25:53 [error] 4942#4942: *88968 connect() failed (111: Connection refused) while connecting to upstream, client: ..., server: domain.social, request: “GET /@admin HTTP/2.0”, upstream: “http://127.0.0.1:3000/@admin”, host: “domain.social” 2022/12/24 01:04:10 [crit] 4942#4942: *91431 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: ..., server: 0.0.0.0:443

I’m not sure where to continue troubleshooting the issue


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
December 26, 2022

Hi @adammpkins,

How are you trying to upload the images, have you checked the documentation and how to allow your Application to use Spaces, you need a token for it. Check the following tutorial and see if that would be helpful:

https://www.digitalocean.com/community/tutorials/how-to-create-a-digitalocean-space-and-api-key

Additionally, you can check the examples from here -

https://docs.digitalocean.com/products/spaces/reference/s3-sdk-examples/

They might prove to be of help.