MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Error on start

    Troubleshooting
    4
    6
    4247
    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
      negativeflare last edited by

      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.

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @negativeflare last edited by

        @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
          04housemat last edited by

          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?

          bhepler 1 Reply Last reply Reply Quote 0
          • bhepler
            bhepler Project Sponsor @04housemat last edited by

            @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 Reply Quote 0
            • 0
              04housemat @bhepler last edited by

              @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
                paulkilla last edited by paulkilla

                @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
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy