Read the statement by Michael Teeuw here.
websocket is already in closing or closed state
-
Hi everybody, anyone faced this issue? It seems to happen randomly.
I’ve opened the console and it should be a known issue related to the jitter.
Anyone knows any workaround or fix I could apply?
Thank you in advance!
-
@aurely89 could you give a little more info please? MM version, modules installed, what the console messages look like…
-
Hi Sam, thank you for replying.
-
MM installed version is the latest available: 2.11.0.
-
These are the installed modules:
MMM-pages
alert
updatenotification
clock
calendar
currentweather
weatherforecast
newsfeed
MMM-WiFiPassword
MMM-Trello
MMM-xiaomi
MMM-NowPlayingOnSpotify
MMM-Screencast
MMM-TelegramBot
MMM-Bring
MMM-MyScoreboard
MMM-Tools
MMM-GPIO-Notifications
MMM-Screen-Powersave-Notification -
This is the console message:
main.js:456 Initializing MagicMirror. translator.js:202 Loading core translation file: translations/it.json translator.js:225 Loading core translation fallback file: translations/en.json loader.js:179 Load script: modules/MMM-pages//MMM-pages.js module.js:479 Module registered: MMM-pages loader.js:150 Bootstrapping module: MMM-pages loader.js:155 Scripts loaded for: MMM-pages loader.js:194 Load stylesheet: modules/MMM-pages/pages.css loader.js:157 Styles loaded for: MMM-pages loader.js:159 Translations loaded for: MMM-pages loader.js:179 Load script: modules/default/alert//alert.js module.js:479 Module registered: alert loader.js:150 Bootstrapping module: alert loader.js:179 Load script: modules/default/alert/classie.js loader.js:179 Load script: modules/default/alert/modernizr.custom.js loader.js:179 Load script: modules/default/alert/notificationFx.js loader.js:155 Scripts loaded for: alert loader.js:194 Load stylesheet: modules/default/alert/ns-default.css loader.js:194 Load stylesheet: vendor/css/font-awesome.css loader.js:157 Styles loaded for: alert translator.js:175 alert - Load translation fallback: translations/en.json /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure protocols.This exposes users of this app to unnecessary security risks. Consider loading the following resources over HTTPS or FTPS. - http://0.0.0.0:8080/css/main.css - http://0.0.0.0:8080/fonts/roboto.css - http://0.0.0.0:8080/socket.io/socket.io.js - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js - http://0.0.0.0:8080/js/defaults.js - http://0.0.0.0:8080/config/config.js - http://0.0.0.0:8080/vendor/vendor.js - http://0.0.0.0:8080/modules/default/defaultmodules.js - http://0.0.0.0:8080/js/logger.js - http://0.0.0.0:8080/translations/translations.js - http://0.0.0.0:8080/js/translator.js - http://0.0.0.0:8080/js/class.js - http://0.0.0.0:8080/js/module.js - http://0.0.0.0:8080/js/loader.js - http://0.0.0.0:8080/js/socketclient.js - http://0.0.0.0:8080/js/main.js - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2 - http://0.0.0.0:8080/translations/it.json - http://0.0.0.0:8080/translations/en.json - http://0.0.0.0:8080/modules/MMM-pages//MMM-pages.js - http://0.0.0.0:8080/modules/MMM-pages/pages.css - http://0.0.0.0:8080/modules/default/alert//alert.js - http://0.0.0.0:8080/modules/default/alert/classie.js - http://0.0.0.0:8080/modules/default/alert/modernizr.custom.js - http://0.0.0.0:8080/modules/default/alert/notificationFx.js - http://0.0.0.0:8080/modules/default/alert/ns-default.css - http://0.0.0.0:8080/vendor/css/font-awesome.css - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css - http://0.0.0.0:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks. For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 loader.js:159 Translations loaded for: alert loader.js:179 Load script: modules/default/updatenotification//updatenotification.js module.js:479 Module registered: updatenotification loader.js:150 Bootstrapping module: updatenotification loader.js:155 Scripts loaded for: updatenotification loader.js:157 Styles loaded for: updatenotification loader.js:159 Translations loaded for: updatenotification loader.js:179 Load script: modules/default/clock//clock.js module.js:479 Module registered: clock loader.js:150 Bootstrapping module: clock loader.js:179 Load script: vendor/node_modules/moment/min/moment-with-locales.js loader.js:179 Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js loader.js:179 Load script: vendor/node_modules/suncalc/suncalc.js loader.js:155 Scripts loaded for: clock loader.js:194 Load stylesheet: modules/default/clock/clock_styles.css loader.js:157 Styles loaded for: clock loader.js:159 Translations loaded for: clock loader.js:179 Load script: modules/default/calendar//calendar.js module.js:479 Module registered: calendar loader.js:150 Bootstrapping module: calendar loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: calendar loader.js:194 Load stylesheet: modules/default/calendar/calendar.css loader.js:233 File already loaded: font-awesome.css loader.js:157 Styles loaded for: calendar loader.js:159 Translations loaded for: calendar loader.js:179 Load script: modules/default/currentweather//currentweather.js module.js:479 Module registered: currentweather loader.js:150 Bootstrapping module: currentweather loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: currentweather loader.js:194 Load stylesheet: vendor/node_modules/weathericons/css/weather-icons.css loader.js:194 Load stylesheet: modules/default/currentweather/currentweather.css loader.js:157 Styles loaded for: currentweather loader.js:159 Translations loaded for: currentweather loader.js:179 Load script: modules/default/weatherforecast//weatherforecast.js module.js:479 Module registered: weatherforecast loader.js:150 Bootstrapping module: weatherforecast loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: weatherforecast loader.js:233 File already loaded: weather-icons.css loader.js:194 Load stylesheet: modules/default/weatherforecast/weatherforecast.css loader.js:157 Styles loaded for: weatherforecast loader.js:159 Translations loaded for: weatherforecast loader.js:179 Load script: modules/default/newsfeed//newsfeed.js module.js:479 Module registered: newsfeed loader.js:150 Bootstrapping module: newsfeed loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: newsfeed loader.js:157 Styles loaded for: newsfeed loader.js:159 Translations loaded for: newsfeed loader.js:179 Load script: modules/MMM-WiFiPassword//MMM-WiFiPassword.js module.js:479 Module registered: MMM-WiFiPassword loader.js:150 Bootstrapping module: MMM-WiFiPassword loader.js:179 Load script: modules/MMM-WiFiPassword/qrcode.min.js loader.js:194 Load stylesheet: modules/MMM-WiFiPassword/MMM-WiFiPassword.css loader.js:155 Scripts loaded for: MMM-WiFiPassword loader.js:157 Styles loaded for: MMM-WiFiPassword loader.js:159 Translations loaded for: MMM-WiFiPassword loader.js:179 Load script: modules/MMM-Trello//MMM-Trello.js module.js:479 Module registered: MMM-Trello loader.js:150 Bootstrapping module: MMM-Trello loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: MMM-Trello loader.js:233 File already loaded: font-awesome.css loader.js:194 Load stylesheet: modules/MMM-Trello/MMM-Trello.css loader.js:157 Styles loaded for: MMM-Trello translator.js:175 MMM-Trello - Load translation fallback: translations/en.json loader.js:159 Translations loaded for: MMM-Trello loader.js:179 Load script: modules/MMM-xiaomi//MMM-xiaomi.js module.js:471 Check MagicMirror version for module 'MMM-xiaomi' - Minimum version: 2.0.0 - Current version: 2.11.0 module.js:473 Version is ok! module.js:479 Module registered: MMM-xiaomi loader.js:150 Bootstrapping module: MMM-xiaomi loader.js:179 Load script: modules/MMM-xiaomi/String.format.js loader.js:179 Load script: https://code.jquery.com/jquery-2.2.3.min.js loader.js:155 Scripts loaded for: MMM-xiaomi loader.js:194 Load stylesheet: modules/MMM-xiaomi/MMM-xiaomi.css loader.js:157 Styles loaded for: MMM-xiaomi loader.js:159 Translations loaded for: MMM-xiaomi loader.js:179 Load script: modules/MMM-NowPlayingOnSpotify//MMM-NowPlayingOnSpotify.js module.js:479 Module registered: MMM-NowPlayingOnSpotify loader.js:150 Bootstrapping module: MMM-NowPlayingOnSpotify loader.js:179 Load script: modules/MMM-NowPlayingOnSpotify/core/NPOS_DomBuilder.js loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: MMM-NowPlayingOnSpotify loader.js:194 Load stylesheet: modules/MMM-NowPlayingOnSpotify/css/styles.css loader.js:179 Load script: modules/MMM-NowPlayingOnSpotify/node_modules/moment-duration-format/lib/moment-duration-format.js loader.js:233 File already loaded: font-awesome.css loader.js:157 Styles loaded for: MMM-NowPlayingOnSpotify loader.js:159 Translations loaded for: MMM-NowPlayingOnSpotify loader.js:179 Load script: modules/MMM-Screencast//MMM-Screencast.js module.js:471 Check MagicMirror version for module 'MMM-Screencast' - Minimum version: 2.1.0 - Current version: 2.11.0 module.js:473 Version is ok! module.js:479 Module registered: MMM-Screencast loader.js:150 Bootstrapping module: MMM-Screencast loader.js:155 Scripts loaded for: MMM-Screencast loader.js:157 Styles loaded for: MMM-Screencast loader.js:159 Translations loaded for: MMM-Screencast loader.js:179 Load script: modules/MMM-TelegramBot//MMM-TelegramBot.js module.js:479 Module registered: MMM-TelegramBot loader.js:150 Bootstrapping module: MMM-TelegramBot loader.js:179 Load script: modules/MMM-TelegramBot/TELBOT_lib.js loader.js:155 Scripts loaded for: MMM-TelegramBot loader.js:194 Load stylesheet: modules/MMM-TelegramBot/MMM-TelegramBot.css loader.js:157 Styles loaded for: MMM-TelegramBot translator.js:175 MMM-TelegramBot - Load translation fallback: translations/en.json loader.js:159 Translations loaded for: MMM-TelegramBot loader.js:179 Load script: modules/MMM-Bring//MMM-Bring.js module.js:479 Module registered: MMM-Bring loader.js:150 Bootstrapping module: MMM-Bring loader.js:155 Scripts loaded for: MMM-Bring loader.js:194 Load stylesheet: modules/MMM-Bring/css/styles.css loader.js:157 Styles loaded for: MMM-Bring loader.js:159 Translations loaded for: MMM-Bring loader.js:179 Load script: modules/MMM-MyScoreboard//MMM-MyScoreboard.js module.js:479 Module registered: MMM-MyScoreboard loader.js:150 Bootstrapping module: MMM-MyScoreboard loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: MMM-MyScoreboard loader.js:194 Load stylesheet: modules/MMM-MyScoreboard/MMM-MyScoreboard.css loader.js:157 Styles loaded for: MMM-MyScoreboard loader.js:159 Translations loaded for: MMM-MyScoreboard loader.js:179 Load script: modules/MMM-Tools//MMM-Tools.js module.js:479 Module registered: MMM-Tools loader.js:150 Bootstrapping module: MMM-Tools loader.js:155 Scripts loaded for: MMM-Tools loader.js:194 Load stylesheet: modules/MMM-Tools/MMM-Tools.css loader.js:157 Styles loaded for: MMM-Tools translator.js:175 MMM-Tools - Load translation fallback: translations/en.json loader.js:159 Translations loaded for: MMM-Tools loader.js:179 Load script: modules/MMM-GPIO-Notifications//MMM-GPIO-Notifications.js module.js:479 Module registered: MMM-GPIO-Notifications loader.js:150 Bootstrapping module: MMM-GPIO-Notifications loader.js:155 Scripts loaded for: MMM-GPIO-Notifications loader.js:157 Styles loaded for: MMM-GPIO-Notifications loader.js:159 Translations loaded for: MMM-GPIO-Notifications loader.js:179 Load script: modules/MMM-Screen-Powersave-Notification//MMM-Screen-Powersave-Notification.js module.js:479 Module registered: MMM-Screen-Powersave-Notification loader.js:150 Bootstrapping module: MMM-Screen-Powersave-Notification loader.js:233 File already loaded: moment.js loader.js:155 Scripts loaded for: MMM-Screen-Powersave-Notification loader.js:194 Load stylesheet: modules/MMM-Screen-Powersave-Notification/screen-powersave.css loader.js:157 Styles loaded for: MMM-Screen-Powersave-Notification loader.js:159 Translations loaded for: MMM-Screen-Powersave-Notification loader.js:194 Load stylesheet: css/custom.css alert.js:153 Starting module: alert updatenotification.js:14 Start updatenotification clock.js:45 Starting module: clock calendar.js:77 Starting module: calendar currentweather.js:99 Starting module: currentweather weatherforecast.js:91 Starting module: weatherforecast newsfeed.js:61 Starting module: newsfeed MMM-Trello.js:32 Starting module: MMM-Trello MMM-xiaomi.js:61 Starting module: MMM-xiaomi MMM-NowPlayingOnSpotify.js:18 Starting module: MMM-NowPlayingOnSpotify MMM-Screencast.js:15 Starting module: MMM-Screencast MMM-MyScoreboard.js:560 Starting module: MMM-MyScoreboard :8080/modules/MMM-GPIO-Notifications//MMM-GPIO-Notifications.js:15 Starting module: MMM-GPIO-Notifications :8080/modules/MMM-Screen-Powersave-Notification//MMM-Screen-Powersave-Notification.js:87 Starting module: MMM-Screen-Powersave-Notification main.js:474 All modules started! MMM-pages.js:89 [Pages]: received that all objects are created;will now hide things! module.js:198 MMM-pages is suspended. module.js:198 MMM-TelegramBot is suspended. module.js:198 MMM-GPIO-Notifications is suspended. module.js:198 MMM-Screen-Powersave-Notification is suspended. module.js:198 currentweather is suspended. module.js:198 weatherforecast is suspended. module.js:198 MMM-WiFiPassword is suspended. module.js:198 MMM-Bring is suspended. module.js:198 MMM-Tools is suspended. module.js:205 alert is resumed. main.js:280 Will not show currentweather. LockStrings active: module_5_currentweather main.js:280 Will not show weatherforecast. LockStrings active: module_6_weatherforecast module.js:205 clock is resumed. module.js:205 calendar is resumed. module.js:205 newsfeed is resumed. module.js:205 MMM-Trello is resumed. module.js:205 MMM-xiaomi is resumed. module.js:205 MMM-NowPlayingOnSpotify is resumed. module.js:205 MMM-Screencast is resumed. module.js:205 MMM-MyScoreboard is resumed. api.openweathermap.org/data/2.5/forecast/daily?id=6542122&units=metric&lang=it&APPID=034cd000fafa56ead6103d7308acb8af:1 Failed to load resource: the server responded with a status of 401 (Unauthorized) weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint. weatherRequest.onreadystatechange @ weatherforecast.js:266 :8080/modules/MMM-Screen-Powersave-Notification//MMM-Screen-Powersave-Notification.js:78 UPDATING currentDelay index.js:83 WebSocket is already in CLOSING or CLOSED state. (anonymous) @ index.js:83 index.js:83 WebSocket is already in CLOSING or CLOSED state. (anonymous) @ index.js:83
-
-
don’t think that this error is related to an
index.js
from the MagicMirror core, so you can look which module has anindex.js
with >= 83 lines … or disable modules to catch the “bad” module …