• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. jkandasa
    3. Posts
    Offline
    • Profile
    • Following 2
    • Followers 11
    • Topics 40
    • Posts 1,221
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Trouble migrating from executable to docker image.

      Are the mycontroller.yaml setting the same for the binary and the docker container?

      Yes, same file/schema used on binary as well as for container.

      @rayven you have to point to your influx db location, docker container always runs on it's own network space, if you specified http://localhost:8086, it tries inside container. Put your host ip address on it. also enable the metric database.

      • installation with docker container: https://mycontroller.org/docs/installation/quick-installation/docker-container/
      • install influx database: https://mycontroller.org/docs/getting-started/install-influxdb/
      • backend configurations: https://mycontroller.org/docs/installation/advanced-installation/backend-configuration/
      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: JavaScript evaluation question.

      @rayven for now, there is no documentation on it. I will prepare an example for you

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Trouble migrating from executable to docker image.

      @rayven yes, it is possible via backup restore, can share your docker command to run the MyController?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Request failed with status code 401

      Hi @wint0178, when you logged in to the server, if you see this error, it was happened before login.
      If it comes only one time and all other functions are working as expected, please ignore this error.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Request failed with status code 401

      @wint0178 can you access the server on the localhost or in LAN?
      Are you seeing the error on UI? Can you share the screen shot?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Trouble with MC v2 install on RPi 4

      Thanks @wint0178 !!
      I will go through the installation documentation and sync with your update.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Trouble with MC v2 install on RPi 4

      @wint0178 Thanks for the details
      I see you have an trailing space after \ ("--env TZ="Asia/Kolkata" \ "), that leads restart command not found
      I have updated your timezone and removed the extra space, can you please try the following command to start the MyController server?

      go to your mycontroller directory(root of mc_home and location of mycontroller.yaml) and run the following command

      docker run  --detach --name mycontroller \
        --network mycontroller \
        --publish 8080:8080 \
        --publish 8443:8443 \
        --publish 9443:9443 \
        --volume $PWD/mc_home:/mc_home \
        --volume $PWD/mycontroller.yaml:/app/mycontroller.yaml \
        --env TZ="America/Chicago" \
        --restart unless-stopped \
        docker.io/mycontroller/server:2.0.0
      

      If it doesn't comes up please run the following command, I just removed the --detach(don't run on background) and added --rm (remove the container on termination)

      docker run  --rm --name mycontroller \
        --network mycontroller \
        --publish 8080:8080 \
        --publish 8443:8443 \
        --publish 9443:9443 \
        --volume $PWD/mc_home:/mc_home \
        --volume $PWD/mycontroller.yaml:/app/mycontroller.yaml \
        --env TZ="America/Chicago" \
        --restart unless-stopped \
        docker.io/mycontroller/server:2.0.0
      

      I assume if I uninstall docker to try and update it using the code you include in the documentation, as you suggested, that I will also need to reinstall influxdb, natsio, and mqtt. Is that correct?

      Yes, In the docker just removes the containers and creates from fresh.

      I was just messing with your install from executable binary instructions and I got the MC server running and can pull it up at localhost:8080. When I run docker ps -a I am still getting the same three services running: mqtt, influxdb, and natsio. Is this correct?

      executable is different than the docker. It will not be come under docker ps command.
      It executes directly on the host system.
      I would recommend to use docker version of mycontroller, for the portability and maintainability

      the running server on localhost has a warning that the Metrics database is disabled. I assume this has to do with installing MC from the binary, but it feels like progress anyway.

      This is because, executable which is running on outside of docker network and can not resolve the hostname used inside docker. If you replace hostname of mc_natsio, mc_influxdb to localhost on your mycontroller.yaml [1] should work. However, I would recommend to try the docker version of mycontroller.

      [1] - If you apply this change, it will not work on docker version of mycontroller

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Trouble with MC v2 install on RPi 4

      @wint0178 What is the log do you see on the mycontroller container?

      docker logs mycontroller
      

      and what is the output of,

      docker ps -a
      

      This is where I get hung up, but I'm not sure if I have settings above here incorrect or if there is something wrong with the following install/run commands.

      Can you please elaborate? Does the terminal hung to return?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Setting up MQTT

      @wint0178 on the other post, I see you were able to see the nodes. Still do you see this issue?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Setting up MQTT

      @wint0178 Are you using MySensors library?
      Your MQTT broker should be accessible to all of your hardware gateway nodes and MyController server. MyController server is acting as MQTT client, just like another MQTT device in your network.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: SSD filled overnight

      @wint0178 You can use letsencrypt certification setup with https_acme to your DDNS setup, https://v2.mycontroller.org/docs/installation/advanced-installation/backend-configuration/

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Moving Server to another location

      @jkandasa I have fixed this. available in the docker container(2.1.0-devel). yet to update in executable.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: SSD filled overnight

      @wint0178 I have not experienced this kind of issue. check the filesystem. you can find the root cause. Please let us know your findings. You can check this after your family road trip 🙂

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Gateway setup for MCv2 using MySensors

      @wint0178 No, keep default labels. as @JeeLet mentioned can you check any other service is consuming the serial port? Do you see any error on the gateway?

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Moving Server to another location

      @JeeLet @wint0178 Yes, this known issue. but it will not impact the functionality. I will fix this soon.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Remote access to MCv2 Dashboard

      @wint0178 we have many options, one of them is, port forward required services as you mentioned in your router. you need separate entry for each service(MyController, MQTT broker, etc.,)

      Some use reverse proxy. do one a port forward to your reverse proxy via 443 and 80, then do all other changes in your reverse proxy. Someof the famous reverse proxy servers are caddyserver, traefik, nginx, etc.,

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Moving Server to another location

      @wint0178 said in Moving Server to another location:

      As for the dashboard, there is nothing there. In v1.5 there was a clock and location, but not in v2.0. Is here a way to add those back?

      No, for now in V2 we do not have clock and location.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Gateway setup for MCv2 using MySensors

      @wint0178 what is the labels do you use in mycontroller.yaml under gateway? you have to use that label in your gateway settings label section.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Moving Server to another location

      @wint0178

      Once I started MC on my Pi the dashboard comes up, but I get the following message (or error) in the upper right corner:

      Request failed with status code 401
      URL: /api/datarepository

      Do you have anything in the dashboard referring data repository and it is not there in data repository?

      Message: {"success":false,"message":"401 Unauthorized","data":null}

      I think you existing login session and restarted the MyContorller, so leads this error and redirect to login page. but after login still it shows the previous error. I will try to remove that.

      posted in General Discussion
      jkandasaJ
      jkandasa
    • RE: Moving Server to another location

      @wint0178 I would recommend to use docker network
      create a docker network in your rpi,

      docker network create mycontroller
      

      and include the --network=mycontroller in all of your services, like mycontroller, influxdb, natsio, mqtt server, etc.,
      and use name of the service in the place of IPs in mycontroller.yaml

      Few sample:

      docker run --detach --name mc_natsio \
          --network mycontroller \
          --publish 4222:4222 \
          --env TZ="Asia/Kolkata" \
          --restart unless-stopped \
          nats:2.2.2-alpine
      
      docker run --detach --name mycontroller \
        --network mycontroller \
        --publish 8080:8080 \
        --publish 8443:8443 \
        --publish 9443:9443 \
        --volume $PWD/mc_home:/mc_home \
        --volume $PWD/mycontroller.yaml:/app/mycontroller.yaml \
        --env TZ="Asia/Kolkata" \
        --restart unless-stopped \
        docker.io/mycontroller/server:2.0.0
      
      ...omitted...
      bus:
        ...omitted...
        server_url: nats://mc_natsio:4222
      
        metric:
          ...omitted...
          uri: http://influxdb:8086
      
      posted in General Discussion
      jkandasaJ
      jkandasa