getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.6k stars 445 forks source link

UnicodeDecodeError #1338

Closed humitos closed 10 years ago

humitos commented 10 years ago

Hi, I'm not sure how to report this bug or what useful information provide here. Please, let me know if there is something missing.

The thing is today, after writing a new simple post and ran "nikola build" I got an UnicodeDecodeError and I tried to figure out how to solve it but I couldn't.

The issue is in the line 16 of /home/humitos/.virtualenvs/blog/lib/python2.7/encodings/utf_8.py where input arg is:

{"/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper.tmpl": [1401925852.503968, 2565, "47024a7022a69b35dcc3d632fa20904a"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_isso.tmpl": [1401925852.503968, 612, "1fb6f51bf6cf9b49f7df102289981718"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/index_helper.tmpl": [1401925852.503968, 828, "6e7958175cef185281b473144993ebfd"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_muut.tmpl": [1401925852.503968, 351, "7e3c7cf1da44f6de1b69de8352b7fc27"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/bootstrap/templates/base.tmpl": [1401925852.507968, 2763, "f345e66259c8ddce054e9d1791907195"], "deps:": ["/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_isso.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/index_helper.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_muut.tmpl", "cache/posts/wordpress/migrated/el-abuelo.html", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/bootstrap/templates/base.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_facebook.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/bootstrap/templates/base_helper.tmpl", "themes/elblogdehumitos/templates/index.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_disqus.tmpl", "cache/posts/wordpress/migrated/auto-dominacion-involuntaria.html", "cache/posts/wordpress/migrated/peregrinacion-al-arbol-caido.html", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_livefyre.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_intensedebate.tmpl", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/annotation_helper.tmpl", "cache/posts/wordpress/migrated/casi-de-casualidad.html", "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_googleplus.tmpl"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_facebook.tmpl": [1401925852.503968, 1735, "2546eca23b67665d26f8f573e7899400"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/bootstrap/templates/base_helper.tmpl": [1401925852.507968, 5535, "c6335585050312587173c3ce762ae75d"], "themes/elblogdehumitos/templates/index.tmpl": [1403037587.5167513, 1269, "a885c4c227b1dcf910921c4e81e57e0b"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_disqus.tmpl": [1401925852.503968, 1705, "5841b703d5fcc5be5a751fe99bc3478e"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_livefyre.tmpl": [1401925852.503968, 959, "b61b576c64aa17dbcb6ed7e22649131d"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/annotation_helper.tmpl": [1401925852.499968, 519, "2754d6b4cfa3cc5f0ffa815c264314c9"], "cache/posts/wordpress/migrated/peregrinacion-al-arbol-caido.html": [1403038225.624775, 7405, "765534ae425a31eb8f7181453a72dc16"], "_values_:": {"_config_changed": "8bb55635c489f52213631c234fa29c18"}, "cache/posts/wordpress/migrated/auto-dominacion-involuntaria.html": [1403038225.644775, 404, "031853620fb8053e2623f344cb319930"], "/home/humitos/.virtualenvs/blog/src/nikola/nikola/data/themes/base/templates/comments_helper_intensedebate.tmpl": [1401925852.503968, 851, "e8b8ac811bcfa79a84d02f229dd83968"], "cache/posts/wordpress/migrated/el-abuelo.html": [1403038225.6367748, 532, "7cc5ba824cdbd74be6937ce99fe25244"], "cache/posts/wordpress/migrated/casi-de-casualidad.html": [1403038225.5927749, 3199, "97123a39b715bd0fde163p�>���-236.5087752, 573, "fdacd00f17544392c5fac9e98f7cbb03"], "cache/posts/wordpress/migrated/la-regla-de-la-vida.html": [1403038236.0967753, 614, "43829e77eed277b6a9579

and:

(Pdb) print input[4065:4075]
de163p�>�
(Pdb)

I didn't do anything weird this time :S . I'm using nikola from master but I tried this with Nikola 7.0.1 and I got the same error. My blog is hosted at http://github.com/humitos/blog just in case.

Another weird behavior is that running nikola forget -s consumes all the CPU resources and it never returns the shell.

Is there anything else that I can provide?

Thanks,

humitos commented 10 years ago

I have no idea what was going wrong but I remove the doit db by running: rm .doit.db and rebuild the site. It worked properly :S

Kwpolska commented 10 years ago

That’s actually the issue: somehow your DB got corrupted, and had bytes that were invalid UTF-8.

humitos commented 10 years ago

Yeap, that was what I understood after the "rm" but then, I couldn't trace the error :( hehe

Kwpolska commented 10 years ago

The error should be listed somewhere around here, probably.