Rpi3 freezes after a few houres



  • Hi there,

    I have a strange problem with my MM. After a few hours the MM is complete frozen. No ssh, no ftp and a frozen screen as well.

    I’ve updated to MM 2.2.2 with a fresh install on the same Rasbian as MM 2.2.1 was running. After installing I was coping over from the old MM directory those modules I wanted keep in my new MM - without npm install them. Its running well. I used my old config.js too.

    A fresh rebooted system is running down from 37% free memory to 0% and freezes.
    I have seen, that there are 4 tasks of electron are running which are taking all the memory.

    I have no errors in the logs!

    Any idea what to do?

    My config.js:

    /* Magic Mirror Config Sample
     *
     * By Michael Teeuw http://michaelteeuw.nl
     * MIT Licensed.
     */
    
    var config = {
    	port: 8080,
    	address: "0.0.0.0",
    	language: 'de',
    	timeFormat: 24,
    	units: 'metric',
    	modules: [
    		{
    			module: 'alert',
    		},
    		{
    			module: 'clock',
    			position: 'top_left'
    		},
    		{
    			module: 'calendar',
    			header: 'Mein Kalender',
    			position: 'top_left',
    			config: {
    				calendars: [
    					{
    						symbol: 'calendar-check-o ',
    						url: 'webcal://www.ifeiertage.de/ni-.ics'
    					},
    						{
    						symbol: 'calendar-o',
    						url: 'https://calendar.google.com/calendar/ical/private-basic.ics'
    						},
    						]
    					}
    		},
    		{
    			module: 'currentweather',
    			position: 'top_right',
    			config: {
    				location: 'Langenhagen',
    				locationID: '2881062',  //ID from http://www.openweathermap.org
    				appid: '
    					}
    		},
    		{
    			module: 'weatherforecast',
    			position: 'top_right',
    			header: 'Wettervorschau',
    			config: {
    	            location: 'Langenhagen',
    				locationID: '2881062',  //ID from http://www.openweathermap.org
    	            appid: '
    					}
    		},
    		{
    			module: 'MMM-Remote-Control',
    			// uncomment the following line to show the URL of the remote control on the mirror
    			//position: 'bottom_left'
    			// you can hide this module afterwards from the remote control itself
    		},
    
    		{
    			module: 'MMM-PNews',
    			position: 'bottom_bar',
    			config: {
    				key: "",
    				maxWidth: "100%",
    				newsSource: "der-tagesspiegel", // "der-tagesspiegel", "die-zeit", "gruenderszene", "spiegel-online", "t3n", "wired-de",
    					}
    		},	
    		{
    			module: 'newsfeed',
    			position: 'bottom_bar',
    			config: {
    				feeds: [
    					{
    						title: "HAZ Schlagzeilen",
    						url: "http://www.haz.de/rss/feed/haz_schlagzeilen",
    					},
    					{
    						title: "SPIEGEL Schlagzeilen",
    						url: "http://www.spiegel.de/schlagzeilen/index.rss",
    					},
    						],
    				showSourceTitle: true,
    				showPublishDate: true,
    				showDescription: true,
    				updateInterval: 20 * 1000,
    				animationSpeed: 3.5 * 1000
    					}
    		},
    	
    		{
    			module: 'internet-monitor',
    			position: 'top_center',
    			header: '',
    			config:{
    				type: 'minimal',
    				maxTime: 1,
    				updateInterval: 9000000,
    				verbose: false,
    				displayStrength: true,
    				displaySpeed: true,
                    strengthIconSize: 80,
                    maxGaugeScale: 1,
    		wifiSymbol:{
                        size: 20,
                        fullColor: '#3afc25',
                        almostColor: '#ffff0c',
                        halfColor: '#ff8c00',
    					noneColor: '#ff1111'
    
    					},
    					},
    		},
    		{
    			module: 'MMM-MovieListings',
    			position: 'bottom_right',
    			header: '',
    			config: {
    				
    				includeMoviePlot: true,
    				apiKey : "",
    				interface: 'poster', //'list', 'poster', 'detailed'
    				//moviesPerPage : 5,
    				pageChangeInterval : 20 * 1000, // = 30 seconds
    				refreshInterval : 1000 * 60 * 60 * 24, // = Once a day
    					}
    		},
    		{
    			module:	'MMM-Fuel',
    			position: 'top_left',
    			config: {
    				api_key: "",
    				lat: 52.429327,
    				lng: 9.726591,
    				sortBy: "e5",
    				types: ["e5", "diesel"],
    				rotate: false,
    				open: true
    			}
    		},
    
    		{
    			module: 'MMM-nasaastropic',
    			position: 'top_left',
    			config: {
    					updateInterval: 6*60*60*1000,
    					animationSpeed: 0,
    					header: 'NASA - Bild des Tages',
    					maxlongedge: 1300
    					}
    		},
    		{
    			module: 'MMM-SystemStats',
    			position: 'top_left', // This can be any of the regions.
    			classes: 'small dimmed', // Add your own styling. Optional.
    			config: {
    				updateInterval: 10000,
    				animationSpeed: 0,
    				align: 'left', // align labels
    				//header: 'System Stats', // This is optionaL
    					},
    		},
    	
    		},*/
    		{
    			module: 'MMM-Carousel',
    			config: {
    				transitionInterval: 20000,
    				ignoreModules: ['clock', 'alert', 'internet-monitor', 'currentweather', 'MMM-Remote-Control',],
    				mode: 'slides',
    				slides: [
    				['calendar', 'MMM-PNews', 'MMM-MovieListings', 'MMM-Sonos',],
    				['MMM-nasaastropic', 'weatherforecast',],
    				['MMM-Fuel', 'newsfeed', 'MMM-MovieListings', 'MMM-Sonos',],
    				['MMM-Events','MMM-SystemStats', 'MMM-MovieListings', 'MMM-PNews', 'MMM-Sonos',],
    				['MMM-xiaomi', 'MMM-SystemStats', 'weatherforecast', 'MMM-Sonos',],
    				['MMM-iHaveBeenThere']
    				
    				]
    					}
            },
    		{
    			module: 'MMM-Events',
    			position: 'top_left',
    				config: {
    				city: "Hannover",	           // Your City
    				eventType: "performing_arts",		   // Choose from Events List below
    				when: "Next week",                 // "All", "Future", "Past", "Today", "Last Week", "This Week", "Next week", and months by name, e.g. "October"
    				mode: "noFrame",                   // "Frame" or "noFrame" (around picture)
    				apikey: "",
    				rotateInterval: 1 * 60 * 1000,     // New Event Appears every 3 minutes
    				useHeader: false,	           // Set to true if you want a header
    				header: "",
    				animationSpeed: 3000,              // Event fades in and out
    				picture: true,                     // true, false = no image
    						}
    		},
    		{
    		module: 'MMM-xiaomi',
    		position: 'bottom_left',
    		header: 'Temperatur / Feuchtigkeit',  // This is optional
    		config: {
    			gatewayIP: '192.168.2.160',
    			gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a',
    			showWindow: true,
    			showVentilation: false,
    			minTemperature: false,
    			maxHumidity: false,
    			showTrend: true,
    			showNotifications: false,
    			outsideSensorId: '158d0001b920bd',
    			rooms: [
    			{ name: 'Wohnzimmer', sortOrder: 30, devices : ['158d00015736a8', '158d000119fcb2'] },
    			{ name: 'Bad', sortOrder: 30, devices : ['158d0001b911b9'] },
    			{ name: 'Schlafzimmer', sortOrder: 30, devices : ['158d0001b91177', '158d00011919a3', '56234267'] },
    			{ name: 'Arbeitszimmer', sortOrder: 30, devices : ['158d0001b9035b'] },
    			{ name: 'Draußen', sortOrder: 30, devices : ['158d0001b920bd'] },
    					],
    				}
    		},
    		{
    		module: 'MMM-iHaveBeenThere',
    		position: 'middle_center',	// bigger place is recommended.
    		config: {
    			zoomLevel: 1.0,
    			home_desc: "Langenhagen",
    			home_lat: 52.436972,
    			home_lon: 9.714468,
    			away_lat: [8.077707, -4.251792, 43.653226, 13.062883, 35.902819, 23.089880, 7.934206, 11.199286, 20.629559,  45.440847, 36.543312, 56.949649, 47.497912,  41.385064, 40.416775, 30.388870,  6.451360, 47.582370, 46.776085, 3.157764, 45.438845, 50.075538, 36.405267, 38.966901, ],
    			away_lon: [77.531977, 39.598932, -79.383184, -59.542683, 14.487007, -82.361938, 98.371216, -60.789940, -87.073885, 12.315515, 32.008322, 24.105186, 19.040235, 2.173403, -3.703790, -9.600254, 79.978741, 12.162750, 9.676668, 101.711860, 17.191742, 14.437800, 10.622360, 1.551727, ],
    			away_desc: ["Indien", "Kenja", "Kanada", "Barbados", "Malta", "Cuba", "Thailand", "Trinidad & Tobago", "Mexico", "Venedig", "Türkei", "Letland", "Budapest", "Barcelona", "Madrid", "Marokko", "Sri Lanka", "Österreich", "Schweiz", "Malaysia", "Kroatien", "Prag", "Tunesien", "Ibiza"],
    			trip: [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]
    				}
    		},
    		{
    	module: 'MMM-Sonos',
    	position: 'middle_center', // you may choose any location
    	config: {}
    }
    
    
    	]
    
    };
    

  • Module Developer

    @Albert2002

    You may have more than one instance of MM running. That seems to be common recently. Please see the instructions here to check and correct. 7th, 8th and 9th post

    https://forum.magicmirror.builders/topic/6249/something-is-wrong/7



  • I checked this, unfortunately I’m not running two instances. The second one is a service needed by the Sonos Module.
    It seams to me that there a few people which having problems since 2.2.2?

    pi@MagicMirror:~ $ pm2 status
    ??????????????????????????????????????????????
    ? Name  ? mode ? status ? ? ? cpu ? memory   ?
    ??????????????????????????????????????????????
    ? mm    ? fork ? online ? 0 ? 0%  ? 1.3 MB   ?
    ? sonos ? fork ? online ? 0 ? 0%  ? 1.3 MB   ?
    ??????????????????????????????????????????????
     Use `pm2 show ` to get more details about an app
    pi@MagicMirror:~ $ 
    
    

  • Module Developer

    @Albert2002

    Indeed, but not all users have the same troubles, and not for the same reasons. Anyway . . .

    Have you tried running only the default modules to see if the problem still occurs? If it does not, add them one by one, or in pairs, until you experience a problem so you can isolate the issue.

    If you are unfortunate and the problem arises before the addition of 3rd party modules then that is another matter altogether.



  • @Mykle1 said in Rpi3 freezes after a few houres:

    Have you tried running only the default modules to see if the problem still occurs? If it does not, add them one by one, or in pairs, until you experience a problem so you can isolate the issue.

    This is what I did recently. It wasn’t the pi freezing but the browser on the pi, I am running the mirror on a server. It turned out to be a pi-hole module for me.


  • Module Developer

    @barrysmallgoods said in Rpi3 freezes after a few houres:

    It turned out to be a pi-hole module for me.

    Well done, mate! :-)



  • @Mykle1 said in Rpi3 freezes after a few houres:

    Have you tried running only the default modules to see if the problem still occurs? If it does not, add them one by one, or in pairs, until you experience a problem so you can isolate the issue.

    Ok, this is what I try now. Thank you for your help!


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.