Uṕgrade from 2.7.0 to 4.0.0 fail

175 views
Skip to first unread message

BEIJY BUA

unread,
May 20, 2020, 1:34:28 PM5/20/20
to weewx-user
Hello Everybody

Sorry for my bad English.
I have a problem after Upgrade to 4.0.0
Here is the Post from the status:

Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****    File "/home/weewx/bin/weewxd", line 148, in main
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 75, in __init__
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****      self.loadServices(config_dict)
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****    File "/home/weewx/bin/weewx/engine.py", line 138, in loadServices
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self,config_dict)
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****    File "/home/weewx/bin/user/cmon.py", line 190, in __init__
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****      self.archive = weewx.archive.Archive.open_with_create(config_dict['Databases'][self.database], schema, self.table)
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****  AttributeError: 'module' object has no attribute 'archive'
Mai 20 19:32:11 raspberrypi weewxd[496]: weewx[496] CRITICAL __main__:     ****  Exiting.


I hope i became help here .

Many Thnx

Chris

Tom Keffer

unread,
May 20, 2020, 6:54:14 PM5/20/20
to weewx-user
You should upgrade cmon.

-tk

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cf8dd063-893f-4551-8e77-54f33465edee%40googlegroups.com.

BEIJY BUA

unread,
May 21, 2020, 2:46:39 AM5/21/20
to weewx-user
Good Morning

Its a Number to hard for me, sorry

I have no idea what iam doing to fix this Problem. I have renamed all Database in Database_Name.
I think my English is not enough for this.

I dont have the Programming Skills. I have a backup from my SD Card with 2.7.0 . I go back to this.

Is it easier to go from 2.7.0 to 3.0 and so one up to 4.0.0 ??

Sorry 
Best Regards
Chris
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Jarmo Seppänen

unread,
May 21, 2020, 2:54:33 AM5/21/20
to weewx-user
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

steeple ian

unread,
May 23, 2020, 6:35:15 AM5/23/20
to weewx...@googlegroups.com
Hi Beijy,
The settings1.php file is created the first time you open the settings page. It uses the default file that you mentioned as the basis for this. So, in your browser go to the easyW34skinSetup.php file which will open the settings page. Once you have applied your preferences and save, settings1.php will be created. You can then access the settings page from the menu if you need to make any other changes in the future.
Ian

On Sat, 23 May 2020 at 11:16, BEIJY BUA <beij...@gmail.com> wrote:
Hello

After Uninstall the cmon extension i have only one Problem with the Weather34:

May 23 11:55:05 raspberrypi weewxd: w34rt: service version is 0.0.5
May 23 11:55:05 raspberrypi weewxd: w34rt: output goes to /var/www/html/weewx/weather34/w34realtime.txt
May 23 11:55:05 raspberrypi weewxd: w34rt: 'None' values will be displayed as NULL
May 23 11:55:05 raspberrypi weewxd: w34rt: units will be displayed as METRICWX
May 23 11:55:05 raspberrypi weewxd: w34rt: zambretti forecast: False
May 23 11:55:05 raspberrypi weewxd: w34rt: Failed to open config file or create dictionary: /var/www/html/weewx/weather34/settings1.php, Error: [Errno 2] Datei oder Verzeichnis nicht gefunden: u'/var/www/html/weewx/weather34/settings1.php'
May 23 11:55:05 raspberrypi weewxd: w34rt: Weather34 RetainLoopValues in cache is: True
May 23 11:55:05 raspberrypi weewxd: w34rt: binding is loop

I have no file with settings1.php in the folder is a file called: settings1.default.php ???

Thanx for the Help

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d24ca613-e0c9-4f84-9ce1-f1469f826570%40googlegroups.com.

BEIJY BUA

unread,
May 24, 2020, 4:59:00 AM5/24/20
to weewx-user
Sorry but least i have found one new problem:
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****  no such table: archive_day_wind
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 197, in run
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      obj.start()
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 280, in start
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      self.run()
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 150, in run
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 220, in generate
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 220, in generate
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 309, in generate
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      default_binding)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/cheetahgenerator.py", line 376, in _getSearchList
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      searchList += obj.get_extension_list(timespan, db_lookup)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/user/w34highchartsSearchX.py", line 1841, in get_extension_list
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      sle_dict['wr' + _suffix] = self.calcWindRose(timespan, db_lookup, period)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/user/w34highchartsSearchX.py", line 1559, in calcWindRose
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      ['avg'])
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/user/w34highchartsSearchX.py", line 143, in getDaySummaryVectors
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      for _rec in _cursor.execute(sql_str):
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weedb/sqlite.py", line 37, in guarded_fn
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****      raise weedb.NoTableError(e)
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****  NoTableError: no such table: archive_day_wind
May 24 10:36:25 raspberrypi weewx[4705] ERROR weewx.reportengine:         ****  Generator terminated



Am Mittwoch, 20. Mai 2020 19:34:28 UTC+2 schrieb BEIJY BUA:

steeple ian

unread,
May 24, 2020, 5:15:36 AM5/24/20
to weewx...@googlegroups.com
Hi,

That looks as though you might have a problem with your WeeWX database. It might be worthwhile you re-building your daily summaries. Have a look at this page: -


Ian

--
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+...@googlegroups.com.

Tom Keffer

unread,
May 24, 2020, 7:58:14 AM5/24/20
to weewx-user
Please post your copy of the section [DataBindings] in the weewx.conf you used to create the database.

--

BEIJY BUA

unread,
May 24, 2020, 9:03:15 AM5/24/20
to weewx-user
Thanx to All for the Help

Everything is Fine with the weewx. But where can i fand spezial help for the Weather34 skin??
Is there any People they can help??

May 24 14:37:09 raspberrypi weewx[9012] INFO weewx.cheetahgenerator: Generated 6 files for report StandardReport in 20.53 seconds
May 24 14:37:16 raspberrypi weewx[9012] INFO weewx.imagegenerator: Generated 12 images for report StandardReport in 6.38 seconds
May 24 14:37:16 raspberrypi weewx[9012] INFO weewx.reportengine: Copied 14 files to /home/weewx/public_html
May 24 14:37:23 raspberrypi weewx[9012] INFO weewx.cheetahgenerator: Generated 1 files for report Weather34Report in 7.15 seconds
May 24 14:37:23 raspberrypi weewx[9012] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx/weather34/
May 24 14:37:31 raspberrypi weewx[9012] INFO weewx.cheetahgenerator: Generated 7 files for report w34Highcharts in 7.65 seconds
May 24 14:37:31 raspberrypi weewx[9012] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx/weather34/w34highcharts

It Generates the Files, but they dont copied. Nothing work with the skin. I Make the Settings in
the Settings Page. 
Where can i find spezial help for this skin ?? I found the Installer Help but not the Manual. First time i think my php Version is not working ....

Thanks for all of you for the Help

Chris
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

steeple ian

unread,
May 24, 2020, 9:28:50 AM5/24/20
to weewx...@googlegroups.com
Chris
The WeeWX error has now gone. What I see in the syslog is normal behaviour for the skin. Now files are copied as they are generated directly to the correct location. However I have spotted one possible problem. Can you run run a debug report and cut and paste into your reply. 


To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/5e4e51b5-f640-41b7-9962-d8204c8cb2d1%40googlegroups.com.

steeple ian

unread,
May 24, 2020, 9:43:49 AM5/24/20
to weewx...@googlegroups.com
Apologies for the typo that should read ‘No files are copied .....’

BEIJY BUA

unread,
May 24, 2020, 9:47:23 AM5/24/20
to weewx-user
Hello

I made a Debug Report and Save this in the File my.debug

Best Regards
Chris


my.debug

steeple ian

unread,
May 24, 2020, 9:59:35 AM5/24/20
to weewx...@googlegroups.com
Chris,
You need to change HTML_ROOT = public_html in the StdReport stanza of weewx.conf to HTML_ROOT = /var/www/html/weewx and the restart WeeWX. Wait for the next are archive cycle to complete.
Ian

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ee776ded-c8cc-4666-9ec4-95158559fc0b%40googlegroups.com.

BEIJY BUA

unread,
May 24, 2020, 10:04:25 AM5/24/20
to weewx-user
Okey Thanks i try it

BEIJY BUA

unread,
May 24, 2020, 10:16:06 AM5/24/20
to weewx-user
Sorry but this copies the same files from my old skin in this folder.

The Standard Copy Progress is ok but the Copy from the Weather34 Skin it dont work.

steeple ian

unread,
May 24, 2020, 10:22:34 AM5/24/20
to weewx...@googlegroups.com
Chris,
Do you have these two files in your weather34 folder:-
w34realtime.txt
archivedata.php

The first one is updated on every loop and the second one on every archive.

Those are the two key files that get updated but they are not copied there, they are saved directly to the weather34 folder. That is why the syslog reports no files copied. 
Ian



To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4d98a297-ef59-4722-a94b-58d885adad01%40googlegroups.com.

steeple ian

unread,
May 24, 2020, 10:40:50 AM5/24/20
to weewx...@googlegroups.com
Chris,

Is your website on a live server so I can see what is happening.

Ian

BEIJY BUA

unread,
May 24, 2020, 11:02:12 AM5/24/20
to weewx-user
Yes the two files are in the Folder, and no its in the Home Network.

The Settingspage looks like Normal, but the index.php opens with Error:500 . Is it possible a php Problem olso ore a chmod Setting Problem ??

BEIJY BUA

unread,
May 24, 2020, 11:06:32 AM5/24/20
to weewx-user
The Archivedata.php is Completly white and in the Other one are Data it Changes every xx Seconds.

steeple ian

unread,
May 24, 2020, 11:19:14 AM5/24/20
to weewx...@googlegroups.com
From the command line run this

grep -R "DocumentRoot" /etc/apache2/sites-enabled

and see what it reports for DocumentRoot

On Sun, 24 May 2020 at 16:06, BEIJY BUA <beij...@gmail.com> wrote:
The Archivedata.php is Completly white and in the Other one are Data it Changes every xx Seconds.

--
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+...@googlegroups.com.

BEIJY BUA

unread,
May 24, 2020, 11:31:31 AM5/24/20
to weewx-user
DocumentRoot /var/www/html

It looks Normal

steeple ian

unread,
May 24, 2020, 11:45:38 AM5/24/20
to weewx...@googlegroups.com
Check that weather34 directory permissions chmod 775 (recursively)
and ownership chown user and group both set to www-data (recursively)

And have you used the trouble shooting guide?

On Sun, 24 May 2020 at 16:31, BEIJY BUA <beij...@gmail.com> wrote:
DocumentRoot /var/www/html

It looks Normal

--
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+...@googlegroups.com.

BEIJY BUA

unread,
May 24, 2020, 1:08:04 PM5/24/20
to weewx-user
The Permission und Ownerships are OK
The Trouble shooting guide i look at this ,but i look one more time on it


Am Sonntag, 24. Mai 2020 17:45:38 UTC+2 schrieb steeple ian:
Check that weather34 directory permissions chmod 775 (recursively)
and ownership chown user and group both set to www-data (recursively)

And have you used the trouble shooting guide?

On Sun, 24 May 2020 at 16:31, BEIJY BUA <beij...@gmail.com> wrote:
DocumentRoot /var/www/html

It looks Normal

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages