• 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.

Error on start

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 4.9k 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.
  • N Offline
    negativeflare
    last edited by Nov 15, 2016, 9:23 PM

    When starting with the “node serveronly” (I can’t get npm to launch electron for some reason), I get this error:
    pi@raspberrypi:~/MagicMirror $ node serveronly
    Loading config …
    WARNING! Could not load config file. Starting with default configuration. Error found: TypeError: Object # has no method ‘accessSync’
    Loading module helpers …
    No helper found for module: helloworld.
    All module helpers loaded.
    Starting server op port 8080 …
    Server started …
    Sockets connected & modules started …

    Ready to go! Please point your browser to: http://localhost:8080

    I don’t understand why it won’t use my config. The config is identical to the sample one that its in the config folder.

    B 1 Reply Last reply Nov 16, 2016, 1:38 AM Reply Quote 0
    • B Offline
      bhepler Module Developer @negativeflare
      last edited by Nov 16, 2016, 1:38 AM

      @negativeflare There are a couple things to check. For starters, make sure that you copied the config.js.sample to config.js. All lowercase. And it must be in the ~/MagicMirror/config folder.

      Assuming those are true, copy & paste your config.js in this thread, using the markdown commands. We’ll take a look at it and see if we notice anything.

      1 Reply Last reply Reply Quote 0
      • 0 Offline
        04housemat
        last edited by Nov 21, 2016, 7:56 PM

        I am also having this exact same problem. Also when trying to run as server only. The config.js file is correctly named and in the correct location. I have not changed the content at all. When I look at the browser, all of the modules just say “Loading …”.
        Any ideas?

        B 1 Reply Last reply Nov 22, 2016, 4:28 AM Reply Quote 0
        • B Offline
          bhepler Module Developer @04housemat
          last edited by Nov 22, 2016, 4:28 AM

          @04housemat What version of the Pi do you have and how did you install MagicMirror?

          While you’re at it, head over www.openweathermap.com and 1) get an API key, and 2) find the location # for where you wish to see the current weather conditions and forecast. These need to go into the config.js file.

          0 1 Reply Last reply Nov 22, 2016, 10:02 PM Reply Quote 0
          • 0 Offline
            04housemat @bhepler
            last edited by Nov 22, 2016, 10:02 PM

            @bhepler Thanks for your reply! Its a raspberry pi zero. I downloaded the zip from github, followed the manual install instructions. "Enter the repository: cd ~/MagicMirror, Install and run the app: npm install && npm start. "
            Seems to be working ok, just not loading the config. I’ve updated the file with these details now :)

            1 Reply Last reply Reply Quote 0
            • P Offline
              paulkilla
              last edited by paulkilla Nov 28, 2016, 1:05 AM Nov 28, 2016, 1:05 AM

              @negativeflare I had this error as well after setting up on a Raspberry Pi (1) only yesterday and running as serveronly.

              I found that to fix this I had to upgrade node, as doing an apt-get install for node gave me version 0.10.x or something like that.

              I followed this script up to line 26.
              https://github.com/audstanley/Node-MongoDb-Pi/blob/master/Install-Node-MongoDb-Pi.sh

              But I changed it to the arm6l and version 5 of node.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/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