On Wednesday, November 6, 2019 at 2:48:24 PM UTC-8, walterli wrote:
>
> For reference attached how the log looks like when starting Pi with
> connected Ethernet cable.
>
> P.S.: I tried to post it three times, but it was always cut. That's why
> it's attached as txt-file this time.
>
Unfortunately I don't have any experience with the KL driver but just to
ask, do you perhaps have your database mounted across the network from some
other system ? I was a little surprised to see mention of "Apple File
Conduit monitor" in your logs.
You might need to also post your weewx.conf (with any usernames/passwords
edited out please).
The following logs looked like it's trying to tell you something db related
as the underlying issue. Does your setup perhaps try to always create a db
even if one already exists ?
Nov 6 22:56:54 raspberrypi weewx[576]: engine: Caught unrecoverable
exception in engine:
Nov 6 22:56:54 raspberrypi weewx[576]: **** (1007, "Can't create
database 'weewx_kl'; database exists")
Nov 6 22:56:54 raspberrypi weewx[576]: **** Traceback (most recent
call last):
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/engine.py", line 888, in main
Nov 6 22:56:54 raspberrypi weewx[576]: **** engine =
engine_class(config_dict)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/engine.py", line 78, in __init__
Nov 6 22:56:54 raspberrypi weewx[576]: ****
self.loadServices(config_dict)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/engine.py", line 142, in loadServices
Nov 6 22:56:54 raspberrypi weewx[576]: ****
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/engine.py", line 500, in __init__
Nov 6 22:56:54 raspberrypi weewx[576]: ****
self.setup_database(config_dict)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/engine.py", line 608, in setup_database
Nov 6 22:56:54 raspberrypi weewx[576]: **** dbmanager =
self.engine.db_binder.get_manager(self.data_binding, initialize=True)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/manager.py", line 872, in get_manager
Nov 6 22:56:54 raspberrypi weewx[576]: ****
self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/manager.py", line 1021, in open_manager
Nov 6 22:56:54 raspberrypi weewx[576]: ****
manager_dict['schema'])
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weewx/manager.py", line 136, in open_with_create
Nov 6 22:56:54 raspberrypi weewx[576]: ****
weedb.create(database_dict)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weedb/__init__.py", line 80, in create
Nov 6 22:56:54 raspberrypi weewx[576]: **** return
driver_mod.create(**db_dict)
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weedb/mysql.py", line 75, in create
Nov 6 22:56:54 raspberrypi weewx[576]: ****
cursor.execute("CREATE DATABASE %s" % (database_name,))
Nov 6 22:56:54 raspberrypi weewx[576]: **** File
"/home/weewx/bin/weedb/mysql.py", line 49, in guarded_fn
Nov 6 22:56:54 raspberrypi weewx[576]: **** raise klass(e)
Nov 6 22:56:54 raspberrypi weewx[576]: **** DatabaseExistsError:
(1007, "Can't create database 'weewx_kl'; database exists")
Nov 6 22:56:54 raspberrypi weewx[576]: **** Exiting.
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/b8b06376-bd41-4f66-a1e2-c4f99fcc9b6c%40googlegroups.com.