MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. panos
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 37
    • Groups 0

    Posts

    Recent Best Controversial
    • MagicMirror [pm2-pi.service: Start operation timed out. Terminating]

      Hello.
      I recently upgraded to latest version using the upgrade script.
      The MagicMirror starts normally but after a while it crashes and restarts the pm2 again and again.
      There are no error generated on MagicMirror-error.log

      the only logs I found that on /var/log/syslog

      Nov 24 11:33:36 magicmirror2 systemd[1]: pm2-pi.service: Start operation timed out. Terminating.
      Nov 24 11:33:37 magicmirror2 systemd[1]: pm2-pi.service: Failed with result 'timeout'.
      Nov 24 11:33:37 magicmirror2 systemd[1]: Failed to start PM2 process manager.
      Nov 24 11:33:37 magicmirror2 systemd[1]: pm2-pi.service: Service RestartSec=100ms expired, scheduling restart.
      Nov 24 11:33:37 magicmirror2 systemd[1]: pm2-pi.service: Scheduled restart job, restart counter is at 25.
      Nov 24 11:33:37 magicmirror2 systemd[1]: Stopped PM2 process manager.
      Nov 24 11:33:37 magicmirror2 systemd[1]: Starting PM2 process manager...
      

      Any suggestions please?

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @sdetweil yeah kind of. Although I have set api.spotify.com to be static for some reason. I haven’t had any issues until now. maybe something was changed on Spotify side.

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      The problem seems to be cached api.spotify.com IP address. flush dns servers records and works again.

      Thanks guys for your help

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0 I have configure it this way to have access remotely to MM using MMM-Remote-Control

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0 I have edited my previews post.

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0

      Sorry. I forget to put them when I’m removing sensitive data.
      this is the correct config.

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "0.0.0.0", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "10.0.10.0/24", "10.0.50.0/24"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "en-gb",
      	timeFormat: 24,
      	units: "metric",
      
      	modules: [
      		{
      			module: "alert",
      			config: {
      			alert_effect: "flip"
      			}
      		},
      		{
      			module: "updatenotification",
      			position: "top_center"
      		},
                      .....
      		{
      			module: "MMM-NowPlayingOnSpotify",
      			position: "top_left",
      			config: {
      				clientID: “a4r..54f"
      				clientSecret: “e2...d3"
      				accessToken: "BQD...95fmg",
      				refreshToken: "AQAr....YXR3"
      			}
      		},
      		{
      			module: "MMM-Remote-Control",
      //			position: 'bottom_left',
      		}
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      I have still no luck with NowPlayingOnSpotify.
      Any suggestion would be much appreciated.

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @sdetweil the datetime is correct on my raspberry system

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      I haven’t had black screen once I updated to v2.13.
      seems that only some modules need the “npm install” command

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @sdetweil ok I see, thanks.
      So is there any workaround to make the module to work again?

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0 so the module can’t work because the request-promise-native package is deprecated?

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0
      Thanks
      I update mine via “git pull && npm install” command

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @sdetweil
      Yes. I’m able to listen via Spotify app on both mobile/desktop

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @chassain-0
      I don’t know why this happens then.
      I run npm install on more time and rerun the authentication process via browser. (In order to update the token)
      Still the same error.

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      @sdetweil
      I don’t remember exactly, but I think that it was working 3-4 days ago

      posted in Troubleshooting
      P
      panos
    • RE: MMM-NowPlayingOnSpotify stop working after v2.13 update

      Hello.
      I have completely uninstall the module and install it again. Still no luck.
      All other modules works as they should.

      posted in Troubleshooting
      P
      panos
    • MMM-NowPlayingOnSpotify stop working after v2.13 update

      Hello.
      I get the following error since I updated to MM v2.13

      [0|mm     | [2020-10-03 19:55:18.881] [ERROR]  
      0|mm     | Can’t retrieve current song. Reason: 
      0|mm     | [2020-10-03 19:55:18.882] [ERROR]  
      0|mm     | RequestError: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |     at new RequestError (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/errors.js:14:15)
      0|mm     |     at Request.plumbing.callback (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/plumbing.js:87:29)
      0|mm     |     at Request.RP$callback [as _callback] (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request-promise-core/lib/plumbing.js:46:31)
      0|mm     |     at self.callback (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request/request.js:185:22)
      0|mm     |     at Request.emit (events.js:200:13)
      0|mm     |     at Request.onRequestError (/home/pi/MagicMirror/modules/MMM-NowPlayingOnSpotify/node_modules/request/request.js:877:8)
      0|mm     |     at ClientRequest.emit (events.js:200:13)
      0|mm     |     at TLSSocket.socketErrorListener (_http_client.js:402:9)
      0|mm     |     at TLSSocket.emit (events.js:200:13)
      0|mm     |     at emitErrorNT (internal/streams/destroy.js:91:8) {
      0|mm     |   name: 'RequestError',
      0|mm     |   message: 'Error: Client network socket disconnected ' +
      0|mm     |     'before secure TLS connection was ' +
      0|mm     |     'established',
      0|mm     |   cause: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |       at connResetException (internal/errors.js:559:14)
      0|mm     |       at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)
      0|mm     |       at Object.onceWrapper (events.js:288:20)
      0|mm     |       at TLSSocket.emit (events.js:205:15)
      0|mm     |       at endReadableNT (_stream_readable.js:1154:12)
      0|mm     |       at processTicksAndRejections (internal/process/task_queues.js:84:9) {
      0|mm     |     code: 'ECONNRESET',
      0|mm     |     path: null,
      0|mm     |     host: 'api.spotify.com',
      0|mm     |     port: 443,
      0|mm     |     localAddress: undefined
      0|mm     |   },
      0|mm     |   error: Error: Client network socket disconnected before secure TLS connection was established
      0|mm     |       at connResetException (internal/errors.js:559:14)
      0|mm     |       at TLSSocket.onConnectEnd (_tls_wrap.js:1355:19)
      0|mm     |       at Object.onceWrapper (events.js:288:20)
      0|mm     |       at TLSSocket.emit (events.js:205:15)
      0|mm     |       at endReadableNT (_stream_readable.js:1154:12)
      0|mm     |       at processTicksAndRejections (internal/process/task_queues.js:84:9) {
      0|mm     |     code: 'ECONNRESET',
      0|mm     |     path: null,
      0|mm     |     host: 'api.spotify.com',
      0|mm     |     port: 443,
      0|mm     |     localAddress: undefined
      0|mm     |   },
      0|mm     |   options: {
      0|mm     |     url: 'https://api.spotify.com/v1/me/player',
      0|mm     |     headers: {
      0|mm     |       Authorization: 'Bearer ' +
      0|mm     |         'BQBRDGEfWRoLJxBqiqioyoWh4GE5glEZQtZKAmgwYj8PiRhKDh9l796Ehlo7URvaB-_22gnk2Ybr7OxENlnlZS9S247mYnDa7-yzRnw0B6jug8-arHzcWMUr8xViOkVJMsKGink3bHhdiNmezkfFeA'
      0|mm     |     },
      0|mm     |     json: true,
      0|mm     |     method: 'GET',
      0|mm     |     callback: [Function: RP$callback],
      0|mm     |     transform: undefined,
      0|mm     |     simple: true,
      0|mm     |     resolveWithFullResponse: false,
      0|mm     |     transform2xxOnly: false
      0|mm     |   },
      0|mm     |   response: undefined
      0|mm     | }](link url)
      

      Any suggestions?

      posted in Troubleshooting
      P
      panos
    • RE: MM won’t start after updating with update script

      Also, MM auto stops after some minutes with no reason.

      here is the logs:

      [2020-07-14 16:12:13.669] [LOG]    Sockets connected & modules started ...
      [2020-07-14 16:12:13.960] [LOG]    Launching application.
      [2020-07-14 16:12:14.620] [LOG]    Shutting down server...
      [2020-07-14 16:12:14.624] [LOG]    Stopping module helper: updatenotification
      [2020-07-14 16:12:14.625] [LOG]    Stopping module helper: calendar
      [2020-07-14 16:12:14.627] [LOG]    Stopping module helper: MMM-MoonPhase
      [2020-07-14 16:12:14.628] [LOG]    Stopping module helper: MMM-NowPlayingOnSpotify
      [2020-07-14 16:12:14.629] [LOG]    Stopping module helper: MMM-MyCommute
      [2020-07-14 16:12:14.631] [LOG]    Stopping module helper: MMM-MQTT
      [2020-07-14 16:12:14.632] [LOG]    Stopping module helper: MMM-GooglePhotos
      [2020-07-14 16:12:14.633] [LOG]    Stopping module helper: newsfeed
      
      
      posted in Troubleshooting
      P
      panos
    • RE: MM won’t start after updating with update script

      I was able to resolve the issue with the command:

      git pull && sudo npm install
      

      everything works now expect for weatherforecast module that displays only the next 2 instead of next 5 days of forecast.
      Not sure if this is a API limitation or somethings with new 2.12 MM version

      posted in Troubleshooting
      P
      panos
    • MM won’t start after updating with update script

      Hello.
      I tried to update my MM using the update script:

      cd MagicMirror
      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
      

      (https://github.com/sdetweil/MagicMirror_scripts)

      When I was issued the command:

      pm2 log
      

      I got this error

      home/pi/.pm2/logs/mm-error.log last 15 lines:
      0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      0|mm       | A JavaScript error occurred in the main process
      0|mm       | Uncaught Exception:
      0|mm       | TypeError: Bind must be called on a function
      0|mm       |     at bind (<anonymous>)
      0|mm       |     at /home/pi/MagicMirror/js/logger.js:32:38
      0|mm       |     at /home/pi/MagicMirror/js/logger.js:16:20
      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:21:3)
      0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:3)
      0|mm       |     at Module._compile (internal/modules/cjs/loader.js:711:30)
      0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
      0|mm       |     at Module.load (internal/modules/cjs/loader.js:620:32)
      0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
      0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:551:3)
      
      

      any suggestions?

      posted in Troubleshooting
      P
      panos
    • 1 / 1