DNN Community Blog

Do you have useful information that you would like to share with the DNN Community in a featured article or blog? If so, please contact community@dnnsoftware.com.

 


The new Installer Log in DotNetNuke 7.0

DotNetNuke already contains a lot of useful logging information that can help with problems on your site – these are all covered on the debugging category on the Wiki, but the two most common ones are the event viewer and log4net . However both of them have some draw-backs.

Whilst the event viewer log’s both exceptions and events, allowing site administrators to see changes on the site, it primary use case is for successfully installed websites and it isn’t as useful for sites failing to install or upgrade (though users can view the EventLog table in the upgrade scenario to see if it helps provide useful information)

Log4Net is much better placed to deal with install/upgrade issues, but it’s default setting is “Error” so whilst that will catch any failing issues during an install/upgrade errors, its only logging failures and not success. Whilst this can be changed to “All”, it’s rare a user will think of doing this before an install so by the time you change it you’ll likely lost the useful information. In addition, “All” is very verbose as it logs a huge amount of information.

To address these concerns and help user diagnose errors that occur during installation, upgrade and extension installation (and any changes made in configuration files via the XMLMerge functionality), we’ve added a new “Installer” log in DotNetNuke 7.0. This log is enabled by default, and cannot be disabled. In addition, it logs both successful and unsuccessful operations (i.e. information and errors), as well as (where sensible) logging the beginning and ending of operations.

As this logging happens in much more focused areas, we’ve also added additional granular logging. For instance during initial installation we test permissions by creating a test file and folder – previously if this failed we could only alert you to the permissions being wrong, but now the logging is at a more granular level, so you could see the exact step that failed. In this example rather than confirming whether or not file permissions as a whole are correct, users can now see the 4 individual checks – this would help with issues where for instance read/write permissions were set, but modify was not.

11/8/2012 2:43:20 PM [INFO] DotNetNuke.Services.Upgrade.Internals.Steps.BaseInstallationStep Folder Creation Check
11/8/2012 2:43:20 PM [INFO] DotNetNuke.Services.Upgrade.Internals.Steps.BaseInstallationStep File Creation Check
11/8/2012 2:43:20 PM [INFO] DotNetNuke.Services.Upgrade.Internals.Steps.BaseInstallationStep File Deletion Check
11/8/2012 2:43:20 PM [INFO] DotNetNuke.Services.Upgrade.Internals.Steps.BaseInstallationStep Folder Deletion Check

The “Installer” log files can be found in the usual location of portals/_default/logs , and will have a name similar to InstallerLog2012118.resources (the .resources extension is used to ensure no-one can download your log files even if they work out the URL). In addition, users can log in as host (superuser) and go to host->host settings, click the “Logs” tab and view the contents of these (and other) logs

logging 

 

This has been a popular request on the Community Exchange , and we hope that you will find it useful.

Comments

Comment Form

Only registered users may post comments.

NewsArchives


September 2014 (12)
August 2014 (25)
July 2014 (17)
June 2014 (10)
May 2014 (6)
April 2014 (9)
March 2014 (3)
February 2014 (4)
January 2014 (8)
December 2013 (5)
November 2013 (2)
October 2013 (9)
September 2013 (10)
August 2013 (8)
July 2013 (4)
June 2013 (8)
May 2013 (13)
April 2013 (2)
March 2013 (7)
February 2013 (7)
January 2013 (10)
December 2012 (6)
November 2012 (20)
October 2012 (12)
September 2012 (27)
August 2012 (29)
July 2012 (22)
June 2012 (17)
May 2012 (23)
April 2012 (24)
March 2012 (27)
February 2012 (21)
January 2012 (12)
December 2011 (18)
November 2011 (20)
October 2011 (27)
September 2011 (17)
August 2011 (18)
July 2011 (45)
June 2011 (22)
May 2011 (23)
April 2011 (19)
March 2011 (36)
February 2011 (19)
January 2011 (22)
December 2010 (29)
November 2010 (37)
October 2010 (32)
September 2010 (43)
August 2010 (46)
July 2010 (37)
June 2010 (46)
May 2010 (29)
April 2010 (38)
March 2010 (27)
February 2010 (33)
January 2010 (34)
December 2009 (13)
November 2009 (20)
October 2009 (29)
September 2009 (18)
August 2009 (29)
July 2009 (19)
June 2009 (18)
May 2009 (23)
April 2009 (16)
March 2009 (13)
February 2009 (20)
January 2009 (25)
December 2008 (25)
November 2008 (29)
October 2008 (34)
September 2008 (33)
August 2008 (36)
July 2008 (31)
June 2008 (25)
May 2008 (26)
April 2008 (33)
March 2008 (31)
February 2008 (24)
January 2008 (18)
December 2007 (27)
November 2007 (51)
October 2007 (24)
September 2007 (32)
August 2007 (24)
July 2007 (20)
June 2007 (28)
May 2007 (27)
April 2007 (24)
March 2007 (47)
February 2007 (21)
January 2007 (41)
December 2006 (21)
November 2006 (16)
October 2006 (24)
September 2006 (36)
August 2006 (30)
July 2006 (31)
June 2006 (37)
May 2006 (13)
April 2006 (13)
March 2006 (18)
February 2006 (20)
January 2006 (13)
December 2005 (6)
November 2005 (15)
October 2005 (15)
September 2005 (16)
August 2005 (7)
April 2005 (1)
March 2004 (4)
February 2004 (6)
January 2004 (1)
November 2003 (4)
October 2003 (22)
September 2003 (22)
August 2003 (15)
July 2003 (14)

Copyright 2014 by DNN Corp | Terms of Use | Privacy | Design by Parker Moore Design