gaps: Bad Request This combination of host and port requires TLS.

After deploying the docker container, going to http://ipaddressofdockerserver:8443/ gives an error Bad Request This combination of host and port requires TLS. Logs are

gaps           | 2019-10-21 19:46:57.138  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : Starting GapsApplication v0.0.4 on zoe02 with PID 1 (/usr/src/app/Gaps-0.0.4.jar started by root in /usr/src/app)
gaps           | 2019-10-21 19:46:57.142  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : No active profile set, falling back to default profiles: default
gaps           | 2019-10-21 19:46:57.411  WARN 1 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder    : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
gaps           | 2019-10-21 19:46:59.360  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8443 (https)
gaps           | 2019-10-21 19:46:59.431  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
gaps           | 2019-10-21 19:46:59.432  INFO 1 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.24]
gaps           | 2019-10-21 19:46:59.561  INFO 1 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
gaps           | 2019-10-21 19:46:59.561  INFO 1 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2306 ms
gaps           | 2019-10-21 19:47:00.361  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientInboundChannelExecutor'
gaps           | 2019-10-21 19:47:00.368  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientOutboundChannelExecutor'
gaps           | 2019-10-21 19:47:00.407  INFO 1 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'messageBrokerTaskScheduler'
gaps           | 2019-10-21 19:47:00.469  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'brokerChannelExecutor'
gaps           | 2019-10-21 19:47:00.674  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService
gaps           | 2019-10-21 19:47:00.674  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'taskExecutor'
gaps           | 2019-10-21 19:47:00.952  INFO 1 --- [           main] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]
gaps           | 2019-10-21 19:47:01.185  WARN 1 --- [           main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
gaps           | 2019-10-21 19:47:01.436  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Starting...
gaps           | 2019-10-21 19:47:01.436  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : BrokerAvailabilityEvent[available=true, SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]]
gaps           | 2019-10-21 19:47:01.437  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Started.
gaps           | 2019-10-21 19:47:02.306  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8443 (https) with context path ''
gaps           | 2019-10-21 19:47:02.320  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : Started GapsApplication in 6.389 seconds (JVM running for 7.087)
gaps           | 2019-10-21 19:47:15.485 ERROR 1 --- [nio-8443-exec-1] o.a.coyote.http11.Http11NioProtocol      : Error reading request, ignored
gaps           | 
gaps           | java.lang.NullPointerException: null
gaps           |        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.getSslSupport(NioEndpoint.java:1392) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1593) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
gaps           |        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
gaps           |        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
gaps           | 
gaps           | 2019-10-21 19:47:15.487 ERROR 1 --- [nio-8443-exec-1] org.apache.tomcat.util.net.NioEndpoint   : Error running socket processor

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

Well we don’t currently plan on making the change away from the HTTPS. Sorry.

On Tue, Oct 22, 2019 at 10:19 PM hjone72 notifications@github.com wrote:

it’s not to do with the redirect. I want to access it via HTTP not HTTPS

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JasonHHouse/Gaps/issues/59?email_source=notifications&email_token=AAICE7GFTMBSXFOP3BV6IRLQP6YEDA5CNFSM4JDED7L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7ZXAQ#issuecomment-545233794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICE7DDNJTWGUFVFN4WSEDQP6YEDANCNFSM4JDED7LQ .

  • Greg

I’m also having this issue. I don’t have plex installed on the machine I’m running gaps on nor do I have anything occupying it’s port. I believe docker will error if you try to bind a port that’s already in use.

Either way I got round it by adding the https protocol in front of the url (https://127.0.0.1:8484) then accepting the warning about the site not being secure. Something in the server setup isn’t happy.