Missing database on fresh install

81 views
Skip to first unread message

kon...@gmail.com

unread,
Mar 15, 2021, 6:41:52 PM3/15/21
to weewx-user
LIke a few others asking question about upgrading hardware, I'm working to migrate  my current hardware to Rpi and after installing the latest weewx, I'm not seeing any .sdb file in the /var/lib/weewx directory. 

This is a fresh install so I do not yet have my station connected.  I'm wondering if I need to connect my station so the install can complete the instantiation of the database?

I'm using a standard weewx.conf file.  Here is my latest syslog entry for user weewx.

Thanks in advance,
Tom K

Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Initializing weewx version 4.4.0
Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Using Python 3.8.6 (default, Jan 27 2021, 15:42:20) #012[GCC 10.2.0]
Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Platform Linux-5.8.0-1016-raspi-aarch64-with-glibc2.32
Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Locale is 'en_CA.UTF-8'
Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Mar 15 17:25:29 weewx weewx[4204] INFO __main__: Debug is 0
Mar 15 17:25:29 weewx weewx[4204] INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
Mar 15 17:25:29 weewx weewx[4204] ERROR weewx.engine: Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>)
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  During handling of the above exception, another exception occurred:
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  Traceback (most recent call last):
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/engine.py", line 119, in setupStation
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      return VantageService(engine, config_dict)
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1898, in __init__
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 512, in __init__
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      self.port.openPort()
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 307, in openPort
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout)
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      self.open()
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
Mar 15 17:25:29 weewx weewx[4204] CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Mar 15 17:25:29 weewx weewx[4204] CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Mar 15 17:25:29 weewx weewx[4204] CRITICAL __main__:     ****  Exiting...


vince

unread,
Mar 15, 2021, 8:46:55 PM3/15/21
to weewx-user
On Monday, March 15, 2021 at 3:41:52 PM UTC-7 kon...@gmail.com wrote:
This is a fresh install so I do not yet have my station connected.  I'm wondering if I need to connect my station so the install can complete the instantiation of the database?


Lean toward yes.   The os is not going to have a /dev/ttyUSB0 device if nothing is hooked up to your USB.  Secondly the driver is going to try to connect to actual Davis hardware on that port when it initializes.  Give it a try.  You can't break a clean installation anyway.

 

kon...@gmail.com

unread,
Mar 16, 2021, 7:58:35 PM3/16/21
to weewx-user
Thank you Vince.  That was the trick.
Reply all
Reply to author
Forward
0 new messages