Why rsync command is failing with error "rsync error: error starting client-server protocol (code 5) at main.c(1656) [Receiver=3.1.2] [Receiver] _exit_cleanup(code=5, file=main.c, line=1656): about to call exit(5)" ?

Solution Verified - Updated -

Issue

  • While executing rsync to share file from a source to destination system we encounter the following error:
  [root@example ~] # rsync -vvv -az -e ssh root@test::file_name /path
  opening connection using: ssh -l root test rsync --server --daemon .  (8 args)
  sending daemon args: --server --sender -vvvlogDtprze.iLsfxC . file_name/  (5 args)
  @ERROR: invalid parameter           # This is the parameter for the file
  rsync error: error starting client-server protocol (code 5) at main.c(1656) [Receiver=3.1.2]
  [Receiver] _exit_cleanup(code=5, file=main.c, line=1656): about to call exit(5)
  You have new mail in /var/spool/mail/root

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content