I now have a correct /Library/LaunchDaemons/com.weewx.weewxd.plist file 
pointing to the correct places, and stopping/restarting the daemon is 
working properly.

Thanks Vince and Matthew!


On Sunday, September 1, 2024 at 5:51:40 PM UTC-6 matthew wall wrote:

> On Sunday, September 1, 2024 at 2:36:35 PM UTC-4 [email protected] 
> wrote:
>
> prompt> sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist
> Load failed: 5: Input/output error
> Try running `launchctl bootstrap` as root for richer errors.
> prompt>
>
>
> i am guessing that the launchctl invocation failed because the file 
> /Library/LaunchDaemons/com.weewx.weewxd.plist does not exist.  since getent 
> failed, the plist was probably never copied.
>
> please check the contents of the plist in the weewx-data directory that 
> was created when you did a 'weectl station create'.  are the python, 
> weewxd, and weewx.conf paths correct in that plist file?
>
>  
>
> 2) I also need to figure out how to merge weewx.sdb from 
> /Users/shared/weewx/archive/weewx.sb (ends at 13:15 26 Aug)
>
> with
>
>  ~/weewx-data/archive/weewx.sdb (current and being updated)
>
>
> do something like this (NOT TESTED!!!):
>
> # stop weewx
> sudo launchctl unload /Library/LaunchDaemons/com.weewx.plist
>
> # make a copy of the old database and the active database
> cp /Users/shared/weewx/archive/weewx.sdb weewx1.sdb
> cp ~/weewx-data/archive/weewx.sdb weewx2.sdb
>
> # move aside the active database
> mv ~/weewx-data/archive/weewx.sdb ~/weewx-data/archive/weewx.sdb-YYmmdd
>
> # copy new data into the copy of the old database
> sqlite3 weewx1.sdb
> sqlite> attach database 'weewx2.sdb' as 'weewx2';
> sqlite> insert into weewx1.archive select * from weewx2.archive;
>
> # rebuild the daily summaries
> weectl database rebuild-daily
>
> # move the newly modified database into place
> cp weewx1.sdb ~/weewx-data/archive/weewx.sdb
>
> # start weewx
> sudo launchctl load /Library/LaunchDaemons/com.weewx.plist
>
> # clean up
> rm weewx1.sdb weewx2.sdb
>
>
>

-- 
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/0f6c2db7-72e3-4173-8c34-841f26ed8c54n%40googlegroups.com.

Reply via email to