NEWS

Problem iobroker as docker-installation (solved)



  • Hello,

    the problem i have with the docker container of the buanet/iobroker:latest docker image is:

    the container starts, but docker is not accessable.
    If i start the container with NO volume mounted, it works, but if I start it with an empty folder mounted, it does not work properly (see below)

    here is the only error i can see, but i have no clue if this really is the problem:

    /opt/scripts/iobroker_startup.sh: Zeile 49: /usr/bin/iobroker: Keine Berechtigung
    

    first the docker command with NO MOUNT - and following the docker log

    docker run -d --network dockernet --name=iobrokertest -p 8085:8081 -p 8086:8082 --restart=always -e PUID=1000 -e PGID=996 -e TZ=Europe/Berlin buanet/iobroker:latest
    a4951e00b49cba2a8d80c336a4af3f18d53241ab1261abcfa95771be58deffcc
    root@FriedbergServer:~# docker logs -f iobroker
    iobroker      iobrokertest
    root@FriedbergServer:~# docker logs -f iobrokertest
    
    ----------------------------------------
    -----     Image-Version: 3.0.0     -----
    -----      2019-06-25 18:28:50     -----
    ----------------------------------------
    
    Startupscript running...
    
    Installing additional packages...
    The following packages will be installed: nano
    Installing additional packages done...
    
    This is the first run of an new installation...
    Hostname given is a4951e00b49c...
    Renaming ioBroker...
    Instance host changed for "system.adapter.admin.0" from "a284247a5edd" to "a4951e00b49c".
    Instance host changed for "system.adapter.discovery.0" from "a284247a5edd" to "a4951e00b49c".
    Renaming ioBroker done...
    
    Changing permissions upon first run (This might take a while! Please be patient!)...
    Changing permissions done...
    
    Starting ioBroker...
    Starting ioBroker done...
    

    second the docker command with MOUNT - and following the docker log

    docker run -d --network dockernet --name=iobroker -p 1880:1880 -p 1883:1883 -p 1887:1887 -p 8081:8081 -p 8082:8082 --restart=always -e PUID=1000 -e PGID=996 -e TZ=Europe/Berlin -v /sharedfolders/DockerData/ioBroker:/opt/iobroker/ buanet/iobroker:latest
    d7f3866b96e5d72674af26f86dc3cb0e569728e5a9655b71e0468b330b86f80e
    root@FriedbergServer:/sharedfolders/DockerData# docker logs -f iobroker
    
    ----------------------------------------
    -----     Image-Version: 3.0.0     -----
    -----      2019-06-25 18:27:23     -----
    ----------------------------------------
    
    Startupscript running...
    
    Installing additional packages...
    The following packages will be installed: nano
    Installing additional packages done...
    
    Directory /opt/iobroker is empty!
    Restoring data from image...
    Restoring done...
    
    This is the first run of an new installation...
    Hostname given is d7f3866b96e5...
    Renaming ioBroker...
    /opt/scripts/iobroker_startup.sh: Zeile 49: /usr/bin/iobroker: Keine Berechtigung
    Renaming ioBroker done...
    
    Changing permissions upon first run (This might take a while! Please be patient!)...
    Changing permissions done...
    
    Starting ioBroker...
    Starting ioBroker done...
    
    

    here I show you the mounted directory with permissions

    /sharedfolders# ls -ll
    total 8
    drwx--s--x+ 14 dom users 4096 Jun 25 15:32 DockerData
    

    and

    /sharedfolders/DockerData# ls -ll
    total 96
    drwxrwsr-x+ 11 dom  docker 4096 Jun 10 14:36 LetsEncrypt
    drwxrwsr-x+  4 root root   4096 Jun 22 23:06 MariaDB
    drwxr-xr-x+  3 root root   4096 Jun 25 18:21 Quassel
    drwxrwxr-x+  7 dom  docker 4096 Jun 25 00:10 ioBroker
    

    here are the running procceses (top) in the container with NO-MOUNT

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
    274 iobroker  20   0 1239372  96924  23096 S   0,3  1,2   0:06.46 iobroker.js-con
    290 iobroker  20   0 1096988  92844  22888 S   0,3  1,2   0:07.64 io.admin.0
    304 iobroker  20   0  985476  39032  22784 S   0,3  0,5   0:01.81 io.discovery.0
      1 root      20   0   21176   3284   2988 S   0,0  0,0   0:00.07 iobroker_startu
    272 root      20   0   52716   3696   3276 S   0,0  0,0   0:00.00 sudo
    273 root      20   0    7404    784    724 S   0,0  0,0   0:00.00 tail
    332 root      20   0   21404   3668   3232 S   0,0  0,0   0:00.05 bash
    337 root      20   0   44220   3680   3196 R   0,0  0,0   0:00.01 top
    

    and with MOUNT

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
      1 root      20   0   21176   3468   3176 S   0,0  0,0   0:00.08 iobroker_startu
    308 root      20   0   52716   3696   3288 S   0,0  0,0   0:00.00 sudo
    309 root      20   0    7404    688    628 S   0,0  0,0   0:00.00 tail
    310 iobroker  20   0  924456  45660  22728 S   0,0  0,6   0:00.56 iobroker.js-con
    326 root      20   0   21404   3652   3220 S   0,0  0,0   0:00.05 bash
    331 root      20   0   44220   3668   3180 R   0,0  0,0   0:00.01 top
    


  • Problem solved ...
    after hunting down the error even further (script wasn't executed ...) i found the error beeing at my mounted folder.

    but it wasn't really the permission on the folder but the drive this folder was on has been mounted as "noexec" (fstab).



  • @Surfer2010 said in Problem iobroker as docker-installation (solved):

    wasn't really the permission on the folder but the drive this folder was on has been mounted as "noexec" (fstab).

    Can you please elaborate on the change aol mail password solution, please. It would be great for us beginners.


Log in to reply
 

Suggested Topics

1.6k
Online

32.0k
Users

38.7k
Topics

525.2k
Posts