Skip to content

upload from-google-photos 400 Bad Request #1200

@lucmos

Description

@lucmos

Hello,

I am trying to import my Google Takeout into Immich with immich-go v0.30.0

I run into Not found or no asset.copy access even though I am the only admin user on the fresh install, with both keys being the same with full access.

I am using the following command:

./immich-go upload from-google-photos \
--server=http://192.168.5.100:30041 \
--admin-api-key=xxx \
--api-key=yyy \
--concurrent-tasks=1 \
--manage-raw-jpeg=StackCoverJPG \
--manage-burst=Stack \
--manage-heic-jpeg=StackCoverJPG \
--pause-immich-jobs=true \
--session-tag \
--client-timeout=60m \
--include-trashed \
takeout-*.zip

In the server side, to be safe, I completely disabled the machine-learning and the storage templating.

Immich-go does not terminate the upload because it encounters errors, after few thousands of images, from the logs:

Not found or no asset.copy access

2025-11-20 16:38:40 ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100508533.MP-modificata.jpg current_state=PROCESSED code=stacked
2025-11-20 16:38:40 INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100508533.MP-modificata.jpg
2025-11-20 16:38:40 ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100508533.MP.jpg current_state=ERROR code=stacked
2025-11-20 16:38:40 INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100508533.MP.jpg
2025-11-20 16:38:40 ERR Error err=CopyAsset, PUT, http://192.168.5.100:30041/api/assets/copy, 400 Bad Request
Not found or no asset.copy access

2025-11-20 16:38:40 ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP-modificata.jpg error=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
2025-11-20 16:38:40 ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg error=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
2025-11-20 16:38:40 ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP-modificata.jpg current_state=ERROR code=stacked
2025-11-20 16:38:40 INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP-modificata.jpg
2025-11-20 16:38:40 ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg current_state=ERROR code=stacked
2025-11-20 16:38:40 INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg
2025-11-20 16:38:40 ERR Error err=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe

This is the final report:

2025-11-20 16:38:41 INF Asset Tracking Report:
2025-11-20 16:38:41 INF =====================
2025-11-20 16:38:41 INF Total Assets:      95624  (487.7 GB)
2025-11-20 16:38:41 INF   Processed:        7079  (33.2 GB)
2025-11-20 16:38:41 INF   Discarded:        1988  (9.2 GB)
2025-11-20 16:38:41 INF   Errors:              4  (30.9 MB)
2025-11-20 16:38:41 INF   Pending:         86553  (445.3 GB)
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF ⚠️  WARNING: 86553 assets did not reach a final state!
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Event Report:
2025-11-20 16:38:41 INF =============
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Discovery (Assets):
2025-11-20 16:38:41 INF   discovered image                   :   85365  (277.1 GB)
2025-11-20 16:38:41 INF   discovered video                   :   10259  (210.7 GB)
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Discovery (Non-Assets):
2025-11-20 16:38:41 INF   discovered sidecar                 :   93958  (65.6 MB)
2025-11-20 16:38:41 INF   discovered unsupported file        :      11  (22.4 KB)
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Asset Lifecycle (PROCESSED):
2025-11-20 16:38:41 INF   server asset upgraded              :     344
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Asset Lifecycle (ERROR):
2025-11-20 16:38:41 INF   server error                       :       4
2025-11-20 16:38:41 INF 
2025-11-20 16:38:41 INF Processing Events:
2025-11-20 16:38:41 INF   associated metadata                :   95205
2025-11-20 16:38:41 INF   missing metadata                   :     419
2025-11-20 16:38:41 INF 
2025-11-20 16:39:07 ERR Some errors have occurred. Look at the log file for details

I also tried without any stacking:

./immich-go upload from-google-photos \
--server=http://192.168.5.100:30041 \
--admin-api-key=xxx \
--api-key=yyy \
--concurrent-tasks=2 \
--pause-immich-jobs=true \
--session-tag \
--client-timeout=60m \
--include-trashed \
takeout-*.zip

Unfortunately similar outcome:

ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg error=CopyAsset, PUT, http://192.168.5.100:30041/api/assets/copy, 400 Bad Request
Not found or no asset.copy access

ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP-modificata.jpg current_state=PROCESSED code=stacked
INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP-modificata.jpg
ERR SetProcessed: asset not in pending state file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg current_state=ERROR code=stacked
INF stacked file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_100512250.MP.jpg
ERR Error err=CopyAsset, PUT, http://192.168.5.100:30041/api/assets/copy, 400 Bad Request
Not found or no asset.copy access

ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_104933838.PORTRAIT-02.ORIGINAL.jpg error=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
ERR Error err=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_103536780.PORTRAIT-01.COVER.jpg error=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
ERR Error err=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
ERR server error file=takeout-20251119T071006Z-3-003:Takeout/Google Foto/Cascate del diavolo (Takeout)/PXL_20201018_104937496.jpg error=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe
ERR Error err=AssetUpload, POST, http://192.168.5.100:30041/api/assets

io: read/write on closed pipe

And end report:

INF Asset Tracking Report:
INF =====================
INF Total Assets:      95624  (487.7 GB)
INF   Processed:        7082  (33.2 GB)
INF   Discarded:        1988  (9.2 GB)
INF   Errors:              4  (21.9 MB)
INF   Pending:         86550  (445.3 GB)
INF 
INF ⚠️  WARNING: 86550 assets did not reach a final state!
INF 
INF 
INF Event Report:
INF =============
INF 
INF Discovery (Assets):
INF   discovered image                   :   85365  (277.1 GB)
INF   discovered video                   :   10259  (210.7 GB)
INF 
INF Discovery (Non-Assets):
INF   discovered sidecar                 :   93958  (65.6 MB)
INF   discovered unsupported file        :      11  (22.4 KB)
INF 
INF Asset Lifecycle (PROCESSED):
INF   server asset upgraded              :     345
INF 
INF Asset Lifecycle (ERROR):
INF   server error                       :       4
INF 
INF Processing Events:
INF   associated metadata                :   95205
INF   missing metadata                   :     419
INF 

I already tried starting from scratch multiple times (lowering the concurrency to 1).
Is there anything else I can try? My goal is to import everything with the correct album associations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions