Hi,

The os.rename command is attempting to rename the temporary file containing 
the gauge-data.txt output to the final destination path/file. Judging by 
the error I an guessing the temporary file has disappeared between its 
creation and the call to os.rename. Impossible to say much more without 
something more to go on. Does this error occur every time gauge-data.txt is 
generated or only occasionally? Could you provide a debug startup log 
extract - edit weewx.conf, set debug = 1, save weewx.conf then restart 
WeeWX. Let WeeWX run for at least two archive intervals in time and then 
post a log extract from when WeeWX was restarted through until the two 
archive intervals of time passed. Do not edit the log and make sure you 
capture the full WeeWX startup sequence. Finally, could you also post a 
copy of your [RealtimeGaugeData] stanza from weewx.conf, there should not 
be anything sensitive in there but do check before posting.

You do appear to be running an older version of rtgd.py (0.3.3 ?) but that 
should not matter, I would not be upgrading just yet.

Gary

On Monday, 30 December 2019 13:40:32 UTC+10, raenrfm wrote:
>
> Wondering if anyone can help me understand this error I'm getting:
>
> Dec 29 22:30:20 a4fc2e292c92 weewx[14695]: rtgdthread: **** Traceback 
> (most recent call last): Dec 29 22:30:20 a4fc2e292c92 weewx[14695]: 
> rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1058, in 
> process_packet Dec 29 22:30:20 a4fc2e292c92 weewx[14695]: rtgdthread: **** 
> self.write_data(data) Dec 29 22:30:20 a4fc2e292c92 weewx[14695]: 
> rtgdthread: **** File "/usr/share/weewx/user/rtgd.py", line 1175, in 
> write_data Dec 29 22:30:20 a4fc2e292c92 weewx[14695]: rtgdthread: **** 
> os.rename(self.rtgd_path_file_tmp, self.rtgd_path_file) Dec 29 22:30:20 
> a4fc2e292c92 weewx[14695]: rtgdthread: **** OSError: [Errno 2] No such file 
> or directory
>
> os.rename, what is that? I have this running in a docker container with a 
> mount to a synology nas to store the config directories, so just the 
> /etc/weewx structure but nothing else. Any ideas?
>

-- 
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/7e45d803-3e75-4e8e-b4d1-15b908dd5a7e%40googlegroups.com.

Reply via email to