Another permission denied issue. I'm guessing you are mounting a NAS or other network drive ?
The weewx user needs permission to write to wherever it's trying to write to. Apr 22 08:45:47 sparta weewxd[465042]: DEBUG user.weatherlink_live.davis_broadcast: Stopped broadcast reception Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: Caught OSError: [Errno 13] Permission denied: '/srv/samba/raid1/public_shares/weewx/data-2024-04.csv' Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** Traceback (most recent call last): Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** File "/usr/share/weewx/weewxd.py", line 166, in main Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** engine.run() Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 206, in run Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet)) Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** File "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** callback(event) Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** File "/etc/weewx/bin/user/csv.py", line 63, in handle_new_loop Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** self.write_data(event.packet) Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** File "/etc/weewx/bin/user/csv.py", line 85, in write_data Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** with open(filename, flag) as f: Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** PermissionError: [Errno 13] Permission denied: '/srv/samba/raid1/public_shares/weewx/data-2024-04.csv' Apr 22 08:45:47 sparta weewxd[465042]: CRITICAL __main__: **** Waiting 10 seconds then retrying... On Monday, April 22, 2024 at 6:12:22 AM UTC-7 John Walker wrote: > Hi Gary - many thanks. I captured a log file from startup for 10+ mins - > see attached. > Below is service status report after the log capture. > I do have a reports copy to a network share that isn't working due to some > permissions error - that is in the log file too. > > > ● weewx.service - WeeWX > Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor > preset: enabled) > Active: active (running) since Mon 2024-04-22 08:44:05 EDT; 24min ago > Docs: https://weewx.com/docs > Main PID: 465042 (python3) > Tasks: 3 (limit: 18955) > Memory: 66.9M > CPU: 29.462s > CGroup: /system.slice/weewx.service > └─465042 python3 /usr/share/weewx/weewxd.py > /etc/weewx/weewx.conf > > On Sunday, April 21, 2024 at 4:05:33 PM UTC-4 gjr80 wrote: > >> Reinstalling is a bit drastic without first seeing what the problem is. >> Despite a lengthy log extract we did not see the full WeeWX startup (didn't >> see anything covering the driver being loaded) nor did we see anything >> after WeeWX startup. How about posting another log extract showing the full >> WeeWX startup and a good 10-15 minutes after WeeWX has started (ie after >> the 'Starting main packet loop' log entry). >> >> Gary >> >> On Monday 22 April 2024 at 01:54:50 UTC+10 jw1...@gmail.com wrote: >> >>> Hi, >>> Amid some updates and other problem solving I now have no updates >>> happening to the database nor the /var/www/html/weewx reports. >>> I could have butchered the config it a bit - is there a safe (retaining >>> database) way to reinstall? Weewx.conf and syslog excerpt below. >>> Thanks, >>> JW >>> >>> >>> *WEEWX.CONF (first couple sections)* >>> >>> # WEEWX CONFIGURATION FILE >>> # >>> # Copyright (c) 2009-2021 Tom Keffer <tke...@gmail.com> >>> # See the file LICENSE.txt for your rights. >>> >>> >>> ############################################################################## >>> >>> # This section is for general configuration information. >>> >>> # Set to 1 for extra debug info, otherwise comment it out or set to zero >>> debug = 1 >>> >>> # Root directory of the weewx data file hierarchy for this station >>> WEEWX_ROOT = / >>> >>> # Whether to log successful operations >>> log_success = True >>> >>> # Whether to log unsuccessful operations >>> log_failure = True >>> >>> # How long to wait before timing out a socket (FTP, HTTP) connection >>> socket_timeout = 20 >>> >>> # Do not modify this. It is used when installing and updating weewx. >>> version = 5.0.2 >>> >>> >>> ############################################################################## >>> >>> >>> *SYSLOG EXCERPT* >>> >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdTimeSynch >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdTimeSynch >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdConvert >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: StdConvert >>> target unit is 0x1 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdConvert >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdCalibrate >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdCalibrate >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdQC >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdQC >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.wxservices.StdWXCalculate >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.wxservices: >>> StdWXCalculate will use data binding wx_binding >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.wxservices.StdWXCalculate >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.csv.CSV >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.csv: service version is >>> 0.11 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.csv.CSV >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.ws.WsWXCalculate >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: WsWXCalculate >>> version 0.1.4 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: WsWXCalculate >>> sunshine threshold: 120 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: pyephem was >>> detected >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.ws.WsWXCalculate >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.mem.MemoryMonitor >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.mem.MemoryMonitor >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.wxxtypes.StdWXXTypes >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.wxxtypes.StdWXXTypes >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.wxxtypes.StdPressureCooker >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.wxxtypes.StdPressureCooker >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.wxxtypes.StdRainRater >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.wxxtypes.StdRainRater >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.wxxtypes.StdDelta >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.wxxtypes.StdDelta >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.wsxtypes.StdWSXTypes >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.wsxtypes.StdWSXTypes >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdArchive >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: Archive will >>> use data binding wx_binding >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: Record >>> generation will be attempted in 'hardware' >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: Using archive >>> interval of 300 seconds (specified in weewx configuration) >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Use LOOP data >>> in hi/low calculations: 1 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdArchive >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.ws.WsArchive >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: WsArchive version >>> 0.1.4 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: Using binding >>> 'ws_binding' to database 'weewxwd.sdb' >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: Starting backfill >>> of daily summaries >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.manager: Starting >>> backfill of daily summaries >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.manager: Daily >>> summaries up to date >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.ws: Daily summaries up >>> to date. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.ws.WsArchive >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdStationRegistry >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: >>> StationRegistry: Registration not requested. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdStationRegistry >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdWunderground >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: Wunderground: >>> Posting not enabled. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdWunderground >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdPWSweather >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: PWSweather: >>> Posting not enabled. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdPWSweather >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdCWOP >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: CWOP: Posting >>> not enabled. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdCWOP >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdWOW >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: WOW: Posting >>> not enabled. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdWOW >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.restx.StdAWEKAS >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.restx: AWEKAS: Posting >>> not enabled. >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.restx.StdAWEKAS >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.wcloud.WeatherCloud >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.wcloud: service version >>> is 0.13 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.wcloud: Data will be >>> uploaded for id=944d843ddda41eb2 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.wcloud.WeatherCloud >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdPrint >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdPrint >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service weewx.engine.StdReport >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: 'pyephem' >>> detected, extended almanac data is available >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service weewx.engine.StdReport >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Loading >>> service user.rtcr.RealtimeClientraw >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.rtcr: RealtimeClientraw >>> version 0.3.4 >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.rtcr: RealtimeClientraw >>> will generate /var/www/html/togues/clientraw.txt >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO user.rtcr: min_interval is >>> 10 seconds >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: Date format: >>> '%-d/%-m/%Y', long time format: '%H:%M:%S', short time format: '%H:%M' >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: Archive record >>> grace period is 200 seconds >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: Maximum cache >>> age is 600 seconds >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: barometer trend >>> period: 3600 seconds, temperature trend period: 3600 seconds >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: humidity trend >>> period: 3600 seconds, humidex trend period: 3600 seconds >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG user.rtcr: windrun will be >>> updated using archive data >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Finished >>> loading service user.rtcr.RealtimeClientraw >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO __main__: Starting up weewx >>> version 5.0.2 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG >>> user.weatherlink_live.service: WllWindGustService: Service startup >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.manager: Daily >>> summary version is 4.0 >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG >>> user.weatherlink_live.service: WllWindGustService: Clearing max gust values >>> Apr 21 11:46:10 sparta weewxd[429125]: DEBUG weewx.engine: Station does >>> not support reading the time >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: Using binding >>> 'wx_binding' to database 'weewx.sdb' >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.manager: Starting >>> backfill of daily summaries >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.manager: Daily >>> summaries up to date >>> Apr 21 11:46:10 sparta weewxd[429125]: INFO weewx.engine: Starting main >>> packet loop. >>> >> -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1134b026-e3f5-4f6c-a5e7-4641913b92aan%40googlegroups.com.