• 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

    SSL/HTTP Post error

    User help
    2
    4
    594
    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.
    • R
      Robmalone
      last edited by

      Hi all,
      I am having trouble sending HTTP Post data to a Mango server. It was working previously but it seems to have stopped since the SSL cert was updated. When I try to send HTTP post from another instance of Mango I get the following error on the client side

      sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

      Any help would be appreciated.

      Rob

      terrypackerT 1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker @Robmalone
        last edited by

        @robmalone are you seeing anything in the log output of either Mango? If so please provide that.

        A quick google search turned up this: https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

        It could be that Mango isn't pointed at the correct keystore, the one with the new cert in it?

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

          @terrypacker Hi Terry, I had seen that and followed the instructions on how to import the cert into Java but im still getting the same error. This was something I never had to do before. Once the Mango environmental properties file was pointing to the keystore it worked.

          There is nothing in the server log (receiver end)

          INFO  2021-08-20T17:07:57,253 (com.serotonin.m2m2.Main.main:121) - Starting Mango 3.7.4 with Schema Version: 29 
          INFO  2021-08-20T17:08:00,378 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'asciiFile', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,503 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'BACnet', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,550 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'controlcore', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,581 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dashboardDesigner', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,597 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\mango\web\modules\dashboardDesigner\web\dox\manifest.xml 
          INFO  2021-08-20T17:08:00,612 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataFile', v3.7.1 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,659 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataImport', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,690 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'deviceConfig', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,690 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\mango\web\modules\deviceConfig\web\dox\manifest.xml 
          INFO  2021-08-20T17:08:00,722 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dnp3', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,737 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'egauge', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,768 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'envcands', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,784 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'excelReports', v3.7.1 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:00,847 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'graphicalViews', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,034 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'Haystack', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,081 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'http', v3.7.1 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,112 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'jsonFileImport', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,144 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4jDS', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,159 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4JReset', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,159 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'loggingConsole', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,190 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'maintenanceEvents', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,237 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoApi', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,300 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoNoSqlDatabase', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,347 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoUI', v3.7.2 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:01,362 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: C:\mango\web\modules\mangoUI\web\dox\manifest.xml 
          INFO  2021-08-20T17:08:01,956 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mbus', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,003 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'meta', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,065 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'modbus', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,112 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'onewire', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,159 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'opcda', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,175 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pakbus', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,222 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'persistent', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,284 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pointLinks', v3.7.1 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,315 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pop3', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,347 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'reports', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,456 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scheduledEvents', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,487 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scripting', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,519 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'serial', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,534 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'snmp', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,565 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlConsole', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,597 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlds', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,643 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'ssh', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,675 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGlobalScripts', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,706 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGraphics', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,925 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'TCPIP', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:02,940 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'templateConfig', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:03,018 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'twilio', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:03,065 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'virtualDS', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:03,097 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'vmstat', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:03,128 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'watchlists', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:03,268 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'internal', v3.7.0 by Infinite Automation Systems Inc. 
          INFO  2021-08-20T17:08:23,237 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license... 
          INFO  2021-08-20T17:08:23,815 (com.serotonin.m2m2.db.H2Proxy.initializeImpl:64) - Initializing H2 connection manager 
          INFO  2021-08-20T17:08:31,823 (com.serotonin.m2m2.db.upgrade.DBUpgrade.checkUpgrade:38) - Starting instance with core version 3.7.4, schema v29 
          INFO  2021-08-20T17:08:31,824 (com.infiniteautomation.nosql.MangoNoSqlProxy.initialize:77) - Starting MangoNoSql Database 
          INFO  2021-08-20T17:08:32,135 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:144) - Database at C:\mango\databases\mangoTSDB started 
          WARN  2021-08-20T17:08:33,707 (org.eclipse.jetty.server.HttpChannelState.asyncError:739) - org.eclipse.jetty.io.EofException: Reset cancel_stream_error 
          WARN  2021-08-20T17:08:33,815 (org.eclipse.jetty.server.HttpChannelState.asyncError:739) - org.eclipse.jetty.io.EofException: Reset cancel_stream_error 
          WARN  2021-08-20T17:08:33,978 (org.eclipse.jetty.server.HttpChannelState.asyncError:739) - org.eclipse.jetty.io.EofException: Reset cancel_stream_error 
          WARN  2021-08-20T17:08:37,500 (org.eclipse.jetty.server.HttpChannelState.asyncError:739) - org.eclipse.jetty.io.EofException: Reset cancel_stream_error 
          WARN  2021-08-20T17:08:37,552 (org.eclipse.jetty.server.HttpChannelState.asyncError:739) - org.eclipse.jetty.io.EofException: Reset cancel_stream_error 
          INFO  2021-08-20T17:08:48,472 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:173) - Empty dir delete for database at C:\mango\databases\mangoTSDB took 16224ms 
          INFO  2021-08-20T17:08:48,534 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:234) - Corruption scan for database at C:\mango\databases\mangoTSDB skipped because the database is configured not to run scan. 
          INFO  2021-08-20T17:08:48,565 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:144) - Database at C:\mango\databases\mangoTSDBAux started 
          INFO  2021-08-20T17:08:48,616 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:173) - Empty dir delete for database at C:\mango\databases\mangoTSDBAux took 0ms 
          INFO  2021-08-20T17:08:48,616 (com.infiniteautomation.tsdb.impl.IasTsdbImpl.<init>:234) - Corruption scan for database at C:\mango\databases\mangoTSDBAux skipped because the database is configured not to run scan. 
          INFO  2021-08-20T17:09:01,179 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'runtimeContext' refreshed: org.springframework.context.annotation.AnnotationConfigApplicationContext@277b8fa4 
          INFO  2021-08-20T17:09:01,210 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextStarted:147) - Spring context 'runtimeContext' started: org.springframework.context.annotation.AnnotationConfigApplicationContext@277b8fa4 
          INFO  2021-08-20T17:09:02,475 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.initialize:77) - Initializing 6 NORMAL priority data sources in 8 threads. 
          INFO  2021-08-20T17:09:02,549 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source VM stats took 48ms to start 
          INFO  2021-08-20T17:09:02,596 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Sigfox HTTP POST took 97ms to start 
          INFO  2021-08-20T17:09:03,040 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Powerpoint Engineering Offices took 540ms to start 
          INFO  2021-08-20T17:09:03,756 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source DAY TEST took 1277ms to start 
          INFO  2021-08-20T17:09:08,731 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Mango Internal took 6219ms to start 
          INFO  2021-08-20T17:09:13,534 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Sigfox TX Energy took 11022ms to start 
          INFO  2021-08-20T17:09:13,565 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.initialize:109) - Initialization of 6 NORMAL priority data sources took 11090ms 
          INFO  2021-08-20T17:09:13,566 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.initialize:77) - Initializing 5 LAST priority data sources in 8 threads. 
          INFO  2021-08-20T17:09:13,705 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source OPW Sender took 144ms to start 
          INFO  2021-08-20T17:09:17,186 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Sample Data Points took 3614ms to start 
          INFO  2021-08-20T17:09:21,117 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source 2RN Summary Report took 7550ms to start 
          INFO  2021-08-20T17:09:21,456 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source 2RNSubloads took 7888ms to start 
          INFO  2021-08-20T17:09:22,830 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initializeDataSourceStartup:408) - Data source Day and night points took 9262ms to start 
          INFO  2021-08-20T17:09:22,899 (com.serotonin.m2m2.rt.DataSourceGroupInitializer.initialize:109) - Initialization of 5 LAST priority data sources took 9333ms 
          INFO  2021-08-20T17:09:23,297 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:176) - Starting 2 Publishers... 
          INFO  2021-08-20T17:09:23,297 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:178) - Starting publisher: for dashboard development 
          INFO  2021-08-20T17:09:23,297 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:178) - Starting publisher: Energy Elephant 
          INFO  2021-08-20T17:09:23,298 (com.serotonin.m2m2.rt.RuntimeManagerImpl.initialize:188) - 2 Publisher's started in 122ms 
          INFO  2021-08-20T17:09:32,956 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'rootWebContext' refreshed: Root WebApplicationContext 
          INFO  2021-08-20T17:09:39,565 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'jspDispatcherContext' refreshed: WebApplicationContext for namespace 'JSP_DISPATCHER-servlet' 
          INFO  2021-08-20T17:09:40,934 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'restDispatcherContext' refreshed: WebApplicationContext for namespace 'REST_DISPATCHER-servlet' 
          INFO  2021-08-20T17:09:47,398 (com.serotonin.m2m2.web.mvc.rest.v1.BacnetDiscoveryRestController.<init>:54) - Creating Discovery Rest Controller 
          INFO  2021-08-20T17:09:48,479 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'restV1Context' refreshed: WebApplicationContext for namespace 'restV1DispatcherServlet-servlet' 
          INFO  2021-08-20T17:09:58,029 (com.infiniteautomation.mango.spring.MangoRuntimeContextConfiguration.contextRefreshed:133) - Spring context 'restV2Context' refreshed: WebApplicationContext for namespace 'restV2DispatcherServlet-servlet' 
          
          

          On the client side there are log entries but only related to the publisher failing

          WARN  2021-08-20T16:22:57,321 (com.serotonin.m2m2.rt.publish.PublishQueue.sizeCheck:102) - Publisher queue Powerpoint Engineering Offices discarded 4 entries 
          
          terrypackerT 1 Reply Last reply Reply Quote 0
          • terrypackerT
            terrypacker @Robmalone
            last edited by

            @robmalone said in SSL/HTTP Post error:

            Once the Mango environmental properties file was pointing to the keystore it worked.

            So you are all good now? Or still having issues? If you are still stuck you should follow the recommendations in that StackTrace link about enabling SSL logging by adding this to the java command that is starting mango:

            -Djavax.net.debug=SSL
            

            And seeing what the details of the problem are.

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