heikkipora / sataako-fi

Sataako.fi weather service
https://sataako.fi
MIT License
23 stars 8 forks source link

Failure creating cache directory after OS boot #35

Closed heikkipora closed 3 years ago

heikkipora commented 3 years ago

Cache directory cannot be recreated (no permissions to /var/run for mkdir) after OS boot (and failed promise is not handled)

Mar 29 09:01:33 sataako-fi node[1614]: (node:1614) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/var/run/sataako'
Mar 29 09:01:33 sataako-fi node[1614]: (node:1614) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
Mar 29 09:01:33 sataako-fi node[1614]: (node:1614) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
heikkipora commented 3 years ago

fixed