Hello, small discovery from my side using Rocky Linux 8, RPM installation and selinux policy. Upgrade itself was smooth but I realized then I cannot see status of service or stop/start it.
*[root@rocky-weather-machine system]# systemctl status weewxFailed to get properties: Access denied* *[root@rocky-weather-machine procedures]# getenforceEnforcing* I applied following to give it more proper context and all is OK now. *cd /usr/lib/systemd/system/ls -al weewx*-rw-r--r--. 1 root root unconfined_u:object_r:systemd_unit_file_t:s0 366 28. led 13.22 weewx.service-rw-r--r--. 1 root root unconfined_u:object_r:systemd_unit_file_t:s0 874 28. led 13.22 [email protected] --reference timedatex.service weewx*systemctl daemon-reexecls -al weewx** *-rw-r--r--. 1 root root system_u:object_r:systemd_unit_file_t:s0 366 28. led 13.22 weewx.service-rw-r--r--. 1 root root system_u:object_r:systemd_unit_file_t:s0 874 28. led 13.22 [email protected]* Dne pondělí 15. ledna 2024 v 10:40:27 UTC+1 uživatel Graham Eddy napsal: > upgrade from b16 very smooth, took seconds. i have one venv shared by two > stations > > (venv) *graham@wx*:*~*$ sudo systemctl stop weewx@vantage weewx@ecowitt > > —— > > (venv) *weewx@wx*:*~*$ python3 -m pip install weewx --upgrade > > Requirement already satisfied: weewx in > ./venv/lib/python3.11/site-packages (5.0.0b16) > > Collecting weewx > > Downloading weewx-5.0.0-py3-none-any.whl (1.4 MB) > > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 1.8 MB/s eta > 0:00:00 > > Requirement already satisfied: CT3<4.0,>=3.1 in > ./venv/lib/python3.11/site-packages (from weewx) (3.3.2) > > Requirement already satisfied: Pillow>=5.2 in > ./venv/lib/python3.11/site-packages (from weewx) (10.0.0) > > Requirement already satisfied: PyMySQL<2.0,>=1.0 in > ./venv/lib/python3.11/site-packages (from weewx) (1.1.0) > > Requirement already satisfied: configobj<6.0,>=5.0 in > ./venv/lib/python3.11/site-packages (from weewx) (5.0.8) > > Requirement already satisfied: ephem<5.0,>=4.1 in > ./venv/lib/python3.11/site-packages (from weewx) (4.1.4) > > Requirement already satisfied: pyserial<4.0,>=3.4 in > ./venv/lib/python3.11/site-packages (from weewx) (3.5) > > Requirement already satisfied: pyusb<2.0.0,>=1.0.2 in > ./venv/lib/python3.11/site-packages (from weewx) (1.2.1) > > Requirement already satisfied: six in ./venv/lib/python3.11/site-packages > (from configobj<6.0,>=5.0->weewx) (1.16.0) > > Installing collected packages: weewx > > Attempting uninstall: weewx > > Found existing installation: weewx 5.0.0b16 > > Uninstalling weewx-5.0.0b16: > > Successfully uninstalled weewx-5.0.0b16 > > Successfully installed weewx-5.0.0 > > ---- > > > (venv) *graham@wx*:*~*$ sudo systemctl start weewx@vantage weewx@ecowitt > > (venv) *graham@wx*:*~*$ sudo journalctl -u weewx@vantage -n 30 -f > > Jan 15 19:59:42 wx weewx-vantage[12162]: INFO user.mqtt: <MQTTInward> > started > > Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.vitalstats: > <VitalStats> starting v2.0.3 > > Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.vitalstats: > <VitalStats> stats={'archive': ['cpu_load', 'cpu_idle', 'cpu_temp', > 'mem_avail', 'disk_avail'], 'loop': []} therm_name='coretemp' > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.vitalstats: > <VitalStats> started > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: StdConvert > target unit is 0x1 > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.wxservices: > StdWXCalculate will use data binding wx_binding > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Archive will > use data binding wx_binding > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Record > generation will be attempted in 'hardware' > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: Using archive > interval of 300 seconds (specified by hardware) > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.forecast: MainThread: > OWM: forecast version 3.4.0b11 > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.forecast: MainThread: > OWM: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXX238e > location=2172929 fc=5day3hour > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: > StationRegistry: Station will be registered. > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: > Wunderground-PWS: Data for station IBUXTO23 will be posted > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.restx: WOW: Data for > station 586966064 will be posted > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO weewx.engine: 'pyephem' > detected, extended almanac data is available > > Jan 15 19:59:43 wx weewx-vantage[12162]: DEBUG user.mqtt: <MQTTOutward> > starting v0.1.3 > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO user.mqtt: <MQTTOutward> > started > > Jan 15 19:59:43 wx weewx-vantage[12162]: INFO __main__: Starting up weewx > version 5.0.0 > > ... > > (venv) *graham@wx*:*~*$ sudo journalctl -u weewx@ecowitt -n 30 -f > > Jan 15 19:59:42 wx weewx-ecowitt[12163]: INFO weewx.engine: 'pyephem' > detected, extended almanac data is available > > Jan 15 19:59:43 wx weewx-ecowitt[12163]: DEBUG user.mqtt: <MQTTOutward> > starting v0.1.3 > > Jan 15 19:59:43 wx weewx-ecowitt[12163]: DEBUG mqttif: <Gateway > broker.home.arpa:1883 True> request connect > > Jan 15 19:59:43 wx weewx-ecowitt[12163]: INFO user.mqtt: <MQTTOutward> > started > > Jan 15 19:59:43 wx weewx-ecowitt[12163]: INFO __main__: Starting up weewx > version 5.0.0 > > ... > > > *⊣GE⊢* > > On 15 Jan 2024, at 9:24 am, Tom Keffer <[email protected]> wrote: > > A year in the making, V5 is finally available! Some minor new features, > but most of the work has been to keep up with the changing world of Python > --- lots of things have become obsolete (distutils), while others have just > changed. > > A few changes to highlight: > > - WeeWX can now be installed using pip. The old setup.py method is > gone. > - Support for the latest versions of Python. > - Improved documentation. > - The utilities have been pulled together under one master utility, > weectl, making it easier to find the functionality you need. > - Management of multiple stations is easier and more modular. > > Complete change list <https://www.weewx.com/docs/5.0/changes/>. > > Quickstart install and upgrade instructions > <https://www.weewx.com/docs/5.0/#installation>. > > Be sure to read the Upgrade Guide > <https://www.weewx.com/docs/5.0/upgrade/>. > > - Tom, Matt, and Gary. > > > -- > 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/CAPq0zEDyOXhODJ_XaCw%3Dcxm9L3B2t3k70Y3L2fkZQwYSyb71Og%40mail.gmail.com > > <https://groups.google.com/d/msgid/weewx-development/CAPq0zEDyOXhODJ_XaCw%3Dcxm9L3B2t3k70Y3L2fkZQwYSyb71Og%40mail.gmail.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/b1abc77c-7d99-4973-bb83-68a568daf56dn%40googlegroups.com.
