SamKirkland / web-deploy

Deploy your website automatically for free
MIT License
186 stars 30 forks source link

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

Open mimoudix opened 11 months ago

mimoudix commented 11 months ago

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
michellavezzo commented 11 months ago

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.

"user" is your server username

michellavezzo commented 11 months ago

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

mimoudix commented 11 months ago

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! 🙏

michellavezzo commented 11 months ago

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.