Read the statement by Michael Teeuw here.
Help getting Magic mirror running on Ubuntu Server 16.04.4 LTS as a SERVER
-
I’m trying to install MM on Ubuntu Server 16.04.4 LTS (with all latest patches etc.)
I am following the manual instructions on https://github.com/MichMich/MagicMirror.
I:
- Downloaded and installed the latest Node.js version. (v9.7.1)
- Cloned the repository and checked out the master branch: git clone https://github.com/MichMich/MagicMirror
- Entered the repository: cd ~/MagicMirror
- Installed: (update sudo- does not work I removed it) npm install
- ran SERVER only node serveronly
got the following messages:
Loading module helpers …
Initializing new module helper …
Module helper loaded: updatenotification
No helper found for module: helloworld.
All module helpers loaded.
Starting server on port 8080 …
Server started …
Connecting socket for: updatenotification
Sockets connected & modules started …
Ready to go! Please point your browser to: http://localhost:8080I then went on my mac and typed in http://192.168.0.100:8080 (ipaddress of my magic mirror ubuntu server) and got The connection was reset.
I then tried
npm run config:check
magicmirror@2.2.2 config:check /home/ubuntu/MagicMirror
node tests/configs/check_config.jsFile not found: /home/ubuntu/MagicMirror/config/config.js
Please note: The second time I ran it I’m getting
WARNING! Could not find config file. Please create one. Starting with default configuration.
UPDATE: I think the issue is with the binding on NPM as it’s only binding to the localhost and not to the IP address of the machine. Does anyone know how to fix that?
HELP!
-
@j-lewis,
For some reason your config.js file is missing or inaccessible. Can you issue the command
ls -l /home/ubuntu/MagicMirror/config
and post the output. It would also be easier to help if you can post the content of the file/home/ubuntu/MagicMirror/config/config.js
. -
@j-lewis said in Help getting Magic mirror running on Ubuntu Server 16.04.4 LTS as a SERVER:
Entered the repository: cd ~/MagicMirror
Installed: sudo npm installInstalling dependencies for MM using sudo causes permissions problems
-
ubuntu@UbuntuMagic:~$ ls -l /home/ubuntu/MagicMirror/config total 4 -rw-rw-r-- 1 ubuntu ubuntu 2615 Mar 6 20:19 config.js.sample ubuntu@UbuntuMagic:~$ more /home/ubuntu/MagicMirror/config *** /home/ubuntu/MagicMirror/config: directory ***
I think the issue is with the binding on NPM as it’s only binding to the localhost and not to the IP address of the machine.
-
@Mykle1 Correct. That was a typo as I was initially having install problems, so I removed the install and did it again without the sudo. The log/error above is after doing the install without the sudo. Sorry for any confusion!
I think the main issue is with the NPM binding… any idea how to fix that?
-
the file needs to be
config.js
, the existing fileconfig.js.sample
is just a sample and will be ignored