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

Can't loging as admin using docker #8711

Open
tiagobatistacolab opened this issue Jun 12, 2022 · 2 comments
Open

Can't loging as admin using docker #8711

tiagobatistacolab opened this issue Jun 12, 2022 · 2 comments

Comments

@tiagobatistacolab
Copy link

Describe the bug
I'm not able to login with the admin user in a docker installation.

Whenever I type the credentials I get the message "invalid credentials"

both server containers and frontend containers works normaly. I can, for example, create a new user from frontend. But without login as admin, I get my hands tied 😢

here is my docker-compose.yml

version: '3.5'

x-environment-vars: &environment-vars
  POSTGRES_HOST: postgres
  DATABASE_URL: postgresql://open_event_user:opev_pass@postgres:5432/open_event
  REDIS_URL: redis://redis:6379/0
  ADMIN_EMAIL: "@{tiago@....}"
  ADMIN_PASSWORD: "@{c...}"

x-defaults: &defaults
  image: eventyay/open-event-server:development
  restart: unless-stopped
  env_file:
    - .env
  environment:
    <<: *environment-vars
  depends_on:
    - postgres
    - redis
  volumes:
   - ./static:/data/app/static
    - ./generated:/data/app/generated # Workaround for #6155

services:

  postgres:
    image: postgis/postgis:12-3.0-alpine
    container_name: opev-postgres
    restart: unless-stopped
    volumes:
      - pg:/var/lib/postgresql/data

environment:
      POSTGRES_USER: open_event_user
      POSTGRES_PASSWORD: opev_pass
      POSTGRES_DB: open_event

  redis:
    image: redis:3-alpine
    container_name: opev-redis
    restart: unless-stopped
    command: redis-server
    volumes:
      - rd:/var/lib/redis/data

  web:
    <<: *defaults
container_name: opev-web
    ports:
      - 8085:8080

  celery:
    <<: *defaults
    container_name: opev-celery
    depends_on:
      - web
    environment:
      <<: *environment-vars
      C_FORCE_ROOT: "true"
    command: celery

volumes:
    pg:
    rd:



and here my .env

#DATABASE_URL=postgresql:///oevent
#DATABASE_URL=postgresql://open_event_user:opev_pass@localhost:5432/oevent
#TEST_DATABASE_URL=postgresql:///opev_test
# TEST_DATABASE_URL=postgresql://open_event_user:opev_pass@localhost:5432/opev_>
SECRET_KEY=secret
INTEGRATE_SOCKETIO=false

# If using fast docker test DB, uncomment following line
# TEST_DATABASE_URL=postgresql://test@localhost:5433/test

#APP_CONFIG=config.DevelopmentConfig

POSTGRES_USER=open_event_user
POSTGRES_PASSWORD=opev_pass
POSTGRES_DB=open_event

FLASK_APP=app.instance

@jacotec
Copy link

jacotec commented Aug 8, 2023

Same here, I want to test Open Event and can't do anything because there is no admin login.
@tiagobatistacolab Did you find a solution?

@ianfoot
Copy link

ianfoot commented Apr 12, 2024

I managed to find the default admin username / password, though I don't see it anywhere in the documentation.
It's open_event_test_user@fossasia.org / fossasia

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

4 participants