Zero-byte files
mbriney opened this issue · 4 comments
We've started to encounter an issue where sitemap-generator-cli seems to be generating zero byte files. It looks like it runs normally although we do see a new addition "(node:51902)" at the beginning of running the app.
It crawls all of the links and establishes the sitemap file but it has nothing in it.
We've tried uninstalling sitemap-generator-cli and reinstalling but it keeps on giving the same results.
Interesting. What kind of operating system are you using? This module creates a temporary file, specific to the operating system and copies it over when the crawler is done. Probably there is a write issue or something like this.
Could you please also post your executed command?
Same issue:
sitemap-generator https://web-standards.ru
generating empty sitemap.xml
file. Mac OS 10.13.6 (17G65) (Case sensitive filesystem),
npm: '6.4.1',
ares: '1.14.0',
cldr: '33.1',
http_parser: '2.8.0',
icu: '62.1',
modules: '64',
napi: '3',
nghttp2: '1.32.0',
node: '10.9.0',
openssl: '1.1.0i',
tz: '2018e',
unicode: '11.0',
uv: '1.22.0',
v8: '6.8.275.24-node.14',
zlib: '1.2.11'
Verbose mode output looks right though:
[ ADD ] https://web-standards.ru/
[ ADD ] https://web-standards.ru/articles/path-of-tutor/
[ ADD ] https://web-standards.ru/articles/web-font-loading-patterns/
[ ADD ] https://web-standards.ru/articles/stop-breaking-the-web/
[ ADD ] https://web-standards.ru/articles/check-it-before-you-wreck-it/
[ ADD ] https://web-standards.ru/category/articles/
[ ADD ] https://web-standards.ru/category/news/
[ ADD ] https://web-standards.ru/category/news/feed/
...
(Full output is here: https://gist.github.com/alexbaumgertner/ad550763335c1978535e11b0f14d8bea)
Hello , facing same issue on my CI part for my one of my app. I was using sitemap-generator-cli@7.2.0 since a year now without any issue inside docker image with node 8. I just switch to a new docker base image with node 10 on my CI and suddenly sitemap-generator-cli generate empty file . So clearly link to Node Version . It seems that on local part with 7.5.0 and Node 12.13 it working . Just waiting for my CI job to run with node 10 and version 7.5.0 and will tell u if it fix ;)
It confirm on my CI job , Node 10 with sitemap-generator-cli 7.5.0 work !