SWoto edited a comment on issue #8880: Fresh Docker-Compose Local Execution 
Fails
URL: 
https://github.com/apache/incubator-superset/issues/8880#issuecomment-578911981
 
 
   I'm currently facing the same problem and I've the correct .env file. The 
only think I changed was the port in the db (inside the docker-compose.yml to 
5432:5432).
   @dpgaspar, could you reopen this issue?
   
   OS: `Ubuntu 18.04.3 LTS x86_64`
   
   **docker-compose.yml**
   ```
     db:
       env_file: docker/.env
       image: postgres:10
       restart: unless-stopped
       ports:
         - "5432:5432"
       volumes:
         - db_home:/var/lib/postgresql/data
   ```
   
   **ENV file:**
   ```
   # database configurations (do not modify)
   DATABASE_DB=superset
   DATABASE_HOST=db
   DATABASE_PASSWORD=superset
   DATABASE_USER=superset
   
   # database engine specific environment variables
   # change the below if you prefers another database engine
   DATABASE_PORT=5432
   DATABASE_DIALECT=postgresql
   POSTGRES_DB=superset
   POSTGRES_USER=superset
   POSTGRES_PASSWORD=superset
   ```
   
   
   **Error LOG:**
   ```redis_1            | 1:M 27 Jan 18:54:34.032 * The server is now ready to 
accept connections on port 6379
   db_1               | selecting dynamic shared memory implementation ... posix
   db_1               | creating configuration files ... ok
   db_1               | running bootstrap script ... ok
   db_1               | performing post-bootstrap initialization ... ok
   db_1               | syncing data to disk ... ok
   db_1               | 
   db_1               | Success. You can now start the database server using:
   db_1               | 
   db_1               |     pg_ctl -D /var/lib/postgresql/data -l logfile start
   db_1               | 
   db_1               | 
   db_1               | WARNING: enabling "trust" authentication for local 
connections
   db_1               | You can change this by editing pg_hba.conf or using the 
option -A, or
   db_1               | --auth-local and --auth-host, the next time you run 
initdb.
   db_1               | waiting for server to start....2020-01-27 18:54:38.348 
UTC [46] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
   db_1               | 2020-01-27 18:54:38.830 UTC [47] LOG:  database system 
was shut down at 2020-01-27 18:54:36 UTC
   db_1               | 2020-01-27 18:54:38.854 UTC [46] LOG:  database system 
is ready to accept connections
   db_1               |  done
   db_1               | server started
   db_1               | CREATE DATABASE
   db_1               | 
   db_1               | 
   db_1               | /usr/local/bin/docker-entrypoint.sh: ignoring 
/docker-entrypoint-initdb.d/*
   db_1               | 
   db_1               | 2020-01-27 18:54:39.936 UTC [46] LOG:  received fast 
shutdown request
   db_1               | waiting for server to shut down....2020-01-27 
18:54:40.263 UTC [46] LOG:  aborting any active transactions
   db_1               | 2020-01-27 18:54:40.266 UTC [46] LOG:  worker process: 
logical replication launcher (PID 53) exited with exit code 1
   db_1               | 2020-01-27 18:54:40.266 UTC [48] LOG:  shutting down
   db_1               | 2020-01-27 18:54:40.495 UTC [46] LOG:  database system 
is shut down
   db_1               |  done
   db_1               | server stopped
   db_1               | 
   db_1               | PostgreSQL init process complete; ready for start up.
   db_1               | 
   db_1               | 2020-01-27 18:54:40.590 UTC [1] LOG:  listening on IPv4 
address "0.0.0.0", port 5432
   db_1               | 2020-01-27 18:54:40.590 UTC [1] LOG:  listening on IPv6 
address "::", port 5432
   db_1               | 2020-01-27 18:54:40.624 UTC [1] LOG:  listening on Unix 
socket "/var/run/postgresql/.s.PGSQL.5432"
   db_1               | 2020-01-27 18:54:40.707 UTC [64] LOG:  database system 
was shut down at 2020-01-27 18:54:40 UTC
   db_1               | 2020-01-27 18:54:40.732 UTC [1] LOG:  database system 
is ready to accept connections
   db_1               | 2020-01-27 18:54:44.357 UTC [71] FATAL:  password 
authentication failed for user "postgres"
   db_1               | 2020-01-27 18:54:44.357 UTC [71] DETAIL:  Role 
"postgres" does not exist.
   db_1               |    Connection matched pg_hba.conf line 95: "host all 
all all md5"
   superset-init_1    | INFO:root:logging was configured successfully
   superset_1         |  * Serving Flask app "superset.app:create_app()" (lazy 
loading)
   superset_1         |  * Environment: development
   superset_1         |  * Debug mode: on
   superset_1         |  * Running on http://0.0.0.0:8088/ (Press CTRL+C to 
quit)
   superset_1         |  * Restarting with stat
   superset_1         | INFO:root:logging was configured successfully
   superset_1         |  * Debugger is active!
   superset_1         |  * Debugger PIN: 131-988-229```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to