Hi,
I'm having a couple of issues with nikola's cache. I suspect there's something weird in my particular configuration, but I can't find what it is. Whenever I build the site from scratch, either after running "nikola clean" and "nikola forget", or after deleting the doit database and the cache/ and output/ folders, I get the following error:
[...]
. render_tags:output/assets/js/tag_cloud_data.json
. render_posts:cache/posts/rearrancando.html
. render_posts:cache/pages/home.html
Traceback (most recent call last):
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/doit_cmd.py", line 121, in run
return command.parse_execute(args)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/cmd_base.py", line 84, in parse_execute
return self.execute(params, args)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/cmd_base.py", line 278, in execute
return self._execute(**exec_params)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/cmd_run.py", line 215, in _execute
return runner.run_all(self.control.task_dispatcher())
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/runner.py", line 237, in run_all
self.run_tasks(task_dispatcher)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/runner.py", line 204, in run_tasks
self.process_task_result(node, catched_excp)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/runner.py", line 175, in process_task_result
self.dep_manager.save_success(task)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/site-packages/doit/dependency.py", line 413, in save_success
timestamp = os.path.getmtime(dep)
File "/home/mariano/.virtualenvs/nikola/lib/python3.4/genericpath.py", line 55, in getmtime
return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: 'cache/wordpress-migrated/de-tastil-a-leon.html'
The file (in this particular example "de-tastil-a-leon") is semi-random. It's always the first file doit picks from the wordpress-migrated folder, which is a folder I'm using for the posts I migrated from WordPress, and it's at the same level of posts and pages.
Anyway, if I run "nikola build" again immeditately after the error, it builds ok. The error appears only on the first run (after a clean start).
I get exactly the same behavior (i.e., the same error) both on my laptop and on the VPS.
The second issue is that Nikola always seems to be rebuilding more than it's necessary. I seems to rebuild almost the whole site as far as HTML rendering is concerned, even if I make two consecutive builds without touching anything. It is not exactly a problem (I can live with that, it's just a few more seconds), but it's weird and I think that's not the way it's supposed to work, right?
Any ideas?
Here's the code:
https://github.com/chaghi/elblogdechaghiAnd these are the details of the virtualenv I'm using:
blinker (1.3)
certifi (14.5.14)
docutils (0.12)
doit (0.27.0)
ghp-import (0.4.1)
ipython (3.1.0)
Jinja2 (2.7.3)
jsonschema (2.4.0)
livereload (2.3.2)
Logbook (0.9.0)
lxml (3.4.3)
Mako (1.0.1)
Markdown (2.6.2)
MarkupSafe (0.23)
micawber (0.3.2)
mistune (0.5.1)
natsort (3.5.6)
Nikola (7.3.1.1)
phpserialize (1.3)
Pillow (2.8.1)
pip (6.1.1)
ptyprocess (0.4)
pygal (1.7.0)
Pygments (2.0.2)
pyinotify (0.9.5)
Pyphen (0.9.1)
PyRSS2Gen (1.1)
python-dateutil (2.4.2)
pyzmq (14.6.0)
requests (2.6.2)
setuptools (15.1)
six (1.9.0)
smartypants (1.8.6)
terminado (0.5)
tornado (4.1)
typogrify (2.0.7)
Unidecode (0.4.17)
webassets (0.10.1)
Yapsy (1.11.23)
Thank you!