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

Issue setting up gmail in Docker #3032

Closed
jasehigh opened this issue Apr 7, 2024 · 2 comments
Closed

Issue setting up gmail in Docker #3032

jasehigh opened this issue Apr 7, 2024 · 2 comments
Labels

Comments

@jasehigh
Copy link

jasehigh commented Apr 7, 2024

I'm experiencing an issue setting up gmail in calibre-web in Docker.

version: "3.8"
services:
  calibre-web:
    image: lscr.io/linuxserver/calibre-web:latest
    container_name: calibre-web
    environment:
      - TZ="Europe/London"
      - OAUTHLIB_RELAX_TOKEN_SCOPE=1
    volumes:
      - type: bind
        source: /Volumes/data/docker/appdata/calibre-web/gmail.json
        target: /app/calibre-web/gmail.json
      - /Volumes/data/docker/appdata/calibre-web:/config
      - /Volumes/data/docker/media:/media
    ports:
      - 8083:8083
    restart: unless-stopped

I have followed these instructions (https://github.com/janeczku/calibre-web/wiki/Setup-Mailserver#gmail) and have downloaded my credentials, renamed the file to gmail.json and have dropped this in my /config folder.

From the console of my docker container I perform the following:

ps -C "python3 /app/calibre-web/cps.py" -o pid=

This returns the PID that I then use in this command:

kill <pid> && python3 /app/calibre-web/cps.py

I goto calibre-web, and have to login as the default "admin" user, as my user profile/settings have been removed. I select a the folder that contains my calibre database, and then click on the "Setup gmail account as email server" option.

I copy the URL from the docker console, paste this into my browser, and grant google access. Using the URL this gives me, I paste this into another docker console to my container:

curl "<URL>"

This returns the message "The authentication flow has completed. You may close this window.".

The calibre-web window also shows:

"Success! Gmail Account Verified."
"Email Server Settings updated"

I then stop the container and restart. This allows me to log back in as my user.
However, once logged back in, the email option is not set to gmail!

Am I missing a step or is thee a known issue? Any assistance is greatly appreciated.

@OzzieIsaacs
Copy link
Collaborator

Somehow this is known, yeah: #2699, #2254

@mabequinho
Copy link

Setup as a regular mail.

smtp.gmail.com
port 587
encryption TLS
username: your@gmail.com
password: apppasswd

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

No branches or pull requests

3 participants