$ wget http://127.0.0.1:1880/red/
--2017-09-08 14:11:12-- http://127.0.0.1:1880/red/
Connecting to 127.0.0.1:1880... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
$ wget https://127.0.0.1:1880/red
--2017-09-08 14:12:32-- https://127.0.0.1:1880/red
Connecting to 127.0.0.1:1880... connected.
ERROR: The certificate of ‘127.0.0.1’ is not trusted.
ERROR: The certificate of ‘127.0.0.1’ hasn't got a known issuer.
The certificate's owner does not match hostname ‘127.0.0.1’
sudo netstat -tnlp | grep :2086
$ sudo netstat -tnlp | grep :1880
tcp 0 0 0.0.0.0:1880 0.0.0.0:* LISTEN 7685/node-red
sudo netstat -tnlp | grep node-red
sudo ps -ef | grep node-red
Thanks Julian
total 68K
drwxr-xr-x 7 pi pi 4.0K Sep 8 08:35 ./
drwxr-xr-x 14 pi pi 4.0K Sep 7 19:13 ../
-rwxr-xr-x 1 pi pi 249 Jan 13 2017 check-status.sh*
drwxr-xr-x 7 pi pi 4.0K Sep 8 15:06 .data/
drwxr-xr-x 4 pi pi 4.0K Nov 5 2016 .data-clean/
drwxr-xr-x 434 pi pi 20K Sep 8 09:19 node_modules/
-rw-r--r-- 1 pi pi 2.8K Sep 8 08:38 package.json
drwxr-xr-x 8 pi pi 4.0K Nov 20 2016 public/
-rw-r--r-- 1 pi pi 737 Aug 25 2016 README.md
-rwxr-xr-x 1 pi pi 30 Jan 13 2017 restart.sh*
lrwxrwxrwx 1 pi pi 22 Jan 13 2017 showlog.sh -> /home/pi/nrlive-log.sh*
$ ls -la .data-clean/
total 48K
drwxr-xr-x 4 pi pi 4.0K Nov 5 2016 ./
drwxr-xr-x 7 pi pi 4.0K Sep 8 08:35 ../
drwxr-xr-x 5 pi pi 4.0K Nov 5 2016 certs/
-rw-r--r-- 1 pi pi 15K Aug 24 2016 .config.json
-rw-r--r-- 1 pi pi 518 Aug 25 2016 envFile.txt
drwxr-xr-x 3 pi pi 4.0K Aug 24 2016 lib/
-rw-r--r-- 1 pi pi 0 Oct 27 2016 nrlive.db
-rw-r--r-- 1 pi pi 8.1K Nov 5 2016 settings.js
---
# Remove the old versions of Node-RED, Node.JS and npm
# from a vanilla Raspberry Pi (Rasbian) install
# sudo apt-get remove -y nodered
- name: Remove old Node-RED
apt: name=nodered state=absent
become: true
# sudo rm -rf /usr/local/lib/node_modules/node-red* /usr/local/bin/node-red*
- name: Remove local lib/bin modules
command: rm -rf /usr/local/lib/node_modules/node-red* /usr/local/bin/node-red*
become: true
# sudo rm -rf /usr/lib/node_modules/node-red* /usr/bin/node-red*
- name: Remove lib/bin modules
command: rm -rf /usr/lib/node_modules/node-red* /usr/bin/node-red*
become: true
# sudo apt-get remove -y nodejs nodejs-legacy npm
- name: Remove old NodeJS
action: >
{{ ansible_pkg_mgr }} name={{ item }} state=absent
with_items:
- nodejs
- nodejs-legacy
- npm
become: true
# sudo dpkg -r nodejs
- name: Final purge of nodejs
command: dpkg -r nodejs
become: true
# sudo dpkg -r node
- name: Final purge of node
command: dpkg -r node
become: true
# sudo rm -rf /usr/local/bin/npm*
- name: Remove local npm bin modules
command: rm -rf /usr/local/bin/npm*
become: true
# sudo apt-get autoremove -y
- name: Remove useless packages from the cache
command: apt-get autoremove -y
# apt: autoremove=true
become: true
Many thanks for the time you spent on this.
I did go for a complete new install as I was concerned that it was not node-RED that was the issue but something else I may have messed up on the pi.
Wasn't easy because mosquitto will not install on stretch so I had to get the last version of jessie.
Any way, now up an running with a duplicate node-RED. Tomorrow I substitute the old installation with the new and hopefully find the problem solved.
Ian