Go /var/log/journal/ and cleanup all the files inside it, probably there is no enough space. Try running it again. Also make sure, in Tools> you have selected right board and the serial port.
On Mac, I noticed the "Edison" partition auto-mounts, so be sure to unmount that drive before uploading new code. Fixed my problem.