PermissionError: [Errno 13] Permission denied (while deploying to Digital Ocean Droplet)

Should anyone encounter the same problem, I was able to fix this issue by doing the following:

  • Destroyed the droplet I created using trellis droplet create environment command

  • Created a new droplet on the Digital Ocean platform

  • Ran the trellis provision environment command

  • If there are any errors during provisioning, run trellis provision environment repeatedly until provisioning is complete with no errors

  • Ran the trellis deploy environment command to deploy the project to the server

  • Documentation: https://roots.io/trellis/docs/remote-server-setup/