web analytics

An outage (in more ways than one)

Written By: - Date published: 1:50 pm, July 11th, 2021 - 22 comments
Categories: admin, The Standard - Tags:

First off – my apologies for letting the site drop out over the past days. We had several outages, computer and human.

Sometime on Wednesday (I think), the site started to die after a operating system update and during the same day (I think),  a automatic wordpress plugin update.

The system update was that (somehow) the database server got rolled back to an older version. This was the cause of the increasing levels of sluggishness in the site. The PHP was literally timing out on the database accesses because the some of the old default settings weren’t even close to optimal at even our base levels of traffic. Logged errors provided no easy diagnosis because it didn’t indicate what subsystem was causing the timeouts.

At roughly the same time an unwanted automatic update of WordPress plugins happened – something that was meant to have been a manual process that I pretest in a staging test site. This had the effect of effectively disabling what little access was there to the back end administration of WordPress by blowing up the javascript processing.

That was the computer outage.

Unfortunately I’d also had a bug from Monday onwards. Some kind of virus (probably) that pushed my lymph nodes into painful action, put me to sleep a lot, dropped my appetite to nil, and by Wednesday were making me vomit any solid food and in the last few days has eased off into diarrhea. It also pushed me into a bird brain lack of focus.

That was the human outage(s).

It wasn’t covid-19 as I have had my third (maybe fourth) unfortunate experience in getting tested – it never gets any better. I’ve lost 3kgs in a week, and I’m still on water, barley sugars, soup and soft scrambled eggs until I stop puking up solid food.

This week hasn’t been good times for me  exactly in a good condition to try to solve this. However I had a  crack at last night and found the data problem. This morning I managed to fix the other issues by detaching backend plugin to the point I could reactivate  the functionality.

Let me know if there are any obvious problems. But for now I’m going to sip soup and have a bit of a lie down…. I’d suggest avoiding this human bug. It rather takes the joy out of life.

lprent: Opps – that got published as my testing alter ego AncientGeek, who as a mere whatever privilege level he is on, could change the author of the post

22 comments on “An outage (in more ways than one) ”

  1. lprent 1

    If anyone is wondering (like I did) why the comments are bit sparse on the right hand side, it is because there is a 5 day cutout as well as a maximum number of comments.

    These were the comments that some detirmined people managed to push through despite the outrage.

    • weka 1.1

      Good to see the Replies list is still there (logged in).

      • lprent 1.1.1

        Replies just works off a number of replies that match the logged in or the current ’email’ secret in use on the cookies (the latter is there for those who aren’t logged in) – which are the ‘id’ of the user.

        The all comments gets expensive to pull up in database processing time. Limiting by time allowed the database to efficiently optimise the query. But comments change all of the time. So as an optimisation, as each comment is made it simply flags a change, that causes the page refresh of the author to trigger an update of the cached list from a database query. This means that everyone else who isn’t making comments doesn’t have to query for the list from the database.

        It is reasonably efficient and is one of the reason why leaving a comment takes longer than just switching a page. Everyone else just gets the most recent cached list of comments.

        I was willing to expend more database resources on replies because it only gets calculated when someone with an ‘id’ asks for a page and it isn’t cached. The first load, and whenever someone replies to them. When the person making the comment, the id of who they are replying to is looked up in the cache of replies. If it is there, then that cached list of replies to deleted. Causing the replies list for that id to be recalculated on their next page load.

        But being replied to is far rarer than having a comment made for everyone, so the server load isn’t irkcome.

        I tested those both logged off and logged on.

        Anyway nap time for the sysop.

  2. Ric 2

    testing to correct a comment
    adding to comment
    If this posts all working on windows with firefox
    Thanks for your work keeping the site running

    • lprent 2.1

      Yeah. I also changed the wysiwyg comment editor from CK editor to the more usual Javascript editor. It is the one we use in writing the posts.

    • lprent 2.2

      I have tested with Linux Chrome/ Firefox, current Android Chrome / Firefox and whatever Samsung browser is. Windows 10 Chrome / Edge.

      Haven’t looked at the Mac side yet. I will do that on the remote website testing tools or plead with my partner to touch her toys (and that will be a difficult bearing in mind the state of my health).

  3. lprent 3

    This editor seems to get around that issue of not being able to edit comments on Android inside the desktop (non mobile) theme.

  4. Stephen D 4

    Thanks LPrent for all you do.

  5. Cancel reply doesn’t work – latest opera version, and it also makes the ‘leave a comment’ disappear from the bottom of the page, which takes a page refresh to reappear.

    • AncientGeek 5.1

      Yep. Shows on Linux Chrome / Firefox as well. Probably everything.
      The javascript code appears to be doing a passive event handler that just ain’t working
      I’ll look at it when I wake up.

      Dang – AncientGeek – definitely a birdbrain today.

      • The Al1en 5.1.1

        Though bizarrely, if you right click on ‘cancel reply’ and open in a new tab, that tab will be as it should.

        • AncientGeek 5.1.1.1

          Yeah it breaks the javascript whilst setting up the action. The underlying link is still there.

          Can’t remember about Opera. But in Chrome (similar in Firefox) you can just right click the cancel, go Inspect and it will give you diag split screen defaulting to the object model at the object that will show the link at some expansion. If you go into the top menu item ‘console’ it will show you javascript errors after you open things up a bit. You can use the source link to see the problem code. Clicking Pretty Print will shift from minified code to something that is slightly more readable. That is the code that I have to track down and correct. If I had to guess, it is an old non-standard Internet Explorer action that hasn’t been isolated.

  6. McFlock 6

    That bug sounds pretty nasty. They sure hit you like a brick sometimes – a particularly disgusting brick.

  7. Anker 7

    What a week for you Iprent!

    so sorry you’ve been unwell. Take it easy and thanks for getting the site up and running again

  8. KJT 8

    Appreciate the work you put in.

    I’m sure everyone else that reads the standard does also.

  9. Anne 9

    Well lprent, there WAS a brief moment of excitement around 8pm last night. Muttonbird joined Adrian Thornton in the list of comments. Two of them instead of just one! Definitely a step in the right direction.laughing

  10. Jenny how to get there 10

    There is no doubt in my mind that you are running a valuable and important public service.
    I feel it would be churlish to simply go back into BAU commenting, and debating, and airing my views, that this site furnishes myself and others, without remarking on this remarkable act of public service that you provide.
    What more can I say, really.
    Other than saying, long may it last.

  11. Molly 11

    Appreciate your efforts in running and maintaining this site, and the stamina and doggedness in getting it back up when you were unwell.

    We could all have waited till you were back on form, but I was delighted to see The Standard back online again. Thanks.

  12. ianmac 12

    Missed the site. Hope your bug gives you a rest. Thanks so much for providing this site, even if the computer technology is way out of my understanding.

  13. Ad 13

    Very sorry to hear how poorly you have been Lyn. Still, 3 kgs is 3 kgs.

    Thanks again for your tireless work supporting this venue.

  14. left for dead 14

    I too wish you well and to your work keeping The Standard available.regards Alex

  15. Drowsy M. Kram 15

    Thanks for all your good works Lyn, really appreciated – be well soon.

Recent Comments

Recent Posts

  • NZ secures new Pfizer COVID-19 medicine
    New Zealand has secured supplies of another medicine to treat COVID-19, Health Minister Andrew Little announced today. “In October, New Zealand was one of the first countries in the world to make an advance purchase of a promising new antiviral drug, molnupiravir,” Andrew Little said. “Today I am pleased to ...
    BeehiveBy beehive.govt.nz
    9 hours ago
  • Strong Pipeline for Construction Sector
    Strong pipeline ahead for the construction sector Infrastructure activity forecast to reach $11.2 billion in 2026 Construction sector now the fourth biggest employer with more than 280 000 people working in the industry Residential construction the largest contributor to national construction activity. Minister for Building and Construction Poto Williams says ...
    BeehiveBy beehive.govt.nz
    11 hours ago
  • Regenerative agriculture research receives Government boost
    The Government continues to invest in farm sustainability, this time backing two new research projects to investigate the impacts of regenerative farming practices, Agriculture Minister Damien O’Connor announced today. Soil health and regenerative agriculture “We’re contributing $2.8 million to a $3.85 million five-year project with co-investment by Synlait Milk and ...
    BeehiveBy beehive.govt.nz
    2 days ago
  • David McLean appointed as KiwiRail chair
    David McLean has been appointed as Chair of KiwiRail Holdings Ltd, the Minister for State Owned Enterprises Dr David Clark and Minister of Finance Grant Robertson announced today. “Minister Clark and I are confident that David’s extensive business knowledge and leadership experience, including his time as former Chief Executive and ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • New Ambassador to Turkey announced
    Foreign Affairs Minister Nanaia Mahuta today announced the appointment of Zoe Coulson-Sinclair as New Zealand’s next Ambassador to Turkey. “Aotearoa New Zealand and Turkey’s relationship is one of mutual respect and underpinned by our shared Gallipoli experience,” Nanaia Mahuta said. “Turkey is also a generous ANZAC Day host and has ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Announcement of new Consul-General in Guangzhou
    Foreign Affairs Minister Nanaia Mahuta today announced the appointment of Rachel Crump as New Zealand’s next Consul-General in Guangzhou, China. “China is one of Aotearoa New Zealand’s most significant relationships – it is our largest trading partner, and an influential regional and global actor,” Nanaia Mahuta said. “As the capital of ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Government marks International Day of Persons with Disabilities
    The Government joins the disabled community of Aotearoa New Zealand in marking and celebrating the International Day of Persons with Disabilities, Minister for Disabilty Issues Carmel Sepuloni said. The theme for this year’s International Day of Persons with Disabilities is “Leadership and participation of persons with disabilities toward an inclusive, ...
    BeehiveBy beehive.govt.nz
    3 days ago
  • Deputy Inspector-General of Intelligence and Security, and Advisory panel member appointed
    Prime Minister Jacinda Ardern has announced the appointments of Graeme Speden as the Deputy Inspector-General of Intelligence and Security, and Ben Bateman as a member of the Inspector-General’s Advisory Panel.  “These are significant roles that assist the Inspector-General with independent oversight of New Zealand’s intelligence agencies,” Jacinda Ardern said. “While ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Five million COVID-19 tests processed
    Associate Minister of Health, Dr Ayesha Verrall has congratulated testing teams right around New Zealand for reaching the five million tests milestone. Today, an additional 31,780 tests were processed, taking the total since the beginning of the pandemic in 2020 to 5,005,959. “This really is an incredible and sustained team ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Funding for extra ICU capacity
    Care for the sickest New Zealanders is getting a major boost from the Government, with plans to spend hundreds of millions of dollars on expanding intensive care-type services, Health Minister Andrew Little announced today. “Through good planning, we have avoided what the COVID-19 pandemic has done in some countries, where ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • The legal and constitutional implications of New Zealand’s fight against COVID
    Speech to the New Zealand Centre for Public Law Tēnā koutou katoa Thank you for providing this opportunity to speak with you today as Attorney General. I’m here to talk about the constitutional consequences of Covid -19. I love the law. The way it exists with the consent of the ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • “THE LEGAL AND CONSTITUTIONAL IMPLICATIONS OF NEW ZEALAND’S FIGHT AGAINST COVID.”
    Speech to the New Zealand Centre for Public Law Tēnā koutou katoa Thank you for providing this opportunity to speak with you today as Attorney General. I’m here to talk about the constitutional consequences of Covid -19. I love the law. The way it exists with the consent of the ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Pharmac Review interim report released
    Health Minister Andrew Little has released an interim report by an independent panel reviewing the national pharmaceuticals-buying agency Pharmac. Pharmac was established in 1993 and is responsible for purchasing publicly funded medicines for New Zealanders, including those prescribed by GPs or administered in hospitals. The review, chaired by former Consumer ...
    BeehiveBy beehive.govt.nz
    4 days ago
  • Appointment to Network for Learning board
    Former MP Clare Curran has been appointed to the board of Crown company Network for Learning (N4L), Education Minister Chris Hipkins says. Hon Clare Curran served as a Member of Parliament for Dunedin South from 2008-2010. During this time, she held a number of ministerial portfolios including Broadcasting, Communications and ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Putting home ownership within reach of Pacific Aotearoa
    Pacific community groups and organisations will get tools to help them achieve home ownership with the implementation of the Ministry for Pacific Peoples (MPP) Pacific Housing Initiative, said Pacific Peoples Minister Aupito William Sio. In July 2021, MPP launched the Pacific Community Housing Provider Registration Support programme and the Pacific ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Coastal shipping will help keep New Zealand’s supply chain buoyant
    Transport Minister Michael Wood today welcomed the release of the Coastal Shipping Investment Approach State-of-Play report as an important step towards a more sustainable coastal shipping sector, which will further diversify New Zealand’s supply chain. “This Government is committed to strengthening our domestic supply chain by making coastal shipping a ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Response to Human Rights Commission's reports into violence towards disable people
    Tēnā koutou, tēnā koutou, tēnā tātou katoa.   Thank you for that introduction Hemi and thank you for inviting me to respond on behalf of Government to the release of these two important reports (Whakamanahia Te Tiriti, Whakahaumarutia te Tangata -Honour the Treaty, Protect the Person and Whakamahia te Tūkino kore ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Law change strengthens petroleum decommissioning regulation
    Petroleum permit and licence holders operating in New Zealand will now have an explicit statutory requirement to carry out and fund the decommissioning of oil and gas fields after a new law was given Royal assent today, says Energy and Resources Minister Dr Megan Woods. Once in effect The Crown ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • New Zealand Response to assist peace and stability in Solomon Islands
    The New Zealand government has announced that it will deploy Defence Force and Police personnel to Honiara to help restore peace and stability. “New Zealand is committed to its responsibilities and playing its part in upholding regional security,” Prime Minister Jacinda Ardern said.  “We are deeply concerned by the recent ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Continued growth in volume of new home consents
    In the year ended October 2021, 47,715 new homes were consented, up 26 per cent from the October 2020 year. In October 2021, 4,043 new dwellings were consented Canterbury’s new homes consented numbers rose 31% to higher than post-earthquake peak. New home consents continue to reach remarkable levels of growth, ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • Saddle up for summer with cycle trail funding
    New investment will keep the best of New Zealand’s cycle trails in top condition as regions prepare to welcome back Kiwi visitors over summer and international tourists from next year. “Cycle tourism is one of the most popular ways to see the country ‘off the beaten track’ but the trails ...
    BeehiveBy beehive.govt.nz
    5 days ago
  • New Zealand provides additional funding to COVAX for vaccine delivery
    Foreign Affairs Minister Nanaia Mahuta today announced additional funding will be provided to COVAX to support vaccine delivery in developing countries. “New Zealand remains cognisant of the dangers of COVID-19, especially as new variants continue to emerge. No one is safe from this virus until we all are and this ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • COVID-19 Community fund providing support for 160 organisations focused on women and girls
    Minister for Women Jan Tinetti today announced financial support will be allocated to the 160 successful applicants for the COVID-19 Community Fund, to support organisations helping women/wāhine and girls/kōtiro in Aotearoa New Zealand affected by the pandemic. “COVID-19 has had a disproportionate effect on women around the world including in ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Government delivers reactivation package as Aucklanders reconnect for summer
    A new support package will help revive economic, social and cultural activities in our largest city over summer, and ensure those in hardship also get relief. The Social Development and Employment Minister Carmel Sepuloni and the Economic and Regional Development Minister Stuart Nash have announced a Reactivating Tāmaki Makaurau Auckland ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Mobile services and broadband come to Chatham Islands for first time
    World class mobile and broadband services have been switched on for the 663 residents of the Chatham Islands, Minister for the Digital Economy and Communications, David Clark and Minister for Economic and Regional Development, Stuart Nash announced today. “This eagerly awaited network will provide fast broadband and mobile services to ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Crown accounts reflect strong economy amid pandemic
    The Government’s financial accounts continue to reflect an economy that has performed better than expected, despite the latest Delta COVID-19 outbreak. The Crown accounts for the four months to the end of October factors in the improved starting position for the new financial year. Core Crown tax revenue was $2.5 ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Applications open for new 2021 Resident Visa
    The first round of applications for New Zealand’s new 2021 Resident visa open today (6am). “This one-off pathway provides certainty for a great many migrant families who have faced disruption because of COVID-19 and it will help retain the skills New Zealand businesses need to support the economic recovery,” Minister ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • More Vietnam Veterans to receive compensation for Agent Orange Exposure
    Minister for Veterans, the Hon Meka Whaitiri announced today that two new conditions associated with Agent Orange exposure have been added to the Prescribed Conditions List. Under the 2006 Memorandum of Understanding signed between the Crown and representatives of Vietnam veterans and the Royal New Zealand RSA. Vietnam veterans in ...
    BeehiveBy beehive.govt.nz
    6 days ago
  • Government commits to international effort to ban and regulate killer robots
    Minister of Disarmament and Arms Control Phil Twyford announced today that New Zealand will push for new international law to ban and regulate autonomous weapons systems (AWS), which once activated can select and engage targets without further human intervention. “While the evidence suggests fully autonomous weapons systems are not yet ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • New freedom camping rules – right vehicle, right place
    Tougher freedom camping laws will be introduced to prevent abuse which has placed an unfair burden on small communities and damaged our reputation as a high quality visitor destination. Tourism Minister Stuart Nash has confirmed that new legislation will be introduced to Parliament following an extensive round of public consultation ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Government invests to support a classic Kiwi summer
    Vaccinated New Zealanders can look forward to Kiwi summer events with confidence, while artists and crew will have more certainty, following the launch of details of the Arts and Culture Event Support Scheme, Minister for Arts, Culture and Heritage Carmel Sepuloni announced today. “The Government recognises that the arts and ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Grace period for expired driver licences cruises into 2022
    Due to the ongoing Delta outbreak and extended lockdowns, all New Zealand driver licences and licence endorsements that expired on or after 21 July 2021 will now be valid until 31 May 2022, Transport Minister Michael Wood announced today. “This further extension to the validity of driver licenses recognises that ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Delivered: 1,000 extra transitional homes
    A further 1,000 transitional homes delivered  New housing development starts in Flaxmere, Hastings  The Government has delivered the next 1,000 transitional housing places it promised, as part of its work to reduce homelessness. Housing Minister Dr Megan Woods is marking the milestone in Hastings at a new development that includes ...
    BeehiveBy beehive.govt.nz
    7 days ago
  • Traffic light levels announced
    The levels at which different parts of New Zealand will move forward into the COVID-19 Protection Framework this Friday have been announced. Northland, Auckland, Taupō and Rotorua Lakes Districts, Kawerau, Whakatane, Ōpōtiki Districts, Gisborne District, Wairoa District, Rangitikei, Whanganui and Ruapehu Districts will move in at Red The rest of ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Financial support to move to traffic light system
    A new transition payment will be made available particularly for affected businesses in Auckland, Waikato and Northland to acknowledge the restrictions they have faced under the higher Alert Levels. Transition payment of up to $24,000 as businesses move into traffic light system Leave Support Scheme and Short Term Absence Payment ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • New Ambassador to Russia announced
    Foreign Affairs Minister Nanaia Mahuta today announced the appointment of Sarah Walsh as New Zealand’s next Ambassador to Russia. “Aotearoa New Zealand and Russia have a long-standing relationship, engaging on a range of regional and global interests including disarmament and Antarctica issues. We also work together as members of the East ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • New Permanent Representative to the UN announced
    Foreign Affairs Minister Nanaia Mahuta today announced the appointment of Carolyn Schwalger as Permanent Representative to the New Zealand Permanent Mission to the United Nations in New York. “Aotearoa New Zealand is a founding member of the UN and we have worked hard to ensure our stance on human rights, ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Further COVID-19 economic support for Cook Islands and Fiji announced
    Foreign Affairs Minister Nanaia Mahuta today announced a further package of support for the Cook Islands and Fiji for COVID-19 economic support and recovery. “Aotearoa New Zealand remains committed to supporting our Pacific fanau and vuvale to respond to the impacts of COVID-19 on their economies, and move towards long-term ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • New law will clear the air for tamariki in vehicles
    From today, it’s illegal to smoke or vape in most vehicles carrying children aged under 18 years old - whether the vehicle is moving or not. “Second-hand smoke poses an unacceptable risk to our tamariki and rangatahi,” Associate Minister of Health Dr Ayesha Verrall said. “We know children in vehicles ...
    BeehiveBy beehive.govt.nz
    1 week ago
  • Nine countries designated very high risk
    Nine southern African countries are being added to the very high risk countries list following public health advice around the newly discovered COVID-19 variant Omicron, COVID-19 Response Minister Chris Hipkins said. This afternoon, a public health risk assessment was carried out to assess the emerging evidence and any risk to ...
    BeehiveBy beehive.govt.nz
    1 week ago