vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
576 stars 102 forks source link

The application is trying to remove all the tmp folder #90

Open soullivaneuh opened 6 years ago

soullivaneuh commented 6 years ago

After a fresh git clone and npm install, run this command:

./bin/manet --cache=1 --level=debug

And manet will try to wipe all the /tmp directories:

2017-11-24T15:07:08.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-timesyncd.service-TmPviw": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-timesyncd.service-TmPviw'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.ICE-unix": Error: EPERM: operation not permitted, unlink '/tmp/.ICE-unix'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.Test-unix": Error: EPERM: operation not permitted, unlink '/tmp/.Test-unix'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.X0-lock": Error: EPERM: operation not permitted, unlink '/tmp/.X0-lock'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.X11-unix": Error: EPERM: operation not permitted, unlink '/tmp/.X11-unix'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.XIM-unix": Error: EPERM: operation not permitted, unlink '/tmp/.XIM-unix'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.com.google.Chrome.eDpNX2": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.com.google.Chrome.eDpNX2'
2017-11-24T15:07:09.402Z - debug: Can not delete file "/tmp/.com.google.Chrome.sYbvwI": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.com.google.Chrome.sYbvwI'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/.com.google.Chrome.zjCdox": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.com.google.Chrome.zjCdox'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/.font-unix": Error: EPERM: operation not permitted, unlink '/tmp/.font-unix'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/.org.chromium.Chromium.5qnyfN": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.org.chromium.Chromium.5qnyfN'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/.org.chromium.Chromium.bTFsc8": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.org.chromium.Chromium.bTFsc8'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/.org.chromium.Chromium.cRLeNf": Error: EISDIR: illegal operation on a directory, unlink '/tmp/.org.chromium.Chromium.cRLeNf'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/Slack Crashes": Error: EISDIR: illegal operation on a directory, unlink '/tmp/Slack Crashes'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/dumps": Error: EISDIR: illegal operation on a directory, unlink '/tmp/dumps'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/hsperfdata_sullivan": Error: EISDIR: illegal operation on a directory, unlink '/tmp/hsperfdata_sullivan'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/intellij-npm-info": Error: EISDIR: illegal operation on a directory, unlink '/tmp/intellij-npm-info'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/intellij-package-json-version-range-check": Error: EISDIR: illegal operation on a directory, unlink '/tmp/intellij-package-json-version-range-check'
2017-11-24T15:07:09.403Z - debug: Can not delete file "/tmp/npm-10612-c6e9dd71": Error: EISDIR: illegal operation on a directory, unlink '/tmp/npm-10612-c6e9dd71'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/npm-11400-3d098b2a": Error: EISDIR: illegal operation on a directory, unlink '/tmp/npm-11400-3d098b2a'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/ssh-XF4oRVgq9Kwe": Error: EISDIR: illegal operation on a directory, unlink '/tmp/ssh-XF4oRVgq9Kwe'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-apache2.service-AaXUNT": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-apache2.service-AaXUNT'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-colord.service-OWUmK4": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-colord.service-OWUmK4'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-fwupd.service-i06DrK": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-fwupd.service-i06DrK'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-rtkit-daemon.service-P3tq1x": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-rtkit-daemon.service-P3tq1x'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-resolved.service-aj6fSI": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-resolved.service-aj6fSI'
2017-11-24T15:07:09.404Z - debug: Can not delete file "/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-timesyncd.service-TmPviw": Error: EPERM: operation not permitted, unlink '/tmp/systemd-private-24d03a8b61ee4c4bbafa49f7853191e8-systemd-timesyncd.service-TmPviw'

This is quite dangerous and critical. Manet should remove only the concerned files.