Leaving the selinux issue alone (my Rocky Linux 9.1 lxc installs have no 
enforcement out of the box).

I needed to clean up my archive as it had data from old PWSes in it that 
caused silly entries in Seasons.

I changed the data to NULL (as they were all battery readings of one sort 
or another).
Then I was going to drop daily and rebuild daily

wee_database doesn't like either of the commands though it did work for 
--check.

wee_database-5.txt is attached to show the errors.



On Saturday, January 28, 2023 at 5:41:43 PM UTC-5 Tom Keffer wrote:

> Thanks for the education --- I know next to nothing about Red Hat systems. 
> I'll take you up on the PR.
>
> If you look in pip.md under "Preparation", you'll see a tab for Debian. 
> Add one for RH systems. That will keep the clutter to a minimum.
>
>
>
> On Sat, Jan 28, 2023 at 2:34 PM Vince Skahan <[email protected]> wrote:
>
>> Disagree....
>>
>>    - On modern RH systems, selinux is enabled/enforcing by default.  
>>    RHish users are victims here. Their vendor gave them the os set up with 
>>    selinux enforcing for better or worse as the starting point.  Much like 
>> RH 
>>    systems have to use 'yum' rather than 'apt', they also have to deal with 
>>    selinux one way or the other.  Few RH users know this, nor know how.
>>
>>
>>    - On a modern RH system,  no --user installation can possibly work at 
>>    bootup without fixing the selinux context (the recommended way) or 
>>    disabling selinux completely (not recommended, and requires editing a 
>> file 
>>    in /etc/sysconfig as root and rebooting before proceeding).
>>
>> Bottom line is we're talking about needing to add 'two' lines to the 
>> quickstart (one to install wheel, one to run chcon), and using the system 
>> init file contents (copy the debian tab verbatim and make it appear in the 
>> RH tab too).
>>
>> This also lets you be able to finally kill using init.d for modern RH 
>> systems and move to systemd like  for modern Debian systems.  Matthew's 
>> already said he wants to go systemd everywhere in the packages.  Why not 
>> get there for RH systems (via pip) too ?
>>
>> Again, I'm happy to do the two minute PR to make the RH --user 
>> instructions actually correct and able to succeed.  I've already tested 
>> that they work.
>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "weewx-development" 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-development/f6bd6251-2ab5-489b-a787-a3dcee4c268cn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-development/f6bd6251-2ab5-489b-a787-a3dcee4c268cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/f7838005-0a9b-4c73-a51d-4b77bd465707n%40googlegroups.com.
[wx@wx-pip weewx-data]$ wee_database --check
Using configuration file /home/wx/weewx-data/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Checking daily summary tables version...
Daily summary tables are at version 4.0
Interval Weighting Fix is not required.
Daily summary tables version check completed in 0.00 seconds.
Preparing Null String Fix, this may take a while...
 Checking record: 479371; Timestamp: 2023-01-29 11:15:00 EST (1675008900)
No null strings found.
Completed Null String Check in 7.49 seconds.
[wx@wx-pip weewx-data]$ wee_database --drop-daily
Using configuration file /home/wx/weewx-data/weewx.conf
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Traceback (most recent call last):
  File "/usr/local/bin/wee_database", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/wee_database.py", line 246, in 
main
    dropDaily(config_dict, db_binding)
  File "/usr/local/lib/python3.9/site-packages/wee_database.py", line 275, in 
dropDaily
    database_name = manager_dict['database_dict']['database_name']
KeyError: 'database_name'
[wx@wx-pip weewx-data]$

Reply via email to