web-deploy icon indicating copy to clipboard operation
web-deploy copied to clipboard

Error: The process '/usr/bin/rsync' failed with exit code 255

Open mimoudix opened this issue 1 year ago • 4 comments

Bug Description A clear and concise description of what the bug is.

My Action Config

on:
  push:
    # !!!!!!! TODO Fill Out !!!!!!!

My Action Log

   # Paste Log here

mimoudix avatar Nov 09 '23 01:11 mimoudix

Bug Description A clear and concise description of what the bug is.

My Action Config

on:
  push:
    # !!!!!!! TODO Fill Out !!!!!!!

My Action Log

   # Paste Log here

You need to set the folder user ownership at your server.

  • Make sure the destination directory is owned by the user running rsync.
  • Use chown to change ownership if needed. For example: sudo chown -R user /path/to/destination

"user" is your server username

michellavezzo avatar Nov 16 '23 00:11 michellavezzo

Also if you do not have the rsync installed in your linux server, you need to run

sudo apt update && sudo apt install rsync -y

michellavezzo avatar Nov 16 '23 00:11 michellavezzo

Hey @michellavezzo I managed to get it working after installing Rsync—thank you so much!

Regarding ownership permissions, I encountered a similar issue while using LAMP Packaged by Bitnami on a Lightsail VPS. I couldn't create files until I stumbled upon this fix:

sudo chown -R bitnami:daemon /opt/bitnami/apache/htdocs
sudo chmod -R g+w /opt/bitnami/apache/htdocs

Do you think this setup should work fine?

I've got another question about the rsync options. It appears that the deployment doesn't work when specifying exclusions without these options: --archive --verbose --compress --human-readable --progress --delete-after. Are these necessary? If so, any idea why?

Thanks in advance for your help! 🙏

mimoudix avatar Nov 16 '23 14:11 mimoudix

Hey @michellavezzo I managed to get it working after installing Rsync—thank you so much!

Regarding ownership permissions, I encountered a similar issue while using LAMP Packaged by Bitnami on a Lightsail VPS. I couldn't create files until I stumbled upon this fix:

sudo chown -R bitnami:daemon /opt/bitnami/apache/htdocs
sudo chmod -R g+w /opt/bitnami/apache/htdocs

Do you think this setup should work fine?

I've got another question about the rsync options. It appears that the deployment doesn't work when specifying exclusions without these options: --archive --verbose --compress --human-readable --progress --delete-after. Are these necessary? If so, any idea why?

Thanks in advance for your help! 🙏

To be honest, I don't know how to answer your questions hehe, but I hope a good citizen has his answers.

michellavezzo avatar Nov 16 '23 19:11 michellavezzo