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

Self-hosted Getting Started Docker Image Crashes #525

Open
swartchris8 opened this issue Dec 26, 2024 · 2 comments
Open

Self-hosted Getting Started Docker Image Crashes #525

swartchris8 opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@swartchris8
Copy link

swartchris8 commented Dec 26, 2024

Describe the bug

Getting started doesn't work https://docs.fief.dev/getting-started/local-instance/

To Reproduce

I tried running the following generated docker cmd:

docker run \
  --name fief-server \
  -p 8000:8000 \
  -d \
  -e "SECRET=XXX" \
  -e "FIEF_CLIENT_ID=XXX" \
  -e "FIEF_CLIENT_SECRET=XXX" \
  -e "ENCRYPTION_KEY=XXX=" \
  -e "PORT=8000" \
  -e "FIEF_DOMAIN=localhost:8000" \
  -e "[email protected]" \
  -e "FIEF_MAIN_USER_PASSWORD=MiertNemJo99?" \
  -e "CSRF_COOKIE_SECURE=False" \
  -e "SESSION_DATA_COOKIE_SECURE=False" \
  -e "USER_LOCALE_COOKIE_SECURE=False" \
  -e "LOGIN_HINT_COOKIE_SECURE=False" \
  -e "LOGIN_SESSION_COOKIE_SECURE=False" \
  -e "REGISTRATION_SESSION_COOKIE_SECURE=False" \
  -e "SESSION_COOKIE_SECURE=False" \
  -e "FIEF_ADMIN_SESSION_COOKIE_SECURE=False" \
  ghcr.io/fief-dev/fief:latest

Which runs a docker image crashes with the following logs:

# cat supervisord.log
2024-12-26 21:01:49,693 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-12-26 21:01:49,694 INFO supervisord started with pid 1
2024-12-26 21:01:50,704 INFO spawned: 'fief-server' with pid 7
2024-12-26 21:01:50,709 INFO spawned: 'fief-worker' with pid 8
2024-12-26 21:01:50,714 INFO spawned: 'redis' with pid 9
2024-12-26 21:01:51,366 WARN exited: fief-server (exit status 1; not expected)
2024-12-26 21:01:51,366 WARN exited: fief-worker (exit status 1; not expected)
2024-12-26 21:01:52,375 INFO spawned: 'fief-server' with pid 15
2024-12-26 21:01:52,379 INFO spawned: 'fief-worker' with pid 16
2024-12-26 21:01:52,380 INFO success: redis entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-12-26 21:01:52,979 WARN exited: fief-worker (exit status 1; not expected)
2024-12-26 21:01:52,984 WARN exited: fief-server (exit status 1; not expected)
2024-12-26 21:01:54,994 INFO spawned: 'fief-server' with pid 17
2024-12-26 21:01:54,997 INFO spawned: 'fief-worker' with pid 18
2024-12-26 21:01:55,596 WARN exited: fief-worker (exit status 1; not expected)
2024-12-26 21:01:55,596 WARN exited: fief-server (exit status 1; not expected)
2024-12-26 21:01:58,621 INFO spawned: 'fief-server' with pid 19
2024-12-26 21:01:58,626 INFO spawned: 'fief-worker' with pid 20
2024-12-26 21:01:59,217 WARN exited: fief-server (exit status 1; not expected)
2024-12-26 21:01:59,217 WARN exited: fief-worker (exit status 1; not expected)
2024-12-26 21:02:00,218 INFO gave up: fief-server entered FATAL state, too many start retries too quickly
2024-12-26 21:02:00,219 INFO gave up: fief-worker entered FATAL state, too many start retries too quickly

Expected behavior

Following the quickstart guide works.

Configuration

  • Cloud or self-hosted: self-hosted
  • If self-hosted, Fief version: latest

copy pasted from quickstart

Additional context

Add any other context about the problem here.

@swartchris8 swartchris8 added the bug Something isn't working label Dec 26, 2024
Copy link

fief-bailiff bot commented Dec 26, 2024

Hail, @swartchris8 👋

I've noticed you shared secret values: SECRET, FIEF_CLIENT_ID, FIEF_CLIENT_SECRET, ENCRYPTION_KEY. Those are highly sensitive and you should keep them secret.

For your security, I've taken the liberty to replace them with dummy values.

Important

Since GitHub shows comments history publicly, I recommend you to delete the old revision as described here.

Copy link

fief-bailiff bot commented Dec 26, 2024

Hail, @swartchris8 👋 Welcome to Fief's kingdom!

Our team will get back to you very soon to help.

In the meantime, take a minute to star our repository ⭐️

star-fief

Want to support us?

Subscribe to one of our paid plan to help us continue our work and receive exclusive information and benefits! Starts at $5/month 🪙

Subscribe

Farewell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant