ElectricBrainUK / UnraidAPI

A WIP open source Node JS API for controlling UNraid
GNU General Public License v3.0
125 stars 13 forks source link

Issue with docker running on UNRaid #26

Open adznon opened 3 years ago

adznon commented 3 years ago

Hi,

I have an issue where the unraid docker starts, runs for a while and the just crashes out with the following.

Below are the logs

Connected to mqtt broker

READY Server listening on http://0.0.0.0:80

Get Docker Details for ip: https://10.2.10.248 Failed

Cannot read property 'forEach' of undefined /app/mqtt/index.js:547 let docker = server.docker.details.containers[dockerId]; ^

TypeError: Cannot read property 'containers' of undefined at ModuleContainer.getDockerDetails (/app/mqtt/index.js:547:38) at listOnTimeout (internal/timers.js:551:17) at processTimers (internal/timers.js:492:7) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! unraidapi@0.5.0 start: cross-env NUXT_HOST=0.0.0.0 NODE_ENV=production node server/index.js npm ERR! Exit status 1

npm ERR! Failed at the unraidapi@0.5.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-11-04T09_04_05_039Z-debug.log

unraidapi@0.5.0 start /app cross-env NUXT_HOST=0.0.0.0 NODE_ENV=production node server/index.js

DanielPiccoli commented 3 years ago

I have exactly the same issue - also posted on https://forums.unraid.net/topic/86354-support-electric-brain-unraid-api/page/8/ closing it there may also close it in here.