Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

Okay techies: Every time I post a link to my website on Mastodon, everyone (including me) is shut out of my website for about 5 mintutes with an "error 500" message.

This doesn't happen when I post anywhere else, and I get 10 time the traffic from other sources.

People have offered me and my tech support staff (my husband) solutions. None of them worked.

lauren,
@lauren@mastodon.laurenweinstein.org avatar

@Teri_Kanefield This is a known problem with the design which I have frequently noted, and suggested fixes for -- to no avail. When you post a link, EVERY instance that sees your post immediately runs off to fetch the link in case there's an image to display. So all those instances try to get that link essentially simultaneously, DDoSing the target site. So far, nobody in a position to do so has seemed interested in dealing with this issue.

hoco,
@hoco@tribe.net avatar

@lauren @Teri_Kanefield This is a really good point! Some folk in the Fediverse host dynamic sites that probably would be easily drowned if something goes viral. But, I think it would not be that hard to disable pre-fetching those URLs and letting the first access by a user on an instance trigger it, thereby spacing it out over time and hopefully eliminating some unneeded access.

tk,

@lauren @hoco @Teri_Kanefield Adding caching to public-facing pages would also help. :)

lauren,
@lauren@mastodon.laurenweinstein.org avatar

@tk @hoco @Teri_Kanefield Pushing the problem onto end sites, many of them very small and with essentially zero funding, who have nothing to do with Mastodon per se, is not a solution.

lauren,
@lauren@mastodon.laurenweinstein.org avatar

@hoco @Teri_Kanefield There's lots of ways to fix it. No real action I know of toward doing so, however.

richardloxley,
@richardloxley@richardloxley.com avatar

@lauren @Teri_Kanefield I had a related problem with my self-hosted Mastodon server being DOS'd whenever I posted an image to Mastodon. My solution for that issue was to use mod_qos on my Apache instance running Mastodon to limit the number of simultaneous requests to my Mastodon subdomain. Your problem is slightly different, but if you could find an identifying feature of the requests (e.g. Mastodon user agent?) you could possibly put in place a QOS rule to rate limit them.

lauren,
@lauren@mastodon.laurenweinstein.org avatar

@richardloxley @Teri_Kanefield I can't depend on Mastodon user agents being consistent or even being available, and I don't want to limit responses in a way that would slow down humans viewing my site (blog, etc.). The problem is a terrible design flaw in Mastodon that NEEDS TO BE FIXED. Workarounds at the web server end just gives another excuse for that not to happen.

deborahh,
@deborahh@mstdn.ca avatar

@Teri_Kanefield shut out when following the link from Mastodon, yes, I've exoerienced this with your posts.
My Q: Ibassume the same link, pasted in the browser, does reach your website and shows the post?
(If your answer is No, that's really weird!)

Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

@deborahh You can find everything on my blog.

www.terikanefield.com (then click the "go to my blog" button)

just_one_bear,
@just_one_bear@mastodon.social avatar

@Teri_Kanefield There could be slogans!

Mastodon: Where We Slashdot Your Blog Server By Design!

Mastodon: We give your blog server a BIG HUG [of death]!

:)

cdlhamma,
@cdlhamma@hachyderm.io avatar

@Teri_Kanefield Hard to say without seeing the logs, so definitely review the error logs for clues. Additionally consider putting it behind a CDN - there's a number of services out there for free 👍

sandhu,
@sandhu@mastodon.social avatar
genecowan,
@genecowan@mastodon.social avatar

@Teri_Kanefield I've seen this same problem when sending out an email blast — the website is immediately brought down. I suspect there is a spam bot subscribed somewhere and as soon as an email is received it slams the site with a DOS attack. Could be the same on your posts?

renchap,
@renchap@oisaur.com avatar

@Teri_Kanefield I am sorry for this, this is a known Mastodon issue. Basically, when you post a link, every Mastodon instance receiving your post will try to download the page to generate the link preview, and for popular accounts like yours this might be a few thousand of requests.
We have plans to improve this in the near future, in the meantime having some basic HTTP caching on your blog should help.

evan,
@evan@cosocial.ca avatar

@renchap can we collaborate on a spec for this? /cc @Teri_Kanefield

renchap,
@renchap@oisaur.com avatar

@evan Sure. This is on the 4.3 roadmap but I am not sure we will be able to deliver it, it has many implications, both in term of protocol and implementation, mostly because preview generation must be an async process.
I will try to write down our thoughts on this topic (we have been discussing this for many months), and share it to you

evan,
@evan@cosocial.ca avatar

@renchap awesome, thanks. Ive been talking about the issue with some other folks so I'd love to compare notes.

mike,
@mike@thecanadian.social avatar

@renchap @Teri_Kanefield Would simply putting her site behind Cloudflare or something similar not mitigate this or eliminate the issue entirely?

ojars,
@ojars@mstdn.kapteinis.lv avatar
mike,
@mike@thecanadian.social avatar
dinandmentink,
@dinandmentink@mastodon.online avatar

@Teri_Kanefield Hey Teri. Techie here. I have had the same issue on my website. The issue is (most likely) the following:

Every separate mastodon server will fetch your website so it can display it's users the link preview information. This usually means that your website receives thousands of requests (visitors) in the few seconds/minutes after you post a link. The website can't handle and goes down.

Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

@dinandmentink

Can't be thousands. I can see what happened through stat devices on my website and it's tens. (Not even hundreds)

roadskater,
@roadskater@mastodon.social avatar

@Teri_Kanefield @dinandmentink Teri, It can easily be hundreds when you don't even have an especially well-followed Mastodon account. I can post a link to my office website here on Mastodon and then watch the raw server log scroll by and see 200 requests for the linked page come from Mastodon instances in just a couple minutes. I consider this a flaw in how Mastodon works, but it does sound like your WordPress could possibly be better tuned.

Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

Okay, so people say it's a bug.

I need to put up some flypaper so the bugs to somewhere else and get trapped over there.

See what happens when a former college English instructor turned lawyer tries to talk the technie language?

DoctorDNS,
@DoctorDNS@masto.ai avatar

@Teri_Kanefield who runs your Web site and what is the platform?

Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

@DoctorDNS

Wordpress on Bluehost and my husband runs it.

Teri_Kanefield,
@Teri_Kanefield@mastodon.social avatar

My techie husband will go through all these responses when he gets back later.

(He spent 35 years in tech, but mostly IT management, so not always hands on. But at least he speaks the langauge.)

Thanks.

oneiros,
@oneiros@ruhr.social avatar
jwildeboer, (edited )
@jwildeboer@social.wildeboer.net avatar

@Teri_Kanefield The moment you post a link in a toot and it gets federated, receiving instances will try to fetch your post to embed as preview on their instance. This causes a bit of overload on your Wordpress, I guess. Can be solved with some cache settings that I need to look up as I don't have them in the top of my head.

marcel,
@marcel@waldvogel.family avatar

@jwildeboer @Teri_Kanefield Having your front-end web server (Apache, Nginx, …) do some request caching worked wonders for me. (I never managed to get Wordpress to serve more than a few requests per second; but since most of these requests no longer hit Wordpress, I don't care anymore.)
Also make sure the "oembed" requests get cached as well (not just to the main HTML page), as these are the ones (also) requested for the preview.

val6bodie,

@Teri_Kanefield

Oh, you were an English instructor? I like you even more, I majored in English Lit. in university & was ALways glad I followed my heart and did.

randulo,
@randulo@mastodon.social avatar

deleted_by_author

  • Loading...
  • ahimsa_pdx, (edited )
    @ahimsa_pdx@disabled.social avatar

    @randulo

    I've had problems with how link previews are generated but very different than this error 500 problem. For me the problem was stripping off the end of the URL.

    EDIT: Two examples of problems with truncated links are gift links and using # to go to specific point on page (anchor links)

    Anyway, if you add an image to your post then a link preview is not generated. But I don't know whether this workaround will fix this problem!

    @Teri_Kanefield

    News4wombats,
    @News4wombats@mastodon.social avatar

    @Teri_Kanefield Interesting. I've been having similar problems when I post to my blog. I had figured it was an internal problem with my blog, but maybe it's the autoposted link on Mastodon.
    Technology is weird.

    kelvin0mql,
    @kelvin0mql@mastodon.social avatar

    @Teri_Kanefield

    Two bits of general tech support advice from someone who's been at this crazy nonsense since the mid '80s.

    1. Ctrl + Alt + FIST
    2. Shake FIST & Swear

    Not always in that order.

    steveo1049,
    @steveo1049@mastodon.sdf.org avatar

    @Teri_Kanefield - - seems like a bug. Have you reported it to your server instance?

    Teri_Kanefield,
    @Teri_Kanefield@mastodon.social avatar

    @steveo1049 The same thing happened when I had my own server, and we kept adding to (whatever the stuff is called to give it more room and power).

    I'm obviously not a technie person and I don't speak the language well.

    siderea,

    @Teri_Kanefield
    >we kept adding to (whatever the stuff is called to give it more room and power).

    When in doubt "resources" is a perfectly cromulent hand wave.

    @steveo1049

    tw000,

    @Teri_Kanefield It's my understanding that this is the link-preview function bombarding your server as the link spreads across the fediverse.

    @jerry might have some helpful thoughts on this.

    steveo1049,
    @steveo1049@mastodon.sdf.org avatar

    @tw000 @Teri_Kanefield @jerry - so, it’s a Fedi-bug!

    gearhead,
    @gearhead@fosstodon.org avatar

    @steveo1049 @tw000 @Teri_Kanefield @jerry

    I wouldn't agree that it's a fedi-bug. But a consequence of equal access over the internet.

    Hosting on a platform that is dynamically responsive (AWS, Azure, GHS) and designing for high requester peaks seems appropriate.

    gearhead,
    @gearhead@fosstodon.org avatar

    @steveo1049 @tw000 @Teri_Kanefield @jerry

    Another method, is to post via a separate server instance - to serve the toot requests, leaving the primary to serve 'normal' traffic. Let the 'mirror' server grind out serving the excess traffic.

    I'm probably way off on the assessment tho...

    jerry,

    @gearhead I can't find the issue right now, but there is a githb issue in the mastodon issue list to generate the preview card for a link on the instance the link is posted from - and have the preview card distributed with the post, rather than expecting each instance to create their own card.
    @steveo1049 @tw000 @Teri_Kanefield

    feld,
    @feld@bikeshed.party avatar

    deleted_by_author

  • Loading...
  • jerry,

    @feld I think we’ve likely crossed a threshold where it’s not a hypothetical concern any longer, now that we have 20k instances. @gearhead @tw000 @steveo1049 @Teri_Kanefield

    specked,
    @specked@social.right.wtf avatar

    @Teri_Kanefield Reach out to me and we can trouble shoot it.

    Teri_Kanefield,
    @Teri_Kanefield@mastodon.social avatar

    @specked

    thanks ! email my technical support staff schlossandy@gmail.com

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • slotface
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • ethstaker
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • modclub
  • tester
  • osvaldo12
  • cubers
  • GTA5RPClips
  • normalnudes
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines