Critical error ...

160 views
Skip to first unread message

Yves Martin

unread,
Jul 10, 2023, 5:50:44 PM7/10/23
to weewx-user
Hi,

Since I've upgraded weewx from 3.9.2 to 4.10.2 I have a couple of error.

This one seems critical :

Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 40, in loader
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1989, in __init__
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 534, in __init__
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      self._setup()
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1394, in _setup
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      self.hardware_type = self._determine_hardware()
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1385, in _determine_hardware
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError("Unable to read hardware type")
Jul 10 17:46:34 meteo-raspi weewx[4390] CRITICAL weewx.engine:     ****  WeeWxIOError: Unable to read hardware type

Any suggestion?

Regards,
Yves

Tom Keffer

unread,
Jul 10, 2023, 9:19:34 PM7/10/23
to weewx...@googlegroups.com
Please set debug=1, then restart weewx. Post the log from startup through the exception.

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/fd6e8299-3b73-4cd8-92ac-22f9087228f5n%40googlegroups.com.

Yves Martin

unread,
Jul 11, 2023, 6:21:36 PM7/11/23
to weewx-user
I've reinstalled all ... still have critical issues

debug=1 is already set

Last error :

/etc/init.d/weewx start
/etc/init.d/weewx status

Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****      self.loadServices(config_dict)
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1335, in get_object
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****      mod = __import__(module)
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****  ModuleNotFoundError: No module named 'user.mqtt'
Jul 11 17:17:09 weewx4-raspi python3[375]: weewx[375] CRITICAL __main__:     ****  Exiting.

I have disabled MQTT in weewx.conf but I have till this error.

One week now I'm trying to reinstall weewx, I'm a bit desperated...

YM

Tom Keffer

unread,
Jul 11, 2023, 6:31:24 PM7/11/23
to weewx...@googlegroups.com
Note that with packaged installs, if you remove a package, it does not remove weewx.conf unless you "purge" it. 

sudo apt purge weewx

Take a look at the bottom of your weewx.conf under [Engine]. You have user.mqtt specified somewhere in there.



Yves Martin

unread,
Jul 11, 2023, 6:47:46 PM7/11/23
to weewx-user
OK, I purge all, delete old directories ... and keep my old weewx.conf file.

Now I have this error :

Configuration file '/etc/weewx/weewx.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** weewx.conf (Y/I/N/O/D/Z) [default=N] ?

Traceback (most recent call last):
  File "/usr/share/weewx/wee_config", line 128, in <module>
    main()
  File "/usr/share/weewx/wee_config", line 122, in main
    config_mgr.run(args, options)
  File "/usr/share/weewx/weecfg/config.py", line 125, in run
    weecfg.modify_config(config_dict, stn_info, self.logger, options.debug)
  File "/usr/share/weewx/weecfg/__init__.py", line 313, in modify_config
    config_dict['StdReport']['Defaults']['unit_system'] = stn_info['unit_system']
  File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)
KeyError: 'Defaults'
dpkg: error processing package weewx (--install):
 installed weewx package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u9+rpi1) ...
Errors were encountered while processing:
 weewx

(...)

YM
Message has been deleted

Yves Martin

unread,
Jul 11, 2023, 7:33:37 PM7/11/23
to weewx-user
OK, purge again ... but this time I did not install MQTT. It seems generated issues every time.

I've finally upgraded to a more recent version.

New:
---
Raspbian GNU/Linux 10 (buster)
Python 3.7.3

Old:
---
Raspberry pi Debian 7.11
Python 2.7.3

... It is now about the design and how the new Bootstrap works (seems complicated).

... and my sFTP transfert do not work.
This one is more important for now...

YM
Reply all
Reply to author
Forward
0 new messages