Stories
Slash Boxes
Comments

SoylentNews is people

Meta
posted by martyb on Sunday February 14 2021, @04:47AM   Printer-friendly
from the Constants-aren't-and-variables-won't dept.

[2021-02-14 15:53:00 UTC: UPDATE added need to check apache log before doing a slash -restart]

We seem to have experienced some difficulties with the SoylentNews site.

I've noticed that both the number of hits and comments for each story do not seem to be updating.

Corrective measures taken:

  1. "Bounce" the Servers I doubted it would help, but it causes no harm to try it, so why not? And, as expected, it did not help, either.:
    This is my personal "bounce" script:
    cat ~/bin/bounce

    #!/bin/bash
    servers='hydrogen fluorine'
    for server in ${servers} ; do echo Accessing: ${server} &&  rsh ${server} /home/bob/bin/bounce ; done

    Which, in turn, runs the following script on each of the above servers:

    cat /home/bob/bin/bounce

    #!/bin/bash
    sudo /etc/init.d/varnish restart
    sudo -u slash /srv/soylentnews.org/apache/bin/apachectl -k restart

  2. Restart slash For those who are unaware, slash has its own internal implementation of what is, effectively, cron. It periodically fires off tasks that support the site's operations. But, this potentially has side-effects, so first need to check the apache error_log.

    # Go to the appropriate server:
    ssh fluorine
    # Ensure the apache log is not showing issues: tail -f /srv/soylentnews.org/apache/logs/error_log
    # Restart slash:
    sudo /etc/init.d/slash restart
    >> slashd slash has no PID file
    >> Sleeping 10 seconds in a probably futile attempt to be clean: ok.
    >> Starting slashd slash: ok PID = 3274

    NB: this failed to run to a successful conclusion when I originally tried it a few hour ago. I gave it one more try while writing this story... it seemed to run okay this time?!

Things appears to be running okay, now. Please reply in the comments if anything else is amiss. Alternatively, mention it in the #dev channel on IRC (Internet Relay Chat, or send an email to admin (at) soylentnews (dot) org.

We now return you to the ongoing discussion of: teco or ed?


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by DavePolaschek on Sunday February 14 2021, @12:23PM (5 children)

    by DavePolaschek (6129) on Sunday February 14 2021, @12:23PM (#1112744) Homepage Journal

    Evening MST yesterday, about half of the time I would try to load a page it would hand me an unstyled page, as if the CSS was failing to load (though I was on my iPad and didn’t really have a good way to debug). Don’t know if that helps at all or not, but it was a symptom...

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 3, Informative) by drussell on Sunday February 14 2021, @01:05PM (1 child)

    by drussell (2678) on Sunday February 14 2021, @01:05PM (#1112751) Journal

    Ah, so it was still doing that into the evening? I guess nobody had fixed it still by then. I first saw it acting up at 4:something PST.

    You posted while I was posting that post below this post. :)

    • (Score: 2) by DavePolaschek on Monday February 15 2021, @12:50PM

      by DavePolaschek (6129) on Monday February 15 2021, @12:50PM (#1113121) Homepage Journal

      Well, that was 5:something MST, which I’d call evening. But then back in the days when dining out was something people did, we frequently had dinner before the blue-hair crowd, so my clock may be skewed.

  • (Score: 3, Informative) by martyb on Sunday February 14 2021, @02:37PM (2 children)

    by martyb (76) Subscriber Badge on Sunday February 14 2021, @02:37PM (#1112771) Journal

    Yes, I'd seen a couple reports of "CSS failing to load" on IRC. Whenever I tried to reproduce it, all my attempts loaded successfully with no issues. I inquired of others there, and someone else confirmed things were loading okay for them, too. I'd seen that happen a few times before, so figured whatever went sideways had somehow righted itself and gotten back in line.

    That said, thanks for mentioning it here. I'm starting to see a pattern. Every CSS "burp" does not necessarily lead to non-updating counts, *but* it does seem that every incident of non-updating counts was preceded by CSS issues. Can't prove a negative, of course, but I'll add this idea to my bag-o-tricks. Thanks again for the report!

    --
    Wit is intellect, dancing.
    • (Score: 3, Informative) by The Mighty Buzzard on Sunday February 14 2021, @03:06PM (1 child)

      by The Mighty Buzzard (18) Subscriber Badge <themightybuzzard@proton.me> on Sunday February 14 2021, @03:06PM (#1112787) Homepage Journal

      I wouldn't necessarily connect those dots too quickly. For some reason dev has the slashd issues without ever having the CSS issues. It's not a mystery we couldn't look into and fix, it's just not a dire emergency if it's a thirty second fix less often than once a month.

      --
      My rights don't end where your fear begins.
      • (Score: 2) by martyb on Sunday February 14 2021, @04:13PM

        by martyb (76) Subscriber Badge on Sunday February 14 2021, @04:13PM (#1112810) Journal
        Good to know, tx!
        --
        Wit is intellect, dancing.