Only 3hours.html working

31 views
Skip to first unread message

Karsta

unread,
Jun 19, 2016, 3:40:16 AM6/19/16
to wfrog-users
Ubuntu 14.04.4 LTS
WH1080
wfrog 0.8.2-svn

All other web pages say:

Error response

Error code 500.

Message: Internal Server Error.

Error code explanation: 500 = Server got itself in trouble.


except 3hours.html, which works normally.


This happened after a reboot. 

Log files in /var/log are  3 years old??

Karsta

unread,
Jun 19, 2016, 4:15:18 AM6/19/16
to wfrog-users
wfrog -d output

2016-06-19 11:12:44,981 DEBUG [datasource.accumulator] Creating slice 2016-06-19 09:00:00 - 2016-06-19 10:00:00
2016-06-19 11:12:44,982 DEBUG [datasource.accumulator] Creating slice 2016-06-19 10:00:00 - 2016-06-19 11:00:00
2016-06-19 11:12:44,983 DEBUG [datasource.accumulator] Creating slice 2016-06-19 11:00:00 - 2016-06-19 12:00:00
2016-06-19 11:12:44,984 DEBUG [datasource.accumulator] Update from 2016-06-18 12:00:00  
2016-06-19 11:12:44,984 DEBUG [generic.service] Calling samples on <wfcommon.generic.YamlIncludeElement object at 0xb665176c>
2016-06-19 11:12:44,984 DEBUG [generic.include] Calling samples on <wfcommon.generic.YamlUserChoiceElement object at 0xb663ae2c>
2016-06-19 11:12:44,985 DEBUG [generic.user] Calling samples on <wfcommon.storage.YamlCsvStorage object at 0xb663a16c>
2016-06-19 11:12:44,986 ERROR [renderer.http] line contains NULL byte
Traceback (most recent call last):
 File "/usr/lib/wfrog/wfrender/renderer/http.py", line 188, in do_GET
   [ mime, content ] = root.render(data=data, context=context)
 File "/usr/lib/wfrog/wfcommon/generic/include.py", line 79, in _call
   return self.target.__getattribute__(attr).__call__(*args, **keywords)
 File "/usr/lib/wfrog/wfrender/renderer/template.py", line 67, in render
   content = self.renderer.render(data=data, context=context)
 File "/usr/lib/wfrog/wfrender/renderer/data.py", line 44, in render
   new_data = self.source.execute(data=data, context=context)
 File "/usr/lib/wfrog/wfcommon/generic/service.py", line 59, in _call
   return services[self.name].__getattribute__(attr).__call__(*args, **keywords)
 File "/usr/lib/wfrog/wfcommon/generic/include.py", line 79, in _call
   return self.target.__getattribute__(attr).__call__(*args, **keywords)
 File "/usr/lib/wfrog/wfrender/datasource/accumulator.py", line 289, in execute
   last_timestamp, to_delete = self.update_slices(self.cached_slices, from_time, to_time, context, self.last_timestamp)
 File "/usr/lib/wfrog/wfrender/datasource/accumulator.py", line 226, in update_slices
   for sample in self.storage.samples(update_from_time, to_time, context=context):
 File "/usr/lib/wfrog/wfcommon/storage/csvfile.py", line 97, in samples
   for line in reader:
Error: line contains NULL byte
2016-06-19 11:12:44,987 INFO [renderer.http] 192.168.1.24 - code 500, message Internal Server Error
2016-06-19 11:12:44,987 INFO [renderer.http] 192.168.1.24 - "GET / HTTP/1.1" 500 -
2016-06-19 11:12:46,793 DEBUG [pywws.weather_station] delay 0, pause 2

Jordi Puigsegur Figueras

unread,
Jun 20, 2016, 2:11:14 AM6/20/16
to wfrog...@googlegroups.com
Hi,

It looks like you've got a line with a NULL byte, older than 3 hours. 

Error: line contains NULL byte 

The only way is to find this offending line and remove it. 

Jordi.

--
You received this message because you are subscribed to the Google Groups "wfrog-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wfrog-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karsta

unread,
Jun 20, 2016, 2:51:32 AM6/20/16
to wfrog-users
Thanks Jordi!

I did'nt realize it was about the wfrog.csv because the debug only addressed .py -files by name.

Because of a power outage the wfrog.csv actually had this line:

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@146625
4116,2016-06-18 15:48:36,15.0,99.0,0.1,106.6,0.2,180.0,14.8,0.4,0.0,996.5,^M

Removing that indeed fixed it.

- Karsta
Reply all
Reply to author
Forward
0 new messages