• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Ubuntu 18 Install failed

    Mango Automation Installation
    4
    18
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jared WiltshireJ
      Jared Wiltshire @Robmalone
      last edited by

      @robmalone said in Ubuntu 18 Install failed:

      @jared-wiltshire Installation stops at
      /opt/mango/bin/genkey.sh: 1: /opt/mango/bin/genkey.sh: 404:: not found

      I will have a lot of these to build over the next few months/year or so (about 300 systems) so it would be great to use the install script rather than having to manually install them all.

      Try again now. I updated the script for 3.7.x

      Developer at Radix IoT

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire @Robmalone
        last edited by

        @robmalone said in Ubuntu 18 Install failed:

        Hi @tungthanh500 Yes I can get V4 working but as it's not officially released yet I've been advised to use V3.7.7.

        It will be released very soon. Bear in mind that v4 will require a new license however.

        Developer at Radix IoT

        R 1 Reply Last reply Reply Quote 0
        • R
          Robmalone @Jared Wiltshire
          last edited by

          @jared-wiltshire Thanks Jared. The install seemed to work but I can't access the GUI. Should I see mango running as a service after starting it?```

          powerpoint@powerpoint-UltraPoint:~$ service --status-all
          [ + ] acpid
          [ - ] alsa-utils
          [ - ] anacron
          [ + ] apparmor
          [ + ] apport
          [ + ] avahi-daemon
          [ - ] bluetooth
          [ - ] console-setup.sh
          [ + ] cron
          [ + ] cups
          [ + ] cups-browsed
          [ + ] dbus
          [ - ] dns-clean
          [ + ] gdm3
          [ + ] grub-common
          [ - ] hwclock.sh
          [ + ] irqbalance
          [ + ] kerneloops
          [ - ] keyboard-setup.sh
          [ + ] kmod
          [ - ] lvm2
          [ + ] lvm2-lvmetad
          [ + ] lvm2-lvmpolld
          [ + ] network-manager
          [ + ] networking
          [ - ] plymouth
          [ - ] plymouth-log
          [ - ] pppd-dns
          [ + ] procps
          [ - ] rsync
          [ + ] rsyslog
          [ - ] saned
          [ + ] speech-dispatcher
          [ - ] spice-vdagent
          [ + ] udev
          [ + ] ufw
          [ + ] unattended-upgrades
          [ - ] uuidd
          [ + ] whoopsie
          [ - ] x11-common

          Jared WiltshireJ 1 Reply Last reply Reply Quote 0
          • Jared WiltshireJ
            Jared Wiltshire @Robmalone
            last edited by

            @robmalone The install script installs Mango as a systemd service but does not start it.
            See bottom of https://docs-v3.mango-os.com/linux-installation to check the status of the service, start/stop commands.

            Developer at Radix IoT

            R 1 Reply Last reply Reply Quote 0
            • R
              Robmalone @Jared Wiltshire
              last edited by

              @jared-wiltshire Yes I did start it with systemctl start mango
              When I check the status i get the following:

              powerpoint@powerpoint-UltraPoint:~$ systemctl status mango
              ● mango.service - Mango Automation
                 Loaded: loaded (/opt/mango/overrides/mango.service; enabled; vendor preset: enabled)
                 Active: active (running) since Tue 2021-07-13 17:49:53 IST; 38s ago
                Process: 2538 ExecStart=/opt/mango/bin/start-mango.sh (code=exited, status=0/SUCCESS)
               Main PID: 2541 (java)
                  Tasks: 24 (limit: 4447)
                 CGroup: /system.slice/mango.service
                         └─2541 /snap/openjdk/321/jdk/bin/java -server -Dma.home=/opt/mango com.serotonin.m2m2.Main
              
              Jul 13 17:49:53 powerpoint-UltraPoint start-mango.sh[2538]: Starting Mango Automation
              Jul 13 17:49:53 powerpoint-UltraPoint start-mango.sh[2538]: Mango Automation started with process ID:  2541
              Jul 13 17:49:53 powerpoint-UltraPoint systemd[1]: Started Mango Automation.
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]: Unable to determine the machine id
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]: FATAL (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]: ERROR (com.serotonin.m2m2.Main.main:162) - Error during initialization
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]: java.lang.RuntimeException: Unable to determine the machine id
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]:         at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]:         at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3
              Jul 13 17:50:04 powerpoint-UltraPoint start-mango.sh[2538]:         at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
              
              
              Jared WiltshireJ 1 Reply Last reply Reply Quote 0
              • Jared WiltshireJ
                Jared Wiltshire @Robmalone
                last edited by

                @robmalone It seems to be installed but its crashing on start. Post your full ma.log file.
                I would try installing a different JDK, not inside a snap.

                Developer at Radix IoT

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gordoe @Jared Wiltshire
                  last edited by

                  @jared-wiltshire

                  I'm receiving the same error on Ubuntu 20.04LTS

                  Jul 13 18:45:04 onxl4549 start-mango.sh[832]: Starting Mango Automation
                  Jul 13 18:45:04 onxl4549 start-mango.sh[832]: Mango Automation started with process ID: 1020
                  Jul 13 18:45:04 onxl4549 systemd[1]: Started SBIO dTwins.
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: Unable to determine the machine id
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: FATAL (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine id
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: ERROR (com.serotonin.m2m2.Main.main:162) - Error during initialization
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: java.lang.RuntimeException: Unable to determine the machine id
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.7.jar:?]
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
                  Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    Gordoe @Gordoe
                    last edited by

                    with the contents of ma.log

                    INFO 2021-07-13T18:53:09,828 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license...
                    WARN 2021-07-13T18:53:09,872 (com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid:338) - Host exception:
                    java.io.FileNotFoundException: /opt/dTwin/.ma (No such file or directory)
                    at java.io.FileOutputStream.open0(Native Method) ~[?:?]
                    at java.io.FileOutputStream.open(FileOutputStream.java:298) ~[?:?]
                    at java.io.FileOutputStream.<init>(FileOutputStream.java:237) ~[?:?]
                    at java.io.FileOutputStream.<init>(FileOutputStream.java:187) ~[?:?]
                    at java.io.FileWriter.<init>(FileWriter.java:96) ~[?:?]
                    at com.serotonin.m2m2.host.DefaultHost.guid(DefaultHost.java:69) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid(CoreLicenseDefinition.java:333) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.CoreLicenseDefinition.guid(CoreLicenseDefinition.java:317) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.CoreLicenseDefinition.initializeLic(CoreLicenseDefinition.java:117) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.CoreLicenseDefinition.licenseCheck(CoreLicenseDefinition.java:101) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:659) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:587) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
                    FATAL 2021-07-13T18:53:09,872 (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine id
                    ERROR 2021-07-13T18:53:09,872 (com.serotonin.m2m2.Main.main:162) - Error during initialization
                    java.lang.RuntimeException: Unable to determine the machine id
                    at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
                    at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
                    INFO 2021-07-13T18:53:09,873 (com.serotonin.m2m2.Lifecycle.terminate:400) - Mango Lifecycle terminating...
                    INFO 2021-07-13T18:53:09,915 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated.

                    1 Reply Last reply Reply Quote 0
                    • Jared WiltshireJ
                      Jared Wiltshire
                      last edited by

                      @Gordoe What user is mango running as? The install script should ask you to create a user. What is that user's home directory? Does that user have write permission for their own home directory?

                      Developer at Radix IoT

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Gordoe @Jared Wiltshire
                        last edited by

                        @jared-wiltshire
                        It's running as Mango.

                        I'll start a new post as I don't want to hijack this one. Same error but not from the installation script.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post