First of all, apologies if I missed giving more information on the issue. I'm new to pingfederate. I tried to put all the steps followed below.
- I have setup a single node k3s cluster on EC2 centos instance, there is also a traefik ingress deployed along with the k3s cluster.
- I deployed the pingfederate using the 20-kubernetes/07-license-as-secret since I have an existing pingfederate license.
- For testing purpose, I customized the pingidentiy-server-profiles/baseline/pingfederate profile by following how to modify profile using GitHub repository method.
- I also created an ingress for the pingfederate service using the 10-ingress/pingfederate-standalone-ingress. I have modified the hostname to the one which I have created.
When I try to access the application using the ingress hostname, I get the internal server error
.
Note: I have already tried the same setup on my local k3s cluster but without an ingress and just using port-forward it works, I’m able to login to the console.
Troubleshooting steps done so far:
Enabled logs to DEBUG mode following this link and deployed the pingfederate server. There is a ClosedChannelException
in the org.eclipse.jetty.io.WriteFlusher
. Below is the server.log
leading to the error I mentioned.
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.AbstractEndPoint] close SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill] EatWhatYouKill@63ccb1b2/SelectorProducer@1165a952/IDLE/p=true/QueuedThreadPool[qtp1642619282]@61e86192{STARTED,1<=6<=10,i=3,r=1,q=1}[ReservedThreadExecutor@7204d98f{s=0/1,p=1}][pc=0,pic=0,pec=24,epc=3744]@2020-12-29T17:43:06.124489Z tryProduce true
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.AbstractEndPoint] close(null) SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] updateable 0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] updates 0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.strategy.EatWhatYouKill] EatWhatYouKill@63ccb1b2/SelectorProducer@1165a952/IDLE/p=true/QueuedThreadPool[qtp1642619282]@61e86192{STARTED,1<=6<=10,i=3,r=1,q=1}[ReservedThreadExecutor@7204d98f{s=0/1,p=1}][pc=0,pic=0,pec=24,epc=3744]@2020-12-29T17:43:06.124474Z m=EXECUTE_PRODUCE_CONSUME t=CEP:SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,OSHUT,fill=FI,flush=-,to=0/30000}{io=1/0,kio=1,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}:runFillable:BLOCKING/BLOCKING
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ChannelEndPoint] doClose SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ChannelEndPoint] Key interests updated 1 -> 0 on SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] Selector sun.nio.ch.EPollSelectorImpl@aa7427f waiting with 2 keys
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] fillable FillInterest@21d544d7{SSLC.NBReadCB@271ff47b{SslConnection@271ff47b::SocketChannelEndPoint@71385c8f{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=FI,flush=-,to=0/30000}{io=0/0,kio=0,kro=1}->SslConnection@271ff47b{NOT_HANDSHAKING,eio=-1/-1,di=-1,fill=IDLE,flush=IDLE}~>DecryptedEndPoint@30fe3126{/10.42.0.1:36694<->/10.42.0.15:9999,CLOSED,fill=-,flush=-,to=4/30000}=>HttpConnection@106b47be[p=HttpParser{s=CLOSE,0 of -1},g=HttpGenerator@662996bf{s=START}]=>HttpChannelOverHttp@2d6a2ba{r=1,c=false,c=false/false,a=IDLE,uri=null,age=0}}}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.WriteFlusher] ignored: WriteFlusher@655f6d8{IDLE}->null
java.nio.channels.ClosedChannelException: null
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:492) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:353) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint.onClose(ChannelEndPoint.java:215) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.doClose(SslConnection.java:1197) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:220) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection.close(AbstractConnection.java:248) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:254) ~[jetty-server-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at java.lang.Thread.run(Thread.java:834) [?:?]
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] onClose FillInterest@21d544d7{null}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.ManagedSelector] Wakeup ManagedSelector@1b868ef0{STARTED} id=0 keys=1 selected=0 updates=0
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.util.thread.QueuedThreadPool] queue org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint@68bc5d59
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.WriteFlusher] ignored: WriteFlusher@43cde001{IDLE}->null
java.nio.channels.ClosedChannelException: null
at org.eclipse.jetty.io.WriteFlusher.onClose(WriteFlusher.java:492) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.onClose(AbstractEndPoint.java:353) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.doOnClose(AbstractEndPoint.java:225) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:192) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractEndPoint.close(AbstractEndPoint.java:175) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection.close(AbstractConnection.java:248) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:254) ~[jetty-server-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:427) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:321) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:159) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) ~[jetty-util-9.4.18.v20190429patch5.jar:9.4.18.v20190429patch5]
at java.lang.Thread.run(Thread.java:834) [?:?]
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.io.FillInterest] onClose FillInterest@6bc9a8a7{null}
2020-12-29 17:43:06,124 DEBUG [org.eclipse.jetty.server.HttpConnection]
Please shout if more details are required. Any assistance will be much appreciated. Thanks in advance.