Forum Home › Forums › Installation Issues › SCADA-Web Installation › Bad Gateway / scadaweb6.service
- This topic has 49 replies, 5 voices, and was last updated 1 year, 4 months ago by
Mikhail.
-
AuthorPosts
-
June 25, 2024 at 5:00 pm #14775
FreeLunch
ParticipantOn my minimized Ubuntu server (command line only) systemctl says that scadaweb6.service is:
loaded activating auto-restartAnd I can’t get to the webpage trying to open with another machine. It just goes to a 502 bad gateway.
Same thing when I curl from the command line.
Any idea what’s going on?
-
This topic was modified 1 year, 5 months ago by
FreeLunch.
June 26, 2024 at 12:18 am #14777zzz
ParticipantMaybe try check the following:
Runnetstat -nplv4 |grep dotnetas root, make sure port5000is open, check $rapidscada_dir/ScadaWeb/log/ScadaWeb.logfor error if not.
Runsystemctl status nginx, makesure its running correctly, inspectless /etc/nginx/sites-enabled/$config_file_with_your_rapidscada_setup to confirm port 5000 has been properlyproxy_passed to. If so, check/var/log/nginx/error.logfor further error info.June 26, 2024 at 9:24 am #14782
MikhailModeratorHi,
First of all, check /var/log/scada/ScadaWeb/ScadaWeb.log to realize if the web app
works or not.June 26, 2024 at 2:44 pm #14784FreeLunch
ParticipantWell… there’s the problem. There IS no directory for ScadaWeb. I take that to mean it isn’t started… or there’s a permissions issue in writing to that location. Once again, this is a fresh install of Ubuntu Server 22.04 and following the install docs as carefully as I could.
https://rapidscada.net/docs/en/latest/installation/install-linux
Which said nothing about port 5000 (step #5) unless I totally missed it. I’m guessing with that section in the proxy_pass will get me closer if not solve the problem.
For the record, the systemctl for nginx reports:
nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2024-06-25 16:35:06 UTC; 21h ago Docs: man:nginx(8) Process: 16472 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 16473 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 16474 (nginx) Tasks: 3 (limit: 4303) Memory: 4.3M CPU: 72ms CGroup: /system.slice/nginx.service ├─16474 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;" ├─16475 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" └─16476 "nginx: worker process" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" Jun 25 16:35:06 scada-main-100 systemd[1]: Starting A high performance web server and a reverse proxy server... Jun 25 16:35:06 scada-main-100 systemd[1]: Started A high performance web server and a reverse proxy server.June 26, 2024 at 2:53 pm #14785FreeLunch
ParticipantMy current proxy_pass is set to 10008… which came with the rapidscada archive. So that should be changed to 5000?
June 27, 2024 at 9:45 am #14789
MikhailModeratorOn Linux, the Webstation app works as a daemon, named scadaweb6. It uses the TCP port 10008. It should be available on this port even without nginx. When you use nginx, you can also access the web application on port 80.
TCP port 5000 is not used on Linux by default.
June 27, 2024 at 9:46 am #14790
MikhailModeratorWhat can you try:
1. Stop the scadaweb6 daemon.
2. Run the web app
/usr/bin/dotnet /opt/scada/ScadaWeb/ScadaWeb.dll –urls=http://0.0.0.0:10008
Check console output for errors.June 27, 2024 at 9:48 am #14791
MikhailModeratorDo ScadaServer and ScadaComm work well according to their log files?
June 27, 2024 at 10:29 pm #14792hendra_allo
Participanthi 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: 3msHow to fix this? Thanks
June 28, 2024 at 8:00 am #14796
manjey73Participantdotnet --info?June 28, 2024 at 9:09 am #14797hendra_allo
Participantglobal.json file:
Not foundHost:
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-downloadLearn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-infoJune 28, 2024 at 9:29 am #14798
manjey73ParticipantYou don’t have dotnet installed
Install curl
sudo apt install curlAnd then install dotnet
sudo curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin --channel LTS --runtime aspnetcore --install-dir /usr/share/dotnet/add a link
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnetJune 28, 2024 at 9:32 am #14799
manjey73Participantafter that, check again
dotnet --infoYou should see that you have the runtime installed
.NET runtimes installed: Microsoft.AspNetCore.App 6.0.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]June 28, 2024 at 9:56 am #14800hendra_allo
Participantscada* 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:
NoneEnvironment variables:
DOTNET_ROOT [/home/hendra/dotnet]global.json file:
Not foundLearn more:
https://aka.ms/dotnet/infoDownload .NET:
https://aka.ms/dotnet/download-
This reply was modified 1 year, 4 months ago by
hendra_allo.
June 28, 2024 at 10:10 am #14802 -
This topic was modified 1 year, 5 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.