You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
rsync: Failed to exec ssh -p 5000: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(85) [sender=3.1.3]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]
When I run the command in the terminal, everything works smoothly. So the request is generating fine, but isn't running in with the spawn methods...
The text was updated successfully, but these errors were encountered:
Before calling spawn, I override the --rsh arg to remove the quotes and it works.
Here's my code:
constrsyncArgs=newRsync()// set your own rsync params here.flags('avz').shell('ssh').set('progress').set('no-motd').source(`${directory}/`).destination(`${stage.server.user}@${stage.server.host}:${stage.server.directory}`)// fix for port hereconstargs=rsyncArgs.args()if(stage.server.port){constindex=args.findIndex(arg=>arg==='--rsh=ssh')args[index]=`--rsh=ssh -p ${stage.server.port}`}constrsync=spawn('rsync',args);
Hi there,
I'm trying to use a custom port for my rsync script.
Here's what I use :
And here the command generated by calling
rsyncArgs.command()
:rsync -avz -e "ssh -p 5000" --progress --no-motd /private/var/www/dir user@host:public_html
But my script exits with:
When I run the command in the terminal, everything works smoothly. So the request is generating fine, but isn't running in with the spawn methods...
The text was updated successfully, but these errors were encountered: