jaganineleaps commented on issue #11082:
URL: 
https://github.com/apache/incubator-superset/issues/11082#issuecomment-704383711


   @alirezas The root cause for the above issue was host **db** does exist with 
different password. That's why database initialization skipped. Kindly check in 
`docker volume ls`
   
   ```
   superset_db              | PostgreSQL Database directory appears to contain 
a database; Skipping initialization
   ```
   
   Due to the password issue containers were couldn't connect to the 
meta-database(superset_worker, superset_app, superset_init)
   
   ```
   superset_worker          | ERROR:flask_appbuilder.security.sqla.manager:DB 
Creation and initialization failed: (psycopg2.OperationalError) could not 
connect to server: No route to host
   superset_worker          |   Is the server running on host "db" (172.28.0.2) 
and accepting
   superset_worker          |   TCP/IP connections on port 5432?
   ```
   
   If you already know existing password of host **db** then update them on 
docker/.env file.
   ```
   POSTGRES_DB=superset
   POSTGRES_USER=superset
   POSTGRES_PASSWORD=superset
   ```
   else you could delete database volume then do fresh install.
   ```
   docker-compose down -v && docker-compose build && docker-compose up -d
   ```


----------------------------------------------------------------
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]



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

Reply via email to