IIS Application Pool Resurrection Script

by Peter Tyrrell Monday, May 25, 2015 10:45 AM

Overview

Default IIS application pool settings allow for no more than 5 uncaught exceptions within 5 minutes, and when this magic number is reached, the application pool shuts itself down. Uncaught exceptions are somewhat rare for us in the web applications we write because we have frameworks that catch and log errors. Some of our older web applications suffer from uncaught exceptions however, and so does Inmagic Webpublisher on servers where we host clients that use that software.

It used to be that text alerts would wake us up in the middle of the night screaming that sites dependent on Webpublisher were down, and we would remote in to the server to restart the relevant application pool. Well, that was pretty much untenable, so I wrote a script to restart the application pool automatically that would trigger when the application pool's shutdown was recorded in the Windows Application Event Log. A caveat here is that application pools usually shut themselves down for good reason - you shouldn't apply this script as a bandaid if you can fix the underlying causes.

Prerequisites

  • PowerShell v2 (get current version with $PSVersionTable.PSVersion).
  • PowerShell execution policy must allow the script to run (i.e. Set-ExecutionPolicy RemoteSigned or Set-ExecutionPolicy Unsigned).

Install the Script

  1. Register a new Windows Application Event Log Source called 'AppPool Resurrector'. Do it manually or use my PowerShell script.
  2. Put the AppPoolResurrector.ps1 script somewhere on the server, and take note of the name of the application pool you want to monitor.
  3. Create a new task in Windows Task Scheduler once per application pool you want to monitor
    1. Trigger is 'On an Event' Event ID: 1000, Source: Application Error, Log: Application
    2. Action is 'Start a program', Program/script: PowerShell, Add arguments: -command &" 'c:\path\to\apppoolresurrector.ps1' 'name-of-app-pool' "

Note the script activates to check whether the named application pool is still running, and then proceeds to restart it if necessary. There will be times it is activated by a log event to find that the application pool is fine, probably because the log event was unrelated to the application pool in the first place.

Script Content

ARLIS Upgrades "The Pipe Files" VuFind Catalogue

by Jonathan Jacobsen Saturday, May 09, 2015 9:00 AM

The Alaska Resources Library and Information Services (ARLIS) has upgraded "The PipeFiles", its VuFind-powered catalogue of reports, maps, analysis and other materials related to Alaska North Slope natural gas pipeline projects to a newer version of VuFind. 

The new catalogue is available at http://www.arlisresources.org/thepipefiles/

Previously, the catalogue was powered by the 1.x legacy VuFind line. Upgrading to the more modern 2.x takes advantage of the many features, fixes and support provided by the open-source VuFind development community.

Key features of both the original and new versions of The Pipe Files VuFind system include:

  • Nightly import of MARC records exported from the main University of Alaksa ILS.
  • Indexing of full text of all linked PDF reports, to increase search options and relevancy-ranked search results.
  • Automatic generation of cover images of the PDFs. Covers are displayed in search results in various sizes and add visual interest to the bibliographic citations.
  • Custom full record display – tabs removed and all fields arranged in a single, traditional arrangement.

The new web interface uses a VuFind theme built from the ever-popular Twitter Bootstrap responsive web framework. Almost all of Andornot's web projects use this or a similar responsive framework to provide the same level of access on devices of all sizes and shapes, from full-size desktop browsers down to tablets and phones.

Learn more about VuFind and Andornot's other VuFind projects here: http://www.andornot.com/products/search-and-discovery-tools/vufind.aspx

Contact us to discuss options for a discovery interface style of search for your catalogue or other collection, using VuFind or the Andornot Discovery Interface.

Andornot Newsletter for May 2015 Now Available

by Jonathan Jacobsen Thursday, May 07, 2015 4:45 PM

Our May 2015 newsletter has been emailed to subscribers and is available to read here:
May 2015 Newsletter

In this issue:

  • Inmagic News: DB/TextWorks and WebPublisher PRO 15 Released
  • Andornot Projects for the Burnaby Art Gallery and Northern Health Authority
  • Canada 150 Grants Available
  • Meet with Andornot at Upcoming Conferences and Events
  • Tips and Tricks: What Version of DB/TextWorks Do You Have?
  • Tweets: Round-up of Library, Archive and Museum News

Contact us to subscribe to the emailed version.

Tags: newsletters

Inmagic releases version 15 of DB/TextWorks, WebPublisher PRO and DB/Text for SQL

by Jonathan Jacobsen Saturday, May 02, 2015 10:42 AM

Inmagic has released version 15 of DB/TextWorks, WebPublisher PRO and DB/Text for SQL

Highlights of this release include:

DB/TextWorks

  • New Field Type: Rich Text. The Rich Text field type permits you to change fonts (font name, size, color, bolding, italics, etc.) within a single field, align text, create bulleted lists, and so on. 
  • New Field Type: Call Number. When records are sorted by a field using the Call Number field type, Call Numbers are sorted the correct order.
  • Email Enhancements: Email dialogue more closely resembles sending mail from an email client, and includes fields for additional message text and a signature.
  • Limits on the number of fields, characters in field names, linked textbases, forms, query screens, and many other features have all been increased.
  • Substitution Lists: Additional Field Types now support Substitution Lists: Call Number, Code, Image, Link, and Number.
  • Import Document. Improved IFilter text extraction for PDF files, especially those with text in the margin. Also, line breaks are added after each period-space (". ") to improve readability.
  • HTML, XML and Text Encoding enhancements for increased compatibility.
  • As well as features for publishing to the web, assorted small fixes, and a few older, less-used features removed.

More information is available in the DB/TextWorks Version 15 Read Me.

WebPublisher PRO

  • Issues addressed with the InmagicBrowse app, and new features added for publishing to the web from DB/TextWorks.

More information is available in the WebPublisher PRO Version 15 Read Me, as well as the DB/TextWorks Version 15 Read Me and the DB/Text for SQL Version 15 Read Me.

DB/Text for SQL

  • In addition to the features added to DB/TextWorks and WebPublisher (see above), DB/Text for SQL is now supported on SQL Server 2014.

More information is available in the DB/Text for SQL Version 15 Read Me.

 

All clients with a current Inmagic maintenance subscription will be receiving emails from Inmagic with download instructions for this release.

This release also includes a new version of the PowerPack (Importer, Checker and Updater apps), popular for automating data import and full-text extraction and indexing, as well as the search-only DB/SearchWorks version of the software.

A new version of the ODBC driver is expected within the next couple of weeks.

 

Important Notice

Upgrading the Inmagic software to version 15 requires a change to textbase structures. Once made, only version 15 of DB/TextWorks and WebPublisher PRO will be able to access the databases. Therefore, plan to upgrade all servers, workstations and databases at once.

Clients using the ODBC driver should not upgrade to version 15 of DB/TextWorks, nor upgrade their textbases, until version 15 of the ODBC driver is released.

 

Please consult the system requirements and supported OSs and web browsers for DB/TextWorks, DB/Text for SQL and WebPublisher PRO,  available on the Inmagic Extranet.

 

If you have a current Inmagic maintenance subscription but have not received a notification email in the next week or so, please email advantage@inmagic.com with your serial number and email address so it can be resent. Please also remember to let us know if your contact information has changed so we can update our records and pass this on to Inmagic.

As always, contact us with questions, for assistance with this upgrade, or to renew an expired Inmagic maintenance subscription.

Month List