On Monday, February 4, 2019 at 1:15:51 PM UTC-8, Andy Hudson-Smith wrote:
>
> Evening - my recent install of Weewx on a Pi listening for UDP data from 
> Weather Flow and publishing to MQTT suddenly stopped working this evening. 
> I am new to Weewx so any help would be great as i cant get it to start 
> reporting again. The recent log file is below if that helps:
>
> Feb  4 21:05:23 weewx weewx[403]: manager: Replace failed for database 
> weewx.sdb: database is locked
>

Andy, you might want to work on your google-fu a bit more.  This has been 
discussed 'many' times in the past, so it's searchable in the group 
archives.

"database is locked" happens all the time on a pi, generally when you run 
too complicated a weewx skin (or set of skins or extensions) and they don't 
process fast enough on the limited pi resources.   The file is indeed 
locked and in use when weewx needs to update it.

You need to lighten the load on the pi:

   - do less - run less skins,  run less extensions, set your WF to 
   power-save to not do rapid_wind every 3 seconds
   - do easier things - run less compute/disk intensive skins (don't run 
   weather34 or Belchertown or Belchertown+MQTT)
   - do it faster - reconfigure to use a SSD disk, not a SD disk (requires 
   pi3 or pi3b+ and a better power supply)
   - or get a better computer than a pi if you want to do a lot of stuff
   
Regarding the WF gear specifically, I found the weatherflow UDP driver 
'very' stable running just vanilla weewx on something as weak as a 
pi-zero.   I've had it running similarly on pi3 for almost 3 months now, so 
your problem is you are almost certainly trying to do too much on the wimpy 
pi platform.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to