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

MMM Google Photos error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 734 Views 3 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.
  • S Offline
    sultan.y
    last edited by Dec 22, 2021, 3:44 AM

    having troulbe with getting the google photo running

    i followed the github instruction but seem to be stuck with the black screen of death

    npm start run displays

    pi@raspberrypi:~/MagicMirror $ npm start run

    magicmirror@2.17.1 start /home/pi/MagicMirror
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “run”

    [21.12.2021 19:41.00.282] [LOG] Starting MagicMirror: v2.17.1
    [21.12.2021 19:41.00.288] [LOG] Loading config …
    [21.12.2021 19:41.00.294] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: MagicMirror is not defined
    at Object. (/home/pi/MagicMirror/config/config.js:45:12)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at loadConfig (/home/pi/MagicMirror/js/app.js:69:14)
    at App.start (/home/pi/MagicMirror/js/app.js:212:3)
    [21.12.2021 19:41.00.296] [LOG] Loading module helpers …
    [21.12.2021 19:41.00.313] [LOG] Initializing new module helper …
    [21.12.2021 19:41.00.314] [LOG] Module helper loaded: updatenotification
    [21.12.2021 19:41.00.316] [LOG] No helper found for module: helloworld.
    [21.12.2021 19:41.00.317] [LOG] All module helpers loaded.
    [21.12.2021 19:41.00.473] [LOG] Starting server on port 8080 …
    [21.12.2021 19:41.00.492] [LOG] Server started …
    [21.12.2021 19:41.00.494] [LOG] Connecting socket for: updatenotification
    [21.12.2021 19:41.00.496] [LOG] Sockets connected & modules started …
    [21.12.2021 19:41.00.714] [ERROR] Whoops! There was an uncaught exception…
    [21.12.2021 19:41.00.721] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
    at Server.setupListenHandle [as _listen2] (net.js:1318:16)
    at listenInCluster (net.js:1366:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1503:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:69:8) {
    code: ‘EADDRINUSE’,
    errno: -98,
    syscall: ‘listen’,
    address: ‘127.0.0.1’,
    port: 8080
    }
    [21.12.2021 19:41.00.729] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [21.12.2021 19:41.00.730] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    [21.12.2021 19:41.00.770] [LOG] Launching application.
    ^C[21.12.2021 19:41.23.180] [LOG] Shutting down server…
    [21.12.2021 19:41.23.185] [LOG] Stopping module helper: updatenotification

    S 1 Reply Last reply Dec 22, 2021, 3:54 AM Reply Quote 0
    • S Offline
      sdetweil @sultan.y
      last edited by Dec 22, 2021, 3:54 AM

      @sultan-y said in MMM Google Photos error:

      [21.12.2021 19:41.00.721] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080

      how did you install MM?

      this means another instance is running…

      if pm2 started one, then pm2 status will show you

      then pm2 stop xx
      where xx is the number or the name on the row of the thing u want to stop
      (ps pm2 can run lots of things at once)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 2 Replies Last reply Dec 22, 2021, 4:35 AM Reply Quote 0
      • S Offline
        sultan.y @sdetweil
        last edited by Dec 22, 2021, 4:35 AM

        @sdetweil

        EADDRINUSE got fixed the configurtion error remains

        [21.12.2021 19:41.00.294] [ERROR] WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: MagicMirror is not defined
        at Object. (/home/pi/MagicMirror/config/config.js:45:12)
        at Module._compile (internal/modules/cjs/loader.js:1078:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:1108:10)
        at Module.load (internal/modules/cjs/loader.js:935:32)
        at Module._load (internal/modules/cjs/loader.js:776:14)
        at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
        at Module.require (internal/modules/cjs/loader.js:959:

        1 Reply Last reply Reply Quote 0
        • S Offline
          sultan.y @sdetweil
          last edited by Dec 22, 2021, 7:28 AM

          @sdetweil

          1.12.2021 23:16.00.533] [ERROR] (node:2556) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
          at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15)
          at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:17:12)
          at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:236:11)
          at IncomingMessage.emit (events.js:327:22)
          at endReadableNT (internal/streams/readable.js:1327:12)
          at processTicksAndRejections (internal/process/task_queues.js:80:21)
          (Use electron --trace-warnings ... to show where the warning was created)
          [21.12.2021 23:16.00.534] [ERROR] (node:2556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
          [21.12.2021 23:16.00.535] [ERROR] (node:2556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

          modules: [
          {
          module: “MMM-GooglePhotos”,
          position: “fullscreen_below”,
          config: {
          albums: [“MagicMirror”], // Set your album name. like [“My wedding”, “family share”, “Travle to Paris”]
          updateInterval: 1000 * 60, // minimum 10 seconds.
          sort: “new”, // “old”, “random”
          uploadAlbum: null, // Only album created by create_uploadable_album.js.
          condition: {
          fromDate: null, // Or “2018-03”, RFC … format available
          toDate: null, // Or “2019-12-25”,
          minWidth: null, // Or 400
          maxWidth: null, // Or 8000
          minHeight: null, // Or 400
          maxHeight: null, // Or 8000
          minWHRatio: null,
          maxWHRatio: null,
          // WHRatio = Width/Height ratio ( ==1 : Squared Photo, < 1 : Portraited Photo, > 1 : Landscaped Photo)
          },
          showWidth: 1080, // These values will be used for quality of downloaded photos to show. real size to show in your MagicMirror region is recommended.
          showHeight: 1920,
          timeFormat: “YYYY/MM/DD HH:mm”, // Or relative can be used.
          }
          },

          S 1 Reply Last reply Dec 22, 2021, 12:36 PM Reply Quote 0
          • S Offline
            sdetweil @sultan.y
            last edited by Dec 22, 2021, 12:36 PM

            @sultan-y said in MMM Google Photos error:

            Request failed with status code 403
            at createError

            you are getting a permission denied 403 error
            from google

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 2 Replies Last reply Dec 23, 2021, 6:54 AM Reply Quote 0
            • S Offline
              sultan.y @sdetweil
              last edited by Dec 23, 2021, 6:54 AM

              @sdetweil

              i think i fixed the access but now i get a 503 error

              22.12.2021 22:51.16.328] [LOG] /nodehelper/get translation with statuscode-200
              [22.12.2021 22:51.16.335] [LOG] /nodehelper/get arabic with statuscode-200
              [22.12.2021 22:51.16.338] [LOG] /nodehelper/result-An-Naml:77
              [22.12.2021 22:51.16.357] [LOG] 200[object Object]
              [22.12.2021 22:51.17.516] [ERROR] (node:4593) UnhandledPromiseRejectionWarning: Error: Request failed with status code 503
              at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15)
              at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:17:12)
              at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:236:11)
              at IncomingMessage.emit (events.js:327:22)
              at endReadableNT (internal/streams/readable.js:1327:12)
              at processTicksAndRejections (internal/process/task_queues.js:80:21)
              (Use electron --trace-warnings ... to show where the warning was created)
              [22.12.2021 22:51.17.523] [ERROR] (node:4593) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
              [22.12.2021 22:51.17.526] [ERROR] (node:4593) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sultan.y @sdetweil
                last edited by Dec 23, 2021, 7:09 AM

                @sdetweil

                apparently i just needed to be patient, it needed to propagate

                now its working

                howevver the clokc and some other apps have disappeared

                is there a way to have it be in the background, so i can see my clock and calendar?

                M 1 Reply Last reply Dec 23, 2021, 9:21 AM Reply Quote 0
                • M Offline
                  MMRIZE @sultan.y
                  last edited by Dec 23, 2021, 9:21 AM

                  @sultan-y
                  Which position did you put the module into? set the position fullscreen_below.

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