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

authorization issue after restart #23

Open
coolcodecding opened this issue Aug 30, 2024 · 7 comments
Open

authorization issue after restart #23

coolcodecding opened this issue Aug 30, 2024 · 7 comments

Comments

@coolcodecding
Copy link

coolcodecding commented Aug 30, 2024

I have used a docker setup to fetch BLE tag data from https://github.com/dchristl/macless-haystack.
i used this docker-compose:

    anisette:
    image: dadoum/anisette-v3-server
    container_name: findmy_anisette
    networks:
      - findmy_network
    restart: unless-stopped
    stop_grace_period: 1s
    ports:
      - 6969:6969
    volumes:
      - anisette-v3_data:/home/Alcoholic/.config/anisette-v3/lib/

First i start anisette server, then i run a setup script that creates a auth.json, which is then read by another service to fetch data from anisette. It works well so far.
However, if i restart anisette, the very same auth.json does not work anymore. This is very unpractical if e.g. the machine reboots and restarts containers, as i dont want to manually auth again with 2FA.

Is there any data stored in memory in anisette that is relevant for auth? What else coult be the reason and how could it be solved?
Any hint is welcome :)

EDIT:
i have also tried, still the same problem

    volumes:
      - anisette-v3_data:/home/Alcoholic/.config/anisette-v3/
@Koxx3
Copy link

Koxx3 commented Sep 28, 2024

I have the same issue

@clarkissac
Copy link

I also have the same Issue

@sonman
Copy link

sonman commented Dec 17, 2024

Same issue here :(

@sonman
Copy link

sonman commented Dec 20, 2024

When I just restart the container (without removing it) auth.json stays valid.

@clarkissac
Copy link

When I just restart the container (without removing it) auth.json stays valid.

Same for me

@sonman
Copy link

sonman commented Dec 21, 2024

When mounting /home/Alcoholic the auth.json stays valid, even when the container gets deleted. I can confirm that.
But even /home/Alcoholic/.config/anisette-v3 should work.

@mm28ajos
Copy link

When mounting /home/Alcoholic the auth.json stays valid, even when the container gets deleted. I can confirm that. But even /home/Alcoholic/.config/anisette-v3 should work.

Just played around with it. Can confirm this, also see here. Consider docker container prune and removing the auth.json to start with a fresh config. Did the trick for me.

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

5 participants