Omega 2S, Error 12: Out of memory after installing SD card
- 
					
					
					
					
 Hi, 
 I am keep getting Out of memory error after installing SD card of 16GB.
 I followed the steps in http://docs.onion.io/omega2-docs/boot-from-external-storage.html#boot-from-external-storage-mounting-the-external-storage-device for SD card. Still I am facing issue. May I know any one encountered same issue.
  Thanks, 
 Naveen
 
- 
					
					
					
					
 @naveen_kumar I don't use losant mqtt I use Mosquitto which is designed for use on openwrt, you can just use opkg install mosquitto-ssl However, to address your space issue, pip creates tmp/cache files and it is possible the tmp file system is getting filled up. You can redirect the temp files when using pip uses the following commands: cd 
 mkdir temp
 export TMPDIR='~/temp'
 pip install losant-mqttpip also has a command line parameter to set the destination for temp files, check the docs. 
 
- 
					
					
					
					
 @crispyoz said in Omega 2S, Error 12: Out of memory after installing SD card: pip install losant-mqtt @crispyoz Thanks for the reply. I tried still I am getting creating tempame error. Am I missing anything. 
  
 
- 
					
					
					
					
 @naveen_kumar what are the space requirements for losant mqtt? 
 
- 
					
					
					
					
 @crispyoz its 60kb on disk. 
 
- 
					
					
					
					
 @naveen_kumar I think the memory error here is referring to RAM and not storage. With npm there's a max_old_space_sizeargument that limits the memory usage. I suggest checking if there's a way to do the same thing with pip.
 
- 
					
					
					
					
 @naveen_kumar I just tested on a stock Omega2+ with no SD card and it is fine, so you're probably just out of memory not storage. Take a look at what processes you have running and how much RAM they are using and kill anything you don't need for a minute. 
 
- 
					
					
					
					
 @Lazar-Demin My bad. Yes it is RAM. How can I add Swap file with SD card, I can see the document is for USB drive. is there any tutorial for it, My understanding was, we add SD card automatically swap file have been added. I see no Swap file has been created. 
 
- 
					
					
					
					
 To create swap file, follwo the docs: https://docs.onion.io/omega2-docs/extending-omega-memory.html I don't hink you need swap given that I was able to install the losent mqtt without any. Just follow my earlier email, use top command to view your memory use 
 
