This article explains the reason behind the error, while copying file to backup RE.
Follow logs/error will be seen while copying the files on backup RE:
root@device> file copy /var/tmp/junos-install-mx-x86-64-22.4R1-S2.1.tgz re1:/var/tmp/
connect to address 128.0.0.5: No route to host
Trying 10.0.0.5...
re1: No route to host
error: put-file failed
error: could not send local copy of file
One of the reason you might be seeing this error is because Backup Re in this RE 1 is not present or down on the device:
root@device> show chassis hardware detail
Hardware inventory:
Item Version Part number Serial number Description
Chassis JN1257C85AFB MX480
Midplane REV 10 750-047862 ACRG2078 Enhanced MX480 Midplane
FPM Board REV 02 710-017254 CAFJ1390 Front Panel Display
PEM 0 Rev 01 740-063046 QCS1550U0JZ PS 1.4-2.52kW; 90-264V AC in
PEM 1 Rev 01 740-063046 QCS1550U0LV PS 1.4-2.52kW; 90-264V AC in
PEM 2 Rev 01 740-063046 QCS1550U0E4 PS 1.4-2.52kW; 90-264V AC in
Routing Engine 0 REV 23 750-054758 CASV5090 RE-S-2X00x6
vtbd0 13412 MB Virtio Block Disk
vtbd1 15360 MB Virtio Block Disk
ada0 511 MB QEMU HARDDISK QM00002 Emulated IDE Disk
usb0 (addr 0.1) XHCI root HUB 0 0x8086 uhub0
CB 0 REV 09 750-062572 CAJH8398 Enhanced MX SCB 2
FPC 0 REV 31 750-037358 CAEF2030 MPC4E 3D 32XGE
CPU REV 10 711-035209 CAEW8879 HMPC PMB 2G
PIC 0 BUILTIN BUILTIN 8X10GE SFPP
Xcvr 0 REV 01 740-031980 A03A8RQ SFP+-10G-SR
Xcvr 1 REV 01 740-031980 AA1737309UG SFP+-10G-SR
PIC 1 BUILTIN BUILTIN 8X10GE SFPP
Xcvr 0 REV 01 740-021309 AD1711501CG SFP+-10G-LR
Xcvr 1 REV 01 740-031981 E762014486 SFP+-10G-LR
PIC 2 BUILTIN BUILTIN 8X10GE SFPP
PIC 3 BUILTIN BUILTIN 8X10GE SFPP
Fan Tray Enhanced Left Fan Tray
Please check the status of Backup RE, by using command " show chassis routing-engine". As we can see below only RE 0 is present on the device.
root@device> show chassis routing-engine | match "Routing|Slot|Current|Uptime"
Routing Engine status:
Slot 0:
Current state Master
Uptime 7 days, 20 hours, 57 minutes, 43 seconds
Before copying any files between the RE's make sure the RE's are installed and in up state.