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

Script failing with - Failed to get session id, bailing #11

Open
devGIT07 opened this issue Jan 3, 2025 · 5 comments
Open

Script failing with - Failed to get session id, bailing #11

devGIT07 opened this issue Jan 3, 2025 · 5 comments

Comments

@devGIT07
Copy link

devGIT07 commented Jan 3, 2025

Hello,

Docker Setup:
I have hosted a photoprism on a home mac machine inside docker. Along with it, i am using duckdns to map the duckdns domain with internal machine IP. Docker is also running behind reverse proxy using Traefik. Everything is working fine and i am able to login with user/pass with duckdns domain.

Context:
Recently i downloaded my google photos, and following the instructions i imported all of it. There are metadata files left behind inside the import folder for which i am trying to use this script to auto-generate the albums.

Issue:
I placed this script file inside the Takeout folder, and using .conf file to provide the user, pass and siteUrl. On running the script on a mac terminal , i am getting error as: "Failed to get session id, bailing!"

Please let me know if i am missing any setups or anything i should try.

Thanks a lot !

@inthreedee
Copy link
Owner

I'd try running it without the conf file and, instead, use the interactive prompts. The Mac could possibly be parsing the file weirdly. Aside from that, there could be unusual behavior due to running it on a Mac. See #9. That person never responded, but I'm assuming installing an updated version of Bash fixed their problem. You could try that as well.

@devGIT07
Copy link
Author

devGIT07 commented Jan 3, 2025

I get same error on running manually too. I updated the bash version using Homebrew and here is the version:GNU bash,

version 5.2.37(1)-release (aarch64-apple-darwin24.0.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Initially i was getting script bash error on script using line 41: shopt -s globstar. However on updating the bash that error is gone so it means i am using upgraded bash version.

However, with all these, error still the same :(

@inthreedee
Copy link
Owner

Here's an older issue where someone had the same problem. They suspected a reverse proxy issue and solved it using their local IP: #6

@devGIT07
Copy link
Author

devGIT07 commented Jan 3, 2025

Ahh, this fixed the issue when i use the localhost:<port> :) Thanks a lot for pointing that out.

Other question:
Since i already ran the Import before this script, it means it has already uploaded all the photos and deleted them from the import folder. So how does this script works if there are just metadata json without any JPG/Photos files ?

@inthreedee
Copy link
Owner

Glad that fixed the issue. Can you please write the solution over in that first thread on photoprism's side so others who may end up there with that issue can see the resolution?

Without the photo files, you can try name matching mode, but you'll need both all of the json files from the takeout and all of Photoprism's sidecar yml files. It compares to two to create the list of photos for the album. This method is also a lot slower than the default hash mode where it hashes the image files themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants