I changed the permissions on directories it was using the whoami command
This seemed to work for me:
sudo chown -R $(whoami) ~/Documents/yourdirectory