also please take the latest MyController version. yet to be released, but it has lot of changes
https://github.com/mycontroller-org/server/releases/tag/development
administrators
Posts
-
RE: error on getting ping status
-
RE: error on getting ping status
@janjanson Please update the influxdb to
1.8.x
version. Some of the query features may not be available in1.6.x
as a result MyController tries with influxdb v2 version client.Add the
query_client_version: v1
in influxdb config onmycontroller.yaml
, that should force to use v1 influxdb client in MyController.database: ... metric: disabled: false type: influxdb ... query_client_version: v1
It may work on influxdb
1.6.x
, still if you see the error, you have to upgrade your influxdb to1.8.x
or2.x
-
RE: error on getting ping status
@janjanson welcome to MyController forum. the forum responsive for Markdown language.
Looks like you have entered a wrong port number on the
mycontroller.yaml
file for the influx db. You are running influxdb on8086
but on the configuration file it is set to8080
you should have something like this
database: metric: disabled: false type: influxdb uri: http://127.0.0.1:8086 # must be updated with your host ip address
BTW, MyController supports InfluxDB
1.8.x or above
. MtyController have not tested with influx db1.6.x
-
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/
-
RE: JavaScript evaluation question.
@rayven for now, there is no documentation on it. I will prepare an example for you
-
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?
-
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. -
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? -
RE: Trouble with MC v2 install on RPi 4
Thanks @wint0178 !!
I will go through the installation documentation and sync with your update. -
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 leadsrestart
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 ofmycontroller.yaml
) and run the following commanddocker 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 maintainabilitythe 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
tolocalhost
on yourmycontroller.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