• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Help getting Magic mirror running on Ubuntu Server 16.04.4 LTS as a SERVER

Scheduled Pinned Locked Moved General Discussion
6 Posts 4 Posters 3.7k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    j-lewis
    last edited by j-lewis Mar 9, 2018, 4:36 AM Mar 7, 2018, 6:23 AM

    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:8080

    I 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.js

    File 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!

    M 1 Reply Last reply Mar 8, 2018, 12:30 PM Reply Quote 0
    • A Offline
      Alvinger
      last edited by Mar 8, 2018, 10:08 AM

      @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 1 Reply Last reply Mar 9, 2018, 4:30 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @j-lewis
        last edited by Mar 8, 2018, 12:30 PM

        @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 install

        Installing dependencies for MM using sudo causes permissions problems

        Create a working config
        How to add modules

        J 1 Reply Last reply Mar 9, 2018, 4:33 AM Reply Quote 0
        • J Offline
          j-lewis @Alvinger
          last edited by yawns Mar 9, 2018, 5:34 AM Mar 9, 2018, 4:30 AM

          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.

          1 Reply Last reply Reply Quote 0
          • J Offline
            j-lewis @Mykle1
            last edited by j-lewis Mar 9, 2018, 4:37 AM Mar 9, 2018, 4:33 AM

            @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?

            1 Reply Last reply Reply Quote 0
            • Y Offline
              yawns Moderator
              last edited by Mar 9, 2018, 5:35 AM

              the file needs to be config.js, the existing file config.js.sample is just a sample and will be ignored

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                2/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy