hendra_allo

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Bad Gateway / scadaweb6.service #14899
    hendra_allo
    Participant

    024-07-05 22:12:22 [hendra-ThinkPad-X220][root][ACT] Webstation is stopped
    ——————————————————————————–
    ——————————————————————————–
    2024-07-05 22:12:32 [hendra-ThinkPad-X220][root][ACT] Webstation 6.2.0.1 started
    2024-07-05 22:12:32 [hendra-ThinkPad-X220][root][ACT] Storage FileStorage 6.2.0.0 loaded from file /opt/scada/ScadaWeb/FileStorage.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgChart 6.0.2.0 loaded from file /opt/scada/ScadaWeb/PlgChart.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgMain 6.0.3.1 loaded from file /opt/scada/ScadaWeb/PlgMain.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgScheme 6.0.2.0 loaded from file /opt/scada/ScadaWeb/PlgScheme.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgSchBasicComp 6.0.2.0 loaded from file /opt/scada/ScadaWeb/PlgSchBasicComp.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgStore 6.0.0.0 loaded from file /opt/scada/ScadaWeb/PlgStore.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgWebPage 6.0.2.0 loaded from file /opt/scada/ScadaWeb/PlgWebPage.dll
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgScheme: Retrieve scheme components from the installed plugins
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Plugin PlgScheme: Added components from the PlgSchBasicComp plugin
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] Receive the configuration database
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ACT] The configuration database has been received successfully
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][INF] The application is ready for operating
    2024-07-05 22:12:33 [hendra-ThinkPad-X220][root][ERR] Web host failed to start:
    System.IO.IOException: Failed to bind to address http://0.0.0.0:10008: address already in use.
    —> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
    —> System.Net.Sockets.SocketException (98): Address already in use
    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
    — End of inner exception stack trace —
    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
    at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
    — End of stack trace from previous location —
    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
    — End of inner exception stack trace —
    @

    in reply to: Bad Gateway / scadaweb6.service #14898
    hendra_allo
    Participant

    hi Mikhail, I just sorted out the issue by observing file /var/log/scada/ScadaWeb/log/ScadaWeb.log, it said the address 0.0.0.0:10008 already used. Then I run

    sudo lsof -i tcp:10008

    and I found it was used by php. Then I killed the php process, and now ScadaWeb is running well and I can access rapidscada via the browser. Thanks for your help.

    in reply to: Bad Gateway / scadaweb6.service #14890
    hendra_allo
    Participant

    When I open http://localhost:10008, now comes the message “The connection was reset”. Still can’t open openscada interface yet.

    in reply to: Bad Gateway / scadaweb6.service #14819
    hendra_allo
    Participant

    ScadaComm.log:

    2024-06-28 22:03:31 [hendra-ThinkPad-X220][root][ACT] Communicator 6.2.0.0 started
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Storage FileStorage 6.2.0.0 loaded from file /opt/scada/ScadaComm/FileStorage.dll
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Start logic processing
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Driver DrvDsScadaServer 6.0.1.1 loaded from file /opt/scada/ScadaComm/Drv/DrvDsScadaServer.Logic.dll
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Driver DrvSimulator 6.0.0.0 loaded from file /opt/scada/ScadaComm/Drv/DrvSimulator.Logic.dll
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Data source ScadaServer initialized successfully
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ACT] Data source ScadaServer: Receive the configuration database
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ERR] Data source ScadaServer: Error checking server connection:
    Connection refused [::ffff:127.0.0.1]:10000
    2024-06-28 22:03:33 [hendra-ThinkPad-X220][root][ERR] Unable to start communication lines because the configuration database is not received
    2024-06-28 22:03:43 [hendra-ThinkPad-X220][root][ACT] Data source ScadaServer: Receive the configuration database
    2024-06-28 22:03:44 [hendra-ThinkPad-X220][root][ACT] Data source ScadaServer: The configuration database has been received successfully
    2024-06-28 22:03:44 [hendra-ThinkPad-X220][root][ACT] Start communication lines
    2024-06-28 22:03:44 [hendra-ThinkPad-X220][root][ACT] Start reading commands from files
    2024-06-28 22:03:44 [hendra-ThinkPad-X220][root][ACT] Data source ScadaServer: Connection state is Logged In

    in reply to: Bad Gateway / scadaweb6.service #14818
    hendra_allo
    Participant

    nginx error log (last line)

    2024/06/28 23:28:08 [error] 1235#1235: *14 recv() failed (104: Unknown error) while reading response header from upstream, client: 127.0.0.1, server: _, request: “GET /Scada/ HTTP/1.1”, upstream: “http://127.0.0.1:10008/Scada/&#8221;, host: “127.0.0.1”

    in reply to: Bad Gateway / scadaweb6.service #14817
    hendra_allo
    Participant

    Session with ID -7665733298275766740 created
    2024-06-28 23:31:02 [hendra-ThinkPad-X220][root][ACT] Client 127.0.0.1 connected
    2024-06-28 23:31:02 [hendra-ThinkPad-X220][root][ACT] User ScadaWeb is successfully authenticated
    2024-06-28 23:31:04 [hendra-ThinkPad-X220][root][ACT] Client 127.0.0.1 disconnected

    in reply to: Bad Gateway / scadaweb6.service #14814
    hendra_allo
    Participant

    I have copied the file, still bad gateway appear

    in reply to: Bad Gateway / scadaweb6.service #14809
    hendra_allo
    Participant

    where is nginx default file located?

    in reply to: Bad Gateway / scadaweb6.service #14806
    hendra_allo
    Participant

    ● nginx.service – A high performance web server and a reverse proxy server
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:>
    Active: active (running) since Fri 2024-06-28 22:03:29 NZST; 13min ago
    Docs: man:nginx(8)

    in reply to: Bad Gateway / scadaweb6.service #14803
    hendra_allo
    Participant

    sorry, scadaweb6.service seems still doesn’t work

    ● scadaweb6.service – Rapid SCADA Webstation
    Loaded: loaded (/etc/systemd/system/scadaweb6.service; enabled; vendor pre>
    Active: activating (auto-restart) since Fri 2024-06-28 22:10:22 NZST; 2s a>
    Process: 5152 ExecStart=/usr/bin/dotnet /opt/scada/ScadaWeb/ScadaWeb.dll –>
    Main PID: 5152 (code=exited, status=0/SUCCESS)
    CPU: 864ms

    in reply to: Bad Gateway / scadaweb6.service #14800
    hendra_allo
    Participant

    scada* daemon are now running, but dotnet version is 8.0.6 and 502 Bad Gateway still appear.

    .NET SDKs installed:
    No SDKs were found.

    .NET runtimes installed:
    Microsoft.AspNetCore.App 8.0.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 8.0.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

    Other architectures found:
    None

    Environment variables:
    DOTNET_ROOT [/home/hendra/dotnet]

    global.json file:
    Not found

    Learn more:
    https://aka.ms/dotnet/info

    Download .NET:
    https://aka.ms/dotnet/download

    • This reply was modified 1 year, 1 month ago by hendra_allo.
    in reply to: Bad Gateway / scadaweb6.service #14797
    hendra_allo
    Participant

    global.json file:
    Not found

    Host:
    Version: 6.0.31
    Architecture: x64
    Commit: e2ca2f8a1c

    .NET SDKs installed:
    No SDKs were found.

    .NET runtimes installed:
    No runtimes were found.

    Download .NET:
    https://aka.ms/dotnet-download

    Learn about .NET Runtimes and SDKs:
    https://aka.ms/dotnet/runtimes-sdk-info

    in reply to: Bad Gateway / scadaweb6.service #14792
    hendra_allo
    Participant

    hi all. Still relevant with this topic, I am facing the issue with 502 Bad Gateway of Nginx. It seems to me that scada* daemon can not start. Following the response when I check the scadaserver6.service status:

    ● scadaserver6.service – Rapid SCADA Server
    Loaded: loaded (/etc/systemd/system/scadaserver6.service; enabled; vendor >
    Active: activating (auto-restart) (Result: exit-code) since Fri 2024-06-28>
    Process: 5198 ExecStart=/usr/bin/dotnet /opt/scada/ScadaServer/ScadaServerW>
    Main PID: 5198 (code=exited, status=131)
    CPU: 3ms

    How to fix this? Thanks

Viewing 13 posts - 1 through 13 (of 13 total)