Closed Froghut closed 1 year ago
same issue 2 here:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, rename '/mnt/private/documents/takeout-20230624T041317Z-001/Takeout/output/rei.jpg' -> '/mnt/private/documents/takeout-20230624T041317Z-001/Takeout/error/rei.jpg'] {
errno: -2,
code: 'ENOENT',
syscall: 'rename',
path: '/mnt/private/documents/takeout-20230624T041317Z-001/Takeout/output/rei.jpg',
dest: '/mnt/private/documents/takeout-20230624T041317Z-001/Takeout/error/rei.jpg'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Might be a Upper case/Lower case issue in smb share.
Because I also have a file named REI.jpg
Warning: Error: Warning: setting FileModifyDate - /mnt/private/documents/takeout-20230624T041317Z-001/Takeout/output/REI.jpg
Original path: /mnt/private/documents/takeout-20230624T041317Z-001/Takeout/Google Photos/EVA/REI.jpg
Saved path: /mnt/private/documents/takeout-20230624T041317Z-001/Takeout/error/REI.jpg
Windows treat them the same file but linux dosent.
So avoid running this tool under a mounted samba share, copy the takeout folder to your home dir first!
@zx900930 You are right, how couldn't I think of that!
I changed my code to rely on the native node API again (with a lock for atomacy), this should fix it now.
I tried the new version and this fixed all of my reported issues, so I must have messed up something to cause the problem of copying files that do not exist. Thanks!
One small thing that now happens is I get the following error for bigger video files (.mp4 in my case):
Warning: Error: timeout: waited 20000ms
I "fixed" that by changing line 40 in migrate-google-dir.ts from
exiftool: new ExifTool(),
to
exiftool: new ExifTool({ taskTimeoutMillis: 60000 }),
I guess for bigger files 20 seconds just was not enough.
Thanks again for the tool and your support!
I tried to run this tool on my Google Photos Takeout, for reference it's 58GB and ~33k files. I encountered three issues:
If I can provide additional info that might be useful let me know, and thanks in advance!