Installing Ignition Edge on Moxa UC-8100A
Configure device to have a fast network connection.
If you're unit has ThingsPro on it, all configuration is done using the web interface on the bottom/second ethernet port.
Connect to it and access https://192.168.4.127 to access the interface.
The login is either admin@moxa.com with password admin1234 or root@moxa.com with password root1234
Connect via SSH using the login (root/moxa) and run the following:
sudo apt update
sudo apt upgrade -y
sudo apt install unzip fontconfig
Copy the installation zip file to /home/moxa using WinSCP or download it with the below command:
cd /home/moxa
curl -L -O -H 'Referer: https://inductiveautomation.com/downloads/ignition' https://files.inductiveautomation.com/release/ia/8.1.17/20220512-1059/Ignition-Edge-linux-armhf-32-8.1.17.zip
If upgrading from an older version, stop the existing Ignition instance, remove the service, and delete the lib
and webserver/webapps
folders.
sudo /usr/local/bin/ignition/ignition.sh stop
sudo /usr/local/bin/ignition/ignition.sh remove
sudo rm -rf /usr/local/bin/ignition/lib
sudo rm -rf /usr/local/bin/ignition/webserver/webapps
Unzip the file to the /usr/local/bin/ignition folder using the following command and delete the old file:
cd /home/moxa
sudo unzip -o -d /usr/local/bin/ignition Ignition-Edge-linux-armhf-32-8.1.17.zip
rm Ignition-Edge-linux-armhf-32-8.1.17.zip
Change the directory to the Ignition installation and make the relevant files executable using the following commands:
cd /usr/local/bin/ignition
sudo chmod +x ignition-gateway
sudo chmod +x *.sh
If upgrading from an older version, upgrade the runtimes using the following command:
sudo /usr/local/bin/ignition/ignition.sh checkruntimes
If the upgrade is a major upgrade (8.0 to 8.1), run the upgrader to update the ignition.conf
file using the following command:
sudo /usr/local/bin/ignition/ignition.sh runupgrader
Install Ignition as a service with the following command:
sudo /usr/local/bin/ignition/ignition.sh install
If using a serial port for communications, edit the Ignition-Gateway.service file to start up after the Moxa Modbus Gateway service:
sudo nano /etc/systemd/system/Ignition-Gateway.service
Modify the After line to match this:
[Unit]
Description=Ignition-Gateway
After=mxmodbusgateway.service
[Service]
Type=forking
ExecStartPre=/bin/sleep 30
ExecStart=/usr/local/bin/ignition/ignition.sh start sysd
ExecStop=/usr/local/bin/ignition/ignition.sh stop sysd
KillMode=process
[Install]
WantedBy=multi-user.target
Then reload the service control daemon to pick up the changes and start the service:
sudo systemctl daemon-reload
sudo service Ignition-Gateway start
On the Moxa's it seems they have a bug that doesn't allow the NTP service to keep correct time on the unit.
If you run the following command and it doesn't show the service is running and gives a warning or error, it's most likely broken:
sudo service systemd-timesyncd status
This can be fixed by removing executable permissions on the /usr/sbin/ntpd file with the following command:
sudo chmod -x /usr/sbin/ntpd
Then you need to either reboot or start the time synchronization service with the following command:
sudo service systemd-timesyncd start