Skip to content
0
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • Home
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Sketchy)
  • No Skin
Collapse

Wandering Adventure Party

  1. Home
  2. Uncategorized
  3. Still trying to figure out my website outages.

Still trying to figure out my website outages.

Scheduled Pinned Locked Moved Uncategorized
mediawikiwordpressfedihelp
19 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Ratsnake GamesR Ratsnake Games

    @juergen_hubert Are you occasionally awake and available at that time of day? If so, could you ssh onto your machine during this outage and run `top`?

    It will show you a list of all processes. SHIFT+P will sort them by CPU usage, SHIFT+M will sort by RAM usage.

    If nothing suspicious shows up immediately, could you please share screenshots of both lists?

    Jürgen HubertJ This user is from outside of this forum
    Jürgen HubertJ This user is from outside of this forum
    Jürgen Hubert
    wrote last edited by
    #6

    @ratsnakegames

    Not usually - this is way past my usual bed time. But maybe I should do this at some point.

    Ratsnake GamesR 1 Reply Last reply
    0
    • Jürgen HubertJ Jürgen Hubert

      @ratsnakegames

      Not usually - this is way past my usual bed time. But maybe I should do this at some point.

      Ratsnake GamesR This user is from outside of this forum
      Ratsnake GamesR This user is from outside of this forum
      Ratsnake Games
      wrote last edited by
      #7

      @juergen_hubert i can probably figure out a command that lets you schedule that stuff, one moment

      Ratsnake GamesR 1 Reply Last reply
      0
      • Ruxbat! 🍉🦇R Ruxbat! 🍉🦇

        @juergen_hubert RE: log analysis, have you tried ingesting the logs, especially the access logs, into a tool like OpenSearch / Kibana and plotted them histographically? You can also slice them by endpoint, user agent, IP address, and other things that could show a mis-behaving scraper / bot, or some other site "accidentally" DDOSing you. Might be useful if you can't find a batch job that explains the load.

        Jürgen HubertJ This user is from outside of this forum
        Jürgen HubertJ This user is from outside of this forum
        Jürgen Hubert
        wrote last edited by
        #8

        @ruxbat

        I did some scraper analysis last year, and while they are a persistent nuisance, their load tends to vary a lot. The consistency of the time period has led me to suspect that this is an inside problem.

        Ratsnake GamesR 1 Reply Last reply
        0
        • Ratsnake GamesR Ratsnake Games

          @juergen_hubert i can probably figure out a command that lets you schedule that stuff, one moment

          Ratsnake GamesR This user is from outside of this forum
          Ratsnake GamesR This user is from outside of this forum
          Ratsnake Games
          wrote last edited by
          #9

          @juergen_hubert `echo "top -b -n 5 > processes.txt" | at 23:15` (without the backticks!)

          You might have to install `at` first (with `apt install at` if you're on Ubuntu) and change the timestamp to 00:15 if your server is running on French time

          Ratsnake GamesR Jürgen HubertJ 2 Replies Last reply
          0
          • Ratsnake GamesR Ratsnake Games

            @juergen_hubert `echo "top -b -n 5 > processes.txt" | at 23:15` (without the backticks!)

            You might have to install `at` first (with `apt install at` if you're on Ubuntu) and change the timestamp to 00:15 if your server is running on French time

            Ratsnake GamesR This user is from outside of this forum
            Ratsnake GamesR This user is from outside of this forum
            Ratsnake Games
            wrote last edited by
            #10

            @juergen_hubert Output should look like this:

            Link Preview Image
            Jürgen HubertJ 1 Reply Last reply
            0
            • Ratsnake GamesR Ratsnake Games

              @juergen_hubert Output should look like this:

              Link Preview Image
              Jürgen HubertJ This user is from outside of this forum
              Jürgen HubertJ This user is from outside of this forum
              Jürgen Hubert
              wrote last edited by
              #11

              @ratsnakegames

              Thanks! I'll try this on the weekend.

              Ratsnake GamesR 1 Reply Last reply
              0
              • Jürgen HubertJ Jürgen Hubert

                @ratsnakegames

                Thanks! I'll try this on the weekend.

                Ratsnake GamesR This user is from outside of this forum
                Ratsnake GamesR This user is from outside of this forum
                Ratsnake Games
                wrote last edited by
                #12

                @juergen_hubert Remember to check your system time with `date` before, so your job doesn't end up an hour late or early.

                (France is in the same time zone as Germany! Since you mentioned your server was off by one hour, I assume it is running on UTC. Pretty common for Linux servers.)

                1 Reply Last reply
                0
                • Jürgen HubertJ Jürgen Hubert

                  @ruxbat

                  I did some scraper analysis last year, and while they are a persistent nuisance, their load tends to vary a lot. The consistency of the time period has led me to suspect that this is an inside problem.

                  Ratsnake GamesR This user is from outside of this forum
                  Ratsnake GamesR This user is from outside of this forum
                  Ratsnake Games
                  wrote last edited by
                  #13

                  @juergen_hubert Yeah, that sounds like a solid conclusion.

                  1 Reply Last reply
                  0
                  • Jürgen HubertJ Jürgen Hubert

                    @ratsnakegames

                    # num@period delay(unused) name script...
                    #
                    # uncomment to purge files older than 7days in TMP
                    #1@daily 0 purgetmp find /srv/data/tmp -type f -mtime +7 -delete > /dev/null

                    The cron logs are empty.

                    Ratsnake GamesR This user is from outside of this forum
                    Ratsnake GamesR This user is from outside of this forum
                    Ratsnake Games
                    wrote last edited by
                    #14

                    @juergen_hubert In addition, you should also check the crontab for the user that is running the webserver. E. g. `crontab -u apache -l`, assuming your webserver is running under the user `apache`.

                    1 Reply Last reply
                    0
                    • Jürgen HubertJ Jürgen Hubert

                      Still trying to figure out my website outages.

                      To recap: I have two #MediaWiki wikis and one #WordPress site. And there seems to be _some_ background process which starts soon after 23:00 UTC (or 24:00 in France, where the servers are located) which puts such a strain on the website that I get a lot of "504" errors for a few hours. The exact duration is variable - sometimes it lasts for one or two hours, and sometimes it lasts way into the morning. But I cannot identify what causes it from the Apache logs - there is no clear, consistent trigger to be found there.

                      Last time I asked customer support, they suggested that I check my plugins and background processes. But I don't know enough about website administration to know where to look.

                      For what it's worth, my WordPress website uses the following plugins (all updated to the latest versions):

                      ActivityPub
                      Contact Form 7
                      Include Mastodon Feed
                      JM Twitter Cards
                      Leaflet Map
                      MC4WP: Mailchimp for WordPress
                      TablePress
                      WP DSGVO Tools (GDPR)

                      The site is here:
                      https://sunkencastles.com/

                      The extensions on my wiki can be found here:
                      https://wiki.sunkencastles.com/wiki/Special:Version

                      Does _anyone_ have any idea what kinds of background processes on MediaWiki or WordPress might cause this kind of outage, and how I could check it?

                      #FediHelp

                      Derk-Jan 💙💛🇺🇦T This user is from outside of this forum
                      Derk-Jan 💙💛🇺🇦T This user is from outside of this forum
                      Derk-Jan 💙💛🇺🇦
                      wrote last edited by
                      #15

                      @juergen_hubert 504 means that the server in front of mediawiki (the http gateway that handles https encryption for instance) cannot reach mediawiki.
                      Is this shared infra, or isolated ?

                      Jürgen HubertJ 1 Reply Last reply
                      0
                      • Derk-Jan 💙💛🇺🇦T Derk-Jan 💙💛🇺🇦

                        @juergen_hubert 504 means that the server in front of mediawiki (the http gateway that handles https encryption for instance) cannot reach mediawiki.
                        Is this shared infra, or isolated ?

                        Jürgen HubertJ This user is from outside of this forum
                        Jürgen HubertJ This user is from outside of this forum
                        Jürgen Hubert
                        wrote last edited by
                        #16

                        @TheDJ

                        I am paying gandi.net for hosting VMs.

                        1 Reply Last reply
                        0
                        • Ratsnake GamesR Ratsnake Games

                          @juergen_hubert `echo "top -b -n 5 > processes.txt" | at 23:15` (without the backticks!)

                          You might have to install `at` first (with `apt install at` if you're on Ubuntu) and change the timestamp to 00:15 if your server is running on French time

                          Jürgen HubertJ This user is from outside of this forum
                          Jürgen HubertJ This user is from outside of this forum
                          Jürgen Hubert
                          wrote last edited by
                          #17

                          @ratsnakegames

                          Unfortunately, it seems I don't have the permissions to install at.

                          Maybe I'll bother customer service again.

                          Ratsnake GamesR 1 Reply Last reply
                          0
                          • Jürgen HubertJ Jürgen Hubert

                            @ratsnakegames

                            Unfortunately, it seems I don't have the permissions to install at.

                            Maybe I'll bother customer service again.

                            Ratsnake GamesR This user is from outside of this forum
                            Ratsnake GamesR This user is from outside of this forum
                            Ratsnake Games
                            wrote last edited by
                            #18

                            @juergen_hubert You don't have root access? Does `sudo apt install at` work?

                            Jürgen HubertJ 1 Reply Last reply
                            0
                            • Ratsnake GamesR Ratsnake Games

                              @juergen_hubert You don't have root access? Does `sudo apt install at` work?

                              Jürgen HubertJ This user is from outside of this forum
                              Jürgen HubertJ This user is from outside of this forum
                              Jürgen Hubert
                              wrote last edited by
                              #19

                              @ratsnakegames

                              Nope, this seems to be restricted by the hosting provider.

                              1 Reply Last reply
                              0

                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              Powered by NodeBB Contributors
                              • First post
                                Last post