Hypfer / ICantBelieveItsNotValetudo

A Valetudo companion service which renders maps to pngs
Apache License 2.0
129 stars 80 forks source link

Help needed with portainer on Hass.io #25

Closed The-May closed 3 years ago

The-May commented 4 years ago

Hi,

I tried running a docker container with portainer inside Home Assistant (Hass.io). Unfortunately I cannot get it running because I cannot implement my customized config.json at all. I'm a very beginner though and despite the official docs how to do this are pretty confusing and/or do not help me at all unfortunately. I would really appreciate a (maybe step by step?) help so I could contribute a further detailed instruction for the beginners that struggled like me. Thanks in advance.

randy993 commented 4 years ago

Sounds familiar... The installation in HA by using Portainer is slightly different than a regular docker install.

In short;

Let me know if this helped. Maybe it's good to add the HomeAssistant path to installation notes as its slightly different than just /share/...

The-May commented 4 years ago

Hey randy993,

thanks for the help. Unfortunately I coult not get it running.

I am goint to sum up what I did:

  1. Created Volume with a name: 1

The Volume has following details:

2 0 1

  1. Then I Created the Container with the parameters that I could figure out: 2

An SMB directory gets created automatically in the \share folder of my Home assistant Directory:

2 1

  1. I am adding my Credentials to the config.json file and I add them in this newly created folder

  2. I check the logs and I get following error:

> i-cant-believe-its-not-valetudo@0.2.0 start /app,
> node app.js,
Loading configuration file: /app/config.json,
Invalid configuration file!,
{ Error: EISDIR: illegal operation on a directory, read,
    at Object.fs.readSync (fs.js:675:18),
    at tryReadSync (fs.js:540:20),
    at Object.fs.readFileSync (fs.js:583:19),
    at new Configuration (/app/lib/Configuration.js:45:72),
    at Object.<anonymous> (/app/app.js:6:14),
    at Module._compile (module.js:653:30),
    at Object.Module._extensions..js (module.js:664:10),
    at Module.load (module.js:566:32),
    at tryModuleLoad (module.js:506:12),
    at Function.Module._load (module.js:498:3) errno: -21, code: 'EISDIR', syscall: 'read' },
npm ERR! code ELIFECYCLE,
npm ERR! errno 1,
npm ERR! i-cant-believe-its-not-valetudo@0.2.0 start: `node app.js`,
npm ERR! Exit status 1,

I guess the config.json file is somehow wrongly mapped but I cannot figure out what is wrong. Do you maybe know what the Issue might be?

Here is another Picture of my Host (which could also help) 3

Thanks in advance