-
Notifications
You must be signed in to change notification settings - Fork 12
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
Postgresql database schema creation fails when running w/o elasticsearch. #618
Comments
I'm seeing the same issue as well. I thought maybe the db needed time to start up before the connection (which would happen while waiting for the search server), but starting the db first and then the FusionAuth service does not change the outcome. |
There was a new version shipped 6 days ago: 798ead8ae175. https://hub.docker.com/r/fusionauth/fusionauth-app/tags I just downloaded that version from a clean docker setup (removed all previous images related to FA) and was unable to replicate. Can you please try to replicate using this image and let me know if the problem still exists? |
I was running on the lastest 1.16 tag, and I just blew away everything in docker and started over and had the same issue. |
@lpdyck I have similar setup and it's working fine. But I explicitly specified the search engine type. FUSIONAUTH_SEARCH_ENGINE_TYPE: database |
@lpdyck can you try @cheelahim 's workaround and let us know if that fixes it, please? |
I've checked with the following docker-compose file version: "3"
services:
db:
image: postgres:9.6
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
#search:
# image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
# environment:
# - cluster.name=fusionauth
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
# restart: unless-stopped
# ulimits:
# memlock:
# soft: -1
# hard: -1
fusionauth:
image: fusionauth/fusionauth-app:1.16.0
environment:
DATABASE_URL: jdbc:postgresql://db:5432/fusionauth
DATABASE_ROOT_USER: postgres
DATABASE_ROOT_PASSWORD: postgres
DATABASE_USER: fusionauth
DATABASE_PASSWORD: fusionauth
FUSIONAUTH_SEARCH_ENGINE_TYPE: database
#FUSIONAUTH_SEARCH_SERVERS: http://search:9200
FUSIONAUTH_URL: http://fusionauth:9011
FUSIONAUTH_RUNTIME_MODE: development
ports:
- 9011:9011 and issue is still present. Tested with image Update: The issue can be reporoduced in PWD environment with provided docker-compose file. |
@mgetka Prior to 1.16.0 we were entering into Silent Configuration Mode when the We are still expecting the This is a bug and we will get a patch released as soon as possible. This should be on the 1.16.1 release. |
Version 1.16.1 is released, feel free to try again and post your results. |
Confirmed fixed |
Postgresql database schema creation fails when running w/o elasticsearch.
Description
Maintenance mode doesn't properly initialize postgresql database when the service is ran without elasticsearch. The issue manifests itself through FusionAuth's runtime user authentication failures while maintenance mode workflow is running. Everything works fine when running with elasticsearch.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Database schema is created via maintenance mode.
Platform
Additional context
Postgresql log entries:
The problem can be reproduced with the following
docker-compose
file:When elasticsearch related lines are uncommented the service starts correctly.
The text was updated successfully, but these errors were encountered: