Error message: "Can't open device "/dev/cu.usbserial-1420":Resource busy"

Hi, can somebody help me with this issue:
After starting the Arduino software (ver. 1.8.7) , I normally (but not always) succeed to upload my program to the Arduino NANO. If I try to upload the program once again (after editing the program) I always get the message "Can't open device "/dev/cu.usbserial-1420":Resource busy". If I close the Arduino software and re-open it I sometimes succeed to upload my program, and sometimes not.

On linux, there is this program named "modemmanager" that like to take over the serial ports, causing errors similar to this. Practically nobody ever uses that program so I would suggest that you try uninstalling it:

sudo apt-get purge modemmanager

Thank you for the answer. I forgot to inform that i am a Mac-user.

Ah, OK. I just guessed at the OS from the port name. It's possible that the same general issue is present on macOS, though possibly with a different program than modemmanager. Perhaps someone else here with experience on Mac will be able to provide a suggestion.

Thank you again! I have read that a possible cause is that some application is continuously "listening" on this port. I have no idea which application it might be. Somebody know how to identify such applications, and how to stop that kind of "listening"?

For mac users... Make sure Gatekeeper and your security System Preference is not blocking the software. Also make sure you install FTDIUsb and the CH34X Driver on your mac. I just installed 10.15.1 (Beta) And had te reinstall those for arduino to recognise the Uno again. Hope this helps

I'm having the same issue. I reloaded the FTDIusb and CH34X drivers, but I'm still getting the error.

Same error here on OSX 10.15, when uploading I get;

"Error opening serial port '/dev/cu.usbserial-AM01P3WE'. (Port busy)"

I can see that this is the correct port in /dev/tty but the Arduino IDE or OSX seems to think the port is busy.

Peter.