keycloak-angular icon indicating copy to clipboard operation
keycloak-angular copied to clipboard

Docker compose up command exits with an error

Open poojan007 opened this issue 4 years ago • 10 comments

I'm facing issue while trying to spawn up my containers. Seems like the COPY command is not getting executed. Please help. image

poojan007 avatar Jun 05 '21 16:06 poojan007

A bit more info from my end, I'm running WSL2 (windows subsystem for linux), so windows insider preview fast ring and WSL installed via WSL --install with default settings.

tonyeung avatar Jun 14 '21 20:06 tonyeung

A bit more info, tried it in the ubuntu cmd instead of windows docker desktop with same results. In ubuntu cmd, installed docker, docker compose, git, cloned repo, cd to example, run docker-compose up, and got this log

~/keycloak-angular/example$ docker-compose up
example_postgres_1 is up-to-date
Recreating example_keycloak_1 ... done
Attaching to example_postgres_1, example_keycloak_1
postgres_1  | The files belonging to this database system will be owned by user "postgres".
postgres_1  | This user must also own the server process.
postgres_1  |
postgres_1  | The database cluster will be initialized with locale "en_US.utf8".
postgres_1  | The default database encoding has accordingly been set to "UTF8".
postgres_1  | The default text search configuration will be set to "english".
postgres_1  |
postgres_1  | Data page checksums are disabled.
postgres_1  |
postgres_1  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres_1  | creating subdirectories ... ok
postgres_1  | selecting dynamic shared memory implementation ... posix
postgres_1  | selecting default max_connections ... 100
postgres_1  | selecting default shared_buffers ... 128MB
postgres_1  | selecting default time zone ... Etc/UTC
postgres_1  | creating configuration files ... ok
postgres_1  | running bootstrap script ... ok
postgres_1  | performing post-bootstrap initialization ... ok
postgres_1  | initdb: warning: enabling "trust" authentication for local connections
postgres_1  | You can change this by editing pg_hba.conf or using the option -A, or
postgres_1  | --auth-local and --auth-host, the next time you run initdb.
postgres_1  | syncing data to disk ... ok
postgres_1  |
postgres_1  |
postgres_1  | Success. You can now start the database server using:
postgres_1  |
postgres_1  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres_1  |
postgres_1  | waiting for server to start....2021-06-14 19:53:28.765 UTC [47] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-06-14 19:53:28.769 UTC [47] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-06-14 19:53:28.779 UTC [48] LOG:  database system was shut down at 2021-06-14 19:53:28 UTC
postgres_1  | 2021-06-14 19:53:28.785 UTC [47] LOG:  database system is ready to accept connections
postgres_1  |  done
postgres_1  | server started
postgres_1  | CREATE DATABASE
postgres_1  |
postgres_1  |
postgres_1  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres_1  |
postgres_1  | waiting for server to shut down...2021-06-14 19:53:29.244 UTC [47] LOG:  received fast shutdown request
postgres_1  | .2021-06-14 19:53:29.249 UTC [47] LOG:  aborting any active transactions
postgres_1  | 2021-06-14 19:53:29.250 UTC [47] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
postgres_1  | 2021-06-14 19:53:29.250 UTC [49] LOG:  shutting down
postgres_1  | 2021-06-14 19:53:29.277 UTC [47] LOG:  database system is shut down
postgres_1  |  done
postgres_1  | server stopped
postgres_1  |
postgres_1  | PostgreSQL init process complete; ready for start up.
postgres_1  |
postgres_1  | 2021-06-14 19:53:29.387 UTC [1] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-06-14 19:53:29.387 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-06-14 19:53:29.387 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-06-14 19:53:29.397 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-06-14 19:53:29.407 UTC [75] LOG:  database system was shut down at 2021-06-14 19:53:29 UTC
postgres_1  | 2021-06-14 19:53:29.413 UTC [1] LOG:  database system is ready to accept connections
postgres_1  | 2021-06-14 19:57:14.102 UTC [1] LOG:  received fast shutdown request
postgres_1  | 2021-06-14 19:57:14.106 UTC [1] LOG:  aborting any active transactions
postgres_1  | 2021-06-14 19:57:14.108 UTC [1] LOG:  background worker "logical replication launcher" (PID 81) exited with exit code 1
postgres_1  | 2021-06-14 19:57:14.108 UTC [76] LOG:  shutting down
postgres_1  | 2021-06-14 19:57:14.143 UTC [1] LOG:  database system is shut down
postgres_1  |
postgres_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1  |
postgres_1  | 2021-06-14 19:57:37.414 UTC [1] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-06-14 19:57:37.415 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-06-14 19:57:37.415 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-06-14 19:57:37.422 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-06-14 19:57:37.430 UTC [27] LOG:  database system was shut down at 2021-06-14 19:57:14 UTC
postgres_1  | 2021-06-14 19:57:37.438 UTC [1] LOG:  database system is ready to accept connections
keycloak_1  | Added 'admin' to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json', restart server to load user
keycloak_1  | -b 0.0.0.0
keycloak_1  | =========================================================================
keycloak_1  |
keycloak_1  |   Using PostgreSQL database
keycloak_1  |
keycloak_1  | =========================================================================
keycloak_1  |
keycloak_1  | 20:18:02,876 INFO  [org.jboss.modules] (CLI command executor) JBoss Modules version 1.11.0.Final
keycloak_1  | 20:18:02,939 INFO  [org.jboss.msc] (CLI command executor) JBoss MSC version 1.4.12.Final
keycloak_1  | 20:18:02,947 INFO  [org.jboss.threads] (CLI command executor) JBoss Threads version 2.4.0.Final
keycloak_1  | 20:18:03,038 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) starting
keycloak_1  | 20:18:03,130 INFO  [org.jboss.vfs] (MSC service thread 1-7) VFS000002: Failed to clean existing content for temp file provider of type temp. Enable DEBUG level log to find what caused this
keycloak_1  | 20:18:03,594 INFO  [org.wildfly.security] (ServerService Thread Pool -- 18) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak_1  | 20:18:03,891 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 14) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions
keycloak_1  | 20:18:04,058 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:18:04,157 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:18:04,263 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-5) WFLYELY00023: KeyStore file '/opt/jboss/keycloak/standalone/configuration/application.keystore' does not exist. Used blank.
keycloak_1  | 20:18:04,270 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY01084: KeyStore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
keycloak_1  | WARNING: An illegal reflective access operation has occurred
keycloak_1  | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/jboss/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak_1  | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
keycloak_1  | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
keycloak_1  | WARNING: All illegal access operations will be denied in a future release
keycloak_1  | 20:18:04,305 INFO  [org.jboss.as.patching] (MSC service thread 1-3) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
keycloak_1  | 20:18:04,316 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-6) WFLYDM0111: Keystore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
keycloak_1  | 20:18:04,409 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
keycloak_1  | 20:18:04,412 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) started in 1527ms - Started 59 of 82 services (32 services are lazy, passive or on-demand)
keycloak_1  | The batch executed successfully
keycloak_1  | 20:18:04,572 INFO  [org.jboss.as] (MSC service thread 1-3) WFLYSRV0050: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) stopped in 18ms
keycloak_1  | 20:18:05,970 INFO  [org.jboss.modules] (CLI command executor) JBoss Modules version 1.11.0.Final
keycloak_1  | 20:18:06,032 INFO  [org.jboss.msc] (CLI command executor) JBoss MSC version 1.4.12.Final
keycloak_1  | 20:18:06,038 INFO  [org.jboss.threads] (CLI command executor) JBoss Threads version 2.4.0.Final
keycloak_1  | 20:18:06,129 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) starting
keycloak_1  | 20:18:06,218 INFO  [org.jboss.vfs] (MSC service thread 1-8) VFS000002: Failed to clean existing content for temp file provider of type temp. Enable DEBUG level log to find what caused this
keycloak_1  | 20:18:06,751 INFO  [org.wildfly.security] (ServerService Thread Pool -- 21) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak_1  | 20:18:07,137 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 4) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions
keycloak_1  | 20:18:07,339 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:18:07,443 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:18:07,568 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-8) WFLYELY00023: KeyStore file '/opt/jboss/keycloak/standalone/configuration/application.keystore' does not exist. Used blank.
keycloak_1  | 20:18:07,574 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY01084: KeyStore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
keycloak_1  | WARNING: An illegal reflective access operation has occurred
keycloak_1  | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/jboss/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak_1  | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
keycloak_1  | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
keycloak_1  | WARNING: All illegal access operations will be denied in a future release
keycloak_1  | 20:18:07,613 INFO  [org.jboss.as.patching] (MSC service thread 1-7) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
keycloak_1  | 20:18:07,626 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-1) WFLYDM0111: Keystore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
keycloak_1  | 20:18:07,722 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
keycloak_1  | 20:18:07,725 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) started in 1749ms - Started 59 of 89 services (39 services are lazy, passive or on-demand)
keycloak_1  | The batch executed successfully
keycloak_1  | 20:18:07,880 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) stopped in 14ms
keycloak_1  | Executing: /opt/jboss/startup-scripts/startup.sh
keycloak_1  | /opt/jboss/tools/autorun.sh: /opt/jboss/startup-scripts/startup.sh: /bin/bash^M: bad interpreter: No such file or directory
example_keycloak_1 exited with code 126

tonyeung avatar Jun 14 '21 20:06 tonyeung

Current workaround - install keycloak seperately and only run npm install and ng serve in the example folder and see if that works.

Note that the page will not load without modifying CSP.

tonyeung avatar Jun 14 '21 21:06 tonyeung

This should be because of Windows line endings in the shell scripts (when cloning the repo on Windows). See #337.

konradtoenz avatar Jun 19 '21 09:06 konradtoenz

I've gone ahead and merged the PR from @konradtoenz (thanks for that!). Can the people in this thread please clone the repo again and get back to me if this in fact fixes the issue?

jonkoops avatar Jun 19 '21 23:06 jonkoops

Will try in next couple days and report back

tonyeung avatar Jun 20 '21 01:06 tonyeung

@konradtoenz @jonkoops same issue still. Cloned into new folder. Ran docker-compose up in example folder. See output below.

docker-compose up
Starting example_postgres_1 ... done
Recreating example_keycloak_1 ... done
Attaching to example_postgres_1, example_keycloak_1
postgres_1  |
postgres_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1  |
postgres_1  | 2021-06-21 20:30:22.803 UTC [1] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-06-21 20:30:22.804 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-06-21 20:30:22.804 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-06-21 20:30:22.812 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-06-21 20:30:22.825 UTC [27] LOG:  database system was interrupted; last known up at 2021-06-14 20:02:37 UTC
postgres_1  | 2021-06-21 20:30:23.211 UTC [27] LOG:  database system was not properly shut down; automatic recovery in progress
postgres_1  | 2021-06-21 20:30:23.218 UTC [27] LOG:  redo starts at 0/15C7710
postgres_1  | 2021-06-21 20:30:23.218 UTC [27] LOG:  invalid record length at 0/15C77F8: wanted 24, got 0
postgres_1  | 2021-06-21 20:30:23.218 UTC [27] LOG:  redo done at 0/15C77C0
postgres_1  | 2021-06-21 20:30:23.261 UTC [1] LOG:  database system is ready to accept connections
keycloak_1  | Added 'admin' to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json', restart server to load user
keycloak_1  | -b 0.0.0.0
keycloak_1  | =========================================================================
keycloak_1  |
keycloak_1  |   Using PostgreSQL database
keycloak_1  |
keycloak_1  | =========================================================================
keycloak_1  |
keycloak_1  | 20:30:28,032 INFO  [org.jboss.modules] (CLI command executor) JBoss Modules version 1.11.0.Final
keycloak_1  | 20:30:28,146 INFO  [org.jboss.msc] (CLI command executor) JBoss MSC version 1.4.12.Final
keycloak_1  | 20:30:28,158 INFO  [org.jboss.threads] (CLI command executor) JBoss Threads version 2.4.0.Final
keycloak_1  | 20:30:28,342 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) starting
keycloak_1  | 20:30:28,486 INFO  [org.jboss.vfs] (MSC service thread 1-8) VFS000002: Failed to clean existing content for temp file provider of type temp. Enable DEBUG level log to find what caused this
keycloak_1  | 20:30:29,232 INFO  [org.wildfly.security] (ServerService Thread Pool -- 20) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak_1  | 20:30:29,729 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 5) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions
keycloak_1  | 20:30:29,961 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:30:30,091 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:30:30,217 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-8) WFLYELY00023: KeyStore file '/opt/jboss/keycloak/standalone/configuration/application.keystore' does not exist. Used blank.
keycloak_1  | 20:30:30,225 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-8) WFLYELY01084: KeyStore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
keycloak_1  | WARNING: An illegal reflective access operation has occurred
keycloak_1  | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/jboss/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak_1  | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions   
keycloak_1  | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
keycloak_1  | WARNING: All illegal access operations will be denied in a future release
keycloak_1  | 20:30:30,285 INFO  [org.jboss.as.patching] (MSC service thread 1-2) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
keycloak_1  | 20:30:30,301 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-4) WFLYDM0111: Keystore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
keycloak_1  | 20:30:30,426 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
keycloak_1  | 20:30:30,429 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) started in 2385ms - Started 59 of 82 services (32 services are lazy, passive or on-demand)
keycloak_1  | The batch executed successfully
keycloak_1  | 20:30:30,612 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0050: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) stopped in 20ms
keycloak_1  | 20:30:31,979 INFO  [org.jboss.modules] (CLI command executor) JBoss Modules version 1.11.0.Final
keycloak_1  | 20:30:32,041 INFO  [org.jboss.msc] (CLI command executor) JBoss MSC version 1.4.12.Final
keycloak_1  | 20:30:32,050 INFO  [org.jboss.threads] (CLI command executor) JBoss Threads version 2.4.0.Final
keycloak_1  | 20:30:32,138 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) starting
keycloak_1  | 20:30:32,227 INFO  [org.jboss.vfs] (MSC service thread 1-3) VFS000002: Failed to clean existing content for temp file provider of type temp. Enable DEBUG level log to find what caused this
keycloak_1  | 20:30:32,759 INFO  [org.wildfly.security] (ServerService Thread Pool -- 21) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak_1  | 20:30:33,167 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 19) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions
keycloak_1  | 20:30:33,450 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:30:33,583 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
keycloak_1  | 20:30:33,733 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY00023: KeyStore file '/opt/jboss/keycloak/standalone/configuration/application.keystore' does not exist. Used blank.
keycloak_1  | 20:30:33,741 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-5) WFLYELY01084: KeyStore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
keycloak_1  | WARNING: An illegal reflective access operation has occurred
keycloak_1  | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/jboss/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak_1  | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions   
keycloak_1  | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations        
keycloak_1  | WARNING: All illegal access operations will be denied in a future release
keycloak_1  | 20:30:33,785 INFO  [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
keycloak_1  | 20:30:33,804 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-2) WFLYDM0111: Keystore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
keycloak_1  | 20:30:33,960 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
keycloak_1  | 20:30:33,964 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) started in 1979ms - Started 59 of 89 services (39 services are lazy, passive or on-demand)
keycloak_1  | The batch executed successfully
keycloak_1  | 20:30:34,149 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: Keycloak 13.0.1 (WildFly Core 15.0.1.Final) stopped in 16ms
keycloak_1  | Executing: /opt/jboss/startup-scripts/startup.sh
keycloak_1  | /opt/jboss/tools/autorun.sh: /opt/jboss/startup-scripts/startup.sh: /bin/bash^M: bad interpreter: No such file or directory
example_keycloak_1 exited with code 126

tonyeung avatar Jun 21 '21 20:06 tonyeung

@tonyeung, it seems you still have that carriage return in your file (/bin/bash^M). But I can't reproduce it. When I clone the repo on Windows, there are only line feeds in the scripts.

konradtoenz avatar Jun 22 '21 07:06 konradtoenz

@konradtoenz what do you recommend? I cloned from master into a brand new folder. Not sure what to tell you. Need some guidance, here.

tonyeung avatar Jun 22 '21 19:06 tonyeung

Hi @tonyeung,

I've never seen .gitattributes not working before, so I don't have any real advice here.

I'm running Git v2.32.0 on Windows 10 and when I do

git clone https://github.com/mauriciovigolo/keycloak-angular.git

\example\scripts\startup.sh and \example\scripts\create-client.sh have line-feed (LF) line endings (as opposed to CRLF). docker-compose up runs without errors.

Obviously there must be something different with your setup. Could you check?

konradtoenz avatar Jun 27 '21 12:06 konradtoenz