zzz

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 122 total)
  • Author
    Posts
  • in reply to: Flux is entered maintenance mode #14080
    zzz
    Participant

    I have InfluxDB2 and RapidScada6.0 on a remote box setup a year ago.
    I was thinking about updating influxdb to the latest and just found the change in v3. I guess we need to use InfluxQL more and diminish the use of Flux for query. But it was treated like a 2nd class citizen in v2.

    in reply to: Running .net8 assembly with mono installed #14072
    zzz
    Participant

    OK, there are some path issue when running with wine dotnet ScadaAdmin.dll.
    No language file is loaded, on both wine and windows. I guess some path func changed behaviour.
    (Also clicking on any menu will lead to crash, which only happens on wine).
    On Windows if I click Tools>Language, an error pops up:

    
    [Error Caption]
    [LoadCultureError]:
    Can not find a part of the path c:\program files\dotnet\lang
    

    But publish ... --os win does create an exe that I can run under wine. With the ScadaAdmin.exe loader running from the same path setup, everything works ok on both Linux/wine and Windows.

    With mono I can’t execute any linux native loader for dotnet assembly, e.g. ScadaAdmin ScadaServer. I guess it’s not possible to work around this without issue (considering the above path issue without loader).

    This is not a bug report but more of an observation though.

    • This reply was modified 2 months ago by zzz.
    in reply to: New release Rapid SCADA 6.2.x #14067
    zzz
    Participant

    Do I still need dotnet-sdk-6 after installing dotnet-sdk-8 ? I guess yes?

    Can the compiled assembly be run with dotnet-runtime-6 or also requires runtime-8 ?

    in reply to: scadaadmin6.1 under wine produce difference token? #13182
    zzz
    Participant

    I 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.

    in reply to: Grafana Integration on RapidScada 6 #13179
    zzz
    Participant

    You can also try influxd, it has much better storage efficiency (if you plan to store long term data in influxd) and better time series analysis support.
    It’s just the configuration is a bit inconventional for DBAs used to sql dbs. Interfacing with SQL db is not hard from influxd, but interfacing with influxd from SQL is a different story.

    • This reply was modified 8 months, 3 weeks ago by zzz.
    in reply to: scadaadmin6.1 under wine produce difference token? #13178
    zzz
    Participant

    I 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.

    in reply to: scadaadmin6.1 under wine produce difference token? #13170
    zzz
    Participant

    I edited the code, and recompiled to show masked string in log. Right now, I can’t replicate. Weird.

    in reply to: Convert decimal to hexadecimal from web browser #13097
    zzz
    Participant

    from webbrowers to VFD sounds a bad idea, there should be at least a middle agent to validate the data or access control etc…

    in reply to: Archives by ModArcPostgreSql curcopy_current no data #13096
    zzz
    Participant

    Maybe check your ConfigDB for the Archive bits in Channels.
    Make sure you have set the bits for this copy archive,
    or simply set the bits empty to save to all.

    in reply to: Buid Rapid SCADA 6 on Visual Studio Code #13095
    zzz
    Participant

    ScadaAdmin seems totally dependent on wine version.
    I tried wine 5.0.3, 7.0.3, 8.0.2, all stable version. non works.
    Luckily wine-staging 8.13 worked, tried to install 7.13, but most of its dependence has aged, it’s really difficult.

    As suggested in previous posts wine 7.13 should work, but 8.0.2 didn’t. It is quite unexpected for me. 7.0.3 also make SketchUp unable to render any graphic, (it worked flawlessly on 5.0.3). Apparently neither higher version nor stable release guarantees compatibility or less regression.

    On all non-functional versions, scadaadmin run into stackoverflow and get stuck before any form is shown. Tried binaries compiled with ReadyToRun flag too no difference.
    Tried to find where is this happening on 8.0.3, but stackoverflow kicks in right after new frmMain() before frmMain constructor is called . Maybe sth went wrong within the CLR. Tried several win desktop runtime: 6.0.11, 6.0.20 non worked. But both works in wine-staging 8.0.13.

    Install the right wine version. that’s all.

    in reply to: Can’t get the ModArcPostgreSql to work #13072
    zzz
    Participant

    My setup was messed up I guess, I updated the ScadaServer/Comm/Web/Agent by replacing the folder and overwrite the new Config dir with the old one.

    But my ScadaAdmin was still old 6.0.0. could that be the reason ?

    There isn’t an immigration guide, or is there ? 😀

    • This reply was modified 9 months ago by zzz.
    in reply to: False ServiceCommandFailed error #13071
    zzz
    Participant

    [ 0.126751] smpboot: CPU0: Intel(R) Celeron(R) CPU N2840 @ 2.16GHz (family: 0x6, model: 0x37, stepping: 0x8)

    It’s a Celeron N2840 box air cooled. The disk is not SSD.
    I think give an error on this is not really helpful.
    If there is any failing configuration for the service it’s more likely refuse to start,

    I think it need 10~15s to do a full restart, So I just increase it to 30s just to make sure when it say ServiceCommandFailed failed, it really means it.
    I was having difficulty organizing the compiled files for ServerAdmin, some lang file maybe missing. I think now it looks ok.

    in reply to: Can’t get the ModArcPostgreSql to work #13064
    zzz
    Participant

    OK, I got it.
    In CurCopy Archive Properties>Current Archive Options I left the Use default connection as ticked. And the default connection is actually always an empty connection with all fields set to “”, (at least when checked in PostgreCAL.MakeReady()). Untick Use default connection fixes the problem.

    • This reply was modified 9 months ago by zzz.
    in reply to: v6, DrvDsMqtt not publishing anything. #11611
    zzz
    Participant

    Just found this in the log, maybe of some value ?

    
    2022-11-16 15:16:21 [wst1][appstack][ACT] Communicator 6.0.0.0 started
    2022-11-16 15:16:22 [wst1][appstack][ACT] Storage FileStorage 6.0.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaComm/FileStora
    ge.dll
    2022-11-16 15:16:22 [wst1][appstack][ACT] Start logic processing
    2022-11-16 15:16:23 [wst1][appstack][ACT] Driver DrvCnlBasic 6.0.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaComm/Drv/DrvCnl
    Basic.Logic.dllaz
    2022-11-16 15:16:23 [wst1][appstack][ACT] Driver DrvDsMqtt 6.0.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaComm/Drv/DrvDsMqt
    t.Logic.dll
    2022-11-16 15:16:23 [wst1][appstack][ACT] Driver DrvDsScadaServer 6.0.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaComm/Drv/D
    rvDsScadaServer.Logic.dll
    2022-11-16 15:16:23 [wst1][appstack][ACT] Driver DrvModbus 6.0.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaComm/Drv/DrvModbu
    s.Logic.dll
    2022-11-16 15:16:23 [wst1][appstack][ACT] Data source ScadaServer initialized successfully
    2022-11-16 15:16:28 [wst1][appstack][ACT] Data source MqttServer initialized successfully
    2022-11-16 15:16:28 [wst1][appstack][ACT] Data source ScadaServer: Receive the configuration database
    2022-11-16 15:16:29 [wst1][appstack][ERR] Data source ScadaServer: Error checking server connection:
    Connection refused [::ffff:127.0.0.1]:10000
    2022-11-16 15:16:29 [wst1][appstack][ERR] Unable to start communication lines because the configuration database is not received
    2022-11-16 15:16:38 [wst1][appstack][ACT] Data source ScadaServer: Receive the configuration database
    2022-11-16 15:16:38 [wst1][appstack][ERR] Data source ScadaServer: Error checking server connection:
    Connection refused [::ffff:127.0.0.1]:10000
    2022-11-16 15:16:38 [wst1][appstack][ERR] Unable to start communication lines because the configuration database is not received
    2022-11-16 15:16:48 [wst1][appstack][ACT] Data source ScadaServer: Receive the configuration database
    2022-11-16 15:16:51 [wst1][appstack][ACT] Data source ScadaServer: The configuration database has been received successfully
    2022-11-16 15:16:51 [wst1][appstack][ACT] Start communication lines
    2022-11-16 15:16:52 [wst1][appstack][ERR] Error calling the Start method of the MqttServer data source:
    System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
       at System.Collections.Generic.List
    1.Enumerator.MoveNext()
       at Scada.Comm.Engine.CommLine.SelectDevices()
       at Scada.Comm.Drivers.DrvDsMqtt.Logic.MqttDSL.FillDeviceTopics()
       at Scada.Comm.Drivers.DrvDsMqtt.Logic.MqttDSL.Start()
       at Scada.Comm.Engine.DataSourceHolder.Start()
    2022-11-16 15:16:52 [wst1][appstack][ACT] Start reading commands from files
    2022-11-16 15:16:52 [wst1][appstack][ACT] Data source ScadaServer: Connection state is Logged In
    2022-11-18 10:08:30 [wst1][appstack][ERR] Data source ScadaServer: Error receiving telecontrol commands:
    Incorrect format of data received from the server: unable to read data packet header
    2022-11-18 10:08:30 [wst1][appstack][ACT] Data source ScadaServer: Connection state is Error
    2022-11-18 10:08:30 [wst1][appstack][ERR] Data source ScadaServer: Error receiving telecontrol commands:
    Unable to write data to the transport connection: Broken pipe.
    2022-11-18 10:08:30 [wst1][appstack][ERR] Data source ScadaServer: Error receiving telecontrol commands:
    Connection refused [::ffff:127.0.0.1]:10000
    2022-11-18 10:08:35 [wst1][appstack][ERR] Data source ScadaServer: Error receiving telecontrol commands:
    Connection refused [::ffff:127.0.0.1]:10000
    2022-11-18 10:08:40 [wst1][appstack][ACT] Data source ScadaServer: Connection state is Logged In
    2022-11-21 09:07:21 [wst1][appstack][ACT] Stop communication lines
    2022-11-21 09:07:21 [wst1][appstack][ACT] All communication lines are stopped
    2022-11-21 09:07:21 [wst1][appstack][ACT] Logic processing is stopped
    2022-11-21 09:07:21 [wst1][appstack][ACT] Communicator is stopped
    

    What have you done ? Not sure its days ago.

    • This reply was modified 1 year, 5 months ago by zzz.
    • This reply was modified 1 year, 5 months ago by zzz.
    in reply to: Formula #11597
    zzz
    Participant

    You can check the document for predefined variables, in this case CnlVal, Val(n).

    https://rapidscada.net/doc/content/latest/en/software-configuration/using-formulas.html

Viewing 15 posts - 1 through 15 (of 122 total)