I was having issues similar to a previous post regarding an unauthorized login. I ran mongorestore
and checked MongoDB-Compass if node-auth
appeared:
I then tried logging in but was met with a “Not authorized to get robot.html” screen instead:
I’ve attached the output from running web_interface_installation.sh
however if there’s anything else I can provide feel free to let me know.
hello-robot@stretch-re1-1010:~$ '/home/hello-robot/catkin_ws/src/stretch_web_interface/bash_scripts/web_interface_installation.sh'
Starting web interface installation script.
Updating with apt.
[sudo] password for hello-robot:
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 https://deb.nodesource.com/node_10.x bionic InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:5 http://packages.ros.org/ros/ubuntu bionic InRelease
Hit:6 https://typora.io/linux ./ InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:8 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease
Fetched 252 kB in 1s (255 kB/s)
Reading package lists... Done
Done.
Installing rosbridge
Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-melodic-rosbridge-server is already the newest version (0.11.13-1bionic.20210112.195018).
The following packages were automatically installed and are no longer required:
libc-ares2 libhttp-parser2.7.1 libllvm9 linux-headers-4.15.0-106
linux-headers-4.15.0-106-generic linux-image-4.15.0-106-generic
linux-modules-4.15.0-106-generic linux-modules-extra-4.15.0-106-generic
nodejs-doc ros-melodic-dynamixel-workbench-single-manager
ros-melodic-dynamixel-workbench-single-manager-gui
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
Done.
Installing Node.js 10
Downloading from the Internet via curl.
## Installing the NodeSource Node.js 10.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://packages.ros.org/ros/ubuntu bionic InRelease
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:7 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease
Hit:8 https://typora.io/linux ./ InRelease
Fetched 252 kB in 1s (235 kB/s)
Reading package lists... Done
## Confirming "bionic" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_10.x/dists/bionic/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js 10.x repo...
+ echo 'deb https://deb.nodesource.com/node_10.x bionic main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_10.x bionic main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit:1 https://deb.nodesource.com/node_10.x bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:4 http://packages.ros.org/ros/ubuntu bionic InRelease
Hit:5 https://typora.io/linux ./ InRelease
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:8 http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic InRelease
Fetched 252 kB in 1s (442 kB/s)
Reading package lists... Done
## Run `sudo apt-get install -y nodejs` to install Node.js 10.x and npm
## You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Installing nodejs with apt-get
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.23.2-1nodesource1).
The following packages were automatically installed and are no longer required:
libc-ares2 libhttp-parser2.7.1 libllvm9 linux-headers-4.15.0-106
linux-headers-4.15.0-106-generic linux-image-4.15.0-106-generic
linux-modules-4.15.0-106-generic linux-modules-extra-4.15.0-106-generic
nodejs-doc ros-melodic-dynamixel-workbench-single-manager
ros-melodic-dynamixel-workbench-single-manager-gui
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
Done.
Installing web-interface Node packages using npm.
audited 275 packages in 1.215s
6 packages are looking for funding
run `npm fund` for details
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
Done.
Installing MongoDB, which is used to store credentials for robot and operator logins.
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb is already the newest version (1:3.6.3-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
libc-ares2 libhttp-parser2.7.1 libllvm9 linux-headers-4.15.0-106
linux-headers-4.15.0-106-generic linux-image-4.15.0-106-generic
linux-modules-4.15.0-106-generic linux-modules-extra-4.15.0-106-generic
nodejs-doc ros-melodic-dynamixel-workbench-single-manager
ros-melodic-dynamixel-workbench-single-manager-gui
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
Done.
Look at the following output to make sure the mongodb service is working.
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset:
Active: active (running) since Fri 2021-02-05 09:21:26 PST; 35min ago
Docs: man:mongod(1)
Main PID: 918 (mongod)
Tasks: 24 (limit: 4915)
CGroup: /system.slice/mongodb.service
└─918 /usr/bin/mongod --unixSocketPrefix=/run/mongodb --config /etc/m
Feb 05 09:21:26 stretch-re1-1010 systemd[1]: Started An object/document-oriented