Can't mount '.heic' (photo-video) files from onedrive

What is the problem you are having with rclone?

Can't mount '.heic' (photo-video) files from Onedrive.
All other file-types and files from same folders had mount.
Files exists and are accesible from web interface, of course.
Please, help to solve this issue.
P.S.: Thank you for your useful tool!

What is your rclone version (output from rclone version)

rclone v1.55.1

  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.3
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 16.04
kernel 4.15.0-142-generic

Which cloud storage system are you using? (eg Google Drive)

Microsoft Onedrive Personal or Business

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount   $rcloneRemote   $mountPath   --read-only >> mount.log 2>&1

The rclone config contents with secrets removed.

[inat_onedrive]
type = onedrive
region = global
token = {"access_token":"......."}
drive_id = ###################
drive_type = personal
scope = onedrive

A log from the command with the -vv flag

This is part of log, all other 8000 lines of file the same

2021/06/26 19:07:06 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: unexpected EOF
2021/06/26 19:07:07 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 2/10: unexpected EOF
2021/06/26 19:07:08 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 3/10: unexpected EOF
2021/06/26 19:07:09 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 4/10: unexpected EOF
2021/06/26 19:07:10 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 5/10: unexpected EOF
2021/06/26 19:07:10 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 6/10: unexpected EOF
2021/06/26 19:07:11 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 7/10: unexpected EOF
2021/06/26 19:07:12 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 8/10: unexpected EOF
2021/06/26 19:07:13 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 9/10: unexpected EOF
2021/06/26 19:07:14 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 10/10: unexpected EOF
2021/06/26 19:07:15 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: unexpected EOF
2021/06/26 19:07:15 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: EOF
2021/06/26 19:07:16 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:16 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 2/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:17 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 3/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:18 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 4/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:19 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 5/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:20 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 6/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:21 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 7/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:22 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 8/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:22 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 9/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:23 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 10/10: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:24 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: 416 Requested Range Not Satisfiable: 
2021/06/26 19:07:24 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: file already closed
2021/06/26 19:07:24 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: unexpected EOF
2021/06/26 19:07:25 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 2/10: unexpected EOF
2021/06/26 19:07:26 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 3/10: unexpected EOF
2021/06/26 19:07:26 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 4/10: unexpected EOF
2021/06/26 19:07:27 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 5/10: unexpected EOF
2021/06/26 19:07:28 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 6/10: unexpected EOF
2021/06/26 19:07:29 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 7/10: unexpected EOF
2021/06/26 19:07:29 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 8/10: unexpected EOF
2021/06/26 19:07:30 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 9/10: unexpected EOF
2021/06/26 19:07:31 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 10/10: unexpected EOF
2021/06/26 19:07:32 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: unexpected EOF
2021/06/26 19:07:32 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 1/10: EOF
2021/06/26 19:07:33 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 2/10: unexpected EOF
2021/06/26 19:07:33 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 3/10: unexpected EOF
2021/06/26 19:07:34 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 4/10: unexpected EOF
2021/06/26 19:07:35 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 5/10: unexpected EOF
2021/06/26 19:07:35 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 6/10: unexpected EOF
2021/06/26 19:07:36 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 7/10: unexpected EOF
2021/06/26 19:07:37 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 8/10: unexpected EOF
2021/06/26 19:07:38 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 9/10: unexpected EOF
2021/06/26 19:07:38 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: low level retry 10/10: unexpected EOF
2021/06/26 19:07:39 ERROR : /Фото/20210602_132941047_iOS.heic: ReadFileHandle.Read error: unexpected EOF

hello and welcome to the forum,

if you do a rclone ls, do you see the .heic files?

@asdffdsa Good question, I guess the answer is yes.

@Andrew_Xxx: It looks like the files are Live Photos uploaded from the iOS OneDrive App.

If so, then the issue is most likely due to OneDrive’s partial support of Live Photos. Upload and storage from the iOS app were introduced in December 2020. The remaining implementation is still work-in-progress and this introduces some “surprising” situations when mounting and synchronizing - also in the native OneDrive client on Windows.

The issue(s) can easily be seen if you locate one of your Live Photos in the OneDrive web interface. Then download the photo from the web interface and note that the size of downloaded heic file is smaller than the size displayed in the web interface. The downloaded file is smaller because it is a still photo extracted from the Live Photo (movie) stored in OneDrive. I guess this mismatch causes the unexpected End-Of-File your see in your rclone log.

Let’s hope Microsoft gets the last pieces in place soon so we can download and work with the Live Photos accumulating in OneDrive.

Work-around tips in the meantime: I don’t need Live Photos (most of the time), and therefore turned the Live feature off in the iOS Camera App. There also used to be an option to enable HEIC to JPG conversion in the iOS OneDrive App, but I cannot find it at the moment.

@asdffdsa
Yes, it's work
Thanks for reply and greetings :slightly_smiling_face:

@Ole Thanks for reply :slightly_smiling_face:
You are right!
Size of downloaded files is different.

Report to Microsoft m.b. helps :face_with_raised_eyebrow:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.