Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.23RC6 can't find /tmp/xxxx files when importing Google Photos archive #608

Open
Ricostyle21 opened this issue Jan 7, 2025 · 12 comments
Open
Assignees
Labels
fixed in next release fix delivered in the next stable version

Comments

@Ricostyle21
Copy link

When trying to import a multiple zip-archive Google Photos takeout, it analyses everything correctly but after uploading 2-4 files I get the following error:

2025-01-07 14:14:30 ERR upload error file=takeout-20241207T121721Z-006:Takeout/Google Photos/1 year ago/20220203_141055.jpg error=open /tmp/immich-go_2712421070: no such file or directory
2025-01-07 14:14:30 ERR upload error file=takeout-20241207T121721Z-006:Takeout/Google Photos/1 year ago/20220203_141055.MP4 error=open /tmp/immich-go_2026722806: no such file or directory

I suspect it may be due to not enough space in the /tmp/ folder? I'm running Unraid so I think it just can't write to the /tmp/ folder or something. It may be something else entirely, I'm not sure. Is it possible to specify a folder to use instead of the /tmp/ folder?

@simulot
Copy link
Owner

simulot commented Jan 7, 2025

Good guess. The write in the the /tmp folder should raise an error, or the temp files aren't created as expected. I'll check the code.

You can set the environment variable $TMPDIR to change where immich-go stores its files. Tell me if this helps.

@Ricostyle21
Copy link
Author

This still doesn't work unfortunately, setting the $TMPDIR to a directory alongside the executable still gives the following result:

2025-01-07 17:42:56 ERR upload error file=takeout-20241207T121721Z-006:Takeout/Google Photos/1 year ago/20220203_181930.jpg error=open /mnt/user/│
│Cederic/immichtmp/immich-go_3210911842: no such file or directory                                                                                │
│2025-01-07 17:42:56 ERR upload error file=takeout-20241207T121721Z-006:Takeout/Google Photos/1 year ago/20220203_181930.MP4 error=open /mnt/user/│
│Cederic/immichtmp/immich-go_3848644937: no such file or directory   

@Dunky13
Copy link

Dunky13 commented Jan 9, 2025

Same is happenning to me, default osx tmp dir, as well as a custom (and access allowed) tmp dir.

On rc6

@simulot
Copy link
Owner

simulot commented Jan 9, 2025

Is it possible to share a log file.
You can drop it on my discord account @simulot

@devGIT07
Copy link

I am getting same error on a mac machine. Was there any solution to it ? Default or custom TMPDIR folder do not work.

@Dunky13
Copy link

Dunky13 commented Jan 11, 2025

In the end I had to revert to 0.22.1, set a custom tmpdir as well as manually setting timezone and client timeout. Then it worked

@simulot
Copy link
Owner

simulot commented Jan 11, 2025

There isn't an option to force the temp dir in 0.22.1. Maybe setting the TMPDIR variable works better there?

@Dunky13
Copy link

Dunky13 commented Jan 11, 2025

I ran it as:

TMPDIR=/home/user/takeouttmp ./immich-go -time-zone Europe/Amsterdam -client-timeout 1m0s -key redacted -server iphere -google-photos <takeout dit>/takeout*.zip on 0.22.1

@simulot simulot self-assigned this Jan 11, 2025
@simulot
Copy link
Owner

simulot commented Jan 11, 2025

Hi @Dunky13, @Ricostyle21 I'm working on a fix for this error.
I can't reproduce the case neither by removing the write permission or by limiting the space. Immich-go fails with a descriptive error:

Error: write /mnt/virtual_disk/tmp/immich-go_442673480: no space left on device

Could you give more details?

  • running environment: VM? Container? directly on a workstation / nas host?
  • the exact command line
  • rights of the /tmp folder

Thank you for your help

@Ricostyle21
Copy link
Author

Sure! Thanks for working on it!
The running environment is via ssh on a UNRAID (linux) NAS, the executable is just copied from the github releases page.
The exact command is this:
./immich-go --server=http://xxx.xxx.xxx.xxx:2283 --api-key=somethingyouwouldliketoknowbutcant upload from-google-photos --manage-burst=Stack --manage-raw-jpeg=StackCoverJPG /mnt/user/Downloads/takeout-*.zip
The /tmp folder is owned by root, but the command itself is also executed by the root user (this is how unraid does it's ssh thingies, it's a bit weird).
Let me know if you need more, like logs etc.

@simulot
Copy link
Owner

simulot commented Jan 11, 2025

A log file may help

@Ricostyle21
Copy link
Author

I sent you logs on discord, and the error is still happening on RC7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next release fix delivered in the next stable version
Projects
None yet
Development

No branches or pull requests

4 participants