ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Kosenchuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-10447) thin nodejs: can't execute example AuthTlsExample.js
Date Thu, 29 Nov 2018 22:15:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-10447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16703894#comment-16703894
] 

Alexey Kosenchuk commented on IGNITE-10447:
-------------------------------------------

[~spilschikov] Hi!

We've checked the example. It works fine.

Seems your node cfg is not full/correct - eg. we do not see authenticationEnabled,...

The correct settings we used are described here: https://issues.apache.org/jira/browse/IGNITE-8463?focusedCommentId=16483178&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16483178

Also, the examples executors (including AuthTlsExample) are included into NodeJS test suite
in TeamCity which run periodically and successfully passed. Eg. the latest one: [https://ci.ignite.apache.org/viewLog.html?buildId=2426645&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_ThinClientNodeJs]

 

 

> thin nodejs: can't execute example AuthTlsExample.js
> ----------------------------------------------------
>
>                 Key: IGNITE-10447
>                 URL: https://issues.apache.org/jira/browse/IGNITE-10447
>             Project: Ignite
>          Issue Type: Bug
>          Components: thin client
>    Affects Versions: 2.7
>            Reporter: Stepan Pilschikov
>            Assignee: ekaterina.vergizova
>            Priority: Major
>
> Trying to run script from nodejs/examples/AuthTlsExample.js but connection failed
> using latest  [CI build|https://ci.ignite.apache.org/viewLog.html?buildId=2410261&buildTypeId=Releases_NightlyRelease_ObsoleteApacheIgniteNightlyReleaseAssembleBinaries&tab=artifacts]
> Output:
> {code}
> $ ignite/modules/platforms/nodejs/examples$ node AuthTlsExample.js 
> Client is stopped
> [localhost:10800] Connection failed: Error: Client network socket disconnected before
secure TLS connection was established
> ERROR: [localhost:10800] Connection failed: Error: Client network socket disconnected
before secure TLS connection was established
> {code}
> config.xml
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
>        http://www.springframework.org/schema/beans/spring-beans.xsd">
>     <bean id="cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
>         <property name="sslContextFactory">
>             <bean class="org.apache.ignite.ssl.SslContextFactory">
>             <property name="keyStoreFilePath" value="/ignite/modules/platforms/nodejs/examples/certs/keystore.jks"/>
>             <property name="keyStorePassword" value="123456"/>
>             <property name="trustStoreFilePath" value="/ignite/modules/platforms/nodejs/examples/certs/truststore.jks"/>
>             <property name="trustStorePassword" value="123456"/>
>             </bean>
>         </property>
>     </bean>
> </beans>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message