<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #890: Site offline.</title>
    <link>http://localhost:8080/trac/ticket/890</link>
    <description>&lt;p&gt;
It's serving a page, so may be Drupal level problem rather than server level?
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="https://www.transitionnetwork.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.transitionnetwork.org/&lt;/a&gt;
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/890</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>paul</dc:creator>

      <pubDate>Sat, 12 Dec 2015 11:20:05 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/890#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:1</guid>
      <description>
        &lt;pre class="wiki"&gt;Investigating ..
On Sat, Dec 12, 2015 at 10:54 AM, Transition Technology Trac &amp;lt;
trac@tech.transitionnetwork.org&amp;gt; wrote:
&amp;gt; #890: Site offline.
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;                  Reporter:  sam      |                Owner:  ade
&amp;gt;                      Type:  defect   |               Status:  new
&amp;gt;                  Priority:  major    |            Milestone:  Maintenance
&amp;gt;                 Component:           |             Keywords:
&amp;gt;   Unassigned                         |  Add Hours to Ticket:  0
&amp;gt; Estimated Number of Hours:  0        |          Total Hours:  0
&amp;gt;                 Billable?:  1        |
&amp;gt; -------------------------------------+-------------------------------------
&amp;gt;  It's serving a page, so may be Drupal level problem rather than server
&amp;gt;  level?
&amp;gt;
&amp;gt;  https://www.transitionnetwork.org/
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://tech.transitionnetwork.org/trac/ticket/890&amp;gt;
&amp;gt; Transition Technology &amp;lt;https://tech.transitionnetwork.org/trac&amp;gt;
&amp;gt; Support and issues tracking for the Transition Network Web Project.
&amp;gt;
--
Paul Booker
Drupal Support for Websites and Linux Servers
Website: http://www.paulbooker.co.uk
Tel: +44 01922 861636
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>paul</dc:creator>

      <pubDate>Sat, 12 Dec 2015 11:25:03 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Too many connections'
[info]
&lt;/p&gt;
&lt;p&gt;
I this this will be something best left to Chris.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 12 Dec 2015 12:22:11 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I don't know exactly what the problem was with MySQL, but I had to force stop it before restarting it:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/etc/init.d/mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Too many connections'
[info] .
/etc/init.d/mysql stop
[FAIL] Stopping MariaDB database server: mysqld failed!
/etc/init.d/mysql stop
[FAIL] Stopping MariaDB database server: mysqld failed!
ps -lA | grep mysql
4 S   105   539 32182  3  80   0 - 916634 -     ?        01:19:47 mysqld
0 S     0 21863 21862  0  80   0 - 10334 -      ?        00:00:00 mysqldump
0 S     0 32182     1  0  80   0 -  2712 -      ?        00:00:00 mysqld_safe
killall -9 mysqld
/etc/init.d/mysql start
[ ok ] Starting MariaDB database server: mysqld . . . ..
[info] Checking for corrupt, not cleanly closed and upgrade needing tables..
&lt;/pre&gt;&lt;p&gt;
MySQL was updated a couple of days ago, perhaps it is related to this, &lt;a class="new ticket" href="http://localhost:8080/trac/ticket/692#comment:228" title="maintenance: Debian Updates (new)"&gt;ticket:692#comment:228&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The site is back up now, I'll look at the logs later to see if I can find a cause.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 12 Dec 2015 15:46:56 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:4</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.5&lt;/em&gt; to &lt;em&gt;1.0&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
There is nothing in &lt;tt&gt;/var/log/syslog&lt;/tt&gt; or &lt;tt&gt;/var/log/messages&lt;/tt&gt;, in &lt;tt&gt;/var/log/daemon.log&lt;/tt&gt; there is this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Dec 11 13:09:15 puffin mysqld: 151211 13:09:15 [Warning] Aborted connection 180657 to db: 'transitionnetw_0' user: 'transitionnetw_0' host: 'localhost' (Unknown error)
Dec 12 01:08:17 puffin mysqld: 151212  1:08:17 [Warning] Aborted connection 297180 to db: 'transitionnetw_0' user: 'transitionnetw_0' host: 'localhost' (Unknown error)
&lt;/pre&gt;&lt;p&gt;
But these errors are not new, there are lots of them from previous days. There is nothing in &lt;tt&gt;auth.log&lt;/tt&gt; or any of the MySQL logs -- I'm afraid I have no idea why MySQL stopped and why it couldn't be restarted with force.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>paul</dc:creator>

      <pubDate>Mon, 14 Dec 2015 16:35:59 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:5</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.0&lt;/em&gt; to &lt;em&gt;1.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Nothing further to add really.
&lt;/p&gt;
&lt;p&gt;
The initial problem was that the mysql server was no longer accepting connections; that could be connected with the recent memory problems .
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 23 Dec 2015 11:44:56 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:6</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.25&lt;/em&gt; to &lt;em&gt;1.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Same thing has happened, very high loads and:
&lt;/p&gt;
&lt;pre class="wiki"&gt; /etc/init.d/mysql status
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Too many connections'
[info] .
&lt;/pre&gt;&lt;p&gt;
So:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/etc/init.d/mysql stop
[FAIL] Stopping MariaDB database server: mysqld failed!
killall -9 mysqld
/etc/init.d/mysql stop
[ ok ] Stopping MariaDB database server: mysqld.
/etc/init.d/mysql start
[ ok ] Starting MariaDB database server: mysqld already running.
&lt;/pre&gt;&lt;p&gt;
Looking at the &lt;a class="ext-link" href="https://penguin.transitionnetwork.org/munin/transitionnetwork.org/puffin.transitionnetwork.org/index.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;munin graphs&lt;/a&gt; MySQL died at about 1am.
&lt;/p&gt;
&lt;p&gt;
The load has gone up to over 60 again:
&lt;/p&gt;
&lt;pre class="wiki"&gt;top - 11:42:50 up 16 days, 19:42,  4 users,  load average: 62.87, 39.18, 32.36
Tasks: 367 total,  75 running, 292 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.6 us, 11.7 sy,  0.4 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.3 si, 87.0 st
KiB Mem:   9420636 total,  7673756 used,  1746880 free,   507672 buffers
KiB Swap:        0 total,        0 used,        0 free,  5222208 cached
  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
30793 tn.web    30  10 1261m  80m  45m R    98  0.9   0:44.09 php-fpm
 3735 aegir     20   0  174m  33m 8348 R    98  0.4   0:19.10 php
 4925 root      20   0 18208  892  732 R    69  0.0   0:02.26 id
 4906 root      20   0     0    0    0 R    68  0.0   0:04.54 mysqladmin
 4535 aegir     20   0  212m  21m 8860 R    66  0.2   0:10.63 php
 4917 root      20   0 16988 1256  976 R    64  0.0   0:02.34 ps
 3849 www-data  20   0     0    0    0 R    60  0.0   0:02.80 nginx
 4150 www-data  20   0 79476  15m 1164 R    53  0.2   0:02.02 nginx
 4922 root      20   0 12628 1100  888 R    49  0.0   0:01.61 ps
 4918 root      20   0  8348  964  780 R    43  0.0   0:01.60 ps
 4923 root      20   0 66932  22m  656 R    37  0.2   0:01.23 lfd - child clo
 4808 aegir     20   0  203m  16m 8384 R    37  0.2   0:13.78 php
 4926 root      20   0  5552  588  500 S    32  0.0   0:01.05 sleep
 4920 root      20   0  5552  588  500 S    29  0.0   0:00.97 sleep
 4907 aegir     20   0     0    0    0 R    26  0.0   0:01.13 sh
10350 root      20   0 66932  23m 2032 R    25  0.3  13:48.00 lfd - processin
 4896 root      20   0     0    0    0 R    21  0.0   0:02.07 awk
 4197 www-data  20   0 79476  16m 2012 S    19  0.2   0:03.16 nginx
 3923 tn.web    30  10 1234m  15m 6984 R    19  0.2   0:08.18 php-fpm
 3176 tn.web    30  10 1235m  26m  16m R    17  0.3   0:17.40 php-fpm
 3573 tn.web    30  10 1235m  23m  13m R    15  0.3   0:08.92 php-fpm
 3627 tn.web    30  10 1235m  17m 7264 R    13  0.2   0:09.64 php-fpm
 3207 tn.web    30  10 1235m  26m  16m R    12  0.3   0:13.99 php-fpm
 3122 tn.web    30  10 1234m  21m  10m R    11  0.2   0:26.89 php-fpm
 3519 tn.web    30  10 1235m  26m  16m R    11  0.3   0:09.64 php-fpm
 4921 root      20   0 11456 1392  432 S    10  0.0   0:00.34 bash
 3159 tn.web    30  10 1235m  26m  16m R    10  0.3   0:18.61 php-fpm
 4126 www-data  20   0 79476  15m 1164 S    10  0.2   0:00.56 nginx
 3569 tn.web    30  10 1235m  27m  16m R     9  0.3   0:05.88 php-fpm
 1980 root      20   0  6656  628  504 S     9  0.0 168:48.62 vnstatd
 3496 tn.web    30  10 1235m  16m 6276 R     9  0.2   0:06.09 php-fpm
 4911 root      20   0 16940 1376  976 D     9  0.0   0:01.96 ps
 3128 tn.web    30  10 1233m  14m 6484 R     8  0.2   0:22.64 php-fpm
 3604 tn.web    30  10 1235m  17m 6984 R     8  0.2   0:06.36 php-fpm
 3636 tn.web    30  10 1234m  15m 6432 R     8  0.2   0:09.42 php-fpm
 3162 tn.web    30  10 1235m  23m  12m R     8  0.3   0:18.04 php-fpm
 3187 tn.web    30  10 1234m  19m 9988 R     8  0.2   0:18.06 php-fpm
 3098 tn.web    30  10 1244m  44m  25m R     8  0.5   0:38.66 php-fpm
 3156 tn.web    30  10 1239m  37m  23m R     7  0.4   0:18.25 php-fpm
 3467 tn.web    30  10 1234m  15m 6432 R     7  0.2   0:09.88 php-fpm
 3590 tn.web    30  10 1233m  14m 6484 R     7  0.2   0:08.35 php-fpm
 3142 tn.web    30  10 1235m  26m  16m R     7  0.3   0:52.05 php-fpm
 3174 tn.web    30  10 1244m  42m  23m R     7  0.5   0:17.13 php-fpm
&lt;/pre&gt;&lt;p&gt;
I'm going to reboot it with some more RAM for the day.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 23 Dec 2015 11:59:50 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:7</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.5&lt;/em&gt; to &lt;em&gt;1.65&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Things look fine now:
&lt;/p&gt;
&lt;pre class="wiki"&gt;top - 11:58:45 up 9 min,  1 user,  load average: 0.34, 0.72, 0.46
&lt;/pre&gt;&lt;p&gt;
I'll reboot it back to 9GB of RAM tonight.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 23 Dec 2015 12:13:48 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/890#comment:8</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.65&lt;/em&gt; to &lt;em&gt;1.8&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
&lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer"&gt;PuffinServer&lt;/a&gt; is not even able to return a value for &lt;tt&gt;uptime&lt;/tt&gt; again, it must have had another massive load spike and locked up, so I'm rebooting it again.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 23 Dec 2015 12:15:02 GMT</pubDate>
      <title></title>
      <link>http://localhost:8080/trac/ticket/890#comment:9</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/890#comment:9</guid>
      <description>
        &lt;p&gt;
Going to follow this up on the load spike ticket, &lt;a class="closed ticket" href="http://localhost:8080/trac/ticket/846" title="maintenance: Load Spikes on BOA PuffinServer (closed: fixed)"&gt;ticket:846&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>