We're updating the issue view to help you get more done. 

Node crashes in --initial-registration polling mode if doorman returns a transient HTTP error

Description

Example below.

Suggest that node should tolerate HTTP error responses and continue polling until it gets a 200.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [INFO ] 2018-06-15T13:38:43,612Z [main] manifests.Manifests.info - 114 attributes loaded from 156 stream(s) in 155ms, 114 saved, 2397 ignored: ["ActiveMQ-Version", "Agent-Class", "Ant-Version", "Application-Class", "Application-Library-Allowable-Codebase", "Application-Name", "Application-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Branch", "Build-Date", "Build-Host", "Build-Id", "Build-Java-Version", "Build-Jdk", "Build-Job", "Build-Number", "Build-Timestamp", "Built-By", "Built-OS", "Built-Status", "Bundle-Activator", "Bundle-Category", "Bundle-ClassPath", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "CLDR-Version", "Caller-Allowable-Codebase", "Can-Redefine-Classes", "Can-Retransform-Classes", "Can-Set-Native-Method-Prefix", "Caplets", "Change", "Class-Path", "Codebase", "Corda-Platform-Version", "Corda-Release-Version", "Corda-Revision", "Corda-Vendor", "Created-By", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-LazyStart", "Export-Package", "Extension-Name", "Fragment-Host", "Gradle-Version", "Ignore-Package", "Implementation-Build", "Implementation-Build-Date", "Implementation-Title", "Implementation-URL", "Implementation-Url", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "JVM-Args", "Java-Agents", "Java-Vendor", "Java-Version", "Kotlin-Runtime-Component", "Kotlin-Version", "Liquibase-Package", "Log4jReleaseKey", "Log4jReleaseManager", "Log4jReleaseVersion", "Main-Class", "Main-class", "Manifest-Version", "Min-Java-Version", "Min-Update-Version", "Module-Email", "Module-Origin", "Module-Owner", "Module-Source", "Multi-Release", "Originally-Created-By", "Os-Arch", "Os-Name", "Os-Version", "Package", "Permissions", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Capability", "SCM-Revision", "SCM-url", "Scm-Connection", "Scm-Revision", "Scm-Url", "Service-Component", "Specification-Title", "Specification-Vendor", "Specification-Version", "System-Properties", "Tool", "Trusted-Library", "X-Compile-Source-JDK", "X-Compile-Target-JDK"] {} [INFO ] 2018-06-15T13:38:43,849Z [main] BasicInfo.printBasicNodeInfo - Logs can be found in : /home/cctester/tests/9C4C53/logs {} [WARN ] 2018-06-15T13:38:44,902Z [main] internal.config.defaultToOldPath - Config key user has been deprecated and will be removed in a future release. Use username instead {} [ERROR] 2018-06-15T13:40:56,652Z [main] internal.Node.run - Exception during node registration {} java.io.IOException: Response Code 504: <html> <head><title>504 Gateway Time-out</title></head> <body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx/1.10.3 (Ubuntu)</center> </body> </html> at net.corda.node.utilities.registration.HTTPNetworkRegistrationService.retrieveCertificates(HTTPNetworkRegistrationService.kt:58) ~[corda-node-3.0.0-RC02.jar:?] at net.corda.node.utilities.registration.NetworkRegistrationHelper.pollServerForCertificates(NetworkRegistrationHelper.kt:174) ~[corda-node-3.0.0-RC02.jar:?] at net.corda.node.utilities.registration.NetworkRegistrationHelper.buildKeystore(NetworkRegistrationHelper.kt:93) ~[corda-node-3.0.0-RC02.jar:?] at net.corda.node.internal.NodeStartup.registerWithNetwork(NodeStartup.kt:239) ~[corda-node-3.0.0-RC02.jar:?] at net.corda.node.internal.NodeStartup.run(NodeStartup.kt:132) [corda-node-3.0.0-RC02.jar:?] at net.corda.node.Corda.main(Corda.kt:25) [corda-node-3.0.0-RC02.jar:?]

Status

Assignee

Michele Sollecito

Reporter

David Lee

Labels

None

Affected OS

None

Severity

Medium

Target Version/s

R3 Corda 3.0 GA
Corda 3.3

Feature Team

Operational Experience

Fix versions

Priority

Medium