Closed jimthedev closed 8 years ago
I'd rather not include a long section in troubleshooting common errors that stem from dependencies. Maybe a reference link would do?
On Debian Jessie (GNU/Linux), I had to install the following to build shots:
Well, it built, it runs, grabs the versions from archive.org (in pages/) but screenshots/ ends up empty and so are the generated .gif and png images.
It takes a while for the screenshots to be taken. Use -v
in the CLI or DEBUG=shots node app
to print diagnostic info
Looking at the code, I'm not sure where the .png images are supposed to come from. Just running waybackpack generates html files, but no html.png files. So maybe my problem is with that dependency. Sorry for all the noise.
@bevacqua I have having the same problem. I never get screenshots. The process exits right away and I get the following when using DEBUG=shots
:
$ DEBUG=shots node shot.js
shots pmkdirp(pages) +0ms
shots pmkdirp(screenshots) +2ms
shots pmkdirp(diffs) +2ms
shots pmkdirp(output) +0ms
shots rglob('resources/shots/pages/*.html') +6ms
shots rglob('resources/shots/pages/*.html') +2ms
shots rglob('resources/shots/screenshots/*.html.png') +0ms
shots shot chunk(sources) and filter, len=0 +1ms
shots shot chunk reducer, len=0 +1ms
shots rglob('resources/shots/screenshots/*.html.png') +0ms
shots sortBySize(sortByDomains(domainSlugs, screenshotFiles)) +1ms
shots diff chunk(comparisions, concurrency), len=0 +0ms
shots diff chunk reducer, len=0 +0ms
shots rglob('resources/shots/screenshots/*.html.png'), ignore=0 +0ms
shots found 0/0 relevant screenshots (0 ignored) +1ms
shots creating 1024x768 spritesheet +0ms
shots creating 1024x768 gif +397ms
shots done. +2ms
What does shot.js
contain? Please create a separate issue.
@bevacqua Good idea. Created #3 to dig more into this.
Cairo is required by canvas. If your *nix build doesn't have it, you should install it.
This adds a troubleshooting section with the error and the solution for OSX.