Admin password not reported in logs after installation (docker installation)

44 views
Skip to first unread message

pap...@gmail.com

unread,
Oct 23, 2019, 4:24:25 AM10/23/19
to alfio

Here's what I get in my logs... no password reported. After a suggestion and eventhough it is not mentioned in the documentation (https://github.com/alfio-event/alf.io) I tried abcd as password but that doesn't work either. Any other ideas?


docker logs alfio_alfio_1

_ _ __ _ / \ | |/ |() ___ / _ \ | | |_ | |/ _ \ / ___ | | || | () | // __||()|___/ >> powered by Spring Boot
15:37:34.326 [main] INFO alfio.config.SpringBootLauncher - Starting SpringBootLauncher on f01357eb011a with PID 1 (/home/alfio/app/WEB-INF/classes started by alfio in /home/alfio/app)
15:37:34.352 [main] INFO alfio.config.SpringBootLauncher - The following profiles are active: spring-boot,stdout,dev,jdbc-session 15:37:40.840 [main] WARN alfio.config.DataSourceConfiguration - You're accessing the database using a superuser. This is highly discouraged since it will disable the row security policy checks.


docker logs alfio_db_1

2019-10-22 15:37:29.832 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2019-10-22 15:37:29.833 UTC [1] LOG: listening on IPv6 address "::", port 5432
2019-10-22 15:37:29.852 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-10-22 15:37:29.889 UTC [21] LOG: database system was shut down at 2019-10-22 15:36:08 UTC
2019-10-22 15:37:29.899 UTC [1] LOG: database system is ready to accept connections



Celestino Bellone

unread,
Oct 23, 2019, 2:49:01 PM10/23/19
to al...@googlegroups.com
Hi,

I wanted to understand if there was anything wrong with the docker-compose descriptor, so I've tried to do a fresh start on a clean VM (ubuntu 18.04) and I've got the password on first start:

celestino@xxx:/tmp/alf.io$ sudo docker-compose up
[...]
alfio_1  | 18:34:28.176 [main] WARN  alfio.config.DataSourceConfiguration - You're accessing the database using a superuser. This is highly discouraged since it will disable the row security policy checks.
alfio_1  | Warning: Nashorn engine is planned to be removed from a future JDK release
alfio_1  | 18:34:34.563 [scheduling-1] DEBUG alfio.manager.FileUploadManager - removed 0 unused file_blob
alfio_1  | 18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker - *******************************************************
alfio_1  | 18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    This is the first time you're running alf.io
alfio_1  | 18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    here the generated admin credentials:
alfio_1  | 18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    aPHv=w~WlRzf
alfio_1  | 18:34:34.592 [main] INFO  alfio.config.ConfigurationStatusChecker - *******************************************************
alfio_1  | 18:34:34.599 [main] INFO  alfio.config.ConfigurationStatusChecker - performing migration from previous version, if any
alfio_1  | 18:34:34.665 [main] INFO  alfio.config.ConfigurationStatusChecker - done.
alfio_1  | 18:34:34.665 [main] INFO  alfio.config.ConfigurationStatusChecker - initialized alf.io version 2.0-M1-1910
alfio_1  | 18:34:34.734 [main] INFO  alfio.config.SpringBootLauncher - Started SpringBootLauncher in 9.433 seconds (JVM running for 10.102)
alfio_1  | 18:34:34.739 [main] INFO  alfio.config.SpringBootLauncher - profiles: requested , active spring-boot, stdout, dev, jdbc-session


celestino@xxx:/tmp/alf.io$ sudo docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                       PORTS               NAMES
651416b7d709        postgres:10         "docker-entrypoint.s…"   4 minutes ago       Exited (0) 2 minutes ago                         alfio_db_1
f3888898bdf8        alfio/alf.io        "/bin/sh -c '/opt/jd…"   4 minutes ago       Exited (143) 2 minutes ago                       alfio_alfio_1


celestino@xxx:/tmp/alf.io$ sudo docker logs alfio_alfio_1
    _    _  __  _      
   / \  | |/ _|(_) ___  

  / _ \ | | |_ | |/ _ \
 / ___ \| |  _|| | (_) |
/_/   \_\_|_|(_)_|\___/

>> powered by Spring Boot

18:34:26.170 [main] INFO  alfio.config.SpringBootLauncher - Starting SpringBootLauncher on f3888898bdf8 with PID 1 (/home/alfio/app/WEB-INF/classes started by alfio in /home/alfio/app)
18:34:26.183 [main] INFO  alfio.config.SpringBootLauncher - The following profiles are active: spring-boot,stdout,dev,jdbc-session
18:34:28.176 [main] WARN  alfio.config.DataSourceConfiguration - You're accessing the database using a superuser. This is highly discouraged since it will disable the row security policy checks.
Warning: Nashorn engine is planned to be removed from a future JDK release
18:34:34.563 [scheduling-1] DEBUG alfio.manager.FileUploadManager - removed 0 unused file_blob
18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker - *******************************************************
18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    This is the first time you're running alf.io
18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    here the generated admin credentials:
18:34:34.591 [main] INFO  alfio.config.ConfigurationStatusChecker -    aPHv=w~WlRzf
18:34:34.592 [main] INFO  alfio.config.ConfigurationStatusChecker - *******************************************************
18:34:34.599 [main] INFO  alfio.config.ConfigurationStatusChecker - performing migration from previous version, if any
18:34:34.665 [main] INFO  alfio.config.ConfigurationStatusChecker - done.
18:34:34.665 [main] INFO  alfio.config.ConfigurationStatusChecker - initialized alf.io version 2.0-M1-1910
18:34:34.734 [main] INFO  alfio.config.SpringBootLauncher - Started SpringBootLauncher in 9.433 seconds (JVM running for 10.102)
18:34:34.739 [main] INFO  alfio.config.SpringBootLauncher - profiles: requested , active spring-boot, stdout, dev, jdbc-session


running the application again, I don't get the admin password, because it's been already generated and one-way-encrypted:

alfio_1  |     _    _  __  _      
alfio_1  |    / \  | |/ _|(_) ___  
alfio_1  |   / _ \ | | |_ | |/ _ \
alfio_1  |  / ___ \| |  _|| | (_) |
alfio_1  | /_/   \_\_|_|(_)_|\___/
alfio_1  |
alfio_1  | >> powered by Spring Boot
alfio_1  |
alfio_1  | 18:40:04.758 [main] INFO  alfio.config.SpringBootLauncher - Starting SpringBootLauncher on f3888898bdf8 with PID 1 (/home/alfio/app/WEB-INF/classes started by alfio in /home/alfio/app)
alfio_1  | 18:40:04.762 [main] INFO  alfio.config.SpringBootLauncher - The following profiles are active: spring-boot,stdout,dev,jdbc-session
alfio_1  | 18:40:06.411 [main] WARN  alfio.config.DataSourceConfiguration - You're accessing the database using a superuser. This is highly discouraged since it will disable the row security policy checks.
alfio_1  | Warning: Nashorn engine is planned to be removed from a future JDK release
alfio_1  | 18:40:09.739 [main] INFO  alfio.config.ConfigurationStatusChecker - performing migration from previous version, if any
alfio_1  | 18:40:09.794 [main] INFO  alfio.config.ConfigurationStatusChecker - done.
alfio_1  | 18:40:09.796 [main] INFO  alfio.config.ConfigurationStatusChecker - initialized alf.io version 2.0-M1-1910
alfio_1  | 18:40:09.918 [main] INFO  alfio.config.SpringBootLauncher - Started SpringBootLauncher in 5.838 seconds (JVM running for 6.603)
alfio_1  | 18:40:09.935 [main] INFO  alfio.config.SpringBootLauncher - profiles: requested , active spring-boot, stdout, dev, jdbc-session
alfio_1  | 18:40:10.000 [scheduling-1] DEBUG alfio.manager.FileUploadManager - removed 0 unused file_blob


but docker logs shows the output of both runs, so everything runs as expected.

here my questions:

- can you please check if you have any existing alfio_db docker volume on your machine?
- do you have a postgresql server running on your local machine? (I mean, outside docker)
- can you give more information about your setup? (OS, version, docker version, etc.)

thanks
Celestino

--
You received this message because you are subscribed to the Google Groups "alfio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alfio+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/alfio/5b0105c3-b06e-4961-8d27-4b6308fe1854%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages