Thankx Tom - I had a feeling it was due to permissions or corrupted files I
had manually copied....
So I uninstalled weewx (apt-get remove) deleted the usr/share/weewx
directory structure and re-installed apt-get install weewx).
Now I'm in all sort of problems - the files appear to be in the correct
places, but I'm getting an error when the service tries to start..:
Setting up python-imaging (4.0.0-4) ...
Setting up weewx (3.8.0-1) ...
using debconf configuration values from previous install
Setting record_generation to software.
Saved configuration to /etc/weewx/weewx.conf
Job for weewx.service failed because the control process exited with error
code.
See "systemctl status weewx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript weewx, action "start" failed.
â weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-04-22 10:09:24 BST;
150ms a go
Docs: man:systemd-sysv-generator(8)
Process: 992 ExecStart=/etc/init.d/weewx start (code=exited,
status=1/FAILURE)
Apr 22 10:09:23 PiZeroW systemd[1]: Starting LSB: weewx weather system...
Apr 22 10:09:23 PiZeroW weewx[992]: Starting weewx weather system:
weewxTraâ¦st) :
Apr 22 10:09:23 PiZeroW weewx[992]: File "/usr/bin/weewxd", line 12, in
<â¦ule >
Apr 22 10:09:23 PiZeroW weewx[992]: import user.extensions
#@Unusâ¦por t
Apr 22 10:09:23 PiZeroW weewx[992]: ImportError: No module named extensions
Apr 22 10:09:24 PiZeroW weewx[992]: failed!
Apr 22 10:09:24 PiZeroW systemd[1]: weewx.service: Control process exited,
â¦us= 1
Apr 22 10:09:24 PiZeroW systemd[1]: Failed to start LSB: weewx weather
system.
Apr 22 10:09:24 PiZeroW systemd[1]: weewx.service: Unit entered failed
state.
Apr 22 10:09:24 PiZeroW systemd[1]: weewx.service: Failed with result
'exitâ¦de' .
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package weewx (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I uninstall, apt clean/autoremove and try again, I get the above
consistently....
It may be back to creating another OS build again... :-(
On Saturday, 21 April 2018 20:47:47 UTC+1, Jon Bartlett wrote:
> Hi Tom/All,
>
> I had to rebuild my weather station, after a corruption of the SD that is
> running on the Rasp-Pi Zero W host...
> I created a new OS image, and installed Weewx as per the Debian
> instructions. I copied the config, db and HTML files (once installing
> Apache ...but after the Weewx install).
>
> Two things don't seem to work properly :
> - The html files (standard template) seem to populate only the graphs that
> have changed - not the main index file - I notice the following problems in
> the log ...
> Apr 21 20:44:00 PiZeroW weewx[349]: **** File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 328, in generate
> Apr 21 20:44:00 PiZeroW weewx[349]: ****
> filtersLib=weewx.cheetahgenerator)
> Apr 21 20:44:00 PiZeroW weewx[349]: **** AttributeError: 'module' object
> has no attribute 'cheetahgenerator'
> Apr 21 20:44:00 PiZeroW weewx[349]: cheetahgenerator: Generate failed with
> exception '<type 'exceptions.AttributeError'>'
> Apr 21 20:44:00 PiZeroW weewx[349]: cheetahgenerator: **** Ignoring
> template /etc/weewx/skins/Standard/NOAA/NOAA-YYYY-MM.txt.tmpl
> - The FTP upload to my site appears to only copy some of the files, not
> all - probably a result of the latter problem ...
> Apr 21 20:44:04 PiZeroW weewx[349]: reportengine: Found configuration file
> /etc/weewx/skins/Ftp/skin.conf for report FTP
> Apr 21 20:44:04 PiZeroW weewx[349]: ftpupload: Attempting connection to
> myfiles.eclipse.co.uk
> Apr 21 20:44:04 PiZeroW weewx[349]: ftpupload: Connected to
> myfiles.eclipse.co.uk
> Apr 21 20:44:04 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayrain.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daywinddir.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayrx.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayradiation.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayuv.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayinside.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daybarometer.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daytempdew.png
> Apr 21 20:44:05 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daywind.png
> Apr 21 20:44:06 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/dayhumidity.png
> Apr 21 20:44:06 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daytempchill.png
> Apr 21 20:44:06 PiZeroW weewx[349]: ftpupload: Uploaded file
> www.thebartletts.org/weather/daywindvec.png
> Apr 21 20:44:06 PiZeroW weewx[349]: ftpgenerator: ftp'd 12 files in 1.79
> seconds
>
> Any ideas on why the cheetah isn't working and how to reset so that all
> HTML files (which are in the HTML directory) are FTPd ?
>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.