An error users may see when attempting a deployment is as follows:
Error: failure write path_to_directory/a_file
This error is often caused by a lack of disk space on your server, if you check to ensure you have enough space to transfer your files and if necessary resolve the issue, you should be able to deploy without any problems.
If you wish to verify your available disk space, you can run the following command on your server:
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda 20G 20G 0G 100% /