corda-webserver connect to p2pAddress of corda node - corda

We tried to start up corda-webserver to connect to existing corda node but encountered following error message.
corda-webserver.jar, corda.jar, and node.conf are in the folder. Would you please help us? Thank you.
[ERROR] 2017-12-13T09:32:48,957Z [main] core.client.createConnection - AMQ214016: Failed to create netty connection
javax.net.ssl.SSLException: handshake timed out
at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
[INFO ] 2017-12-13T09:32:48,959Z [main] internal.RPCClient.logElapsedTime - Startup took 10010 msec
[INFO ] 2017-12-13T09:32:49,960Z [main] internal.NodeWebServer.connectLocalRpcAsNodeUser - Connecting to node at 1.115.29.253:**10002** as node user
Corda version : 1.0
node.conf
myLegalName="O=XXX,L=XXXX,C=XX"
networkMapService {
address="one-networkmap.corda.r3cev.com:10002"
legalName="L=Dublin, C=IE, O=TestNet NetworkMap"
}
p2pAddress="1.115.29.253:10002"
rpcAddress="1.115.29.253:10003"
webAddress="1.115.29.253:10004"
keyStorePassword : "XXX"
trustStorePassword : "XXX"
extraAdvertisedServiceIds: [ "" ]
useHTTPS : false
devMode : false
rpcUsers=[
{
user=XXX
password=XXX
permissions=[
ALL
]
}
]
certificateSigningService="https://one-doorman.corda.r3cev.com"
full log of corda-webserver
[INFO ] 2017-12-15T10:29:08,523Z [main] webserver.CmdLineOptions.loadConfig - Config:
{
# hardcoded value
"baseDirectory" : "/home/ubuntu/Corda/r3_Testnet/PartyA",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 23
"certificateSigningService" : "https://one-doorman.corda.r3cev.com",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 13
"devMode" : false,
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 11
"extraAdvertisedServiceIds" : [
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 11
""
],
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 9
"keyStorePassword" : "cordacadevpass",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 1
"myLegalName" : "O=XXX,L=XXXX,C=XX",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 2
"networkMapService" : {
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 3
"address" : "one-networkmap.corda.r3cev.com:10002",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 4
"legalName" : "L=Dublin, C=IE, O=TestNet NetworkMap"
},
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 6
"p2pAddress" : "1.115.29.253:10002",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 7
"rpcAddress" : "1.115.29.253:10003",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 14
"rpcUsers" : [
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 15
{
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 17
"password" : "corda_is_awesome",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 18
"permissions" : [
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 19
"ALL"
],
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 16
"user" : "corda"
}
],
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 10
"trustStorePassword" : "trustpass",
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 12
"useHTTPS" : false,
# /home/ubuntu/Corda/r3_Testnet/PartyA/node.conf: 8
"webAddress" : "1.115.29.253:10004"
}
[INFO ] 2017-12-15T10:29:08,547Z [main] Main.main - Main class: /home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-webserver-impl-1.0.0.jar
[INFO ] 2017-12-15T10:29:08,579Z [main] Main.main - CommandLine Args: -Xmx200m -XX:+UseG1GC -javaagent:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/quasar-core-0.7.9-jdk8.jar -Dvisualvm.display.name=Corda -Djava.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0 -Dcapsule.app=net.corda.webserver.WebServer_1.0.0 -DWebserver -Dcapsule.dir=/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0 -Dcapsule.jar=/home/ubuntu/Corda/r3_Testnet/PartyA/corda-webserver.jar
[INFO ] 2017-12-15T10:29:08,670Z [main] Main.main - Application Args:
[INFO ] 2017-12-15T10:29:08,670Z [main] Main.main - bootclasspath: /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/classes
[INFO ] 2017-12-15T10:29:08,670Z [main] Main.main - classpath: /home/ubuntu/Corda/r3_Testnet/PartyA/corda-webserver.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-rpc-1.0.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-jackson-1.0.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-node-api-1.0.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-core-1.0.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-webapp-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-servlet-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-container-jetty-http-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-security-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-server-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javax.servlet-api-3.1.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/commons-fileupload-1.3.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/log4j-slf4j-impl-2.7.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/log4j-core-2.7.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jopt-simple-5.0.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-container-servlet-core-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-server-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-media-json-jackson-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kotlinx-html-jvm-0.6.3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kotlin-stdlib-jre8-1.1.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-module-kotlin-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kotlin-reflect-1.1.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jsr305-3.0.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jcl-over-slf4j-1.7.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/slf4j-api-1.7.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/rxjava-1.2.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/commons-jexl3-3.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-datatype-jsr310-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-jaxrs-json-provider-2.8.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-jaxrs-base-2.8.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-module-jaxb-annotations-2.8.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-databind-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/eddsa-0.2.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/bcpkix-jdk15on-1.57.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/bcprov-jdk15on-1.57.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/hibernate-jpa-2.1-api-1.0.0.Final.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/quasar-core-0.7.9-jdk8.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-dataformat-yaml-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/artemis-core-client-2.1.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/artemis-commons-2.1.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/guava-21.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-xml-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-server-detector-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-jsr160-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-jmx-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-serializer-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-notif-pull-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-notif-sse-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-discovery-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-service-history-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jolokia-server-core-2.0.0-M3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/commons-io-2.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/log4j-api-2.7.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-client-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-media-jaxb-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-common-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-entity-filtering-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javax.ws.rs-api-2.0.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javax.annotation-api-1.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/hk2-locator-2.5.0-b30.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/hk2-api-2.5.0-b30.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javax.inject-2.5.0-b30.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/validation-api-1.1.0.Final.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-http-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-io-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-util-9.3.9.v20160517.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jetty-continuation-9.2.14.v20151106.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-annotations-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kotlin-stdlib-jre7-1.1.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kotlin-stdlib-1.1.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jackson-core-2.8.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/config-1.3.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kryo-serializers-0.41.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/kryo-4.0.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/proton-j-0.21.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/snakeyaml-1.17.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/json-simple-1.1.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jersey-guava-2.25.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/osgi-resource-locator-1.0.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/hk2-utils-2.5.0-b30.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/aopalliance-repackaged-2.5.0-b30.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javassist-3.20.0-GA.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jgroups-3.6.13.Final.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/netty-all-4.1.9.Final.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/geronimo-json_1.0_spec-1.0-alpha-1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/johnzon-core-0.9.5.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/jboss-logging-3.3.0.Final.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/commons-beanutils-1.9.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/reflectasm-1.11.3.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/minlog-1.3.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/objenesis-2.2.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/javax.inject-1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/commons-collections-3.2.1.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/asm-5.0.4.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/annotations-13.0.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/corda-webserver-impl-1.0.0.jar:/home/ubuntu/Corda/r3_Testnet/PartyA/plugins/corda-finance-1.0.0.jar:/home/ubuntu/Corda/r3_Testnet/PartyA/plugins/java-source-0.1.jar:/home/ubuntu/Corda/r3_Testnet/PartyA/plugins/tradeix-concord-demo_marcopolo-release-2017-12-06-14-05-12.jar:/home/ubuntu/.capsule/apps/net.corda.webserver.WebServer_1.0.0/quasar-core-0.7.9-jdk8.jar
[INFO ] 2017-12-15T10:29:08,671Z [main] Main.main - VM Java HotSpot(TM) 64-Bit Server VM Oracle Corporation 25.131-b11
[INFO ] 2017-12-15T10:29:08,671Z [main] Main.main - Machine: ip-10-240-2-174
[INFO ] 2017-12-15T10:29:08,672Z [main] Main.main - Working Directory: /home/ubuntu/Corda/r3_Testnet/PartyA
[INFO ] 2017-12-15T10:29:09,471Z [main] Main.main - Starting as webserver on 1.115.29.253:10004
[INFO ] 2017-12-15T10:29:09,527Z [main] BasicInfo.logAndMaybePrint - Starting as webserver: 1.115.29.253:10004
[INFO ] 2017-12-15T10:29:09,527Z [main] internal.NodeWebServer.connectLocalRpcAsNodeUser - Connecting to node at 1.115.29.253:10002 as node user
[ERROR] 2017-12-15T10:29:20,917Z [main] core.client.createConnection - AMQ214016: Failed to create netty connection
javax.net.ssl.SSLException: handshake timed out
at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
[INFO ] 2017-12-15T10:29:20,967Z [main] internal.RPCClient.logElapsedTime - Startup took 11190 msec
[INFO ] 2017-12-15T10:29:21,968Z [main] internal.NodeWebServer.connectLocalRpcAsNodeUser - Connecting to node at 1.115.29.253:10002 as node user

You need to connect to the node via the RPC port as opposed to the P2P port. Cheers!

Related

JFrog Artifactory OSS - Getting 401 unauthorized error when trying the Set Me Up or Edit User

I am using JFrog Artifactory OSS 7.46.8 (Self hosted - docker version)
When using the "Set Me Up" option or editing any user from Admin view, basically any operation that calls the "/ui/api/v1/ui/userApiKey/" endpoint fails with 401.
I enabled the debug logging and below are the log I was able to find related to this.
Error generated when user logs in:
User-Changed authentication cache accessed
2022-12-14T08:18:28.679Z [jfrt ] [DEBUG] [ ] [o.a.o.ArtifactoryTracer:78 ] [http-nio-8081-exec-5] - Found existing Tracing Span. A new child Server Tracing Span will be associated with it
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [.AuthenticationFilterUtils:146] [http-nio-8081-exec-5] - Entering ArtifactorySsoAuthenticationFilter.getRemoteUserName
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.AccessFilter:434 ] [http-nio-8081-exec-5] - Cached key has been found for request: '/artifactory/api/onboarding/initStatus' with method: 'GET'
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.AccessFilter:232 ] [http-nio-8081-exec-5] - Non-UI authentication cache accessed
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.AccessFilter:227 ] [http-nio-8081-exec-5] - UI authentication cache accessed
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-5] - User-Changed authentication cache accessed
2022-12-14T08:18:28.680Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.AccessFilter:440 ] [http-nio-8081-exec-5] - Header authentication AccessTokenAuthentication [Principal=admin, Credentials=[PROTECTED], Authenticated=true, Details=null, Granted Authorities=[]] found in cache.
2022-12-14T08:18:28.681Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.a.w.s.RepoFilter:113 ] [http-nio-8081-exec-5] - Entering request GET ("IP-REMOVED") /api/onboarding/initStatus.
2022-12-14T08:18:28.681Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [o.j.a.c.h.AccessHttpClient:128] [http-nio-8081-exec-5] - Executing : POST http://localhost:8046/access/api/v1/auth/authenticate
2022-12-14T08:18:28.692Z [jfrt ] [DEBUG] [2f4d3b87c15ab8be] [rtifactoryInitStatusService:91] [http-nio-8081-exec-5] - Unable to authenticate user: 'admin'
org.jfrog.access.client.AccessClientHttpException: HTTP response status 401:Failed on executing request. Response: {
"errors" : [ {
"code" : "UNAUTHORIZED",
"message" : "Invalid credentials"
} ]
}
at org.jfrog.access.client.http.AccessHttpClient.createRestResponse(AccessHttpClient.java:184)
at org.jfrog.access.client.http.AccessHttpClient.restCall(AccessHttpClient.java:131)
at org.jfrog.access.client.auth.AuthClientImpl.authenticate(AuthClientImpl.java:93)
at org.artifactory.ui.rest.service.onboarding.GetArtifactoryInitStatusService.execute(GetArtifactoryInitStatusService.java:86)
at org.artifactory.rest.common.service.ServiceExecutor.process(ServiceExecutor.java:39)
at org.artifactory.rest.common.resource.BaseResource.runService(BaseResource.java:141)
at org.artifactory.ui.rest.resource.onboarding.ArtifactoryOnboardingResource.getInitStatus(ArtifactoryOnboardingResource.java:62)
at jdk.internal.reflect.GeneratedMethodAccessor957.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
Error generated when the userApiKey is called.
User-Changed authentication cache accessed
2022-12-14T08:22:13.600Z [jfrt ] [DEBUG] [61b44ab36079c799] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-3] - User-Changed authentication cache accessed
2022-12-14T08:22:13.601Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [o.j.a.c.h.AccessHttpClient:128] [http-nio-8081-exec-2] - Executing : POST http://localhost:8046/access/api/v1/auth/authenticate
2022-12-14T08:22:13.602Z [jfrt ] [DEBUG] [333a63a9b7c7563c] [nRepositoryResponseWrapper:230] [http-nio-8081-exec-8] - Skip invoking on
2022-12-14T08:22:13.602Z [jfrt ] [DEBUG] [333a63a9b7c7563c] [o.a.w.s.RepoFilter:208 ] [http-nio-8081-exec-8] - Exiting request GET (127.0.0.1) /api/securityconfig
2022-12-14T08:22:13.602Z [jfrt ] [DEBUG] [333a63a9b7c7563c] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-8] - User-Changed authentication cache accessed
2022-12-14T08:22:13.602Z [jfrt ] [DEBUG] [333a63a9b7c7563c] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-8] - User-Changed authentication cache accessed
2022-12-14T08:22:13.604Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [PassAuthenticationProvider:126] [http-nio-8081-exec-2] - 401, Access didn't authenticate user: 'admin'
2022-12-14T08:22:13.605Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [priseAuthenticationProvider:87] [http-nio-8081-exec-2] - Non docker request. Github provider supports only docker requests.
2022-12-14T08:22:13.605Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [o.j.a.c.h.AccessHttpClient:128] [http-nio-8081-exec-2] - Executing : GET http://localhost:8046/access/api/v1/users/admin?expand=groups
2022-12-14T08:22:13.608Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [nRepositoryResponseWrapper:230] [http-nio-8081-exec-2] - Skip invoking on
2022-12-14T08:22:13.608Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [o.a.w.s.RepoFilter:208 ] [http-nio-8081-exec-2] - Exiting request GET ("IP-REMOVED") /api/userApiKey/admin
2022-12-14T08:22:13.608Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-2] - User-Changed authentication cache accessed
2022-12-14T08:22:13.608Z [jfrt ] [DEBUG] [3e9a4f8ab10ac74 ] [o.a.w.s.AccessFilter:237 ] [http-nio-8081-exec-2] - User-Changed authentication cache accessed
2022-12-14T08:22:13.610Z [jffe ] [ERROR] [03e9a4f8ab10ac74] [frontend-service.log] [main ] - Error: Request failed with status code 401
at createError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/axios/lib/core/createError.js:16:15)
at settle (/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/opt/jfrog/artifactory/app/frontend/bin/server/dist/node_modules/axios/lib/adapters/http.js:322:11)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
What will be the solution of this?
This can be a problem with your loadbalancer/reverse proxy. Check if it allows "OPTIONS" method. At least I had a similar case.

artifactory after upgrade to 7.47.11 not started - Unexpected response status code: 500

My original version was not old, around 7.41.x, after updating to the latest version, artifactory no longer starts. I can't understand the problem as I don't understand the architecture well. Please help me figure it out. There are no specific errors in the logs.
Artifactory status web page
As far as I understand, the problem is that for some reason the service that implements the user interface on port 8070 does not start.
There is nothing interesting in the logs for this service.
last errors in logs console.log
2022-12-10T19:48:33.842Z [jfrou] [ERROR] [5fb2daba52b5d736] [healthcheck.go:66 ] [main ] [] - Checking health of service 'jffe_000-artifactory' using URL 'http://localhost:8070/readiness' returned an error: Get "http://localhost:8070/readiness": dial tcp 127.0.0.1:8070: connect: connection refused
2022-12-10T19:48:33.852Z [jfrou] [ERROR] [5fb2daba52b5d736] [healthcheck.go:71 ] [main ] [] - Checking health of service 'jfrt_01d96rcgsyfzkj1xnv8zqe1snm-artifactory' using URL 'http://localhost:8091/artifactory/api/v1/system/readiness' returned unexpected response status: 500
2022-12-10T19:48:33.853Z [jfrou] [WARN ] [5fb2daba52b5d736] [local_topology.go:274 ] [main ] [] - Readiness test failed with the following error: "required node services are missing or unhealthy"
2022-12-10T19:48:35.991Z [jfac ] [ERROR] [52b88c5fcb86903d] [o.j.c.ExecutionUtils:190 ] [jf-common-pool-2 ] - Router readiness check failed, cannot start Access
2022-12-10T19:48:35.994Z [jfac ] [ERROR] [52b88c5fcb86903d] [a.s.b.AccessServerRegistrar:79] [jf-common-pool-1 ] - Could not register access
2022-12-10T20:09:28.988Z [jfrou] [ERROR] [37b0a206df08bfae] [healthcheck.go:66 ] [main ] [] - Checking health of service 'jffe_000-artifactory' using URL 'http://localhost:8070/readiness' returned an error: Get "http://localhost:8070/readiness": dial tcp 127.0.0.1:8070: connect: connection refused
2022-12-10T20:09:28.995Z [jfrou] [ERROR] [37b0a206df08bfae] [healthcheck.go:71 ] [main ] [] - Checking health of service 'jfrt_01d96rcgsyfzkj1xnv8zqe1snm-artifactory' using URL 'http://localhost:8091/artifactory/api/v1/system/readiness' returned unexpected response status: 500
I checked the access rights, the availability of the database, the correctness of the configuration files. Tried running ./artifactory.sh and watching the launch progress.
[jfrou] [ERROR] [1dd615d3e5a6357a] [healthcheck.go:71 ] [main ] [] - Checking health of service 'jfrt_01d96rcgsyfzkj1xnv8zqe1snm-artifactory' using URL 'http://localhost:8091/artifactory/api/v1/system/readiness' returned unexpected response status: 500
curl http://localhost:8091/artifactory/api/v1/system/readiness
{
"errors" : [ {
"status" : 500,
"message" : "Bad credentials"
} ]
add:
I spent more than 10 hours on the analysis, turned on the debug. I found this problem, maybe this is just the reason.
I can't find how to fix it yet.
2022-12-11T06:33:14.769Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [.AuthenticationFilterUtils:146] [http-nio-8081-exec-8] - Entering ArtifactorySsoAuthenticationFilter.getRemoteUserName
2022-12-11T06:33:14.769Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [o.a.w.s.AccessFilter:519 ] [http-nio-8081-exec-8] - Using anonymous
2022-12-11T06:33:14.770Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [o.a.w.s.AccessFilter:232 ] [http-nio-8081-exec-8] - Non-UI authentication cache accessed
2022-12-11T06:33:14.770Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [o.a.w.s.AccessFilter:227 ] [http-nio-8081-exec-8] - UI authentication cache accessed
2022-12-11T06:33:14.770Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [o.a.w.s.AccessFilter:523 ] [http-nio-8081-exec-8] - Creating the Anonymous token
2022-12-11T06:33:14.775Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [PassAuthenticationProvider:126] [http-nio-8081-exec-8] - 401, Access didn't authenticate user: 'anonymous'
2022-12-11T06:33:14.776Z [jfrt ] [DEBUG] [349c95a5eb2a97e9] [priseAuthenticationProvider:87] [http-nio-8081-exec-8] - Non docker request. Github provider supports only docker requests.
2022-12-11T06:33:14.781Z [jfrt ] [DEBUG] [ ] [o.a.w.s.ArtifactoryFilter:130 ] [http-nio-8081-exec-8] - org.artifactory.webapp.servlet.ArtifactoryFilter
org.springframework.security.authentication.BadCredentialsException: Bad credentials
at org.artifactory.security.db.DbAuthenticationProvider.additionalAuthenticationChecks(DbAuthenticationProvider.java:64)
at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:147)
at org.artifactory.security.db.DbAuthenticationProvider.authenticate(DbAuthenticationProvider.java:53)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:182)
at org.artifactory.security.RealmAwareAuthenticationManager.authenticate(RealmAwareAuthenticationManager.java:68)
at org.artifactory.webapp.servlet.AccessFilter.useAnonymousIfPossible(AccessFilter.java:533)
at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:301)
at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.artifactory.webapp.servlet.ArtifactoryCsrfFilter.doFilter(ArtifactoryCsrfFilter.java:83)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164)
at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)
at org.artifactory.webapp.servlet.SessionFilter.doFilter(SessionFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.artifactory.webapp.servlet.ArtifactoryTracingFilter.doFilter(ArtifactoryTracingFilter.java:38)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:289)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:924)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:833)

JFrog Artifactory failed to initialize with error 500

Installed Artifactory on centos VM using open source rpm package but it fails to initialize.
{
"errors" : [ {
"status" : 500,
"message" : "Artifactory failed to initialize: check Artifactory logs for errors."
} ]
}
Tried adding below in system.yaml file:
shared:
node:
ip: <your ipv4 IP>
Post checking console logs says below error:
Error while trying to connect to local router at address 'http://localhost:8046/access': Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
2021-01-05T10:36:18.597Z [jfrt ] [ERROR] [f61fe454765979f3] [ctoryContextConfigListener:126] [art-init ] - Application could not be initialized: Connection refused (Connection refused)
java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.artifactory.lifecycle.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:265)
at org.artifactory.lifecycle.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:122)
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.security.access.AccessService'.; nested exception is java.lang.reflect.UndeclaredThrowableException
at org.artifactory.spring.ArtifactoryApplicationContext.initReloadableBeans(ArtifactoryApplicationContext.java:302)
at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:284)
at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:174)
... 6 common frames omitted
Caused by: java.lang.reflect.UndeclaredThrowableException: null
at com.sun.proxy.$Proxy184.init(Unknown Source)
at org.artifactory.spring.ArtifactoryApplicationContext.initReloadableBeans(ArtifactoryApplicationContext.java:300)
... 8 common frames omitted
Caused by: java.util.concurrent.ExecutionException: org.jfrog.common.ExecutionFailed: Cluster join: Service registry ping failed; Error while trying to connect to local router at address 'http://localhost:8046/access': Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
at org.jfrog.access.client.AccessServerStartupValidator.waitForServer(AccessServerStartupValidator.java:39)
at org.jfrog.access.client.AccessClientBootstrap.waitForServer(AccessClientBootstrap.java:149)
at org.jfrog.access.client.AccessClientBootstrap.<init>(AccessClientBootstrap.java:104)
at org.jfrog.access.client.AccessClientBootstrap.<init>(AccessClientBootstrap.java:134)
at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClient(AccessServiceImpl.java:1290)
at org.artifactory.security.access.AccessServiceImpl.lambda$bootstrapAccessClient$23(AccessServiceImpl.java:1251)
at io.vavr.control.Try.mapTry(Try.java:634)
at io.vavr.control.Try.map(Try.java:585)
at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClient(AccessServiceImpl.java:1251)
at org.artifactory.security.access.AccessServiceImpl.initAccessService(AccessServiceImpl.java:421)
at org.artifactory.security.access.AccessServiceImpl.initAccessClientIfNeeded(AccessServiceImpl.java:410)
at org.artifactory.security.access.AccessServiceImpl.init(AccessServiceImpl.java:403)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:76)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
... 10 common frames omitted
Caused by: org.jfrog.common.ExecutionFailed: Cluster join: Service registry ping failed; Error while trying to connect to local router at address 'http://localhost:8046/access': Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.jfrog.common.ExecutionUtils.handleStopError(ExecutionUtils.java:156)
at org.jfrog.common.ExecutionUtils.handleFunctionExecution(ExecutionUtils.java:103)
at org.jfrog.common.ExecutionUtils.lambda$generateExecutionRunnable$0(ExecutionUtils.java:67)
at org.jfrog.common.ExecutionUtils$MDCRunnableDecorator.run(ExecutionUtils.java:172)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jfrog.common.RetryException: Error while trying to connect to local router at address 'http://localhost:8046/access': Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.jfrog.access.client.AccessServerStartupValidator.convertToRetryException(AccessServerStartupValidator.java:56)
at io.vavr.API$Match$Case0.apply(API.java:5135)
at io.vavr.API$Match.option(API.java:5105)
at io.vavr.control.Try.mapFailure(Try.java:602)
at org.jfrog.access.client.AccessServerStartupValidator.pingAccess(AccessServerStartupValidator.java:46)
at org.jfrog.common.ExecutionUtils.handleFunctionExecution(ExecutionUtils.java:100)
... 7 common frames omitted
Caused by: org.jfrog.access.client.AccessClientException: Unable to connect to Access server: Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.jfrog.access.client.http.AccessHttpClient.restCall(AccessHttpClient.java:143)
at org.jfrog.access.client.http.AccessHttpClient.ping(AccessHttpClient.java:114)
at org.jfrog.access.client.AccessClientImpl.ping(AccessClientImpl.java:252)
at io.vavr.control.Try.run(Try.java:118)
at org.jfrog.access.client.AccessServerStartupValidator.pingAccess(AccessServerStartupValidator.java:45)
... 8 common frames omitted
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8046 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at org.jfrog.client.http.CloseableHttpClientDecorator.doExecute(CloseableHttpClientDecorator.java:109)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.jfrog.access.client.http.AccessHttpClient.restCall(AccessHttpClient.java:130)
... 12 common frames omitted
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:609)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
... 24 common frames omitted
2021-01-05T10:36:19.367Z [jfrt ] [ERROR] [ ] [o.a.w.s.ArtifactoryFilter:213 ] [http-nio-8081-exec-8] - Artifactory failed to initialize: Context is null
2021-01-05T10:36:21.058Z [jfac ] [WARN ] [f455f35e70ecf56 ] [o.j.c.ExecutionUtils:142 ] [pool-23-thread-2 ] - Retry 180 Elapsed 1.52 minutes failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again
^C
Below is the snippet of router.log:
#HumayunM - Below is the snippet of router.log:
2021-01-05T10:34:55.424Z [jfrou] [FATAL] [112e7162aa72477c] [bootstrap.go:101 ] [main ] - Could not join access, err: Cluster join: Failed joining the cluster; Error: Error response from service registry, status code: 400; message: Could not validate router Check-url: http://108.167.159.189:8082/router/api/v1/system/ping; detail: I/O error on GET request for "http://108.167.159.189:8082/router/api/v1/system/ping": Connect to 108.167.159.189:8082 [/108.167.159.189] failed: Connection refused (Connection refused); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to 108.167.159.189:8082 [/108.167.159.189] failed: Connection refused (Connection refused)
2021-01-05T11:05:29.439Z [jfrou] [INFO ] [d21e36b02d1a444 ] [bootstrap.go:72 ] [main ] - Router (jfrou) service initialization started. Version: 7.12.4-1 Revision: 5060ba45bc3229a899aee49cb87d680398ab017f PID: 20257 Home: /opt/jfrog/artifactory
2021-01-05T11:05:29.440Z [jfrou] [INFO ] [d21e36b02d1a444 ] [bootstrap.go:75 ] [main ] - JFrog Router IP: 108.167.159.189
2021-01-05T11:05:29.441Z [jfrou] [INFO ] [d21e36b02d1a444 ] [bootstrap.go:175 ] [main ] - System configuration encryption report:
shared.newrelic.licenseKey: does not exist in the config file
shared.security.joinKeyFile: file '/opt/jfrog/artifactory/var/etc/security/join.key' - already encrypted
2021-01-05T11:05:29.442Z [jfrou] [INFO ] [d21e36b02d1a444 ] [bootstrap.go:80 ] [main ] - JFrog Router Service ID: jfrou#01ev5km60hpft7szeaf1n24e48
2021-01-05T11:05:29.442Z [jfrou] [INFO ] [d21e36b02d1a444 ] [bootstrap.go:81 ] [main ] - JFrog Router Node ID: osboxes.org
2021-01-05T11:05:29.476Z [jfrou] [INFO ] [d21e36b02d1a444 ] [http_client_holder.go:155 ] [main ] - System cert pool contents were loaded as trusted CAs for TLS communication
2021-01-05T11:05:29.476Z [jfrou] [INFO ] [d21e36b02d1a444 ] [http_client_holder.go:175 ] [main ] - Following certificates were successfully loaded as trusted CAs for TLS communication:
[/opt/jfrog/artifactory/var/data/router/keys/trusted/access-root-ca.crt]
2021-01-05T11:05:31.486Z [jfrou] [INFO ] [d21e36b02d1a444 ] [config_holder.go:107 ] [main ] - Configuration update detected
2021-01-05T11:05:31.780Z [jfrou] [INFO ] [d21e36b02d1a444 ] [join_executor.go:118 ] [main ] - Cluster join: Trying to rejoin the cluster
2021-01-05T11:05:32.629Z [jfrou] [FATAL] [d21e36b02d1a444 ] [bootstrap.go:101 ] [main ] - Could not join access, err: Cluster join: Failed joining the cluster; Error: Error response from service registry, status code: 400; message: Could not validate router Check-url: http://108.167.159.189:8082/router/api/v1/system/ping; detail: I/O error on GET request for "http://108.167.159.189:8082/router/api/v1/system/ping": Connect to 108.167.159.189:8082 [/108.167.159.189] failed: Connection refused (Connection refused); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to 108.167.159.189:8082 [/108.167.159.189] failed: Connection refused (Connection refused)

Artifactory : Application could not be initialized: Invalid DNS name: maven.domain.org:-1

I'm trying to upgrade Artifactory from 6.18 to 7.3.2 and I'm facing error like Invalid DNS name maven.domain.org:-1 . This is not the real dns name I have but the DNS name reported already exist and was running for version 6.18.
2020-10-22T19:05:51.377Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [actorySchedulerFactoryBean:727] [art-init ] - Starting Quartz Scheduler now
2020-10-22T19:05:51.470Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [ifactoryApplicationContext:271] [art-init ] - Artifactory context starting up 58 Spring Beans...
2020-10-22T19:05:51.959Z [jfrt ] [ERROR] [cdd01d4e0b52e2fc] [OnboardingYamlBootstrapper:100] [art-init ] - can't import file artifactory.config.import.yml - Artifactory repositories have already been created
2020-10-22T19:05:51.977Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [o.a.s.a.AccessServiceImpl:408 ] [art-init ] - Initialized new service id: jfrt#01bpj5k40d37v91t153m5y15sa
2020-10-22T19:05:52.035Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [oryAccessClientConfigStore:590] [art-init ] - Using Access Server URL: https://maven.domain.org/access source: System Property
2020-10-22T19:05:52.826Z [jfac ] [INFO ] [5c8eee656ba614dc] [s.r.NodeRegistryServiceImpl:63] [http-nio-8081-exec-3] - Cluster join: Successfully joined jfrt#01bpj5k40d37v91t153m5y15sa with node id artifactory.server
2020-10-22T19:05:52.869Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [.a.c.AccessClientBootstrap:169] [art-init ] - Cluster join: Successfully joined the cluster
2020-10-22T19:05:52.871Z [jfrt ] [INFO ] [cdd01d4e0b52e2fc] [o.j.a.c.g.AccessGrpcClient:74 ] [art-init ] - Connecting to grpc server on maven.domain.org:-1
2020-10-22T19:05:52.884Z [jfrt ] [INFO ] [ ] [o.j.c.w.ConfigWrapperImpl:504 ] [Thread-17 ] - [Node ID: artifactory.server] detected local modify for config 'artifactory.security.access/access.admin.token'
2020-10-22T19:05:53.121Z [jfrt ] [ERROR] [cdd01d4e0b52e2fc] [ctoryContextConfigListener:115] [art-init ] - Application could not be initialized: Invalid DNS name: maven.domain.org:-1
java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:249)
at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:111)
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.security.access.AccessService'.; nested exception is java.lang.IllegalArgumentException: Invalid DNS name: maven.domain.org:-1
at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:281)
at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:159)
... 6 common frames omitted
Caused by: java.lang.IllegalArgumentException: Invalid DNS name: maven.domain.org:-1
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:217)
It makes a week I'm searching why the configuration don't grab the port instead of -1 in dns name.
Thank you for your help.
Patrice

encounter ActiveMQConnectionTimedOutException when starting corda-webserver.jar which connects to SSL-enabled RPC interface of a node

Corda Open source v3.2
We tried to enable SSL on RPC interface of a node
node.conf
myLegalName="O=PartyA,L=London,C=GB"
p2pAddress="localhost:10007"
rpcSettings {
address="localhost:10008"
adminAddress="localhost:10048"
useSsl=true
ssl {
certificatesDirectory="./certificates"
keyStorePassword="cordacadevpass"
trustStorePassword="trustpass"
}
}
rpcUsers=[
{
password=test
permissions=[
ALL
]
user=user1
}
]
webAddress="localhost:10009"
useHTTPS=true
Ane then we tried to start corda-webserver.jar to connect to SSL-enabled RPC interface of this node, but we encountered following error
[INFO ] 2018-10-31T09:36:52,457Z [main] Main.main - Starting as webserver on localhost:10009 {}
[INFO ] 2018-10-31T09:36:52,635Z [main] BasicInfo.logAndMaybePrint - Starting as webserver: localhost:10009 {}
[WARN ] 2018-10-31T09:36:53,254Z [main] internal.config.defaultToOldPath - Config key user has been deprecated and will be removed in a future release. Use username instead {}
[INFO ] 2018-10-31T09:36:53,287Z [main] internal.NodeWebServer.connectLocalRpcAsNodeUser - Connecting to node at localhost:10008 as User(user1, permissions=[ALL]) {}
[INFO ] 2018-10-31T09:37:28,126Z [main] internal.RPCClient.logElapsedTime - Startup took 32973 msec {}
[ERROR] 2018-10-31T09:37:28,126Z [main] internal.NodeWebServer.retryConnectLocalRpc - Cannot start WebServer {}
org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException: AMQ119013: Timed out waiting to receive cluster topology. Group:null
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:804) ~[artemis-core-client-2.2.0.jar:2.2.0]
at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:191) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:123) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:86) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:204) ~[corda-core-3.2-corda.jar:?]
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:196) ~[corda-core-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:109) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:135) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:120) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.connectLocalRpcAsNodeUser(NodeWebServer.kt:195) ~[corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.retryConnectLocalRpc(NodeWebServer.kt:172) [corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.start(NodeWebServer.kt:45) [corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.WebServer.main(WebServer.kt:64) [corda-webserver-impl-3.2-corda.jar:?]
[ERROR] 2018-10-31T09:37:28,137Z [main] Main.main - Exception during node startup {}
org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException: AMQ119013: Timed out waiting to receive cluster topology. Group:null
at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:804) ~[artemis-core-client-2.2.0.jar:2.2.0]
at net.corda.client.rpc.internal.RPCClientProxyHandler.start(RPCClientProxyHandler.kt:191) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:123) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient$start$1.invoke(RPCClient.kt:86) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:204) ~[corda-core-3.2-corda.jar:?]
at net.corda.core.internal.InternalUtils.logElapsedTime(InternalUtils.kt:196) ~[corda-core-3.2-corda.jar:?]
at net.corda.client.rpc.internal.RPCClient.start(RPCClient.kt:109) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:135) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.client.rpc.CordaRPCClient.start(CordaRPCClient.kt:120) ~[corda-rpc-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.connectLocalRpcAsNodeUser(NodeWebServer.kt:195) ~[corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.retryConnectLocalRpc(NodeWebServer.kt:172) ~[corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.internal.NodeWebServer.start(NodeWebServer.kt:45) ~[corda-webserver-impl-3.2-corda.jar:?]
at net.corda.webserver.WebServer.main(WebServer.kt:64) [corda-webserver-impl-3.2-corda.jar:?]
May we know if any missing setting?
Thank you.
This is a bug in Corda 3.x. It will be fixed in Corda 4.

Resources