bin/kc.sh start-dev fails with banner issue
See original GitHub issueDescribe the bug
I downloaded keycloak 17.0.1 tar.gz and ran kc.sh start-dev. It failed with the following error:
ERROR: Failed to run 'build' command.
ERROR: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.deployment.steps.BannerProcessor#recordBanner threw an exception: java.lang.IllegalArgumentException: Bad escape
at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:87)
at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:103)
at java.base/java.nio.file.Path.of(Path.java:203)
at java.base/java.nio.file.Paths.get(Paths.java:97)
at io.quarkus.deployment.steps.BannerProcessor.isQuarkusCoreBanner(BannerProcessor.java:117)
at io.quarkus.deployment.steps.BannerProcessor.getBanner(BannerProcessor.java:93)
at io.quarkus.deployment.steps.BannerProcessor.readBannerFile(BannerProcessor.java:48)
at io.quarkus.deployment.steps.BannerProcessor.recordBanner(BannerProcessor.java:37)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
ERROR: Build failure: Build failed due to errors
[error]: Build step io.quarkus.deployment.steps.BannerProcessor#recordBanner threw an exception: java.lang.IllegalArgumentException: Bad escape
at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:87)
at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:103)
at java.base/java.nio.file.Path.of(Path.java:203)
at java.base/java.nio.file.Paths.get(Paths.java:97)
at io.quarkus.deployment.steps.BannerProcessor.isQuarkusCoreBanner(BannerProcessor.java:117)
at io.quarkus.deployment.steps.BannerProcessor.getBanner(BannerProcessor.java:93)
at io.quarkus.deployment.steps.BannerProcessor.readBannerFile(BannerProcessor.java:48)
at io.quarkus.deployment.steps.BannerProcessor.recordBanner(BannerProcessor.java:37)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)
at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
ERROR: Bad escape
For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.
Version
17.0.1
Expected behavior
Have keycloak running
Actual behavior
Failed with error
How to Reproduce?
Download keycloak tar.gz or zip. Unpack and cd. run ./bin/kc.sh start-dev
Anything else?
Debian 11 on amd64 using openjdk 11
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment 18.9 (build 11.0.12+7)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
NCM 7.0.2 Fails to login due to presence of "Authorized users ...
It appears SolarWinds Orion NCM 7.0.2 cannot cope with presence of “Authorized users please note:” in Cisco banner. Has anyone diagnosed and resolved...
Read more >43, Failed getting banner" Error when Trying to Upload a File ...
Symptoms. SFTP File Attachment is failing while using username/password authentication and getting below error in the log files. Error Messages:.
Read more >Paramiko : Error reading SSH protocol banner - Stack Overflow
I've just got the issue on one server. Openssh client connects fine, Paramiko fails. If I telnet the server, it doesn't write the...
Read more >crypto/ssh: banner support update breaks connectivity #22359
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Milestone.
Read more >SSH client option to suppress server banners?
It silences the banner but you're still able to receive errors: $ ssh -o LogLevel=error localhost Permission denied (publickey). Share.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ieugen , thanks for opening this issue, unfortunately I’m not able to reproduce, those are the steps that I attempted:
Dockerfile
with the following content:and this is the output, that is pretty much the expected one:
Are you passing any extra argument? Can you share the complete command line options passed to
start-dev
and/or the relevant environment variables?Thanks in advance!
Sounds good to me, thanks for the report @ieugen !