<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trouble with MC v2 install on RPi 4]]></title><description><![CDATA[<p dir="auto">I am getting stuck in the final steps of installing MC server V2 on my RPi 4. After I have docker, influxdb, MQTT all instlalled and running on the Pi I can see they are running in my docker by running the following command "docker ps".</p>
<p dir="auto">I then attempt to install the MyController server, but it doesnt work. Near the end of the instructions I wrote and copied below, I am not able to start the MC server after editing the yaml file in nano. Any help would be greatly appreciated.</p>
<hr />
<p dir="auto">Install Raspberry Pi OS 64-bit<br />
Start and setup with necessary updates<br />
Open Terminal and Web Browser<br />
In Web BRowser, go to <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, <a href="http://www.forum.mycontroller.org" rel="nofollow ugc">www.forum.mycontroller.org</a>, and <a href="https://get.docker.com" rel="nofollow ugc">https://get.docker.com</a><br />
In <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, click on "Documentation" and navigate to "Install Docker"<br />
In terminal activate root user by typing<br />
<code>sudo su</code></p>
<p dir="auto"><strong>Install Docker</strong><br />
Begin installation of Docker by typing the following commands one at a time with enter after each<br />
<code>'curl -fsSL https://get.docker.com -o install-docker.sh</code><br />
<code>cat install-docker.sh</code><br />
<code>sh install-docker.sh --dry-run</code><br />
<code>sh install-docker.sh'</code></p>
<p dir="auto">(this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
<code>usermod -aG docker admin</code><br />
(if your non root user is "admin")<br />
<code>systemctl enable docker.service</code><br />
<code>systemctl start docker.service</code><br />
<code>systemctl is-active docker.service</code><br />
(should return "active")</p>
<p dir="auto"><strong>Make MC Portable</strong><br />
So that you are able to move your server from location to location, you will need to setup a Docker network to manage the changing IP addresses<br />
Enter the following in terminal:<br />
<code>docker network create mycontroller</code></p>
<p dir="auto"><strong>Install InfluxDB</strong><br />
Follow the instructions under "Install InfluxDB" for installation within Docker at <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a><br />
Enter the following text commands in terminal with enter after each.<br />
1.(this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
<code>mkdir -p /opt/apps/influxdb</code><br />
<code>cd /opt/apps/influxdb</code></p>
<p dir="auto"><code>docker run --rm influxdb:1.8.4 influxd config &gt; influxdb.conf</code></p>
<p dir="auto">Open File Manager and navigate to /opt/apps/influxdb/influxdb.conf, double click to open and verify that it has roughly 150 lines of text in it.<br />
In Terminal type<br />
<code>nano /opt/apps/influxdb/influxdb.conf</code><br />
(this should open the same file in terminal and allow you to edit it)<br />
Using the up and down arrows, scroll down to the line that reads "[monitor]" and change the following from<br />
<code>store-enabled = true</code><br />
to<br />
<code>store-enabled = false</code><br />
press control-O followed by enter to save<br />
press control-X to exit the nano editor</p>
<p dir="auto">Enter the following into terminal<br />
1. (to return to the highest level of the file directory)	<br />
<code>cd /</code><br />
2. (this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
<code>mkdir -p /opt/apps/influxdb/influxdb_data cd /opt/apps/influxdb</code></p>
<p dir="auto"><code>docker run --detach --name mc_influxdb \</code><br />
<code>--network mycontroller \</code><br />
<code>--publish 8086:8086 \</code><br />
<code>--volume $PWD/influxdb_data:/var/lib/influxdb \</code><br />
<code>--volume $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \</code><br />
<code>--env TZ="Asia/Kolkata" \</code><br />
<code>--restart unless-stopped \</code><br />
<code> influxdb:1.8.4]</code></p>
<p dir="auto">Verify that the influxdb container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, only influxdb should appear right now)</p>
<p dir="auto">To see the Docker logs type in the following<br />
<code>docker logs mc_influxdb</code><br />
To stop the influxdb in docker typle<br />
<code>docker stop mc_influxdb</code><br />
To restart the influxdb in docker type<br />
<code>docker restart mc_influxdb</code><br />
To uninstall influxdb in docker type<br />
<code>docker stop mc_influxdb</code><br />
<code>docker rm mc_influxdb</code></p>
<p dir="auto">Install natsio<br />
At <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a> go to "Install natsio" and follow the directions as follows<br />
Type the following into Terminal<br />
<code>cd /</code><br />
(the following will cause the Pi to download a few different things and install them, it can take a few minutes)<br />
<code>docker run --detach --name mc_natsio \</code><br />
<code> --network mycontroller \</code><br />
<code> --publish 4222:4222 \</code><br />
<code> --env TZ="Asia/Kolkata" \</code><br />
<code>   --restart unless-stopped \</code><br />
<code>   nats:2.2.2-alpine</code><br />
Verify that the natsio container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, only influxdb and natsio should appear right now)</p>
<p dir="auto">To see docker logs type the following<br />
<code>docker logs mc_natsio</code><br />
To stop natsio type<br />
<code>docker stop mc_natsio</code><br />
To restart natsio type<br />
<code>docker restart mc_natsio</code><br />
To uninstall natsio type</p>
<p dir="auto"><strong>Install MQTT Broker in Docker</strong><br />
at <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a> navigate to "Install Mosquitto MQTT Broker" and follow the instructions as follows<br />
In terminal type the following commands to install the broker in docker<br />
<code># create mosquitto.conf</code><br />
<code>mkdir -p /opt/apps/mosquitto</code><br />
<code>cd /opt/apps/mosquitto</code></p>
<p dir="auto"><code>cat &lt;&lt; EOF &gt; mosquitto.conf</code><br />
<code>allow_anonymous true</code><br />
<code>persistence false</code><br />
<code>persistence_location /mosquitto/data/</code><br />
<code>EOF</code><br />
(With the following, Pi will download some files which could take a little while)<br />
<code>mkdir -p /opt/apps/mosquitto</code><br />
<code>cd /opt/apps/mosquitto</code></p>
<p dir="auto"><code>docker run -d --name mc_mosquitto \</code><br />
<code> --network mycontroller \</code><br />
<code>--publish 1883:1883 \</code><br />
<code>--publish 9001:9001 \</code><br />
<code>--volume $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf \</code><br />
<code>--restart unless-stopped \</code><br />
<code>eclipse-mosquitto:1.6.9</code><br />
Verify that the MQTT container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, influxdb, natsio, and MQTT should appear)</p>
<p dir="auto">To see docker logs type the followings<br />
<code>docker logs mc_mosquitto</code><br />
To stop MQTT broker type<br />
<code>docker stop mc_mosquitto</code><br />
To restart MQTT broker type<br />
<code>docker restart mc_mosquitto</code><br />
To uninstall MQTT broker type<br />
<code>docker stop mc_mosquitto</code><br />
<code>docker rm mc_mosquitto</code></p>
<p dir="auto"><strong>Installing MyController Server v2.0</strong><br />
AT <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, navigate to "Install with container image" and follow the directions as follows<br />
Return to the root directory by typing<br />
<code>cd /</code><br />
into terminal<br />
In terminal type the following commands to install MC v2	<br />
<code>mkdir -p /opt/apps/mycontroller/mc_home</code><br />
<code>mkdir -p /opt/apps/mycontroller/mc_home/secure_share</code><br />
<code>mkdir -p /opt/apps/mycontroller/mc_home/insecure_share</code><br />
Change your dirrectory and get the defaul yaml file<br />
<code>cd /opt/apps/mycontroller</code></p>
<p dir="auto"><code>curl https://raw.githubusercontent.com/mycontroller-org/backend/v2.0.0/resources/sample-docker-server.yaml \</code><br />
<code>  --output mycontroller.yaml</code><br />
Open the yaml file to edit in nano<br />
<code>nano /opt/apps/mycontroller/mycontroller.yaml</code></p>
<p dir="auto">Like earlier, the nano command is a terminal-based text editor and you will see a file with many lines of text open in terminal.<br />
At the top you should see a line that reads something like<br />
"secret: 5a2f6ff25b0025aeae12ae096363b51a # !!! WARNING: CHANGE THIS SECRET !!!"<br />
The alpha-numeric secret must be changed to anything with 1 to 32 characters, but remember what you pick.</p>
<p dir="auto">Change the yaml file so the database for influxdb points to your machine's IP address as follows:</p>
<pre><code>bus:
  type: embedded
  topic_prefix: mc_server
  server_url: nats://mc_natsio:4222
  insecure: false
  connection_timeout: 10s


 metric:
    disabled: false
    type: influxdb
    uri: http://mc_influxdb:8086
    token:
    username:
    password:
    organization_name:
    bucket_name: mycontroller
    batch_size:
    flush_interval: 5s
    query_client_version:
</code></pre>
<p dir="auto">click control-o to save followed  by enter<br />
click control-x to exit nano</p>
<p dir="auto">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.</p>
<p dir="auto">Start your MyController Server by entering the following text into terminal:</p>
<pre><code>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
</code></pre>
<p dir="auto">In your web browser, check to make sure your server is running by going to <a href="http://localhost:8080" rel="nofollow ugc">http://localhost:8080</a> (or http://&lt;your_ip&gt;:8080)<br />
This should bring up a MyController login screen where your username AND password are both set to "admin"<br />
Login to verify that it is working.</p>
<p dir="auto">On system restart, resume docker containers with the following commands in terminal<br />
<code>docker restart mc_influxdb</code><br />
<code>docker restart mc_natsio</code><br />
<code>docker restart mc_mosquitto</code><br />
<code>docker restart</code></p>
]]></description><link>http://forum.mycontroller.org/topic/542/trouble-with-mc-v2-install-on-rpi-4</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 01:53:39 GMT</lastBuildDate><atom:link href="http://forum.mycontroller.org/topic/542.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Apr 2024 13:38:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Fri, 26 Apr 2024 02:40:42 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/wint0178" aria-label="Profile: wint0178">@<bdi>wint0178</bdi></a> !!<br />
I will go through the installation documentation and sync with your update.</p>
]]></description><link>http://forum.mycontroller.org/post/3409</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3409</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Fri, 26 Apr 2024 02:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Fri, 26 Apr 2024 13:59:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> Here is the full set of my instructions that just worked.</p>
<p dir="auto">Install Raspberry Pi OS 64-bit<br />
Start and setup with necessary updates<br />
Open Terminal and Web Browser<br />
In Web BRowser, go to <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, <a href="http://www.forum.mycontroller.org" rel="nofollow ugc">www.forum.mycontroller.org</a>, and <a href="https://get.docker.com" rel="nofollow ugc">https://get.docker.com</a><br />
In <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, click on "Documentation" and navigate to "Install Docker"<br />
In terminal activate root user by typing<br />
<code>sudo su</code></p>
<p dir="auto"><strong>Install Docker</strong><br />
Begin installation of Docker by typing the following commands one at a time with enter after each<br />
<code>curl -fsSL https://get.docker.com -o install-docker.sh</code><br />
<code>cat install-docker.sh</code><br />
<code>sh install-docker.sh --dry-run</code><br />
<code>sh install-docker.sh</code></p>
<p dir="auto">(this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
(change "admin" below if your root user name is different)<br />
<code>usermod -aG docker admin</code><br />
<code>systemctl enable docker.service</code><br />
<code>systemctl start docker.service</code><br />
<code>systemctl is-active docker.service</code><br />
(should return "active")</p>
<p dir="auto"><strong>Make MC Portable</strong><br />
So that you are able to move your server from location to location, you will need to setup a Docker network to manage the changing IP addresses<br />
Enter the following in terminal:<br />
<code>docker network create mycontroller</code></p>
<p dir="auto"><strong>Install InfluxDB</strong><br />
Follow the instructions under "Install InfluxDB" for installation within Docker at <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a><br />
Enter the following text commands in terminal with enter after each.</p>
<p dir="auto">(this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
<code>mkdir -p /opt/apps/influxdb</code><br />
<code>cd /opt/apps/influxdb</code></p>
<p dir="auto"><code>docker run --rm influxdb:1.8.4 influxd config &gt; influxdb.conf</code></p>
<p dir="auto">Open File Manager and navigate to /opt/apps/influxdb/influxdb.conf, double click to open and verify that it has roughly 150 lines of text in it.</p>
<p dir="auto">In Terminal type<br />
<code>nano /opt/apps/influxdb/influxdb.conf</code><br />
(this should open the same file in terminal and allow you to edit it)</p>
<p dir="auto">Using the up and down arrows, scroll down to the line that reads "[monitor]" and change the following from<br />
<code>store-enabled = true</code><br />
to<br />
<code>store-enabled = false</code><br />
press control-O followed by enter to save<br />
press control-X to exit the nano editor</p>
<p dir="auto">Enter the following into terminal<br />
(to return to the highest level of the file directory)<br />
<code>cd /</code></p>
<p dir="auto">(this one may take a few minutes, wait for "root@raspberrypi:/# to reappear)<br />
<code>mkdir -p /opt/apps/influxdb/influxdb_data</code><br />
<code>cd /opt/apps/influxdb</code></p>
<p dir="auto"><code>docker run --detach --name mc_influxdb \</code><br />
<code>--network mycontroller \</code><br />
<code>--publish 8086:8086 \</code><br />
<code>--volume $PWD/influxdb_data:/var/lib/influxdb \</code><br />
<code>--volume $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro \</code><br />
<code>--env TZ="America/Chicago" \</code><br />
<code>--restart unless-stopped \</code><br />
<code>influxdb:1.8.4</code></p>
<p dir="auto">Verify that the influxdb container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, only influxdb should appear right now)</p>
<p dir="auto">(For future reference)<br />
To see the Docker logs type in the following<br />
<code>docker logs mc_influxdb</code><br />
To stop the influxdb in docker typle<br />
<code>docker stop mc_influxdb</code><br />
To restart the influxdb in docker type<br />
<code>docker restart mc_influxdb</code><br />
To uninstall influxdb in docker type<br />
<code>docker stop mc_influxdb</code><br />
<code>docker rm mc_influxdb</code></p>
<p dir="auto"><strong>Install natsio</strong><br />
At <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a> go to "Install natsio" and follow the directions as follows<br />
Type the following into Terminal<br />
<code>cd /</code></p>
<p dir="auto">The following will cause the Pi to download a few different things and install them, it can take a few minutes.<br />
<code>docker run --detach --name mc_natsio \</code><br />
<code>--network mycontroller \</code><br />
<code>--publish 4222:4222 \</code><br />
<code>--env TZ="America/Chicago" \</code><br />
<code>--restart unless-stopped \</code><br />
<code>nats:2.2.2-alpine</code></p>
<p dir="auto">Verify that the natsio container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, only influxdb and natsio should appear right now)</p>
<p dir="auto">(For future reference)<br />
To see docker logs type the following<br />
<code>docker logs mc_natsio</code><br />
To stop natsio type<br />
<code>docker stop mc_natsio</code><br />
To restart natsio type<br />
<code>docker restart mc_natsio</code><br />
To uninstall natsio type<br />
<code>docker stop mc_natsio</code><br />
<code>docker rm mc_natsio</code></p>
<p dir="auto"><strong>Install MQTT Broker in Docker</strong><br />
at <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a> navigate to "Install Mosquitto MQTT Broker" and follow the instructions as follows</p>
<p dir="auto">In terminal type the following commands to install the broker in docker<br />
<code># create mosquitto.conf</code><br />
<code>mkdir -p /opt/apps/mosquitto</code><br />
<code>cd /opt/apps/mosquitto</code></p>
<p dir="auto"><code>cat &lt;&lt; EOF &gt; mosquitto.conf</code><br />
<code>allow_anonymous true</code><br />
<code>persistence false</code><br />
<code>persistence_location /mosquitto/data/</code><br />
<code>EOF</code></p>
<p dir="auto">With the following, Pi will download some files which could take a little while.<br />
<code>mkdir -p /opt/apps/mosquitto</code><br />
<code>cd /opt/apps/mosquitto</code></p>
<p dir="auto"><code>docker run -d --name mc_mosquitto \</code><br />
<code>--network mycontroller \</code><br />
<code>--publish 1883:1883 \</code><br />
<code>--publish 9001:9001 \</code><br />
<code>--volume $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf \</code><br />
<code>--restart unless-stopped \</code><br />
<code>eclipse-mosquitto:1.6.9</code></p>
<p dir="auto">Verify that the MQTT container is running in docker with the following code in terminal<br />
<code>docker ps</code><br />
(this should show a list of running containers, influxdb, natsio, and MQTT should appear)</p>
<p dir="auto">(For future reference)<br />
To see docker logs type the followings<br />
<code>docker logs mc_mosquitto</code><br />
To stop MQTT broker type<br />
<code>docker stop mc_mosquitto</code><br />
To restart MQTT broker type<br />
<code>docker restart mc_mosquitto</code><br />
To uninstall MQTT broker type<br />
<code>docker stop mc_mosquitto</code><br />
<code>docker rm mc_mosquitto</code></p>
<p dir="auto"><strong>Installing MyController Server v2.0</strong><br />
AT <a href="http://www.mycontroller.org" rel="nofollow ugc">www.mycontroller.org</a>, navigate to "Install with container image" and follow the directions as follows<br />
Return to the root directory by typing<br />
<code>cd /</code><br />
into terminal</p>
<p dir="auto">In terminal type the following commands to install MC v2<br />
<code>mkdir -p /opt/apps/mycontroller/mc_home</code><br />
<code>mkdir -p /opt/apps/mycontroller/mc_home/secure_share</code><br />
<code>mkdir -p /opt/apps/mycontroller/mc_home/insecure_share</code></p>
<p dir="auto">Change your dirrectory and get the defaul yaml file<br />
<code>cd /opt/apps/mycontroller</code></p>
<p dir="auto"><code>curl https://raw.githubusercontent.com/mycontroller-org/backend/v2.0.0/resources/sample-docker-server.yaml \</code><br />
<code>--output mycontroller.yaml</code></p>
<p dir="auto">Open the yaml file to edit in nano<br />
<code>nano /opt/apps/mycontroller/mycontroller.yaml</code></p>
<p dir="auto">Like earlier, the nano command is a terminal-based text editor and you will see a file with many lines of text open in terminal.<br />
At the top you should see a line that reads something like<br />
"secret: 5a2f6ff25b0025aeae12ae096363b51a # !!! WARNING: CHANGE THIS SECRET !!!"<br />
The alpha-numeric secret must be changed to anything with 1 to 32 characters, but remember what you pick.</p>
<p dir="auto">Change the yaml file so the database for influxdb points to your machine's IP address as follows:</p>
<p dir="auto">bus:<br />
type: embedded<br />
topic_prefix: mc_server<br />
server_url: nats://mc_natsio:4222<br />
insecure: false<br />
connection_timeout: 10s</p>
<p dir="auto">metric:<br />
disabled: false<br />
type: influxdb<br />
uri: http://mc_influxdb:8086<br />
token:<br />
username:<br />
password:<br />
organization_name:<br />
bucket_name: mycontroller<br />
batch_size:<br />
flush_interval: 5s<br />
query_client_version:</p>
<p dir="auto">click control-O to save followed by enter<br />
click control-X to exit nano</p>
<p dir="auto">Start your MyController Server by entering the following text into terminal:</p>
<p dir="auto"><code>docker run --detach --name mycontroller \</code><br />
<code>--network mycontroller \</code><br />
<code>--publish 8080:8080 \</code><br />
<code> --publish 8443:8443 \</code><br />
<code>--publish 9443:9443 \</code><br />
<code>--volume $PWD/mc_home:/mc_home \</code><br />
<code>--volume $PWD/mycontroller.yaml:/app/mycontroller.yaml \</code><br />
<code>--env TZ="America/Chicago" \</code><br />
<code>--restart unless-stopped \</code><br />
<code>docker.io/mycontroller/server:2.0.0</code><br />
In your web browser, check to make sure your server is running by going to <a href="http://localhost:8080" rel="nofollow ugc">http://localhost:8080</a> (or http://&lt;your_ip&gt;:8080)</p>
<p dir="auto">This should bring up a MyController login screen where your username AND password are both set to "admin"<br />
Login to verify that it is working.</p>
<p dir="auto">On system restart, if docker and contained services do not automatically resume, use the following commands in terminal<br />
<code>docker restart mc_influxdb</code><br />
<code>docker restart mc_natsio</code><br />
<code>docker restart mc_mosquitto</code><br />
<code>docker restart</code></p>
]]></description><link>http://forum.mycontroller.org/post/3408</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3408</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Fri, 26 Apr 2024 13:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 16:56:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> said in <a href="/post/3406">Trouble with MC v2 install on RPi 4</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wint0178" aria-label="Profile: wint0178">@<bdi>wint0178</bdi></a> Thanks for the details<br />
I see you have an trailing space after \ ("--env TZ="Asia/Kolkata" \ "), that leads restart command not found<br />
I have updated your timezone and removed the extra space, can you please try the following command to start the MyController server?</p>
</blockquote>
<p dir="auto">Thank you so much! It looks like that single space was the issue, I had hoped it was something that simple and silly, but my knowledge is very limited and I don't think I would have figured that out. thanks again! I'll copy the full install instructions I wrote, the the changes you suggested, in a reply below.</p>
]]></description><link>http://forum.mycontroller.org/post/3407</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3407</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 16:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 03:13:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wint0178" aria-label="Profile: wint0178">@<bdi>wint0178</bdi></a> Thanks for the details<br />
I see you have an trailing space after <code>\</code> (<code>"--env TZ="Asia/Kolkata" \ "</code>), that leads <code>restart</code> command not found<br />
I have updated your timezone and removed the extra space, can you please try the following command to start the MyController server?</p>
<p dir="auto">go to your mycontroller directory(root of <code>mc_home</code> and location of <code>mycontroller.yaml</code>) and run the following command</p>
<pre><code>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
</code></pre>
<p dir="auto">If it doesn't comes up please run the following command, I just removed the <code>--detach</code>(don't run on background) and added <code>--rm</code> (remove the container on termination)</p>
<pre><code>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
</code></pre>
<blockquote>
<p dir="auto">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?</p>
</blockquote>
<p dir="auto">Yes, In the docker just removes the containers and creates from fresh.</p>
<blockquote>
<p dir="auto">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?</p>
</blockquote>
<p dir="auto">executable is different than the docker. It will not be come under <code>docker ps</code> command.<br />
It executes directly on the host system.<br />
I would recommend to use docker version of mycontroller, for the portability and maintainability</p>
<blockquote>
<p dir="auto">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.</p>
</blockquote>
<p dir="auto">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 <code>mc_natsio</code>, <code>mc_influxdb</code> to <code>localhost</code> on your <code>mycontroller.yaml</code> [1] should work. However, I would recommend to try the docker version of mycontroller.</p>
<p dir="auto">[1] - If you apply this change, it will not work on docker version of mycontroller</p>
]]></description><link>http://forum.mycontroller.org/post/3406</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3406</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Thu, 25 Apr 2024 03:13:54 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 02:38:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> 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.</p>
]]></description><link>http://forum.mycontroller.org/post/3405</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3405</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 02:38:39 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 01:55:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> 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 <code>docker ps -a</code> I am still getting the same three services running: mqtt, influxdb, and natsio. Is this correct?</p>
]]></description><link>http://forum.mycontroller.org/post/3404</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3404</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 01:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 01:34:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> I opened the /opt/apps/mycontroller/mycontroller.yaml in vim and found it to reflect the changes that I had made in nano, so I made no other changes.</p>
]]></description><link>http://forum.mycontroller.org/post/3403</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3403</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 01:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 01:21:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> I also checked the docker version as you asked and it is Docker version 26.0.2, build 3c863ff.</p>
<p dir="auto">You asked about my timezone, I am in US Central timezone, the same as Chicago.</p>
<p dir="auto">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?</p>
<p dir="auto">Finally, I am not familiar with vim, but I just installed it and will check it out. I'll keep you posted. Thank you for your help!</p>
]]></description><link>http://forum.mycontroller.org/post/3402</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3402</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 01:21:24 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Thu, 25 Apr 2024 02:53:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> the response to<br />
<code>docker logs mycontroller</code><br />
is <code>Error response from daemon: No such container: mycontroller</code> and the response to<br />
<code>docker ps -a</code><br />
is:</p>
<pre><code>CONTAINER ID   IMAGE                     COMMAND                  CREATED      STATUS      PORTS                                                                                  NAMES
8db9b7cb067c   eclipse-mosquitto:1.6.9   "/docker-entrypoint.…"   5 days ago   Up 5 days   0.0.0.0:1883-&gt;1883/tcp, :::1883-&gt;1883/tcp, 0.0.0.0:9001-&gt;9001/tcp, :::9001-&gt;9001/tcp   mc_mosquitto
44cb484f6753   nats:2.2.2-alpine         "docker-entrypoint.s…"   5 days ago   Up 5 days   6222/tcp, 0.0.0.0:4222-&gt;4222/tcp, :::4222-&gt;4222/tcp, 8222/tcp                          mc_natsio
5c81d7e95d1a   influxdb:1.8.4            "/entrypoint.sh infl…"   5 days ago   Up 5 days   0.0.0.0:8086-&gt;8086/tcp, :::8086-&gt;8086/tcp                                              mc_influxdb
</code></pre>
]]></description><link>http://forum.mycontroller.org/post/3401</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3401</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Thu, 25 Apr 2024 02:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Wed, 24 Apr 2024 10:54:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wint0178" aria-label="Profile: wint0178">@<bdi>wint0178</bdi></a> What is the log do you see on the <code>mycontroller</code> container?</p>
<pre><code>docker logs mycontroller
</code></pre>
<p dir="auto">and what is the output of,</p>
<pre><code>docker ps -a
</code></pre>
<blockquote>
<p dir="auto">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.</p>
</blockquote>
<p dir="auto">Can you please elaborate? Does the terminal hung to return?</p>
]]></description><link>http://forum.mycontroller.org/post/3400</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3400</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Wed, 24 Apr 2024 10:54:58 GMT</pubDate></item><item><title><![CDATA[Reply to Trouble with MC v2 install on RPi 4 on Tue, 23 Apr 2024 15:46:18 GMT]]></title><description><![CDATA[<p dir="auto">Here is a screenshot of the docker system running with influxdb, natsio, and mqtt. Maybe something is wrong here? This was taken immediately after a system restart without running and apps or commands prior.</p>
<p dir="auto"><img src="/assets/uploads/files/1713887092904-dockerimage-resized.png" alt="dockerimage.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.mycontroller.org/post/3399</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3399</guid><dc:creator><![CDATA[wint0178]]></dc:creator><pubDate>Tue, 23 Apr 2024 15:46:18 GMT</pubDate></item></channel></rss>