energywebfoundation / ewc-system-tests

System level tests for EnergyWebChain
http://energyweb.org/
GNU General Public License v3.0
1 stars 2 forks source link

Telemetry signer: unhandled exception #19

Closed danzipie closed 5 years ago

danzipie commented 5 years ago

Setup A validator that did not set up the secondary telemetry channel

Log


signer_1       |    at TelemetrySigner.Program.Main(String[] args) in /builds/ewf/project-equestria/telemetry-signer/app/Program.cs:line 89
signer_1       | Telemetry signer starting...
signer_1       | Configuration:
signer_1       |        Reading from: /influxdb.sock
signer_1       |        Sending telemetry to: https://35.180.57.91
signer_1       |        Ingress fingerprint: 6F:68:09:E4:9E:26:C6:F5:5C:95:74:E1:62:E1:CF:0B:4C:86:47:75:B7:3F:77:94:2C:93:09:AB:17:63:FA:6A
signer_1       |        Using NodeId: 0xebee2fc556975c3dd50c17d13a15af535fb7bbb3
signer_1       |
signer_1       | Unhandled Exception: System.ArgumentException: SFTP host is empty
signer_1       | Parameter name: sftpHost
signer_1       |    at TelemetrySigner.FtpManager..ctor(String userName, String password, String sftpHost, Int32 port, String fingerPrint, String workingDir) in /builds/ewf/project-equestria/telemetry-signer/app/FTPManager.cs:line 49
signer_1       |    at TelemetrySigner.Program.Main(String[] args) in /builds/ewf/project-equestria/telemetry-signer/app/Program.cs:line 89
signer_1       | Telemetry signer starting...
signer_1       | Configuration:
signer_1       |        Reading from: /influxdb.sock
signer_1       |        Sending telemetry to: https://35.180.57.91
signer_1       |        Ingress fingerprint: 6F:68:09:E4:9E:26:C6:F5:5C:95:74:E1:62:E1:CF:0B:4C:86:47:75:B7:3F:77:94:2C:93:09:AB:17:63:FA:6A
signer_1       |        Using NodeId: 0xebee2fc556975c3dd50c17d13a15af535fb7bbb3
signer_1       |
signer_1       | Unhandled Exception: System.ArgumentException: SFTP host is empty
signer_1       | Parameter name: sftpHost
signer_1       |    at TelemetrySigner.FtpManager..ctor(String userName, String password, String sftpHost, Int32 port, String fingerPrint, String workingDir) in /builds/ewf/project-equestria/telemetry-signer/app/FTPManager.cs:line 49
signer_1       |    at TelemetrySigner.Program.Main(String[] args) in /builds/ewf/project-equestria/telemetry-signer/app/Program.cs:line 89
docker-stack_signer_1 exited with code 139```
junaidev commented 5 years ago

Signer expects SFTP_HOST in command line arguments. Required command line args for second channel are : SFTP_HOST, SFTP_PORT, SFTP_USER, SFTP_PASS, SFTP_FINGER_PRINT, FTP_DIR

elasticroentgen commented 5 years ago

@danzipie you might have forgotten to setup SC_FP and SC_IP on the affiliate validator scripts. (assuming you're setting up an affiliate validator as it is not clear from the ticket)

danzipie commented 5 years ago

The issue was caused by not having set the secondary telemetry channel during the validator installation.

For future reference: it is mandatory to set the secondary telemetry channel, otherwise the primary one will not work as well.