# rsync error: (code 23)

**URL:** https://dietpi.com/forum/t/rsync-error-code-23/4964
**Category:** Troubleshooting
**Created:** [9 February 2021 16:37 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964 "2021-02-09T16:37:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Fabio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@Fabio](https://dietpi.com/forum/u/Fabio)
#### Post date: [9 February 2021 16:37 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/1 "2021-02-09T16:37:37Z")

</div>

Hello All!  
I’ve some problem with the sync function.  
It was working since some weeks ago, but now if i try to start it manually, i get the error in the object…  
This is the end of the log, after the list of the files:

```nohighlight
2021/02/09 16:33:18 [8269] Number of files: 4,732 (reg: 4,409, dir: 323)                                                                           
                             │ 2021/02/09 16:33:18 [8269] Number of created files: 4,731 (reg: 4,409, dir: 322)                                                                   
                             │ 2021/02/09 16:33:18 [8269] Number of deleted files: 0                                                                                              
                             │ 2021/02/09 16:33:18 [8269] Number of regular files transferred: 4,409                                                                              
                             │ 2021/02/09 16:33:18 [8269] Total file size: 82,200,720,256 bytes                                                                                   
                             │ 2021/02/09 16:33:18 [8269] Total transferred file size: 82,200,720,256 bytes                                                                       
                             │ 2021/02/09 16:33:18 [8269] Literal data: 0 bytes                                                                                                   
                             │ 2021/02/09 16:33:18 [8269] Matched data: 0 bytes                                                                                                   
                             │ 2021/02/09 16:33:18 [8269] File list size: 0                                                                                                       
                             │ 2021/02/09 16:33:18 [8269] File list generation time: 0.002 seconds                                                                                
                             │ 2021/02/09 16:33:18 [8269] File list transfer time: 0.000 seconds                                                                                  
                             │ 2021/02/09 16:33:18 [8269] Total bytes sent: 125,808                                                                                               
                             │ 2021/02/09 16:33:18 [8269] Total bytes received: 14,566                                                                                            
                             │ 2021/02/09 16:33:18 [8269] sent 125,808 bytes received 14,566 bytes 56,149.60 bytes/sec                                                          
                             │ 2021/02/09 16:33:18 [8269] total size is 82,200,720,256 speedup is 585,583.66 (DRY RUN)                                                           
                             │ 2021/02/09 16:33:18 [8269] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at                                   
                             │ main.c(1207) [sender=3.1.3]                                                                                                                        
                             │ 2021-02-09_16:33:18 [FAILED] Please see the log file for more information: /mnt/HD_500/dietpi-sync/.dietpi-sync.log

```

The .dietpi-sync.log shows exatly the same…  
Any ideas on how to fix it?

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [9 February 2021 22:56 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/2 "2021-02-09T22:56:27Z")

</div>

hmm error 23 means that thinks are done partially.

```nohighlight
rsync error: some files/attrs were not transferred

```

There is nothing in /mnt/HD\_500/dietpi-sync/.dietpi-sync.log giving a hint which files are not transferred?

---

<div class="post-metadata">

### Author: ![Fabio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@Fabio](https://dietpi.com/forum/u/Fabio)
#### Post date: [10 February 2021 07:57 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/3 "2021-02-10T07:57:23Z")

</div>

The only “differrent” line in the file from the other is this one:

```nohighlight
2021/02/10 07:54:17 [13671] rsync: readlink_stat("/mnt/HD1T/dietpi_userdata/owncloud_data/XXXX/files_trashbin/files/XXXX.d1609495540") failed: Stru$

```

How i can fix it? 🤔

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 February 2021 12:11 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/4 "2021-02-10T12:11:55Z")

</div>

looks like the file is located inside a trash bin as the path contain files\_trashbin

Can you check if you can clear trash bin. Or maybe try to have it moved somewhere else?

---

<div class="post-metadata">

### Author: ![Fabio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@Fabio](https://dietpi.com/forum/u/Fabio)
#### Post date: [10 February 2021 20:28 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/5 "2021-02-10T20:28:43Z")

</div>

The problem is that inside the bin i don’t have nothing 😢

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [10 February 2021 20:33 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/6 "2021-02-10T20:33:20Z")

</div>

are you able to move (not delete) to a different place ?

---

<div class="post-metadata">

### Author: ![Fabio](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@Fabio](https://dietpi.com/forum/u/Fabio)
#### Post date: [11 February 2021 07:48 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/7 "2021-02-11T07:48:08Z")

</div>

Sorry but i’ haven’t understand…  
What i have to move? Inside the files trash bin there is nothing…

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [11 February 2021 09:26 UTC](https://dietpi.com/forum/t/rsync-error-code-23/4964/8 "2021-02-11T09:26:27Z")

</div>

your system has an issue with following file

```nohighlight
/mnt/HD1T/dietpi_userdata/owncloud_data/XXXX/files_trashbin/files/XXXX.d1609495540

```

So you would need to check what it is
