Turns out this was an access permission issue: in the develop instance, all files need to be owned by the user that runs frappe. This command will clear this and it will go through (where user is the user):
$ cd /home/user/frappe-bench
$ sudo chown -R user:user *
Maybe this helps someone having the same issue.