Last bit of info . . . upgraded to weewx v3.8.0 and it made no difference.
It appears weewx is core dumping on exit (after issuing the "sudo
/etc/init.d/weewx stop" command), and that wee-import is doing the same
thing on its start-up. Problem is, they dump into a directory that's
deleted by the CentOS abrt-srvr before I can get at it.
There are ways to reconfigure CentOS to save this core dump, etc. However,
I want to be sure I don't have a misconfiguration somewhere in one of
weewx's config files before I start chasing after linux permissions or
whatever. This is the infuriating scenario where I (think) changed nothing
in months and then things went awry once I tried to use we-import. Has
anyone else used wee-import lately?
Bottom line is https://www.ve1dx.net/ seems to be running fine now with
repaired hardware and v3.8.0, but I can't import the missing 13 days of
data from WU using wee-import from either v3.7.1 or v3.8.0.
Andrew:
You email/post just came in. I agree it makes no sense! When either weewx
is shut down OR when wee_import is invoked, the following entry is put in
my system log:
Dec 14 13:25:44 norge abrt-server[17163]: Package 'weewx' isn't signed with
proper key
Dec 14 13:25:44 norge abrt-server[17163]: 'post-create' on
'/var/spool/abrt/Python-2017-12-14-13:25:44-17158' exited with 1
Dec 14 13:25:44 norge abrt-server[17163]: Deleting problem directory
'/var/spool/abrt/Python-2017-12-14-13:25:44-17158'
I's possible my linux system is misconfigured somehow and the improper key
message in the log is a red herring. This thing works now, other than I
can't run wee_import. It's only 13 days of data and if I never get
wee_import to work for this instance, it won't make much difference.
However, it may manifest itself more seriously in a different scenario if I
can't find and fix the root cause.
I just ran wee-debug and attached the output. If one of you weewx gurus
can assure me nothing there looks out of place, I'll start Googling keys
and permissions . . . I need to get a handle on what's up.
- Paul VE1DX
On Thursday, December 14, 2017 at 11:00:24 AM UTC-4, WindnFog wrote:
>
> When trying to import some missing data from WU, I get the following error:
>
> wee_import --config=/etc/weewx/weewx.conf
> --import-config=/var/tmp/wu.conf --from=2017/11/30T09:00
> --to=2017/12/13T15:30 --dry-run
>
> Dec 14 10:44:36 norge python[2407]: detected unhandled Python exception in
> '/bin/wee_import'
> Dec 14 10:44:36 norge abrt-server[2412]: Package 'weewx' isn't signed with
> proper key
> Dec 14 10:44:36 norge abrt-server[2412]: 'post-create' on
> '/var/spool/abrt/Python-2017-12-14-10:44:36-2407' exited with 1
> Dec 14 10:44:36 norge abrt-server[2412]: Deleting problem directory
> '/var/spool/abrt/Python-2017-12-14-10:44:36-2407'
>
> Any suggestions on what's causing the improper key message and how to fix
> it? Are their any other configuration files or logs I can provide to help
> diagnose this?
>
> I'm running weewx v3.7.1 at the moment. I'd prefer not to upgrade to 3.8
> just yet as I'm just recovering from a 13-day hardware failure of my ISS .
> . . I want to fix one thing at a time. If the "fix" for my import is to
> upgrade, I will . . . but would prefer to have everything ticking on v3.7.1
> with the new ISS instead of changing too many things at once.
>
> Thanks, Paul VE1DX
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
Using verbosity=1, displaying most info
wee_debug output will be sent to stdout(console)
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
System info
Platform:
Linux-3.10.0-693.11.1.el7.x86_64-x86_64-with-centos-7.4.1708-Core
Python Version: 2.7.5
Load Information
1 minute load average: 0.12
5 minute load average: 0.08
15 minute load average: 0.06
General Weewx info
Weewx version 3.8.0 detected.
Station info
Station type: Vantage
Driver: weewx.drivers.vantage
Driver info
[Vantage]
# This section is for the Davis Vantage series of weather stations.
# Connection type: serial or ethernet
# serial (the classic VantagePro)
# ethernet (the WeatherLinkIP)
type = serial
# If the connection type is serial, a port must be specified:
# Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0 is a common serial port name
# BSD:
# /dev/cuaU0 is a common serial port name
port = /dev/ttyUSB0
# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# Serial baud rate (usually 19200)
baudrate = 19200
# TCP port (when using the WeatherLinkIP)
tcp_port = 22222
# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 1
# The id of your ISS station (usually 1)
iss_id = 1
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 5
# How long to wait before trying again (in seconds)
wait_before_retry = 1.2
# How many times to try before giving up:
max_tries = 4
# The driver to use:
driver = weewx.drivers.vantage
Currently installed extensions
Extension Name Version Description
wcloud 0.10 Upload weather data to WeatherCloud.
weather365 1.1 Upload weather data weather365.net HiQ-Network
Archive info
Database name: weewx.sdb
Table name: archive
Unit system: 16 (METRIC)
First good timestamp: 2015-09-27 20:06:00 ADT (1443395160)
Last good timestamp: 2017-12-14 14:20:00 AST (1513275600)
Number of records: 235640
weewx (weewx.conf) is set to use an archive interval of 300 seconds.
The station hardware was not interrogated in determining archive interval.
Databases configured in weewx.conf
Database name: weewx.sdb
Database driver: weedb.sqlite
Database name: weewx
Database driver: weedb.mysql
Database host: localhost
Parsed and obfuscated weewx.conf
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer <[email protected]>
# See the file LICENSE.txt for your rights.
##############################################################################
# This section is for general configuration information.
# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0
# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /home/weewx
# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20
# Do not modify this. It is used when installing and updating weewx.
version = 3.8.0
##############################################################################
# This section is for information about the station.
[Station]
# Description of the station location
location = "Lake Echo, Nova Scotia"
# Latitude and longitude in decimal degrees
latitude = 44.73794
longitude = -63.37766
# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 29, meter # Choose 'foot' or 'meter' for unit
# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be used.
station_type = Vantage
# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1
# Start of week (0=Monday, 6=Sunday)
week_start = 6
# If you have a website, you may specify a URL
station_url = XXX obfuscated by wee_debug XXX
##############################################################################
[Simulator]
# This section is for the weewx weather station simulator
# The time (in seconds) between LOOP packets.
loop_interval = 2.5
# The simulator mode can be either 'simulator' or 'generator'.
# Real-time simulator. Sleep between each LOOP packet.
mode = simulator
# Generator. Emit LOOP packets as fast as possible (useful for testing).
#mode = generator
# The start time. If not specified, the default is to use the present time.
#start = 2011-01-01 00:00
# The driver to use:
driver = weewx.drivers.simulator
##############################################################################
[Vantage]
# This section is for the Davis Vantage series of weather stations.
# Connection type: serial or ethernet
# serial (the classic VantagePro)
# ethernet (the WeatherLinkIP)
type = serial
# If the connection type is serial, a port must be specified:
# Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0 is a common serial port name
# BSD:
# /dev/cuaU0 is a common serial port name
port = /dev/ttyUSB0
# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4
######################################################
# The rest of this section rarely needs any attention.
# You can safely leave it "as is."
######################################################
# Serial baud rate (usually 19200)
baudrate = 19200
# TCP port (when using the WeatherLinkIP)
tcp_port = 22222
# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 1
# The id of your ISS station (usually 1)
iss_id = 1
# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 5
# How long to wait before trying again (in seconds)
wait_before_retry = 1.2
# How many times to try before giving up:
max_tries = 4
# The driver to use:
driver = weewx.drivers.vantage
##############################################################################
# This section is for uploading data to Internet sites
[StdRESTful]
[[StationRegistry]]
# To register this weather station with weewx, set this to true
register_this_station = false
station_url = XXX obfuscated by wee_debug XXX
[[AWEKAS]]
# This section is for configuring posts to AWEKAS.
# If you wish to do this, set the option 'enable' to true,
# and specify a username and password.
enable = true
username = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
[[CWOP]]
# This section is for configuring posts to CWOP.
# If you wish to do this, set the option 'enable' to true,
# and specify the station ID (e.g., CW1234).
enable = true
station = XXX obfuscated by wee_debug XXX
passcode = 19683
post_interval = 300
log_success = True
log_failure = True
server_list = rotate.aprs.net:14580, rotate.aprs2.net:14580,
cwop.aprs.net:14580, cwop.aprs.net:23
# station = EW8606
# If this is an APRS (radio amateur) station, uncomment
# the following and replace with a passcode (e.g., 12345).
# passcode = -1
[[PWSweather]]
# This section is for configuring posts to PWSweather.com.
# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
enable = true
station = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
[[WOW]]
# This section is for configuring posts to WOW.
# If you wish to do this, set the option 'enable' to true,
# and specify a station and password.
enable = true
station = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
[[Wunderground]]
# This section is for configuring posts to the Weather Underground.
# If you wish to do this, set the option 'enable' to true,
# and specify a station (e.g., 'KORHOODR3') and password.
enable = true
station = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
# Set the following to True to have weewx use the WU "Rapidfire"
# protocol. Not all hardware can support it. See the User's Guide.
rapidfire = true
[[WeatherCloud]]
id = XXX obfuscated by wee_debug XXX
key = XXX obfuscated by wee_debug XXX
[[Weather365]]
stationid = XXX obfuscated by wee_debug XXX
password = XXX obfuscated by wee_debug XXX
##############################################################################
# This section specifies what reports, using which skins, to generate.
[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = public_html
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Each of the following subsections defines a report that will be run.
[[StandardReport]]
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
# The StandardReport uses the 'Standard' skin, which contains the
# images, templates and plots for the report.
skin = Standard
[[[Units]]]
[[[[Groups]]]]
group_altitude = meter
group_speed2 = km_per_hour2
group_pressure = mbar
group_rain = mm
group_rainrate = mm_per_hour
group_temperature = degree_C
group_degree_day = degree_C_day
group_speed = km_per_hour
[[FTP]]
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
skin = Ftp
# If you wish to use FTP, uncomment and fill out the next four lines.
#user = replace with the ftp username
#password = replace with the ftp password
#server = replace with the ftp server name, e.g, www.threefools.org
#path = replace with the ftp destination directory (e.g., /weather)
# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = False
# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = /var/www/html/weewx
# Most FTP servers use port 21
port = 21
# Set to 1 to use passive mode, zero for active mode
passive = 1
# Set to True for a secure FTP (SFTP) connection. Not all servers
# support this.
#secure_ftp = True
# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = /home/weewx/public_html
# Most FTP servers use port 21
#port = 21
# Set to 1 to use passive mode, zero for active mode
#passive = 1
# If you wish to use FTP, uncomment and fill out the next four lines.
#user = ve1dx
#password = tu73skee
#server = ve1dx.net
#path = public_html/
[[RSYNC]]
# rsync'ing to a webserver is treated as just another report
skin = Rsync
# Rsync can be configured to remove files from the remote server if
# they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
# make a mistake in the remote path, you could could unintentionally
# cause unrelated files to be deleted. Set to 1 to enable remote file
# deletion, zero to allow files to accumulate remotely.
delete = 0
# If you wish to use rsync, you must configure passwordless ssh using
# public/private key authentication from the user account that weewx
# runs as to the user account on the remote machine where the files
# will be copied.
#
# The following three lines determine where files will be sent.
server = ve1dx.net
path = public_html
user = XXX obfuscated by wee_debug XXX
##############################################################################
# This service acts as a filter, converting the unit system coming from
# the hardware to a unit system in the database.
[StdConvert]
# The target_unit affects only the unit system in the database. Once
# chosen it cannot be changed without converting the entire database.
# Modification of target_unit after starting weewx will result in
# corrupt data - the database will contain a mix of US and METRIC data.
#
# The value of target_unit does not affect the unit system for
# reporting - reports can display US, Metric, or any combination of units.
#
# In most cases, target_unit should be left as the default: US
#
# In particular, those migrating from a standard wview installation
# should use US since that is what the wview database contains.
# DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
target_unit = METRIC # Options are 'US', 'METRICWX', or 'METRIC'
##############################################################################
# This section can adjust data using calibration expressions.
[StdCalibrate]
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
foo = foo + 0.2
# outTemp = outTemp - 0.5
##############################################################################
# This section is for quality control checks. If units are not specified,
# values must be in the units defined in the StdConvert section.
[StdQC]
[[MinMax]]
barometer = 26, 32.5, inHg
outTemp = -40, 120, degree_F
inTemp = 10, 120, degree_F
outHumidity = 0, 100
inHumidity = 0, 100
windSpeed = 0, 120, mile_per_hour
pressure = 24, 34.5, inHg
##############################################################################
# This section controls the origin of derived values.
[StdWXCalculate]
[[Calculations]]
# Derived quantities are calculated by this service. Possible values
are:
# hardware - use the value provided by hardware
# software - use the value calculated by weewx
# prefer_hardware - use value provide by hardware if available,
# otherwise use value calculated by weewx
pressure = prefer_hardware
barometer = prefer_hardware
altimeter = prefer_hardware
windchill = software
heatindex = prefer_hardware
dewpoint = prefer_hardware
inDewpoint = prefer_hardware
rainRate = prefer_hardware
##############################################################################
# For hardware that supports it, this section controls how often the
# onboard clock gets updated.
[StdTimeSynch]
# How often to check the weather station clock for drift (in seconds)
clock_check = 14400
# How much it can drift before we will correct it (in seconds)
max_drift = 2
##############################################################################
# This section is for configuring the archive service.
[StdArchive]
# If the station hardware supports data logging then the archive interval
# will be downloaded from the station. Otherwise, specify it (in seconds).
archive_interval = 300
# How long to wait (in seconds) before processing new archive data. Must
# be greater than zero.
archive_delay = 15
# If possible, new archive records are downloaded from the station
# hardware. If the hardware does not support this, then new archive
# records will be generated in software.
# Set the following to "software" to force software record generation.
record_generation = hardware
# Whether to include LOOP data in hi/low statistics
loop_hilo = True
# The data binding used to save archive records
data_binding = wx_binding
##############################################################################
# This section binds a data store to a database.
[DataBindings]
[[wx_binding]]
# The database must match one of the sections in [Databases].
# This is likely to be the only option you would want to change.
database = archive_sqlite
# The name of the table within the database
table_name = archive
# The manager handles aggregation of data for historical summaries
manager = weewx.wxmanager.WXDaySummaryManager
# The schema defines the structure of the database.
# It is *only* used when the database is created.
schema = schemas.wview.schema
##############################################################################
# This section defines various databases.
[Databases]
# A SQLite database is simply a single file
[[archive_sqlite]]
database_type = SQLite
database_name = weewx.sdb
# MySQL
[[archive_mysql]]
database_type = MySQL
database_name = weewx
##############################################################################
# This section defines defaults for the different types of databases.
[DatabaseTypes]
# Defaults for SQLite databases
[[SQLite]]
driver = weedb.sqlite
# Directory in which the database files are located
SQLITE_ROOT = /home/weewx/archive
# Defaults for MySQL databases
[[MySQL]]
driver = weedb.mysql
# The host where the database is located
host = localhost
# The user name for logging in to the host
user = XXX obfuscated by wee_debug XXX
# The password for the user name
password = XXX obfuscated by wee_debug XXX
##############################################################################
# This section configures the internal weewx engine.
[Engine]
[[Services]]
# This section specifies the services that should be run. They are
# grouped by type, and the order of services within each group
# determines the order in which the services will be run.
prep_services = weewx.engine.StdTimeSynch
data_services = ,
process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate,
weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry,
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP,
weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.wcloud.WeatherCloud,
user.weather365.Weather365
report_services = weewx.engine.StdPrint, weewx.engine.StdReport
##############################################################################
[Alarm]
time_wait = 3600
count_threshold = 25
smtp_host = smtp.googlemail.com
mtp_user = [email protected]
smtp_password = !TX33hd.X
from = [email protected]
mailto = [email protected], [email protected]
subject = Time to change the weather sensor battery!
wee_debug report successfully generated