'Jenkins Pipeline error: rsync: [sender] write error: Broken pipe (32); error in socket IO (code 10); received SIGUSR1 (code 19)
trying to deploy a branch thru jenkins, pushed to git, jenkins hook started pipeline thread deploying, 5 servers array with identical configs, 1st deployed, 2nd this error:
command:
rsync -achvv --no-t --no-p --no-g --info=name,misc,stats2 --out-format='[%o] %n (%b/%l bytes)' --delete-after --exclude-from '.gitignore' --exclude '*.git*' --exclude '.rsync-filter' . '//somepath...'— sync files to //somepath...
1st server output:
[2022-04-26T23:32:10.961Z] + rsync -achvv --no-t --no-p --no-g --info=name,misc,stats2 '--out-format=[%o] %n (%b/%l bytes)' --delete-after --exclude-from .gitignore --exclude '*.git*' --exclude .rsync-filter . //1st_server_path
[2022-04-26T23:32:11.529Z] building file list ...
[2022-04-26T23:32:11.529Z] [sender] hiding directory .git because of pattern *.git*
[2022-04-26T23:32:11.529Z] [sender] hiding file .gitattributes because of pattern *.git*
[2022-04-26T23:32:11.529Z] [sender] hiding file .gitignore because of pattern *.git*
[2022-04-26T23:32:11.529Z] [sender] hiding file .rsync-filter because of pattern .rsync-filter
[2022-04-26T23:32:12.084Z] [sender] hiding file app/Listeners/.gitkeep because of pattern *.git*
[2022-04-26T23:32:12.340Z] [sender] hiding file app/Policies/.gitkeep because of pattern *.git*
[2022-04-26T23:32:12.340Z] [sender] hiding file bootstrap/cache/.gitignore because of pattern *.git*
[2022-04-26T23:32:12.340Z] [sender] hiding file database/.gitignore because of pattern *.git*
[2022-04-26T23:32:12.340Z] [sender] hiding file database/migrations/.gitkeep because of pattern *.git*
[2022-04-26T23:32:13.266Z] [sender] hiding file database/seeds/.gitkeep because of pattern *.git*
[2022-04-26T23:32:13.520Z] [sender] hiding directory public/js/plugins because of pattern /public/js/plugins
[2022-04-26T23:32:14.885Z] [sender] hiding directory storage/app because of pattern /storage/app
[2022-04-26T23:32:14.885Z] [sender] hiding directory storage/framework because of pattern /storage/framework
[2022-04-26T23:32:14.885Z] [sender] hiding directory storage/logs because of pattern /storage/logs
[2022-04-26T23:32:14.885Z] done
[2022-04-26T23:44:21.806Z] delta-transmission disabled for local transfer or --whole-file
[2022-04-26T23:44:21.806Z] total: matches=0 hash_hits=0 false_alarms=0 data=0
[2022-04-26T23:51:58.442Z] deleting in .
[2022-04-26T23:51:58.442Z] [generator] protecting file - Copia.gitignore because of pattern *.git*
[2022-04-26T23:51:58.442Z] [generator] protecting file .env because of pattern .env
[2022-04-26T23:51:58.442Z] [generator] protecting file .gitattributes because of pattern *.git*
[2022-04-26T23:51:58.442Z] [generator] protecting file .gitignore because of pattern *.git*
[2022-04-26T23:51:58.442Z] [generator] protecting file .rsync-filter because of pattern .rsync-filter
[2022-04-26T23:51:58.442Z] [generator] protecting directory vendor because of pattern /vendor
[2022-04-26T23:51:58.442Z] [generator] protecting file web.config because of pattern web.config
[2022-04-26T23:51:58.442Z] [generator] protecting file app/Listeners/.gitkeep because of pattern *.git*
[2022-04-26T23:51:58.442Z] [generator] protecting file app/Policies/.gitkeep because of pattern *.git*
[2022-04-26T23:51:58.443Z] [generator] protecting file bootstrap/cache/.gitignore because of pattern *.git*
[2022-04-26T23:51:58.443Z] [del.] bootstrap/cache/services.php (0/0 bytes)
[2022-04-26T23:51:58.443Z] [generator] protecting file database/.gitignore because of pattern *.git*
[2022-04-26T23:51:58.443Z] [generator] protecting file database/migrations/.gitkeep because of pattern *.git*
[2022-04-26T23:51:58.443Z] [generator] protecting file database/seeds/.gitkeep because of pattern *.git*
[2022-04-26T23:51:58.443Z] [generator] protecting file public/anexos because of pattern /public/anexos
[2022-04-26T23:51:58.443Z] [generator] protecting file public/app because of pattern /public/app
[2022-04-26T23:51:58.443Z] [generator] protecting file public/uploads because of pattern /public/uploads
[2022-04-26T23:51:58.443Z] [generator] protecting directory public/js/plugins because of pattern /public/js/plugins
[2022-04-26T23:51:58.443Z] [generator] protecting file resources/views/vendor/.gitkeep because of pattern *.git*
[2022-04-26T23:51:58.443Z] cannot delete non-empty directory: resources/views/vendor
[2022-04-26T23:51:58.443Z] [generator] protecting directory storage/app because of pattern /storage/app
[2022-04-26T23:51:58.443Z] [generator] protecting directory storage/framework because of pattern /storage/framework
[2022-04-26T23:51:58.443Z] [generator] protecting directory storage/logs because of pattern /storage/logs
[2022-04-26T23:51:58.443Z]
[2022-04-26T23:51:58.443Z] Number of files: 1,472 (reg: 1,266, dir: 206)
[2022-04-26T23:51:58.443Z] Number of created files: 0
[2022-04-26T23:51:58.443Z] Number of deleted files: 1 (reg: 1)
[2022-04-26T23:51:58.443Z] Number of regular files transferred: 0
[2022-04-26T23:51:58.443Z] Total file size: 26.37M bytes
[2022-04-26T23:51:58.443Z] Total transferred file size: 0 bytes
[2022-04-26T23:51:58.443Z] Literal data: 0 bytes
[2022-04-26T23:51:58.443Z] Matched data: 0 bytes
[2022-04-26T23:51:58.443Z] File list size: 65.53K
[2022-04-26T23:51:58.443Z] File list generation time: 3.087 seconds
[2022-04-26T23:51:58.443Z] File list transfer time: 0.000 seconds
[2022-04-26T23:51:58.443Z] Total bytes sent: 70.59K
[2022-04-26T23:51:58.443Z] Total bytes received: 78
[2022-04-26T23:51:58.443Z]
[2022-04-26T23:51:58.443Z] sent 70.59K bytes received 78 bytes 98.23 bytes/sec
[2022-04-26T23:51:58.443Z] total size is 26.37M speedup is 373.15
2nd server
[2022-04-26T23:52:01.517Z] + rsync -achvv --no-t --no-p --no-g --info=name,misc,stats2 '--out-format=[%o] %n (%b/%l bytes)' --delete-after --exclude-from .gitignore --exclude '*.git*' --exclude .rsync-filter . //2nd_server_path
[2022-04-26T23:52:02.466Z] building file list ...
[2022-04-26T23:52:02.466Z] [sender] hiding directory .git because of pattern *.git*
[2022-04-26T23:52:02.466Z] [sender] hiding file .gitattributes because of pattern *.git*
[2022-04-26T23:52:02.466Z] [sender] hiding file .gitignore because of pattern *.git*
[2022-04-26T23:52:02.466Z] [sender] hiding file .rsync-filter because of pattern .rsync-filter
[2022-04-26T23:52:03.022Z] [sender] hiding file app/Listeners/.gitkeep because of pattern *.git*
[2022-04-26T23:52:03.277Z] [sender] hiding file app/Policies/.gitkeep because of pattern *.git*
[2022-04-26T23:52:03.277Z] [sender] hiding file bootstrap/cache/.gitignore because of pattern *.git*
[2022-04-26T23:52:03.277Z] [sender] hiding file database/.gitignore because of pattern *.git*
[2022-04-26T23:52:03.277Z] [sender] hiding file database/migrations/.gitkeep because of pattern *.git*
[2022-04-26T23:52:04.199Z] [sender] hiding file database/seeds/.gitkeep because of pattern *.git*
[2022-04-26T23:52:04.454Z] [sender] hiding directory public/js/plugins because of pattern /public/js/plugins
[2022-04-26T23:52:05.837Z] [sender] hiding directory storage/app because of pattern /storage/app
[2022-04-26T23:52:05.837Z] [sender] hiding directory storage/framework because of pattern /storage/framework
[2022-04-26T23:52:05.837Z] [sender] hiding directory storage/logs because of pattern /storage/logs
[2022-04-26T23:52:05.837Z] done
[2022-04-26T23:54:12.295Z] delta-transmission disabled for local transfer or --whole-file
[2022-04-26T23:54:12.295Z] [send] //2nd_server_path/someController.php (170383/170320 bytes)
[2022-04-27T00:02:04.022Z] [send] //2nd_server_path/someView.php (26960/26915 bytes)
[2022-04-27T00:02:04.022Z] [send] //2nd_server_path/otherView.php (39888/39841 bytes)
[2022-04-27T00:03:40.493Z] [send] //2nd_server_path/view/report.blade.php (4367/4324 bytes)
[2022-04-27T00:03:40.493Z] rsync: [sender] write error: Connection reset by peer (104)
[2022-04-27T00:03:40.493Z] rsync error: error in socket IO (code 10) at io.c(823) [sender=3.2.3]
[2022-04-27T00:03:40.493Z] rsync error: received SIGUSR1 (code 19) at main.c(1592) [generator=3.2.3]
script returned exit code 10
Obs.: the files redacted were manually overwriten previously is all servers!
Why the 1st server deploys and the 2nd results in error?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
