Oracle Cloud problem ¨- SOLVED

Hello. I used this manual to install Nodered https://blogs.oracle.com/developers/post/installing-node-red-in-an-always-free-vm-on-oracle-cloud.

Port 1880 is opened from internet on my public IP.
sudo firewall-cmd --list-all shows ports: 1880/tcp : node-red 1482 nodered 19u IPv4 32622 0t0 TCP *:1880 (LISTEN)
nodered started and listening on 1880

but there is nothing on http://my-public-ip:1880

Any idea where to start? Thanks

Show us the startup log please (as a result of running node-red-stop then node-red-start. Copy/paste the text please, not screenshot.

I think there is a bit of a flaw in the tutorial, as if you do manage to open your node-red to the internet there is a good chance it will get hacked within minutes (or at least hours). Perhaps that has happened already.

Can you ping your ip?

Regarding to ping - Yes, as I opened ICMP in security list (in Oracle CLoud) I can PING now.
Here is node-red-stop:

[opc@instance-20230805-1252 ~]$ node-red-stop
Stop Node-RED

Use   node-red-start   to start Node-RED again

Here is node-red-start:

Start Node-RED

Once Node-RED has started, point a browser at http://10.0.0.33:1880
On Pi Node-RED works better with the Firefox or Chrome browser

Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
Use   sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to http://flows.nodered.org
6 Aug 07:36:04 - [info]

Welcome to Node-RED
===================

6 Aug 07:36:04 - [info] Node-RED version: v3.0.2
6 Aug 07:36:04 - [info] Node.js  version: v14.21.3
6 Aug 07:36:04 - [info] Linux 5.15.0-102.110.5.1.el8uek.aarch64 arm64 LE
6 Aug 07:36:04 - [info] Loading palette nodes
6 Aug 07:36:04 - [info] Settings file  : /home/opc/.node-red/settings.js
6 Aug 07:36:04 - [info] Context store  : 'default' [module=memory]
6 Aug 07:36:04 - [info] User directory : /home/opc/.node-red
6 Aug 07:36:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
6 Aug 07:36:04 - [info] Flows file     : /home/opc/.node-red/flows.json
6 Aug 07:36:04 - [info] Creating new flow file
6 Aug 07:36:04 - [warn] Encrypted credentials not found
6 Aug 07:36:04 - [info] Server now running at http://127.0.0.1:1880/
6 Aug 07:36:04 - [info] Starting flows
6 Aug 07:36:04 - [info] Started flows

Here are ingress/egress rules from Oracle Cloud:


After reboot (nodered set as service) it shows:

[opc@instance-20230805-1252 ~]$ sudo lsof -i -P -n | grep LISTEN
systemd      1               root   37u  IPv4  23897      0t0  TCP *:111 (LISTEN)
systemd      1               root   39u  IPv6  23899      0t0  TCP *:111 (LISTEN)
rpcbind   1435                rpc    4u  IPv4  23897      0t0  TCP *:111 (LISTEN)
rpcbind   1435                rpc    6u  IPv6  23899      0t0  TCP *:111 (LISTEN)
node-red  1482            nodered   18u  IPv4  32387      0t0  TCP *:1880 (LISTEN)
sshd      2144               root    3u  IPv4  32475      0t0  TCP *:22 (LISTEN)
sshd      2144               root    4u  IPv6  32477      0t0  TCP *:22 (LISTEN)
pmcd      2327                pcp    0u  IPv4  33484      0t0  TCP 127.0.0.1:44321 (LISTEN)
pmcd      2327                pcp    3u  IPv6  33485      0t0  TCP [::1]:44321 (LISTEN)
pmlogger  3119                pcp    7u  IPv4  35574      0t0  TCP 127.0.0.1:4330 (LISTEN)
pmlogger  3119                pcp    8u  IPv6  35575      0t0  TCP [::1]:4330 (LISTEN)
osms-agen 3279               root    7u  IPv6  38624      0t0  TCP 127.0.0.1:32768 (LISTEN)
osms-agen 3279               root   10u  IPv4  38652      0t0  TCP 127.0.0.1:9003 (LISTEN)
[opc@instance-20230805-1252 ~]$

What does the 1482 there mean?

Have you tried IP:1482?

I think 1482 (second column) is process id? Not sure.

Strange. Using this command there is nothing listening on 1880 p ort:


[opc@instance-20230805-1252 ~]$ sudo netstat -tulpn | grep LISTEN
tcp        0      0 127.0.0.1:9003          0.0.0.0:*               LISTEN      3279/osms-agent
tcp        0      0 127.0.0.1:4330          0.0.0.0:*               LISTEN      3119/pmlogger
tcp        0      0 0.0.0.0:1880            0.0.0.0:*               LISTEN      1482/node-red
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2144/sshd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 127.0.0.1:44321         0.0.0.0:*               LISTEN      2327/pmcd
tcp6       0      0 127.0.0.1:32768         :::*                    LISTEN      3279/osms-agent
tcp6       0      0 ::1:4330                :::*                    LISTEN      3119/pmlogger
tcp6       0      0 ::1:44321               :::*                    LISTEN      2327/pmcd
tcp6       0      0 :::22                   :::*                    LISTEN      2144/sshd
tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd

SOrry there is Nodered on 1880.... so problem must be somewghere between VM and internet?

SORRY. Seems like it is running OK and problem is with my browser or internet connection. Thank you very much.

Yes, I think you are right.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.