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

  • When I attempt to start Mango for the first time, I recieve following error:

    Error: Could not find or load main class com.serotonin.m2m2.Main
    
    Caused by: java.lang.ClassNotFoundException: com.serotonin.m2m2.Main
    

    System:

    • Debian 10 (64-bit)
    • OpenJDK 11
    • Mango version: 4.0.0
    • Started with: start-mango.sh script
    • Installed: no

  • @mcgiwer We need more information in order to help you.
    What version of Mango are you using: e.g. 3.7.7
    What version of Java are you using: Oracle Java 8, or Adopt OpenJDK 11
    What is your operating system: e.g. Windows x64, Ubuntu Linux 20.04
    How did you install Mango: e.g. install script, or manual install, updated from 3.6.0
    How did you start Mango: e.g. systemctl start mango, or ma.sh start
    Include the log file: post ma.log


  • @jared-wiltshire

    I had edited my post, adding and formating the informations.

    The log has not been created.


  • @mcgiwer What directory did you run start-mango.sh from? (type pwd)
    What user did you run start-mango.sh as?
    Does that user have permission to read/write to the Mango installation directory?
    Paste the output of ls -la /your/mango/installation/lib e.g. ls -la /opt/mango/lib


  • @mcgiwer another useful debugging step would for you to post the output of
    sh -x ./bin/start-mango.sh


  • @jared-wiltshire said in Startup issues - Missing class:

    @mcgiwer What directory did you run start-mango.sh from? (type pwd)

    I have entered (cd) the bin dir in the folder to with the mango zip got extracted and had run the mentioned script

    What user did you run start-mango.sh as?

    I attempted both: normal and root user

    Does that user have permission to read/write to the Mango installation directory?

    Yes, I had given the full permissions to the folders (and sub-folders) and had changed the owner of them to the normal user one

    Paste the output of ls -la /your/mango/installation/lib e.g. ls -la /opt/mango/lib

    ok. Note: For the security reasons, the path will be truncated.

    The lib dir content:

    total 88532
    
    -rwxrwxrwx 1 user root   30035 Jul 14 00:21 accessors-smart-1.2.jar
    
    -rwxrwxrwx 1 user root   17536 Jul 14 00:21 annotations-13.0.jar
    
    -rwxrwxrwx 1 user root  121783 Jul 14 00:21 asm-9.0.jar
    
    -rwxrwxrwx 1 user root   33439 Jul 14 00:21 asm-analysis-9.0.jar
    
    -rwxrwxrwx 1 user root   71646 Jul 14 00:21 asm-commons-9.0.jar
    
    -rwxrwxrwx 1 user root   52673 Jul 14 00:21 asm-tree-9.0.jar
    
    -rwxrwxrwx 1 user root   84857 Jul 14 00:21 asm-util-9.0.jar
    
    -rwxrwxrwx 1 user root  340185 Jul 14 00:21 bcpg-jdk15on-1.68.jar
    
    -rwxrwxrwx 1 user root  887800 Jul 14 00:21 bcpkix-jdk15on-1.68.jar
    
    -rwxrwxrwx 1 user root 5961178 Jul 14 00:21 bcprov-jdk15on-1.68.jar
    
    -rwxrwxrwx 1 user root 2970261 Jul 14 00:21 byte-buddy-1.8.12.jar
    
    -rwxrwxrwx 1 user root  921827 Jul 14 00:21 caffeine-2.8.8.jar
    
    -rwxrwxrwx 1 user root  231619 Jul 14 00:21 checker-qual-3.9.1.jar
    
    -rwxrwxrwx 1 user root   66540 Jul 14 00:21 classmate-1.4.0.jar
    
    -rwxrwxrwx 1 user root  246918 Jul 14 00:21 commons-beanutils-1.9.4.jar
    
    -rwxrwxrwx 1 user root  353793 Jul 14 00:21 commons-codec-1.15.jar
    
    -rwxrwxrwx 1 user root  588337 Jul 14 00:21 commons-collections-3.2.2.jar
    
    -rwxrwxrwx 1 user root  751914 Jul 14 00:21 commons-collections4-4.4.jar
    
    -rwxrwxrwx 1 user root  615064 Jul 14 00:21 commons-compress-1.19.jar
    
    -rwxrwxrwx 1 user root   72446 Jul 14 00:21 commons-fileupload-1.4.jar
    
    -rwxrwxrwx 1 user root  285424 Jul 14 00:21 commons-io-2.8.0.jar
    
    -rwxrwxrwx 1 user root  577742 Jul 14 00:21 commons-lang3-3.11.jar
    
    -rwxrwxrwx 1 user root   61829 Jul 14 00:21 commons-logging-1.2.jar
    
    -rwxrwxrwx 1 user root 2213560 Jul 14 00:21 commons-math3-3.6.1.jar
    
    -rwxrwxrwx 1 user root  111119 Jul 14 00:21 commons-pool-1.6.jar
    
    -rwxrwxrwx 1 user root  216211 Jul 14 00:21 commons-text-1.9.jar
    
    -rwxrwxrwx 1 user root    7959 Jul 14 00:21 content-type-2.1.jar
    
    -rwxrwxrwx 1 user root  111875 Jul 14 00:21 curvesapi-1.06.jar
    
    -rwxrwxrwx 1 user root   83064 Jul 14 00:21 disruptor-3.4.2.jar
    
    -rwxrwxrwx 1 user root   13879 Jul 14 00:21 error_prone_annotations-2.3.4.jar
    
    -rwxrwxrwx 1 user root    4617 Jul 14 00:21 failureaccess-1.0.1.jar
    
    -rwxrwxrwx 1 user root 1702975 Jul 14 00:21 freemarker-2.3.30.jar
    
    -rwxrwxrwx 1 user root 2862361 Jul 14 00:21 guava-30.1-jre.jar
    
    -rwxrwxrwx 1 user root 2303679 Jul 14 00:21 h2-1.4.200.jar
    
    -rwxrwxrwx 1 user root  156005 Jul 14 00:21 HikariCP-3.4.5.jar
    
    -rwxrwxrwx 1 user root  205519 Jul 14 00:21 http2-common-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   52142 Jul 14 00:21 http2-hpack-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   60426 Jul 14 00:21 http2-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  780321 Jul 14 00:21 httpclient-4.5.13.jar
    
    -rwxrwxrwx 1 user root  164090 Jul 14 00:21 httpclient-cache-4.5.13.jar
    
    -rwxrwxrwx 1 user root  328436 Jul 14 00:21 httpcore-4.4.14.jar
    
    -rwxrwxrwx 1 user root   41790 Jul 14 00:21 httpmime-4.5.13.jar
    
    -rwxrwxrwx 1 user root   29877 Jul 14 00:21 istack-commons-runtime-3.0.11.jar
    
    -rwxrwxrwx 1 user root   28852 Jul 14 00:21 istack-commons-tools-3.0.11.jar
    
    -rwxrwxrwx 1 user root    8781 Jul 14 00:21 j2objc-annotations-1.3.jar
    
    -rwxrwxrwx 1 user root   75700 Jul 14 00:21 jackson-annotations-2.12.1.jar
    
    -rwxrwxrwx 1 user root  365214 Jul 14 00:21 jackson-core-2.12.1.jar
    
    -rwxrwxrwx 1 user root 1514483 Jul 14 00:21 jackson-databind-2.12.1.jar
    
    -rwxrwxrwx 1 user root  103758 Jul 14 00:21 jackson-dataformat-csv-2.12.1.jar
    
    -rwxrwxrwx 1 user root   34430 Jul 14 00:21 jackson-datatype-jdk8-2.12.1.jar
    
    -rwxrwxrwx 1 user root  120320 Jul 14 00:21 jackson-datatype-jsr310-2.12.1.jar
    
    -rwxrwxrwx 1 user root   65690 Jul 14 00:21 jakarta.activation-1.2.1.jar
    
    -rwxrwxrwx 1 user root  670100 Jul 14 00:21 jakarta.mail-1.6.5.jar
    
    -rwxrwxrwx 1 user root  115638 Jul 14 00:21 jakarta.xml.bind-api-2.3.3.jar
    
    -rwxrwxrwx 1 user root   46843 Jul 14 00:21 java-semver-0.9.0.jar
    
    -rwxrwxrwx 1 user root   56674 Jul 14 00:21 javax.activation-api-1.2.0.jar
    
    -rwxrwxrwx 1 user root   26586 Jul 14 00:21 javax.annotation-api-1.3.2.jar
    
    -rwxrwxrwx 1 user root   95806 Jul 14 00:21 javax.servlet-api-3.1.0.jar
    
    -rwxrwxrwx 1 user root  294661 Jul 14 00:21 javolution-5.2.3.jar
    
    -rwxrwxrwx 1 user root  128076 Jul 14 00:21 jaxb-api-2.3.1.jar
    
    -rwxrwxrwx 1 user root 1133924 Jul 14 00:21 jaxb-impl-2.3.3.jar
    
    -rwxrwxrwx 1 user root    4722 Jul 14 00:21 jcip-annotations-1.0-1.jar
    
    -rwxrwxrwx 1 user root   16516 Jul 14 00:21 jetty-alpn-client-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   16953 Jul 14 00:21 jetty-alpn-java-client-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   17322 Jul 14 00:21 jetty-alpn-java-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   19597 Jul 14 00:21 jetty-alpn-openjdk8-client-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   19490 Jul 14 00:21 jetty-alpn-openjdk8-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   17660 Jul 14 00:21 jetty-alpn-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   86706 Jul 14 00:21 jetty-annotations-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  322815 Jul 14 00:21 jetty-client-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   25379 Jul 14 00:21 jetty-continuation-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  221942 Jul 14 00:21 jetty-http-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  170607 Jul 14 00:21 jetty-io-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   46767 Jul 14 00:21 jetty-jndi-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   65612 Jul 14 00:21 jetty-plus-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  118490 Jul 14 00:21 jetty-security-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  716886 Jul 14 00:21 jetty-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  145931 Jul 14 00:21 jetty-servlet-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  107410 Jul 14 00:21 jetty-servlets-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  572360 Jul 14 00:21 jetty-util-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   65237 Jul 14 00:21 jetty-util-ajax-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  140273 Jul 14 00:21 jetty-webapp-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   68297 Jul 14 00:21 jetty-xml-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   78784 Jul 14 00:21 jjwt-api-0.11.2.jar
    
    -rwxrwxrwx 1 user root   78853 Jul 14 00:21 jjwt-impl-0.11.2.jar
    
    -rwxrwxrwx 1 user root    8400 Jul 14 00:21 jjwt-jackson-0.11.2.jar
    
    -rwxrwxrwx 1 user root  232470 Jul 14 00:21 JLargeArrays-1.5.jar
    
    -rwxrwxrwx 1 user root 1509440 Jul 14 00:21 jna-5.6.0.jar
    
    -rwxrwxrwx 1 user root 2735878 Jul 14 00:21 jna-platform-5.6.0.jar
    
    -rwxrwxrwx 1 user root  589289 Jul 14 00:21 joda-time-2.7.jar
    
    -rwxrwxrwx 1 user root 3196583 Jul 14 00:21 jooq-3.14.4.jar
    
    -rwxrwxrwx 1 user root  682642 Jul 14 00:21 jscience-4.3.1.jar
    
    -rwxrwxrwx 1 user root  120316 Jul 14 00:21 json-smart-2.3.jar
    
    -rwxrwxrwx 1 user root   19936 Jul 14 00:21 jsr305-3.0.2.jar
    
    -rwxrwxrwx 1 user root  360665 Jul 14 00:21 jssc-2.9.2.jar
    
    -rwxrwxrwx 1 user root 1501730 Jul 14 00:21 JTransforms-3.1-with-dependencies.jar
    
    -rwxrwxrwx 1 user root 1495021 Jul 14 00:21 kotlin-stdlib-1.4.32.jar
    
    -rwxrwxrwx 1 user root  193119 Jul 14 00:21 kotlin-stdlib-common-1.4.32.jar
    
    -rwxrwxrwx 1 user root   22895 Jul 14 00:21 kotlin-stdlib-jdk7-1.4.32.jar
    
    -rwxrwxrwx 1 user root   16221 Jul 14 00:21 kotlin-stdlib-jdk8-1.4.32.jar
    
    -rwxrwxrwx 1 user root   10797 Jul 14 00:21 lang-tag-1.4.4.jar
    
    -rwxrwxrwx 1 user root    2199 Jul 14 00:21 listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
    
    -rwxrwxrwx 1 user root    6440 Jul 14 00:21 log-1.0.jar
    
    -rwxrwxrwx 1 user root  292301 Jul 14 00:21 log4j-api-2.13.3.jar
    
    -rwxrwxrwx 1 user root 1714164 Jul 14 00:21 log4j-core-2.13.3.jar
    
    -rwxrwxrwx 1 user root   12656 Jul 14 00:21 log4j-jcl-2.13.3.jar
    
    -rwxrwxrwx 1 user root   26161 Jul 14 00:21 log4j-jul-2.13.3.jar
    
    -rwxrwxrwx 1 user root   20760 Jul 14 00:21 log4j-slf4j18-impl-2.13.3.jar
    
    -rwxrwxrwx 1 user root 2604175 Jul 14 00:21 mango-4.0.0.jar
    
    -rwxrwxrwx 1 user root   73040 Jul 14 00:21 ma-priv-4.0.0.jar
    
    -rwxrwxrwx 1 user root   20720 Jul 14 00:21 mapstruct-1.2.0.Final.jar
    
    -rwxrwxrwx 1 user root   29126 Jul 14 00:21 ma-shared-1.2.4.jar
    
    -rwxrwxrwx 1 user root 2415211 Jul 14 00:21 mysql-connector-java-8.0.23.jar
    
    -rwxrwxrwx 1 user root   20619 Jul 14 00:21 native-lib-loader-2.3.3.jar
    
    -rwxrwxrwx 1 user root  433249 Jul 14 00:21 nimbus-jose-jwt-9.1.3.jar
    
    -rwxrwxrwx 1 user root  635622 Jul 14 00:21 oauth2-oidc-sdk-8.28.1.jar
    code_text
    -rwxrwxrwx 1 user root   19827 Jul 14 00:21 opencsv-2.3.jar
    
    -rwxrwxrwx 1 user root  842571 Jul 14 00:21 oshi-core-5.4.1.jar
    
    -rwxrwxrwx 1 user root  124496 Jul 14 00:21 passay-1.6.0.jar
    
    -rwxrwxrwx 1 user root 2915337 Jul 14 00:21 poi-4.1.2.jar
    
    -rwxrwxrwx 1 user root 1888231 Jul 14 00:21 poi-ooxml-4.1.2.jar
    
    -rwxrwxrwx 1 user root 7912488 Jul 14 00:21 poi-ooxml-schemas-4.1.2.jar
    
    -rwxrwxrwx 1 user root 1004719 Jul 14 00:21 postgresql-42.2.18.jar
    
    -rwxrwxrwx 1 user root 1660960 Jul 14 00:21 protobuf-java-3.11.4.jar
    
    -rwxrwxrwx 1 user root    2097 Jul 14 00:21 reactive-streams-1.0.2.jar
    
    -rwxrwxrwx 1 user root   24366 Jul 14 00:21 rql-parser-0.3.2.jar
    
    -rwxrwxrwx 1 user root   44213 Jul 14 00:21 slf4j-api-1.8.0-beta4.jar
    
    -rwxrwxrwx 1 user root   24510 Jul 14 00:21 SparseBitSet-1.2.jar
    
    -rwxrwxrwx 1 user root  374340 Jul 14 00:21 spring-aop-5.3.3.jar
    
    -rwxrwxrwx 1 user root  695878 Jul 14 00:21 spring-beans-5.3.3.jar
    
    -rwxrwxrwx 1 user root 1243858 Jul 14 00:21 spring-context-5.3.3.jar
    
    -rwxrwxrwx 1 user root  183147 Jul 14 00:21 spring-context-support-5.3.3.jar
    
    -rwxrwxrwx 1 user root 1467336 Jul 14 00:21 spring-core-5.3.3.jar
    
    -rwxrwxrwx 1 user root  282517 Jul 14 00:21 spring-expression-5.3.3.jar
    
    -rwxrwxrwx 1 user root  116534 Jul 14 00:21 springfox-core-2.9.2.jar
    
    -rwxrwxrwx 1 user root   83895 Jul 14 00:21 springfox-schema-2.9.2.jar
    
    -rwxrwxrwx 1 user root   53503 Jul 14 00:21 springfox-spi-2.9.2.jar
    
    -rwxrwxrwx 1 user root  195249 Jul 14 00:21 springfox-spring-web-2.9.2.jar
    
    -rwxrwxrwx 1 user root   67625 Jul 14 00:21 springfox-swagger2-2.9.2.jar
    
    -rwxrwxrwx 1 user root  106641 Jul 14 00:21 springfox-swagger-common-2.9.2.jar
    
    -rwxrwxrwx 1 user root 2905995 Jul 14 00:21 springfox-swagger-ui-2.9.2.jar
    
    -rwxrwxrwx 1 user root   23943 Jul 14 00:21 spring-jcl-5.3.3.jar
    
    -rwxrwxrwx 1 user root  416946 Jul 14 00:21 spring-jdbc-5.3.3.jar
    
    -rwxrwxrwx 1 user root  378255 Jul 14 00:21 spring-ldap-core-2.3.3.RELEASE.jar
    
    -rwxrwxrwx 1 user root   19896 Jul 14 00:21 spring-plugin-core-1.2.0.RELEASE.jar
    
    -rwxrwxrwx 1 user root    5145 Jul 14 00:21 spring-plugin-metadata-1.2.0.RELEASE.jar
    
    -rwxrwxrwx 1 user root 1227511 Jul 14 00:21 spring-security-config-5.4.2.jar
    
    -rwxrwxrwx 1 user root  449471 Jul 14 00:21 spring-security-core-5.4.2.jar
    
    -rwxrwxrwx 1 user root  106163 Jul 14 00:21 spring-security-ldap-5.4.2.jar
    
    -rwxrwxrwx 1 user root  360903 Jul 14 00:21 spring-security-oauth2-client-5.4.2.jar
    
    -rwxrwxrwx 1 user root   87502 Jul 14 00:21 spring-security-oauth2-core-5.4.2.jar
    
    -rwxrwxrwx 1 user root   66543 Jul 14 00:21 spring-security-oauth2-jose-5.4.2.jar
    
    -rwxrwxrwx 1 user root  605271 Jul 14 00:21 spring-security-web-5.4.2.jar
    
    -rwxrwxrwx 1 user root  327870 Jul 14 00:21 spring-tx-5.3.3.jar
    
    -rwxrwxrwx 1 user root 1565794 Jul 14 00:21 spring-web-5.3.3.jar
    
    -rwxrwxrwx 1 user root  996262 Jul 14 00:21 spring-webmvc-5.3.3.jar
    
    -rwxrwxrwx 1 user root  423470 Jul 14 00:21 spring-websocket-5.3.3.jar
    
    -rwxrwxrwx 1 user root   21750 Jul 14 00:21 swagger-annotations-1.5.20.jar
    
    -rwxrwxrwx 1 user root  152068 Jul 14 00:21 swagger-models-1.5.20.jar
    
    -rwxrwxrwx 1 user root    9202 Jul 14 00:21 token-bucket-1.7.jar
    
    -rwxrwxrwx 1 user root   52173 Jul 14 00:21 websocket-api-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   45500 Jul 14 00:21 websocket-client-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root  214118 Jul 14 00:21 websocket-common-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   44837 Jul 14 00:21 websocket-server-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root   30314 Jul 14 00:21 websocket-servlet-9.4.41.v20210516.jar
    
    -rwxrwxrwx 1 user root 2579738 Jul 14 00:21 xmlbeans-3.1.0.jar
    
    

  • @mcgiwer I can't help you any more without seeing the output of
    sh -x ./bin/start-mango.sh


  • Strange... it suddenly started to work, however ocassionally it's casting the OOM exception