FAQ

Docker

Petio Crashes On Container Startup

Error Example #1

1
| (node:8) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND api.themoviedb.org
2
| at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
3
| (node:8) 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: 3)
4
| (node:8) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'results' of undefined
5
| at trending (/app/api/tmdb/trending.js:28:30)
6
| at processTicksAndRejections (internal/process/task_queues.js:93:5)
7
| (node:8) 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: 4)
8
| 2021-03-28 20:42:28 error: TypeError: Cannot set property 'timestamp' of null
9
petio exited with code 1
Copied!
  • Normally this is caused by the container trying to resolve an IPv6 address for api.temoviedb.org. To verify if this is the issue:
    • docker exec -it petio sh
      • nslookup api.themoviedb.org
  • To fix this issue, go back to when you first configured Docker and remember if you made some custom changes. This is not a Petio issue but rather an issue on your configuration.

Linux

MacOS

unRAID

Windows

Last modified 9mo ago