jerrysu / gulp-rsync

Gulp plugin for deploying files via rsync
119 stars 51 forks source link

rsync exited with code 127 #32

Open paddingme opened 8 years ago

paddingme commented 8 years ago
events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: Error: rsync exited with code 127
    at ChildProcess.<anonymous> (/Users/paddingme/Documents/paddingme's work/front/xsczda/client/node_modules/gulp-rsync/rsync.js:110:17)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

OS X EI Capitan

frob commented 8 years ago

I think error code 127 is that rsync wasn't on the host. It would need to be on the both source and destination machines.

sinpaout commented 7 years ago

I have same problem and installing rsync on the Host was resolved for me.

frob commented 7 years ago

This can be closed.

BiDbMAK commented 6 years ago

I have the same problem on bitbucket pipelines and installing rsync was resolved for me. Here is my bitbucket-pipelines.yml config:

image: node:8.9.1

pipelines:
  default:
    - step:
        script:
          - echo "deploy with peace and harmony"

  branches:
      master:
        - step:
            caches:
            - node
            script:
            - apt-get update && apt-get -qq install rsync
            - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
            - export PATH=$HOME/.yarn/bin:$PATH
            - yarn
            - yarn global add gulp-cli rsync
            - gulp deploy --staging