TheAppgineer / roon-extension-manager

Roon Extension for managing Roon Extensions
https://github.com/TheAppgineer/roon-extension-manager/wiki#roon-extension-manager
Apache License 2.0
84 stars 10 forks source link

Problem running rem in Docker using Macvlan #22

Open corykim opened 9 months ago

corykim commented 9 months ago

Hi there, and thanks for such a great project. I'm running rem in docker using Macvlan networking. Here are the relevant parts of my docker-compose:

  rem:
    extends:
      file: includes/roon-extension-manager.yml
      service: rem
    networks:
      vlan:
        ipv4_address: 10.0.3.23
  roon:
    extends:
      file: includes/roon.yml
      service: roon
    networks:
      vlan:
        ipv4_address: 10.0.3.20

and the include file:

version: "3.9"
services:
  rem:
    image: theappgineer/roon-extension-manager:v1.x-standalone
    container_name: rem
    group_add:
      - 998
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /srv/app-data/roon-extension-manager:/home/node/.rem/
    environment:
      TZ: ${time_zone}

There are two problems with my install:

  1. When I go to REM within Roon, I see an error message: "Extension Manager should run in Docker!"
  2. When I try to install an extension, it doesn't install. I see the following error in the docker log:
    
    Inf: Installing: BT Entrypoint...
    -> CONTINUE 1 Changed {"message":"Installing: BT Entrypoint...","is_error":false}
    -> CONTINUE 1 Changed {"message":"Installing: BT Entrypoint...","is_error":false}
    -> CONTINUE 1 Changed {"message":"Installing: BT Entrypoint...","is_error":false}
    /home/node/docker-lib.js:149
            log_config = info.HostConfig.LogConfig;
                              ^

TypeError: Cannot read property 'HostConfig' of null at Object.callback (/home/node/docker-lib.js:149:31) at /home/node/node_modules/dockerode/lib/container.js:74:12 at /home/node/node_modules/docker-modem/lib/modem.js:332:7 at getCause (/home/node/node_modules/docker-modem/lib/modem.js:354:7) at Modem.buildPayload (/home/node/node_modules/docker-modem/lib/modem.js:323:5) at IncomingMessage. (/home/node/node_modules/docker-modem/lib/modem.js:295:14) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1241:12) at processTicksAndRejections (internal/process/task_queues.js:84:21)



Can someone help me resolve this?
corykim commented 9 months ago

Also, in case this helps, here is the log from when I start rem:

Err: Extension Manager should run in Docker!
-> REQUEST 0 com.roonlabs.registry:1/info
-> REQUEST 0 com.roonlabs.registry:1/info
<- COMPLETE 0 Success {"core_id":"a22a9c7d-895a-4f3f-ae52-d296a70a5f1d","display_name":"Calliope","display_version":"2.0 (build 1311) production"}
-> REQUEST 1 com.roonlabs.registry:1/register {"extension_id":"com.theappgineer.extension-manager.c982e1f3d080","display_name":"Roon Extension Manager @c982e1f3d080","display_version":"1.1.2","publisher":"The Appgineer","email":"theappgineer@gmail.com","required_services":[],"optional_services":[],"provided_services":["com.roonlabs.settings:1","com.roonlabs.status:1","com.roonlabs.ping:1"],"website":"http://10.0.3.23:2507/extension-logs.tar.gz"}
<- COMPLETE 0 Success {"core_id":"bdb5123c-2f6c-4c50-9a2f-8d29dd3bc276","display_name":"OLYMPUS","display_version":"2.0 (build 1311) production"}
-> REQUEST 1 com.roonlabs.registry:1/register {"extension_id":"com.theappgineer.extension-manager.c982e1f3d080","display_name":"Roon Extension Manager @c982e1f3d080","display_version":"1.1.2","publisher":"The Appgineer","email":"theappgineer@gmail.com","required_services":[],"optional_services":[],"provided_services":["com.roonlabs.settings:1","com.roonlabs.status:1","com.roonlabs.ping:1"],"website":"http://10.0.3.23:2507/extension-logs.tar.gz"}
<- CONTINUE 1 Registered {"core_id":"a22a9c7d-895a-4f3f-ae52-d296a70a5f1d","display_name":"Calliope","display_version":"2.0 (build 1311) production","token":"d20c2546-77af-41f8-ae38-055353058349","provided_services":[],"http_port":9330,"extension_host":"10.0.3.23"}
Core found: Calliope
Ping timer set
<- REQUEST 1 com.roonlabs.status:1/subscribe_status {"subscription_key":"4"}
-> CONTINUE 1 Subscribed {"message":"Extension Manager should run in Docker!","is_error":true}
<- CONTINUE 1 Registered {"core_id":"bdb5123c-2f6c-4c50-9a2f-8d29dd3bc276","display_name":"OLYMPUS","display_version":"2.0 (build 1311) production","token":"7f52c0af-0ad4-40d6-a17d-1d231b3ce759","provided_services":[],"http_port":9300,"extension_host":"10.0.3.23"}
Core found: OLYMPUS
<- REQUEST 1 com.roonlabs.status:1/subscribe_status {"subscription_key":"11"}
-> CONTINUE 1 Subscribed {"message":"Extension Manager should run in Docker!","is_error":true}
-> REQUEST 0 com.roonlabs.registry:1/info
<- COMPLETE 0 Success {"core_id":"e755bff2-645a-4491-a357-897a16846805","display_name":"AMARQYPQ72P91","display_version":"2.0 (build 1311) production"}
-> REQUEST 1 com.roonlabs.registry:1/register {"extension_id":"com.theappgineer.extension-manager.c982e1f3d080","display_name":"Roon Extension Manager @c982e1f3d080","display_version":"1.1.2","publisher":"The Appgineer","email":"theappgineer@gmail.com","required_services":[],"optional_services":[],"provided_services":["com.roonlabs.settings:1","com.roonlabs.status:1","com.roonlabs.ping:1"],"website":"http://10.0.3.23:2507/extension-logs.tar.gz"}
<- CONTINUE 1 Registered {"core_id":"e755bff2-645a-4491-a357-897a16846805","display_name":"AMARQYPQ72P91","display_version":"2.0 (build 1311) production","token":"cf8a9d89-0bb3-492f-a33e-51a49fbcc747","provided_services":[],"http_port":9300,"extension_host":"10.0.3.23"}
Core found: AMARQYPQ72P91
<- REQUEST 1 com.roonlabs.status:1/subscribe_status {"subscription_key":"3"}
-> CONTINUE 1 Subscribed {"message":"Extension Manager should run in Docker!","is_error":true}