Question

Mastodon from 1-Click Apps Marketplace - All searches fail with 500 status code

I’ve set up Mastodon on a droplet by following this quickstart guide.

I see no resource contention on my machine, with CPU/Memory usage being low.

Whenever I try to search anything (eg. users in another instance), I get no results, a popup with ‘500’ on the frontent, and the following logs.

$ sudo journalctl -u mastodon-web -f
...
Nov 20 15:24:41 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] [paperclip] Trying to link /tmp/87cd3e201ed9ac2aab393bf5a280325120221120-21104-1sayx.png to /tmp/af9f4e282b0b6a8330cabbb89928872e20221120-21104-qxshvi.png
Nov 20 15:24:41 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] Command :: file -b --mime '/tmp/af9f4e282b0b6a8330cabbb89928872e20221120-21104-qxshvi.png'
Nov 20 15:24:41 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] [paperclip] Trying to link /tmp/87cd3e201ed9ac2aab393bf5a280325120221120-21104-1sayx.png to /tmp/34e15810f90474d7b7a11c274fbfcc8120221120-21104-xqi32r.png

Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] [paperclip] saving cache/accounts/avatars/109/376/197/039/065/644/original/dd20e7d8622fb15b.png
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] method=GET path=/api/v2/search format=html controller=Api::V2::SearchController action=index status=500 error='ArgumentError: expected :endpoint to be a HTTP or HTTPS endpoint' duration=1292.32 view=0.00 db=5.37
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d]
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] ArgumentError (expected :endpoint to be a HTTP or HTTPS endpoint):
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d]
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] lib/paperclip/attachment_extensions.rb:84:in `block in save'
Nov 20 15:24:42 mastodon-tpaschalis bundle[21104]: [6d2871d6-79e6-4012-ac82-d065a31da62d] lib/paperclip/attachment_extensions.rb:90:in `save'
....

I couldn’t find any references to similar behavior anywhere, has anyone got the same issue? I’m running on v3.5.3.

Edit: I’ve updated the Mastodon instance to v3.5.5 using the instructions on the releases page and restarted; the issue still persists with the same error message.

Show comments

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
November 21, 2022

Hi @paschalist0,

If you get “500 Internal Server Error”, there should be more information in puma/mastodon-web's logs or journalctl -u mastodon-web, depending on the installation.

Check those logs and you should be able to see the exact error. Additionally, you can try check the following Docs on how to further troubleshoot such issues:

https://docs.joinmastodon.org/admin/troubleshooting/