Forum Home › Forums › Development and Integration › scadaadmin6.1 under wine produce difference token?
Tagged: modarchinfluxdb, ScadaAdmin, wine
- This topic has 5 replies, 2 voices, and was last updated 2 years ago by
Mikhail.
-
AuthorPosts
-
August 3, 2023 at 8:06 am #13167
zzz
ParticipantThe influxdb token uploaded from scadaadmin6.1 on wine 8.3
becomes a totally different token sent by rs6 to influx (checked viatcpdump -i lo port 8086 -A
on server).
Re-uploading the same token from scadaadmin6.1 on windows works just fine.The
*
mask makes debugging such issue very frustrating, since once pasted or typed, you never know if you have typied sth wrong or sth weird elsewhere in the chain happened, they are either masked or hashed, there is nowhere to verify.August 3, 2023 at 8:51 am #13170zzz
ParticipantI edited the code, and recompiled to show masked string in log. Right now, I can’t replicate. Weird.
August 3, 2023 at 12:40 pm #13172Mikhail
ModeratorWhat was the cause of different ScadaAdmin behavior?
August 4, 2023 at 2:42 am #13178zzz
ParticipantI can’t replicated after
wine scadaadmin.exe
restarted. I usually put laptop at suspend after work, that instance of scadaadmins on wine has run for more than a week or so. A wild guess sth. internally might have corrupted in previous operations, a restart just fixed it.There are two possibilities, either it submitted wrong token, or it failed to update the config, either way, after several upload attempts from scadaadmin on wine, I can see in tcpdump RS6 server is sending some unknown token to influxd.
Previously I deleted the token RS6 used before. since it was using my admin token, and in influx web there is no way to see existing token ( You can see all tokens in influx CLI, but that requires you to have an admin token first 🙁 ), web console only allows rename/delete, a bit like in scadaadmin. Thus I can only delete and recreate a new admin token and create a new customized token for rs6 for writing.
So I can’t say if the unknown token in tcpdump is from previous old config (a failed to update issue) or an mis-encode/decoded token (as was suspected from previous post) but either way, there is something weird happening, since everything is masked, I can’t say what exactly happened for sure…Just posted here for caution when using scadaadmin with wine , and raising awareness of the inconvenience of mask everything up approach.
August 4, 2023 at 6:14 am #13182zzz
ParticipantI got it. I switched scadaadmin to ExtDepPostgreSql, I though the server will be affected by this change and neglected, this actually does nothing server side. so false alarm, on the wine stuff. Masked secrets are still a pain for debugging.
August 4, 2023 at 8:48 am #13185Mikhail
ModeratorThank you for the info.
-
AuthorPosts
- You must be logged in to reply to this topic.