Skip to content

dmsgweb erroneous dmsg error 102 - entry is not of client in discovery when entry is a client #323

@0pcom

Description

@0pcom

This error affects reward distribution and are present on develop branch of skycoin and dmsg

$ source sendrewards.conf ; REWARD_SYS_URL=${REWARD_SYS_URL%:*} ; REWARD_SYS_PK=${REWARD_SYS_URL##*/} ; go run github.com/skycoin/skywire@develop dmsg web -Z -e 7 -t ${REWARD_SYS_PK} -s ${REWARD_WL_SK} -p 8081

...

[2025-11-08T09:50:08.579994606-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[2025-11-08T09:50:08.580077004-06:00] WARN [dmsgweb]: Failed to connect to HTTP server error="Get "dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s": dmsg error 102 - entry is not of client in discovery"
[DMSGWEB] 2025/11/08 - 09:50:08 | 500 |     509.024µs |       127.0.0.1 |                                                          127.0.0.1:52420 | GET      /skycoin-rewards/s
[2025-11-08T09:50:08.586431071-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[2025-11-08T09:50:08.58652983-06:00] WARN [dmsgweb]: Failed to connect to HTTP server error="Get "dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s": dmsg error 102 - entry is not of client in discovery"
[DMSGWEB] 2025/11/08 - 09:50:08 | 500 |      176.91µs |       127.0.0.1 |                                                          127.0.0.1:52428 | GET      /skycoin-rewards/s

not happening on v1.3.31

source sendrewards.conf ; REWARD_SYS_URL=${REWARD_SYS_URL%:*} ; REWARD_SYS_PK=${REWARD_SYS_URL##*/} ; go run github.com/skycoin/skywire@v1.3.31 dmsg web -Z -e 7 -t ${REWARD_SYS_PK} -s ${REWARD_WL_SK} -p 8081

...


[2025-11-08T09:51:43.585961119-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[DMSGWEB] 2025/11/08 - 09:51:44 | 200 |  839.440325ms |       127.0.0.1 |                                                          127.0.0.1:54910 | GET      /skycoin-rewards/s
[2025-11-08T09:51:44.433539955-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[DMSGWEB] 2025/11/08 - 09:51:45 | 200 |  691.755966ms |       127.0.0.1 |                                                          127.0.0.1:54924 | GET      /skycoin-rewards/s
[2025-11-08T09:51:45.134584242-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/csv
[DMSGWEB] 2025/11/08 - 09:51:45 | 200 |  740.710128ms |       127.0.0.1 |                                                          127.0.0.1:54932 | GET      /skycoin-rewards/csv
[2025-11-08T09:51:45.890944111-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/hist/2025-11-05_stats.txt
[DMSGWEB] 2025/11/08 - 09:51:46 | 200 |   718.66162ms |       127.0.0.1 |                                                          127.0.0.1:54940 | GET      /skycoin-rewards/hist/2025-11-05_stats.txt
[2025-11-08T09:51:48.959222014-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/csv
[DMSGWEB] 2025/11/08 - 09:51:49 | 200 |  738.562134ms |       127.0.0.1 |                                                          127.0.0.1:54944 | GET      /skycoin-rewards/csv
[2025-11-08T09:51:49.703162199-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/hist/2025-11-05_rewardtxn0.csv
[DMSGWEB] 2025/11/08 - 09:51:50 | 200 |   686.30151ms |       127.0.0.1 |                                                          127.0.0.1:54946 | GET      /skycoin-rewards/hist/2025-11-05_rewardtxn0.csv
[2025-11-08T09:51:50.491822688-06:00] DEBUG [dmsgweb]: Proxying request: POST dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/reward
[DMSGWEB] 2025/11/08 - 09:51:53 | 200 |  2.898435461s |       127.0.0.1 |                                                          127.0.0.1:33698 | POST     /reward
[2025-11-08T09:51:56.489790353-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[DMSGWEB] 2025/11/08 - 09:51:57 | 200 |  847.944718ms |       127.0.0.1 |                                                          127.0.0.1:33706 | GET      /skycoin-rewards/s
[2025-11-08T09:51:57.344825798-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/s
[DMSGWEB] 2025/11/08 - 09:51:58 | 200 |  702.021155ms |       127.0.0.1 |                                                          127.0.0.1:33708 | GET      /skycoin-rewards/s
[2025-11-08T09:51:58.055379763-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/csv
[DMSGWEB] 2025/11/08 - 09:51:58 | 200 |   738.13473ms |       127.0.0.1 |                                                          127.0.0.1:33712 | GET      /skycoin-rewards/csv
[2025-11-08T09:51:58.807905251-06:00] DEBUG [dmsgweb]: Proxying request: GET dmsg://036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f/skycoin-rewards/hist/2025-11-06_stats.txt
[DMSGWEB] 2025/11/08 - 09:51:59 | 200 |  696.781158ms |       127.0.0.1 |                                                          127.0.0.1:33716 | GET      /skycoin-rewards/hist/2025-11-06_stats.txt


There should be e2e tests that cover this. i'll try to come up with some.

this appears to affect dmsgcurl also ; perhaps other dmsg utilities as well.

the entry above is a client in the discovery

$ skywire cli mdisc entry 036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f
	version: 0.0.1
	sequence: 124348
	registered at: 1762620962662904420
	static public key: 036a70e6956061778e1883e928c1236189db14dfd446df23d83e45c321b330c91f
	signature: 4a67393cd188087f1014900b9db294bf21f65ad5539cc397eea2c42479643baf4245ad1ae00fd5f9608ffe2c161fba9253bb87de06df412c74b284f0d3550a0900
	entry is registered as client. Related info: 
		delegated servers: 
			02a2d4c346dabd165fd555dfdba4a7f4d18786fe7e055e562397cd5102bdd7f8dd
			02a49bc0aa1b5b78f638e9189be4ed095bac5d6839c828465a8350f80ac07629c0
			0371ab4bcff7b121f4b91f6856d6740c6f9dc1fe716977850aeb5d84378b300a13
			0281a102c82820e811368c8d028cf11b1a985043b726b1bcdb8fce89b27384b2cb
			03717576ada5b1744e395c66c2bb11cea73b0e23d0dcd54422139b1a7f12e962c4
			0326978f5a53aff537dbb47fed58b1f123af3b00132d365f1309a14db4168dcff7


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions