Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iTAK fails to connect #21

Open
gressdave58 opened this issue Aug 27, 2024 · 6 comments
Open

iTAK fails to connect #21

gressdave58 opened this issue Aug 27, 2024 · 6 comments

Comments

@gressdave58
Copy link

Using clone setup // no ssl : I would say the WARN "error client" message should be a true ERROR

any ideas ?
thanks

time=2024-08-26T21:15:12.620-04:00 level=DEBUG msg="200 GET /connections " logger=admin_api client=127.0.0.1:62025 status=200 ms=0
time=2024-08-26T21:15:13.199-04:00 level=INFO msg="TCP connection from174.196.128.181:6119"
DG NewApp:AddClientHandler.. enter
time=2024-08-26T21:15:13.207-04:00 level=INFO msg=starting client=tcp:174.196.128.181:6119
time=2024-08-26T21:15:13.207-04:00 level=DEBUG msg="send version msg" client=tcp:174.196.128.181:6119
time=2024-08-26T21:15:13.209-04:00 level=WARN msg=error client=tcp:174.196.128.181:6119 error="bad xml: <\x05\xd4c\xb8\x17B\f\x00\x00,\x00\xff\xc0,\xc0+\xc0$\xc0#\xc0\n\xc0\t\xc0\b\xc00\xc0/\xc0(\xc0'\xc0\x14\xc0\x13\xc0\x12\x00\x9d\x00\x9c\x00=\x00<"
time=2024-08-26T21:15:13.210-04:00 level=INFO msg=stopping client=tcp:174.196.128.181:6119
time=2024-08-26T21:15:13.210-04:00 level=INFO msg="remove handler: tcp:174.196.128.181:6119"
time=2024-08-26T21:15:13.211-04:00 level=DEBUG msg="sending <event version="2.0" type="t-x-takp-v" uid="protouid" time="2024-08-27T01:15:13.208283Z" start="2024-08-27T01:15:13.208284Z" stale="2024-08-27T01:16:13.208284Z" how="m-g"><TakProtocolSupport version="1"><point lat="0" lon="0" hae="0" ce="999999" le="999999">" client=tcp:174.196.128.181:6119
time=2024-08-26T21:15:13.211-04:00 level=ERROR msg="error sending ver req" client=tcp:174.196.128.181:6119 error="client is off"
time=2024-08-26T21:15:13.626-04:00 level=DEBUG msg="200 GET /connections " logger=admin_api client=127.0.0.1:62025 status=200 ms=0

@kdudkov
Copy link
Owner

kdudkov commented Aug 27, 2024

looks like malformed xml from your client. What is your client version and connect string?

@gressdave58
Copy link
Author

gressdave58 commented Aug 27, 2024 via email

@kdudkov
Copy link
Owner

kdudkov commented Aug 27, 2024

Every client I know (including civil ITAK) starts conversation with plain XML. I've never test MIL iTAK, don't have one. CIV iTak works well. Write to me in telegram if you feel like to debug some more.

@gressdave58
Copy link
Author

Hi kdudkov,

Sorry but i've never used telegram :-( don't know how to contact you so attached is my qr.

Here is a WinTak ( 5.2.0.153 client ) trying to connect and appears same EOF iTak is getting ... excuse the "DG" msg's i added just to debug

time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 sn: 4a776c686466230330b8a32af19fc9bcec3f9afa"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 subject: CN=test,O=test"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 issuer: CN=my_ca,O=my_ca,C=RU"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 valid till 2027-06-19 00:40:46 +0000 UTC"
DG tcpserver.go:getCertUser .. enter:
DG NewApp:AddClientHandler.. enter
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=starting client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:02.637-04:00 level=DEBUG msg="send version msg" client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG handleRead:er: &{0xc00074c0c0} :pr: &{0xc00074c120}
time=2024-08-29T17:39:02.637-04:00 level=DEBUG msg="sending <event version="2.0" type="t-x-takp-v" uid="protouid" time="2024-08-29T21:39:02.637693Z" start="2024-08-29T21:39:02.637693Z" stale="2024-08-29T21:40:02.637693Z" how="m-g"><TakProtocolSupport version="1"><point lat="0" lon="0" hae="0" ce="999999" le="999999">" client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG tcpserver.go:onTLSClientConnect.. enter:
DG msg:0:
DGDG <------- EOF: EOF
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=EOF client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:02.637-04:00 level=WARN msg=error client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa error=EOF
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=stopping client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG NewApp:RemoveHandlerCb.. enter
DG NewApp:RemoveClientHandler.. enter
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="remove handler: ssl:192.168.0.4:50726"
DG NewApp:cleanOldUnits .. enter
time=2024-08-29T17:39:17.907-04:00 level=DEBUG msg="SSL connection from 192.168.0.4:50757"
DG tcpserver.go:verifyConnection .. enter:
DG tcpserver.go:getCertUser .. enter:
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 sn: 4a776c686466230330b8a32af19fc9bcec3f9afa"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 subject: CN=test,O=test"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 issuer: CN=my_ca,O=my_ca,C=RU"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 valid till 2027-06-19 00:40:46 +0000 UTC"
DG tcpserver.go:getCertUser .. enter:
DG NewApp:AddClientHandler.. enter
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=starting client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:17.938-04:00 level=DEBUG msg="send version msg" client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG handleRead:er: &{0xc0006a40c0} :pr: &{0xc0006a4120}
time=2024-08-29T17:39:17.938-04:00 level=DEBUG msg="sending <event version="2.0" type="t-x-takp-v" uid="protouid" time="2024-08-29T21:39:17.938399Z" start="2024-08-29T21:39:17.938399Z" stale="2024-08-29T21:40:17.9384Z" how="m-g"><TakProtocolSupport version="1"><point lat="0" lon="0" hae="0" ce="999999" le="999999">" client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG msg:0:
DG tcpserver.go:onTLSClientConnect.. enter:
DGDG <------- EOF: EOF
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=EOF client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:17.938-04:00 level=WARN msg=error client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa error=EOF
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=stopping client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG NewApp:RemoveHandlerCb.. enter
DG NewApp:RemoveClientHandler.. enter
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="remove handler: ssl:192.168.0.4:50757"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 sn: 4a776c686466230330b8a32af19fc9bcec3f9afa"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 subject: CN=test,O=test"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 issuer: CN=my_ca,O=my_ca,C=RU"
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="cert #0 valid till 2027-06-19 00:40:46 +0000 UTC"
DG tcpserver.go:getCertUser .. enter:
DG NewApp:AddClientHandler.. enter
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=starting client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:02.637-04:00 level=DEBUG msg="send version msg" client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG handleRead:er: &{0xc00074c0c0} :pr: &{0xc00074c120}
time=2024-08-29T17:39:02.637-04:00 level=DEBUG msg="sending <event version="2.0" type="t-x-takp-v" uid="protouid" time="2024-08-29T21:39:02.637693Z" start="2024-08-29T21:39:02.637693Z" stale="2024-08-29T21:40:02.637693Z" how="m-g"><TakProtocolSupport version="1"><point lat="0" lon="0" hae="0" ce="999999" le="999999">" client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG tcpserver.go:onTLSClientConnect.. enter:
DG msg:0:
DGDG <------- EOF: EOF
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=EOF client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:02.637-04:00 level=WARN msg=error client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa error=EOF
time=2024-08-29T17:39:02.637-04:00 level=INFO msg=stopping client=ssl:192.168.0.4:50726 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG NewApp:RemoveHandlerCb.. enter
DG NewApp:RemoveClientHandler.. enter
time=2024-08-29T17:39:02.637-04:00 level=INFO msg="remove handler: ssl:192.168.0.4:50726"
DG NewApp:cleanOldUnits .. enter
time=2024-08-29T17:39:17.907-04:00 level=DEBUG msg="SSL connection from 192.168.0.4:50757"
DG tcpserver.go:verifyConnection .. enter:
DG tcpserver.go:getCertUser .. enter:
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 sn: 4a776c686466230330b8a32af19fc9bcec3f9afa"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 subject: CN=test,O=test"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 issuer: CN=my_ca,O=my_ca,C=RU"
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="cert #0 valid till 2027-06-19 00:40:46 +0000 UTC"
DG tcpserver.go:getCertUser .. enter:
DG NewApp:AddClientHandler.. enter
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=starting client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:17.938-04:00 level=DEBUG msg="send version msg" client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG handleRead:er: &{0xc0006a40c0} :pr: &{0xc0006a4120}
time=2024-08-29T17:39:17.938-04:00 level=DEBUG msg="sending <event version="2.0" type="t-x-takp-v" uid="protouid" time="2024-08-29T21:39:17.938399Z" start="2024-08-29T21:39:17.938399Z" stale="2024-08-29T21:40:17.9384Z" how="m-g"><TakProtocolSupport version="1"><point lat="0" lon="0" hae="0" ce="999999" le="999999">" client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG msg:0:
DG tcpserver.go:onTLSClientConnect.. enter:
DGDG <------- EOF: EOF
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=EOF client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
time=2024-08-29T17:39:17.938-04:00 level=WARN msg=error client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa error=EOF
time=2024-08-29T17:39:17.938-04:00 level=INFO msg=stopping client=ssl:192.168.0.4:50757 login=test scope=test cert_sn=4a776c686466230330b8a32af19fc9bcec3f9afa
DG NewApp:RemoveHandlerCb.. enter
DG NewApp:RemoveClientHandler.. enter
time=2024-08-29T17:39:17.938-04:00 level=INFO msg="remove handler: ssl:192.168.0.4:50757"

@kdudkov
Copy link
Owner

kdudkov commented Sep 2, 2024

could you try to connect to takserver.ru (qr code is in readme.md)? That way I can fugure where the problem is - in your specific client or in your server configuration.

@gressdave58
Copy link
Author

gressdave58 commented Sep 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants