Category:Diagnostics: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
 
(19 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Introduction ==
== Introduction ==


Cumulus 1 creates diagnostic logs in its diags folder; '''diags''' is a subfolder of the folder where the Cumulus executable is stored.  It contains 10 files named cumulus.~og and cumulus.001 to cumulus.009.  These represent logs for previous 9 Cumulus restarts and the current log reporting what has happened since the last time Cumulus was started.
The debug logging feature is extremely useful in troubleshooting problems with Cumulus and/or connectivity to your weather station or FTP upload communications.
These files log many of the actions performed by Cumulus 1. They will show the [[:Category:Cumulus Files|Cumulus specific files]] that have been accessed, values found or calculated from log files, before and after values for updates to highs and lows for monthly and annual extreme records, rejected spikes, and much more.


=== Note re Cumulus MX ===
The file contains a wealth of data including the raw data received from your weather station, connectivity attempts, file uploads, etc.


Please see [[MXDiags|MX Diagnostics article]]
The file can grow very large very quickly so turn the Debug Log option off it not required. If the file grows too large it can cause Cumulus (up to version 3.8.1 - b3091) to crash.  (From Release 3.8.2 - b3092 adds MXdiags log rotation to avoid this).


== Solving Reported Errors ==
==Turning debugging log on/off==
The diagnostic files also log error messages, often with extra information compared to the error window (accessed by clicking ''error'' light/indicator), and may help you if you have a problem.


When you ask for support via the forum, you often need to upload (as a zip) one or all of the diagnostic files especially for problems that occur when you start or restart Cumulus. In Windows Explorer, open the Cumulus installation folder (default is C:\Cumulus). Right-click on the 'Diags' folder, and from the pop-up menu, select 'Send to -> Compressed (zipped) Folder' (available in most Windows versions). This will create a file called Diags.zip. Post your message in the forum, and attach the file using the 'Upload attachment' section below the area where you have typed your message (browse for the file, then click 'Add the file').
*By default, logging of debugging information is disabled.
*Restarting Cumulus (1, 2, or MX) will normally (you can manually change this) mean the debug log is off (because it is automatically turned off as Cumulus exits)
*Logging of debugging information can be enabled as Cumulus is started (see instructions below for your flavour) or at some point while it is running (except earliest builds)


== Debugging ==
{{Version badge 1}}Cumulus 1.x.y:  Depending on which version of Cumulus 1 you are using there is either one or two ways of turning logging of debugging data on and off:
* The only way to turn on the logging of debugging messages in all builds of Cumulus 1, is to stop Cumulus 1, edit the [[Cumulus.ini_(Cumulus_1)#Section:_Station|Cumulus.ini_(Cumulus_1) configuration file]], and add a line in the [Station] section: <tt>Logging = 1</tt>, then restart Cumulus 1.
* From build 1003 onwards, you can also turn it on/off using the '''Configuration''' menu (debug option is included in drop down of that menu).


See [[Debug.log]] as this is separate file stored in the top directory.
[[File:Badge vMx.png]]Cumulus MX: There are three ways to '''turn on the logging''' of debugging messages in all versions of Cumulus MX:
[[Category: Log_Files]]
# Close Cumulus MX, then edit [[Cumulus.ini_(Cumulus_1)#Read-Write_parameters_in_the_Station_section|Cumulus.ini_(Cumulus_1) configuration file]], and add a line in the [Station] section: <tt>Logging = 1</tt>, then restart Cumulus MX.
# When you start Cumulus MX, from Version 3.4.4 - Build 3068, you can use [[MX_on_Linux#-debug_parameter_for_adding_debugging]] as part of the command for starting
# Use the [[MX_Administrative_Interface#Changing_Settings|admin interface Settings menu]], selecting the appropriate web page depending on which version of MX you are using (see below). Here you can next ''tick'' the 'Debug Logging' menu option.  You can untick the option to disable the logging of debugging information. Whenever you make a change on this page, it does not take effect until you click '''Save'''.
#* [[MX_Administrative_Interface#Program_Settings|'''Program settings''']] web page for version 3.9.4 - build 3099 onwards
#* [[MX_Administrative_Interface#Station_Settings|'''Station settings''']] web page for releases 3.3.0 to 3.9.3
 
= Further details =
 
Separate articles exist for each flavour.
 
== Debugging in Cumulus MX ==
 
Please see [[MXdiags_folder|MX Diagnostics article]]
 
 
== Debugging in Cumulus 1 ==
 
Please see all these pages: [[Bugreport.txt]], [[Debug.log]], and [[Diags_folder]].
 
[[Category: Cumulus Files‏‎]]

Latest revision as of 14:08, 19 August 2021

Introduction

The debug logging feature is extremely useful in troubleshooting problems with Cumulus and/or connectivity to your weather station or FTP upload communications.

The file contains a wealth of data including the raw data received from your weather station, connectivity attempts, file uploads, etc.

The file can grow very large very quickly so turn the Debug Log option off it not required. If the file grows too large it can cause Cumulus (up to version 3.8.1 - b3091) to crash. (From Release 3.8.2 - b3092 adds MXdiags log rotation to avoid this).

Turning debugging log on/off

  • By default, logging of debugging information is disabled.
  • Restarting Cumulus (1, 2, or MX) will normally (you can manually change this) mean the debug log is off (because it is automatically turned off as Cumulus exits)
  • Logging of debugging information can be enabled as Cumulus is started (see instructions below for your flavour) or at some point while it is running (except earliest builds)

Cumulus Version 1 SpecificCumulus 1.x.y: Depending on which version of Cumulus 1 you are using there is either one or two ways of turning logging of debugging data on and off:

  • The only way to turn on the logging of debugging messages in all builds of Cumulus 1, is to stop Cumulus 1, edit the Cumulus.ini_(Cumulus_1) configuration file, and add a line in the [Station] section: Logging = 1, then restart Cumulus 1.
  • From build 1003 onwards, you can also turn it on/off using the Configuration menu (debug option is included in drop down of that menu).

Badge vMx.pngCumulus MX: There are three ways to turn on the logging of debugging messages in all versions of Cumulus MX:

  1. Close Cumulus MX, then edit Cumulus.ini_(Cumulus_1) configuration file, and add a line in the [Station] section: Logging = 1, then restart Cumulus MX.
  2. When you start Cumulus MX, from Version 3.4.4 - Build 3068, you can use MX_on_Linux#-debug_parameter_for_adding_debugging as part of the command for starting
  3. Use the admin interface Settings menu, selecting the appropriate web page depending on which version of MX you are using (see below). Here you can next tick the 'Debug Logging' menu option. You can untick the option to disable the logging of debugging information. Whenever you make a change on this page, it does not take effect until you click Save.

Further details

Separate articles exist for each flavour.

Debugging in Cumulus MX

Please see MX Diagnostics article


Debugging in Cumulus 1

Please see all these pages: Bugreport.txt, Debug.log, and Diags_folder.

Pages in category "Diagnostics"

The following 4 pages are in this category, out of 4 total.