(2010-09-24) Bluehost Hiccup Kills Moin
Blue Host outage, now my RecentChanges and WikiLog view for my public WikiLog fails with error msg execution failed [decimal] (see also the log)
(though RecentChanges is fine for my other MoinMoin spaces on same server).
Check MoinMoin log
-
error comes in
/MoinMoin/logfile/editlog.parser()
that parses the edit log file:result.ed_time_usecs = long(result.ed_time_usecs or '0')
- the error message isUnicode Encode Error: 'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string
-
log at edit-log - don't see anything obviously wrong.
-
insert logging line in parser() to show
line
then hit RecentChanges - last line logged is1278700959000000 00000001 SAVENEW DVR 76.245.240.183 76-245-240-183.lightspeed.cicril.sbcglobal.net
-
this is very weird because if I
head editlog
the first line has timestamp 1278711272000000 - which is later than the timestamp logged by the parser! -
I had rolled over the edit-log after doing the mass-creation of the space so that RecentChanges wouldn't have all those thousands of entries. So there's an
edit-log_20100709
that was the rolled over file - and that file includes the line that's getting logged! -
(added more logging lines in parser())
-
now it seems like
line
is null or something - so getting decimal failure, but I think it's for a different reason.- and just happened to try editing page Fo Cus (it let me view it fine) - and that generated a 500 error! {{{ File "/home/teamflux/moin-1.9.2/MoinMoin/Page Editor.py", line 848, in _save_draft cache_data = cache.content() File "/home/teamflux/moin-1.9.2/MoinMoin/caching.py", line 285, in content raise [Cache Error] Cache Error: 'utf8' codec can't decode byte 0x80 in position 4067: unexpected code byte }}}
-
editing (like RecentChanges) still works in other spaces
-
add logging line to see edit-log filename - shows correct path/filename. So remove that line.
-
seems like this error comes right after reading another line which gets handled fine. Find that line's position in edit-log, and everything around it looks normal
-
could this be a line-ending issue?
-
hmm, even though logging makes
line
look empty, logginglen(line)
gives 154 (in 1field
) -
let's try to route around this case
- if
len(fields) <=1
thenreturn None
(instead ofresult
)
- if
-
RecentChanges now works!
-
but saving an Edit still dies
-
check code, see that it's the cache/wiki data - go into that
data/cache/wiki/drafts/
subdirectory, find a single file, delete it. Now can edit! -
except having saved a couple pages, I now hit RecentChanges, and get the same old error again!
-
seems like issue comes in line for editing Fo Cus, which was 1 of 3 pages I just did. But logging seems to be splitting fields fine
-
duh, friend found documentation <http://moinmo.in/MoinMoinBugs/Unicode Encode Error%20u'/x00'>
-
I opened edit-log in vi again, found those crazy characters, removed them. Now RecentChanges all good again!
- friend recommends running edit-log file through
strings
command as simpler future cleanup.
- friend recommends running edit-log file through
Edited: | Tweet this! | Search Twitter for discussion
No Space passed/matched! - http://www.wikiflux.net/wiki/2016-03-08-CaulfieldTrumpUniversitysOnlineMaterialsAreALotBetterThanYourUniversitysOnlineMaterials... Click here for WikiGraphBrowser
No Space passed/matched! - http://www.wikiflux.net/wiki/2016-03-08-CaulfieldTrumpUniversitysOnlineMaterialsAreALotBetterThanYourUniversitysOnlineMaterials