gphotos to immich help needed
I have posted my issue to https://github.com/immich-app/immich/discussions/1340#discussioncomment-6585579 but thought I’d add here in case others may also be in the same boat I am.
In short, I followed the instructions from https://github.com/lukehmcc/simple-gphotos-immich-migration and am getting the below error. ‘2023-07-30 03:49:06 Restructured 36 folders 2023-07-30 03:49:07 Restructured 48 folders 2023-07-30 03:49:07 Processing album /mnt/Google Photos/Albums/Lisa_s BD - 2012/... 2023-07-30 03:49:08 yarn run v1.22.19 2023-07-30 03:49:08 error Couldn't find a package.json file in "/app" 2023-07-30 03:49:08 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2023-07-30 03:49:08 Traceback (most recent call last): 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 125, in 2023-07-30 03:49:08 main(args.rootdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 118, in main 2023-07-30 03:49:08 process_albums(rootdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 61, in process_albums 2023-07-30 03:49:08 run_garzj_google_photos_migrate(albumdir, outdir, errdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 25, in run_garzj_google_photos_migrate 2023-07-30 03:49:08 sh( 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 14, in sh 2023-07-30 03:49:08 p.check_returncode() 2023-07-30 03:49:08 File "/usr/local/lib/python3.11/subprocess.py", line 502, in check_returncode 2023-07-30 03:49:08 raise CalledProcessError(self.returncode, self.args, self.stdout, 2023-07-30 03:49:08 subprocess.CalledProcessError: Command '['yarn', 'start', '--inputDir', '/mnt/Google Photos/Albums/Lisa_s BD - 2012/', '--outputDir', '/mnt/Google Photos/AlbumsProcessed/Lisa_s BD - 2012', '--errorDir', '/mnt/Google Photos/AlbumsError/Lisa_s BD - 2012']' returned non-zero exit status 1. ‘ Any ideas on how to fix? Thanks in advance.
In short, I followed the instructions from https://github.com/lukehmcc/simple-gphotos-immich-migration and am getting the below error. ‘2023-07-30 03:49:06 Restructured 36 folders 2023-07-30 03:49:07 Restructured 48 folders 2023-07-30 03:49:07 Processing album /mnt/Google Photos/Albums/Lisa_s BD - 2012/... 2023-07-30 03:49:08 yarn run v1.22.19 2023-07-30 03:49:08 error Couldn't find a package.json file in "/app" 2023-07-30 03:49:08 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2023-07-30 03:49:08 Traceback (most recent call last): 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 125, in 2023-07-30 03:49:08 main(args.rootdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 118, in main 2023-07-30 03:49:08 process_albums(rootdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 61, in process_albums 2023-07-30 03:49:08 run_garzj_google_photos_migrate(albumdir, outdir, errdir) 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 25, in run_garzj_google_photos_migrate 2023-07-30 03:49:08 sh( 2023-07-30 03:49:08 File "/app/fix_metadata.py", line 14, in sh 2023-07-30 03:49:08 p.check_returncode() 2023-07-30 03:49:08 File "/usr/local/lib/python3.11/subprocess.py", line 502, in check_returncode 2023-07-30 03:49:08 raise CalledProcessError(self.returncode, self.args, self.stdout, 2023-07-30 03:49:08 subprocess.CalledProcessError: Command '['yarn', 'start', '--inputDir', '/mnt/Google Photos/Albums/Lisa_s BD - 2012/', '--outputDir', '/mnt/Google Photos/AlbumsProcessed/Lisa_s BD - 2012', '--errorDir', '/mnt/Google Photos/AlbumsError/Lisa_s BD - 2012']' returned non-zero exit status 1. ‘ Any ideas on how to fix? Thanks in advance.
2 Replies
We have this discussion on GitHub and you might be able to find answer here https://github.com/immich-app/immich/discussions/1340
GitHub
gphotos import + albums migration · immich-app immich · Discussion ...
gphotos import + albums With this guide, you STILL have to add images that are in multiple albums manually (except for the first instance of that image, so hopefully this isn’t too many) can get al...
thanks @Alex . That's where I started and have posted my issue there as well. I can wait for someone to respond there instead.
Note: Yesterday I tried the lukehmcc solution. I also just attempted the slightly different jeverling fork but got the same error.
✔ Container fix_metadata Recreated
Attaching to fix_metadata
fix_metadata | /mnt/Google Photos/Photos/ exists and is non-empty, assuming no further restructuring is needed
fix_metadata | /mnt/Google Photos/Albums exists and is non-empty, assuming no further restructuring is needed
fix_metadata | Processing album /mnt/Google Photos/Albums/Lisa_s BD - 2012/...
fix_metadata | yarn run v1.22.19
fix_metadata | error Couldn't find a package.json file in "/app"
fix_metadata | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
fix_metadata | Traceback (most recent call last):
fix_metadata | File "/app/fix_metadata.py", line 118, in <module>
fix_metadata | main(args.rootdir)
fix_metadata | File "/app/fix_metadata.py", line 111, in main
fix_metadata | process_albums(rootdir)
fix_metadata | File "/app/fix_metadata.py", line 54, in process_albums
fix_metadata | run_garzj_google_photos_migrate(albumdir, outdir, errdir)
fix_metadata | File "/app/fix_metadata.py", line 25, in run_garzj_google_photos_migrate
fix_metadata | sh(["yarn", "start", albumdir, outdir, errdir])
fix_metadata | File "/app/fix_metadata.py", line 14, in sh
fix_metadata | p.check_returncode()
fix_metadata | File "/usr/local/lib/python3.11/subprocess.py", line 502, in check_returncode
fix_metadata | raise CalledProcessError(self.returncode, self.args, self.stdout,
fix_metadata | subprocess.CalledProcessError: Command '['yarn', 'start', '/mnt/Google Photos/Albums/Lisa_s BD - 2012/', '/mnt/Google Photos/AlbumsProcessed/Lisa_s BD - 2012', '/mnt/Google Photos/AlbumsError/Lisa_s BD - 2012']' returned non-zero exit status 1.