Software Archive
Read-only legacy content
17061 Discussions

uncaughtException occured: Error: ENOTEMPTY

Philip_J_
Beginner
539 Views

When I attempted to use XDK IoT edition to upload the node.js blink application to my edison I got the following error. I previously had running the Ardiouno blink application which is still running. (Pressing stop button on the XDK IoT does not stop the light blinking). What should I do?

Phil

UPLOADING: Uploading project bundle to IoT device.                                                                                                                         
uncaughtException occured: Error: ENOTEMPTY, directory not empty '/node_app_slot/zetta-starter-project-master/zetta-starter-project-master'                                
    at Object.fs.rmdirSync (fs.js:612:18)                                                                                                                                  
    at clearFolder (/opt/xdk-daemon/current/daemonUtils.js:52:8)                                                                                                           
    at clearFolder (/opt/xdk-daemon/current/daemonUtils.js:47:11)                                                                                                          
    at Object.clearFolder (/opt/xdk-daemon/current/daemonUtils.js:47:11)                                                                                                   
    at /opt/xdk-daemon/current/appDaemon.js:239:19                                                                                                                         
    at Object.oncomplete (fs.js:107:15)
0 Kudos
1 Reply
NagaVenkat_K_Intel
539 Views

Login to the terminal on the Edison board

restart the app-daemon service using the terminal

systemctl enable xdk-daemon
systemctl restart xdk-daemon

or empty the contents of node_app_slot folder

root@edison:~# cd /node_app_slot/
root@edison:~/.node_app_slot# rm -Rf *

 

0 Kudos
Reply