Google photos upload fail
Short log:
┌──────────────────────────────────────Log─────────────────────────────────────┐
│2025-06-05 16:27:32 INF unsupported file : 0 │
│2025-06-05 16:27:32 INF file duplicated in the input : 0 │
│2025-06-05 16:27:32 INF associated metadata file : 0 │
│2025-06-05 16:27:32 INF missing associated metadata file : 0 │
│2025-06-05 16:27:32 INF │
Extended log: immich-go_2025-06-05_16-27-31.log
I've run the command:
immich-go upload from-google-photos --server=http://nas.local:2283 --api-key=<mykey> "/Volumes/DavidMacbo/"
Not sure what I did wrong
You are missing the file pattern give this a try:
immich-go upload from-google-photos --server=http://nas.local:2283 --api-key=
takeout-*.zip
I tried this one, but the CLI UI doesn't show up so I didn't try it again, here is the result:
. _ _ _ _ . _|_ _ _
|| | || | ||(_| | ─ (_|(_)
v 0.26.3 _)
Log file: /Users/xdavidt/Library/Caches/immich-go/immich-go_2025-06-08_08-39-13.log
Error: /Volumes/DavidMacbo/takeout-*.zip: zip: not a valid zip file
/Volumes/DavidMacbo/takeout-*.zip: zip: not a valid zip file
Usage:
immich-go upload from-google-photos [flags] <takeout-*.zip> | <takeout-folder>
Flags:
--ban-file FileList Exclude a file based on a pattern (case-insensitive). Can be specified multiple times. (default '@eaDir/', '@__thumb/', 'SYNOFILE_THUMB_*.*', 'Lightroom Catalog/', 'thumbnails/', '.DS_Store/', '/._*', '.photostructure/')
--date-range date-range Only import photos taken within the specified date range (default unset)
--exclude-extensions ExtensionList Comma-separated list of extension to exclude. (e.g. .gif,.PM) (default: none)
--from-album-name string Only import photos from the specified Google Photos album
-h, --help help for from-google-photos
-a, --include-archived Import archived Google Photos (default true)
--include-extensions ExtensionList Comma-separated list of extension to include. (e.g. .jpg,.heic) (default: all)
-p, --include-partner Import photos from your partner's Google Photos account (default true)
-t, --include-trashed Import photos that are marked as trashed in Google Photos
--include-type IncludeType Single file type to include. (VIDEO or IMAGE) (default: all)
-u, --include-unmatched Import photos that do not have a matching JSON file in the takeout
--include-untitled-albums Include photos from albums without a title in the import process
--manage-burst BurstFlag Manage burst photos. Possible values: NoStack, Stack, StackKeepRaw, StackKeepJPEG (default NoStack)
--manage-epson-fastfoto Manage Epson FastFoto file (default: false)
--manage-heic-jpeg HeicJpgFlag Manage coupled HEIC and JPEG files. Possible values: NoStack, KeepHeic, KeepJPG, StackCoverHeic, StackCoverJPG (default NoStack)
--manage-raw-jpeg RawJPGFlag Manage coupled RAW and JPEG files. Possible values: NoStack, KeepRaw, KeepJPG, StackCoverRaw, StackCoverJPG (default NoStack)
--partner-shared-album string Add partner's photo to the specified album name
--people-tag Tag uploaded photos with tags "people/name" found in the JSON file (default true)
--session-tag Tag uploaded photos with a tag "{immich-go}/YYYY-MM-DD HH-MM-SS"
--sync-albums Automatically create albums in Immich that match the albums in your Google Photos takeout (default true)
--tag strings Add tags to the imported assets. Can be specified multiple times. Hierarchy is supported using a / separator (e.g. 'tag1/subtag1')
--takeout-tag Tag uploaded photos with a tag "{takeout}/takeout-YYYYMMDDTHHMMSSZ" (default true)
Global Flags:
--admin-api-key string Admin's API Key for managing server's jobs
-k, --api-key string API Key
--api-trace Enable trace of api calls
--client-timeout duration Set server calls timeout (default 20m0s)
--device-uuid string Set a device UUID (default "DavidWork-GL")
--dry-run Simulate all actions
-l, --log-file string Write log messages into the file
--log-level string Log level (DEBUG|INFO|WARN|ERROR), default INFO (default "INFO")
--log-type string Log formatted as text of JSON file (default "text")
--no-ui Disable the user interface
--on-server-errors OnServerErrorsFlag Action to take on server errors, (stop|continue| <n> errors) (default stop)
--overwrite Always overwrite files on the server with local versions
--pause-immich-jobs Pause Immich background jobs during upload operations (default true)
-s, --server string Immich server address (example http://your-ip:2283 or https://your-domain)
--skip-verify-ssl Skip SSL verification
--time-zone string Override the system time zone
/Volumes/DavidMacbo/takeout-*.zip: zip: not a valid zip file
/Volumes/DavidMacbo/takeout-*.zip: zip: not a valid zip file
Apparently the /Volumes/DavidMacbo/takeout-*.zip path isn't expended into the list of takeout files
Could you share the file /Users/xdavidt/Library/Caches/immich-go/immich-go_2025-06-08_08-39-13.log? What is your operating system? Where are located immich-go and the takeout files (local? network folder?)
immich-go_2025-06-08_08-39-13.log Here you go. Files are local but in External Hard Drive (local usb connected). I'm using Macbook with macOS 15.5
I'm not a Mac specialist...
Could you open a terminal, and try following:
ls -al /Volumes/DavidMacbo/takeout-*.zip
and this:
unzip -t /Volumes/DavidMacbo/takeout-*.zip
I'm not a Mac specialist...
Could you open a terminal, and try following:
ls -al /Volumes/DavidMacbo/takeout-*.zip
-rwx------@ 1 xdavidt staff 328517 May 29 13:29 /Volumes/DavidMacbo/takeout-20250529T084030Z-001.zip
-rwx------@ 1 xdavidt staff 53402600076 May 29 14:10 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-001.zip
-rwx------@ 1 xdavidt staff 53263358832 May 29 12:54 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-002.zip
-rwx------@ 1 xdavidt staff 53216115796 May 29 12:58 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-003.zip
-rwx------@ 1 xdavidt staff 40079425536 May 29 12:58 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-004.zip
-rwx------@ 1 xdavidt staff 42407991473 May 29 13:03 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-005.zip
-rwx------@ 1 xdavidt staff 53181249938 May 29 13:04 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-006.zip
-rwx------@ 1 xdavidt staff 53215500654 May 29 13:04 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-007.zip
-rwx------@ 1 xdavidt staff 53198519384 May 29 13:06 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-008.zip
-rwx------@ 1 xdavidt staff 18797393054 May 29 13:23 /Volumes/DavidMacbo/takeout-20250529T084030Z-1-009.zip
and this:
unzip -t /Volumes/DavidMacbo/takeout-*.zip
Archive: /Volumes/DavidMacbo/takeout-20250529T084030Z-001.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-001.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-002.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-003.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-004.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-005.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-006.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-007.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-008.zip
caution: filename not matched: /Volumes/DavidMacbo/takeout-20250529T084030Z-1-009.zip
At least one error was detected in /Volumes/DavidMacbo/takeout-20250529T084030Z-001.zip.
But using the "Finder" UI it can be unziped
I'm not a MacOS guy. I can't tell why it doesn't work for you.
The ls command shows files but the unzip don't wan to open them.
Could try this:
unzip -t /Volumes/DavidMacbo/takeout-20250529T084030Z-1-001.zip
I'm not a MacOS guy. I can't tell why it doesn't work for you.
The
lscommand shows files but theunzipdon't wan to open them.Could try this:
unzip -t /Volumes/DavidMacbo/takeout-20250529T084030Z-1-001.zip
No errors detected in compressed data of /Volumes/DavidMacbo/takeout-20250529T084030Z-1-001.zip.
It looks like '*' in the file name is the issue. You can list all takeout parts on the command line
If you have multiple takeout request in same downloads folder I believe it could also cause the issue with the wild card grabbing unrelated zip files and trying to open them as 1 archive
@simulot is there any option to extract them into a folder all together and start the process from there?
@XDavidT yes, just give the path to your folder instead of the names of ZIP files
@simulot it worked, but created only albums. The rest of the photos didn't uploaded.
I have received a lot of comment saying that Immich-go is working on macOS. But I can't help you. You can use the channel about Immich-go on the immich discord server.