Read the statement by Michael Teeuw here.
MMM-Newsfeedticker Error
-
I had been running this module but when I had to restart MM I got an error and can’t determine how to resolve the issue. I am new to this so not good at unscrambling the error messages. Any help on this appreciated.
I am running;
Raspberry Pi 4 Model B Rev 1.4
Debian V 12config.js (APIkeys, etc changed):
/* Magic Mirror Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure 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 or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1", "172.16.0.18", "172.16.0.25", "172.16.0.16", "172.16.0.14", "172.16.0.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"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", logLevel: ["INFO", "LOG", "WARN", "ERROR"], timeFormat: 12, units: "imperial", // serverOnly: true/false/"local" , // local for armv6l processors, default // starts serveronly and then starts chrome browser // false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left", config: { timeFormat: 12, displaySeconds: false } }, { module: "calendar", header: "Upcoming Events", position: "top_left", config: { calendars: [ { symbol: "calendar", url: "https://calendar.google.com/calendar/ical/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/basic.ics", maximumNumberOfDays: 180 } { symbol: "calendar", url: " https://calendar.google.com/calendar/embed?src=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", maximumNumberOfDays: 180, color: "#fc9403" } ], fade: false } }, { module: "weather", position: "top_right", header: "Current Forecast - ", config: { // weatherProvider: "openweathermap", // weatherEndpoint: "/onecall", type: 'current', apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", initialLoadDelay: 0, locationID: xxxxxx, lat: xxxxxx, lon: xxxx, timeFormat: 12, units: "imperial", showFeelsLike: false } }, { module: "weather", position: "top_right", header: "Daily Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "xxxx", // locationID: "xxxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city maxNumberOfDays: 7, colored: true, showPrecipitationAmount: true, units: "imperial", fade: false, apiKey: "xxxxxxxxxxxxxxxxx" } }, { module: "MMM-MyScoreboard", position: "top_center", classes: "default everyone", header: "Scoreboard", config: { showLeagueSeparators: true, colored: true, rolloverHours: 24, viewStyle: "mediumLogos", sports: [ { league: "NFL", teams: ["KC", "SEA"], groups: ["AFC", "NFC"] }, { league: "NCAAM", teams: ["MIZ"], groups: ["SEC"] }, { league: "NCAAM_MM", label: "March Madness" }, { league: "MLB", teams: ["KC", "STL"] } ] } }, { disabled: false, module: "MMM-NewsFeedTicker", position: "bottom_bar", //classes: "day_scheduler", config: { feeds: [ { title: "New York Times", url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml", customLogo: "NYT_logo_rss_250x40.png" }, { title: "USA Today", url: "http://rssfeeds.usatoday.com/UsatodaycomNation-TopStories", customLogo: "RSS_Syndication_Logo-USATN.png" }, { title: "BBC World News", url: "http://feeds.bbci.co.uk/news/world/rss.xml#", customLogo: "bbc_news_120x60.gif" } ] } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "Latest News", url: "https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml" } ], showSourceTitle: true, showPublishDate: true, broadcastNewsFeeds: true, broadcastNewsUpdates: true } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
Error:
> magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [06.12.2023 10:45.00.689] [LOG] Starting MagicMirror: v2.25.0 [06.12.2023 10:45.00.694] [LOG] Loading config ... [06.12.2023 10:45.00.697] [DEBUG] config template file not exists, no envsubst [06.12.2023 10:45.00.701] [LOG] Loading module helpers ... [06.12.2023 10:45.00.703] [LOG] No helper found for module: alert. [06.12.2023 10:45.00.732] [LOG] Initializing new module helper ... [06.12.2023 10:45.00.733] [LOG] Module helper loaded: updatenotification [06.12.2023 10:45.00.733] [LOG] No helper found for module: clock. [06.12.2023 10:45.00.892] [LOG] Initializing new module helper ... [06.12.2023 10:45.00.893] [LOG] Module helper loaded: calendar [06.12.2023 10:45.01.008] [LOG] Initializing new module helper ... [06.12.2023 10:45.01.008] [LOG] Module helper loaded: MMM-Remote-Control [06.12.2023 10:45.01.009] [LOG] No helper found for module: weather. [06.12.2023 10:45.01.013] [LOG] Initializing new module helper ... [06.12.2023 10:45.01.013] [LOG] Module helper loaded: MMM-MyScoreboard [06.12.2023 10:45.01.013] [WARN] No /home/xxxxxxx/MagicMirror/js/../modules/internet-monitor/internet-monitor.js found for module: internet-monitor. [06.12.2023 10:45.01.014] [LOG] No helper found for module: internet-monitor. [06.12.2023 10:45.01.017] [ERROR] (node:7591) UnhandledPromiseRejectionWarning: Error: Cannot find module 'valid-url' Require stack: - /home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/node_helper.js - /home/xxxxxxxx/MagicMirror/js/app.js - /home/xxxxxxxx/MagicMirror/js/electron.js - /home/xxxxxxxx/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:117419) at Module._resolveFilename (/home/xxxxxxxx/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/node_helper.js:9:16) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at loadModule (/home/xxxxxxxx/MagicMirror/js/app.js:180:19) (Use `electron --trace-warnings ...` to show where the warning was created) [06.12.2023 10:45.01.018] [ERROR] (node:7591) 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: 1) [7626:1206/104502.070074:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.070580:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.070900:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.071513:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.071988:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.072542:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.073076:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.075660:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.076044:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.076776:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.077295:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.077776:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.078249:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [7626:1206/104502.078728:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
-
@pgwr okay, missed that. So sounds like i need to install the request module in the newsfeedticker module folder. I assume
npm install request
-
@pgwr please use code block around config and errors
paste text
empty line above and below
select pasted text
hit </> button for code block wrapperI fixed this time
error
yes module is missing a library we used to ship
but wasn’t documentedsee https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later
fix is (the same for any missing lib, there are 8 I think)
cd to the module folder
npm install valid-url -
@sdetweil thanks much!
-
@sdetweil checked the list and installed valid-url. Same result. Hmmmm…
-
@pgwr show the errors again.
-
> magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [29.12.2023 11:26.31.512] [LOG] Starting MagicMirror: v2.25.0 [29.12.2023 11:26.31.517] [LOG] Loading config ... [29.12.2023 11:26.31.520] [DEBUG] config template file not exists, no envsubst [29.12.2023 11:26.31.524] [LOG] Loading module helpers ... [29.12.2023 11:26.31.526] [LOG] No helper found for module: alert. [29.12.2023 11:26.31.555] [LOG] Initializing new module helper ... [29.12.2023 11:26.31.555] [LOG] Module helper loaded: updatenotification [29.12.2023 11:26.31.556] [LOG] No helper found for module: clock. [29.12.2023 11:26.31.713] [LOG] Initializing new module helper ... [29.12.2023 11:26.31.714] [LOG] Module helper loaded: calendar [29.12.2023 11:26.31.715] [LOG] No helper found for module: weather. [29.12.2023 11:26.31.719] [LOG] Initializing new module helper ... [29.12.2023 11:26.31.719] [LOG] Module helper loaded: MMM-MyScoreboard [29.12.2023 11:26.31.750] [ERROR] (node:271795) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request' Require stack: - /home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/fetcher.js - /home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/node_helper.js - /home/xxxxxxxx/MagicMirror/js/app.js - /home/xxxxxxxx/MagicMirror/js/electron.js - /home/xxxxxxxx/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:117419) at Module._resolveFilename (/home/xxxxxxxx/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/fetcher.js:9:15) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/xxxxxxxx/MagicMirror/modules/MMM-NewsFeedTicker/node_helper.js:10:15) (Use `electron --trace-warnings ...` to show where the warning was created) [29.12.2023 11:26.31.751] [ERROR] (node:271795) 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: 1) [271828:1229/112632.791848:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.792586:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.793028:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.793413:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.793786:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.794156:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.794523:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.796415:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.796862:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.797250:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.797619:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.797990:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.798355:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [271828:1229/112632.798715:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) ^C/home/xxxxxxxx/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
-
@sdetweil Resubmitted the error log. Hopefully did the code block correctly.
Thanks -
@pgwr said in MMM-Newsfeedticker Error:
[29.12.2023 11:26.31.750] [ERROR] (node:271795) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
yep
-
@pgwr okay, missed that. So sounds like i need to install the request module in the newsfeedticker module folder. I assume
npm install request
-
@pgwr yes, as I said there are multiple missing libraries, all get corrected the same way