fromIndex < 0: -1 - keycloak

I'm getting this wired error message from keycloak.
I'm running two keycloak instances on the same host, one is fine and the second one is getting me this :
Caused by: java.lang.IndexOutOfBoundsException: fromIndex < 0: -1
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at java.util.BitSet.nextClearBit(BitSet.java:744)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.InitializerState.getNextUnfinishedSegmentFromIndex(InitializerState.java:102)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.InitializerState.updateLowestUnfinishedSegment(InitializerState.java:98)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.InitializerState.markSegmentFinished(InitializerState.java:94)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.InfinispanCacheInitializer.startLoadingImpl(InfinispanCacheInitializer.java:187)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.InfinispanCacheInitializer.startLoading(InfinispanCacheInitializer.java:108)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.initializer.CacheInitializer.loadSessions(CacheInitializer.java:41)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory$7.run(InfinispanUserSessionProviderFactory.java:317)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:227)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory.loadSessionsFromRemoteCache(InfinispanUserSessionProviderFactory.java:306)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory.loadSessionsFromRemoteCaches(InfinispanUserSessionProviderFactory.java:298)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory.access$500(InfinispanUserSessionProviderFactory.java:68)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory$1.lambda$onEvent$0(InfinispanUserSessionProviderFactory.java:127)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:227)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.utils.KeycloakModelUtils.runJobInTransactionWithTimeout(KeycloakModelUtils.java:267)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.models.sessions.infinispan.InfinispanUserSessionProviderFactory$1.onEvent(InfinispanUserSessionProviderFactory.java:121)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.services.DefaultKeycloakSessionFactory.publish(DefaultKeycloakSessionFactory.java:69)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:170)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:152)
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one] ... 31 more
Aug 14 17:23:58 keycloak.srv2 sh[2512]: [Server:server-one]
I've already lost a bunch of hours trying things around but can't figure out what's wrong
Any piece of advice would be more than welcome

Related

jhipster kubernetes command fails at the beginning with "No monolith found in ..."

I just ran through the JHipster demo "Learn JHipster In 15 Minutes" and I'm now trying to deploy the result into kubernetes using these instructions. It's failing on the 2nd question.
$ jhipster kubernetes
INFO! Using JHipster version installed globally
⎈ Welcome to the JHipster Kubernetes Generator ⎈
Files will be generated in folder: /Users/johnaron/git/JHipDemo/k8s
✔ Docker is installed
? Which *type* of application would you like to deploy? Monolithic application
? Enter the root directory where your applications are located (../) ../
>> No monolith found in /Users/johnaron/git/JHipDemo/
This is the listing of the parent directory
$ ll ..
total 4384
drwxr-xr-x 40 johnaron staff 1280 Jun 22 16:08 .
drwxr-xr-x# 99 johnaron staff 3168 Jun 22 16:13 ..
-rw-r--r-- 1 johnaron staff 853 Jun 15 18:26 .browserslistrc
-rw-r--r-- 1 johnaron staff 478 Jun 15 18:26 .editorconfig
-rw-r--r-- 1 johnaron staff 92 Jun 15 18:27 .eslintignore
-rw-r--r-- 1 johnaron staff 3041 Jun 15 18:26 .eslintrc.json
drwxr-xr-x 12 johnaron staff 384 Jun 22 16:13 .git
-rw-r--r-- 1 johnaron staff 3413 Jun 15 18:26 .gitattributes
-rw-r--r-- 1 johnaron staff 2075 Jun 15 18:26 .gitignore
drwxr-xr-x 7 johnaron staff 224 Jun 15 18:41 .gradle
-rw-r--r-- 1 johnaron staff 53 Jun 15 18:26 .huskyrc
drwxr-xr-x 5 johnaron staff 160 Jun 15 18:31 .jhipster
-rw-r--r-- 1 johnaron staff 113 Jun 15 18:26 .lintstagedrc.js
-rw-r--r-- 1 johnaron staff 69 Jun 15 18:26 .prettierignore
-rw-r--r-- 1 johnaron staff 251 Jun 15 18:26 .prettierrc
-rw-r--r-- 1 johnaron staff 143 Jun 15 18:26 .yo-rc-global.json
-rw-r--r-- 1 johnaron staff 1468 Jun 22 16:12 .yo-rc.json
-rw-r--r-- 1 johnaron staff 7404 Jun 15 18:26 README.md
-rw-r--r-- 1 johnaron staff 3210 Jun 15 18:26 angular.json
-rw-r--r--# 1 johnaron staff 418 Jun 15 18:29 blog.jdl
drwxr-xr-x 8 johnaron staff 256 Jun 15 18:44 build
-rw-r--r-- 1 johnaron staff 10204 Jun 15 18:26 build.gradle
-rw-r--r-- 1 johnaron staff 793 Jun 15 18:26 checkstyle.xml
drwxr-xr-x 9 johnaron staff 288 Jun 15 18:26 gradle
-rw-r--r-- 1 johnaron staff 2424 Jun 15 18:26 gradle.properties
-rwxr-xr-x 1 johnaron staff 5960 Jun 15 18:26 gradlew
-rw-r--r-- 1 johnaron staff 2842 Jun 15 18:26 gradlew.bat
-rw-r--r-- 1 johnaron staff 1448 Jun 15 18:26 jest.conf.js
drwxr-xr-x 2 johnaron staff 64 Jun 22 16:08 k8s
-rw-r--r-- 1 johnaron staff 530 Jun 15 18:26 ngsw-config.json
drwxr-xr-x 1228 johnaron staff 39296 Jun 15 18:33 node_modules
-rw-r--r-- 1 johnaron staff 2108706 Jun 15 18:33 package-lock.json
-rw-r--r-- 1 johnaron staff 6672 Jun 15 18:33 package.json
-rw-r--r-- 1 johnaron staff 694 Jun 15 18:26 settings.gradle
-rw-r--r-- 1 johnaron staff 1538 Jun 15 18:26 sonar-project.properties
drwxr-xr-x 4 johnaron staff 128 Jun 15 18:26 src
-rw-r--r-- 1 johnaron staff 151 Jun 15 18:26 tsconfig.app.json
-rw-r--r-- 1 johnaron staff 729 Jun 15 18:26 tsconfig.json
-rw-r--r-- 1 johnaron staff 285 Jun 15 18:26 tsconfig.spec.json
drwxr-xr-x 5 johnaron staff 160 Jun 15 18:26 webpack
What is jhipster looking for?
John
Now I tried moving the k8s dir to the same level as the JHipDemo, but it was no help.
johnaron#JOHNARON-M-841U:k8s$ jhipster kubernetes
INFO! Using JHipster version installed globally
⎈ Welcome to the JHipster Kubernetes Generator ⎈
Files will be generated in folder: /Users/johnaron/git/k8s
✔ Docker is installed
? Which *type* of application would you like to deploy? Monolithic application
? Enter the root directory where your applications are located (../) ../JHipDemo
>> No monolith found in /Users/johnaron/git/JHipDemo
I believe you need to create it at the same level as your monolith. For example:
JHipDemo
k8s
Can you try this?

Streamsets Service does not start any more

I just upgraded my MapR Cluster and I am trying to start Streamsets. However I get the following Error:
Exception in thread "main" java.lang.ExceptionInInitializerError: Expected exactly 1 stage lib jar but found 0 with name streamsets-datacollector-mapr_6_0-mep4-lib Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.bringStageAndProtoLibsToFront(SDCClassLoader.java:186) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getOrderedURLsForClassLoader(SDCClassLoader.java:404) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.(SDCClassLoader.java:119) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getStageClassLoader(SDCClassLoader.java:389) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.SDCClassLoader.getStageClassLoader(SDCClassLoader.java:383) Jun 12 09:48:56 BGDTEST5 streamsets[24543]: at com.streamsets.pipeline.BootstrapMain.main(BootstrapMain.java:291) Jun 12 09:48:56 BGDTEST5 systemd[1]: sdc.service: main process exited, code=exited, status=1/FAILURE Jun 12 09:48:56 BGDTEST5 systemd[1]: Unit sdc.service entered failed state. Jun 12 09:48:56 BGDTEST5 systemd[1]: sdc.service failed.
I can see the stage-lib in question in the streamsets-libs directory. This used to work seamlessly before. What am I doing wrong?

SMTP transport mails are not received

I have deployed a symfony app to the production server, which has a feature that sends emails. I have tested sending mails and they work in Dev/Test.
Here is the log from the production server:
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/smtpd[13547]: connect from localhost[127.0.0.1]
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/smtpd[13547]: 8421142F63: client=localhost[127.0.0.1]
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/smtpd[13547]: disconnect from localhost[127.0.0.1] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/pickup[13516]: 8CCA642F64: uid=33 from=<no-reply#mydomain.com>
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/cleanup[13549]: 8CCA642F64: message-id=<d1cf79ba9e3b445cc2961af059627f13#mydomain.com>
Dec 28 12:04:01 lamp-512mb-fra1-01 postfix/qmgr[13517]: 8CCA642F64: from=<no-reply#mydomain.com>, size=714, nrcpt=1 (queue active)
Dec 28 12:04:02 lamp-512mb-fra1-01 postfix/smtp[13551]: 8CCA642F64: to=<rolland.b#live.com>, relay=mx4.hotmail.com[104.44.194.233]:25, delay=1.2, delays=0.06/0.04/0.45/0.63, dsn=2.0.0, status=sent (250 <d1cf79ba9e3b445cc2961af059627f13#mydomain.com> Queued mail for delivery)
Dec 28 12:04:02 lamp-512mb-fra1-01 postfix/qmgr[13517]: 8CCA642F64: removed
Any help will be appreciated.

xamps vs xibo - Appache stop working

I am using xibo open source on localhost server, recently I got error "Appache stop working"
I checked the error logs:
[Wed Sep 21 08:34:20.257000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00428: Parent: child process 3964 exited with status 255 -- Restarting.
[Wed Sep 21 08:34:20.915000 2016] [ssl:warn] [pid 5204:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:20.987000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Wed Sep 21 08:34:20.987000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Wed Sep 21 08:34:20.987000 2016] [core:notice] [pid 5204:tid 232] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Sep 21 08:34:20.989000 2016] [mpm_winnt:notice] [pid 5204:tid 232] AH00418: Parent: Created child process 2700
[Wed Sep 21 08:34:24.188000 2016] [ssl:warn] [pid 684:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:24.293000 2016] [core:warn] [pid 684:tid 232] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Sep 21 08:34:24.530000 2016] [ssl:warn] [pid 684:tid 232] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:24.605000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Wed Sep 21 08:34:24.605000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Wed Sep 21 08:34:24.605000 2016] [core:notice] [pid 684:tid 232] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Sep 21 08:34:24.608000 2016] [mpm_winnt:notice] [pid 684:tid 232] AH00418: Parent: Created child process 5364
[Wed Sep 21 08:34:25.607000 2016] [ssl:warn] [pid 5364:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:25.944000 2016] [ssl:warn] [pid 5364:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Wed Sep 21 08:34:26.015000 2016] [mpm_winnt:notice] [pid 5364:tid 248] AH00354: Child: Starting 150 worker threads.
httpd.conf
http://pastebin.com/1QbmV4xV
httpd-ssl.conf
http://pastebin.com/X5vStUZu
Can you please help me how to fix this issue?

why g-wan loops on loading handler scripts and csp script each day at midnight?

I have a strange behavior on my g-wan server: each day at midnight g-wan loops on loading scripts. This is what I see in gwan.log:
[Tue Apr 09 00:00:00 2013 GMT] memory footprint: 1.47 MiB.
[Tue Apr 09 00:00:00 2013 GMT] Host /var/www/gwan/0.0.0.0_8082/#0.0.0.0
[Tue Apr 09 00:00:00 2013 GMT] log files enabled
[Tue Apr 09 00:00:00 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:00:00 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:00:00 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:f624bc05-f51507c3-61b20c9c-ecfe9e19
[Tue Apr 09 00:00:00 2013 GMT] Host /var/www/gwan/0.0.0.0_8083/#0.0.0.0
[Tue Apr 09 00:00:00 2013 GMT] log files enabled
[Tue Apr 09 00:00:00 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:00:00 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:00:00 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:525aa623-2728dd50-0e67a6ad-6763a30b
[Tue Apr 09 00:00:00 2013 GMT] memory footprint: 5.45 MiB.
[Tue Apr 09 00:00:01 2013 GMT] memory footprint: 1.47 MiB.
[Tue Apr 09 00:00:01 2013 GMT] Host /var/www/gwan/0.0.0.0_8082/#0.0.0.0
[Tue Apr 09 00:00:01 2013 GMT] log files enabled
[Tue Apr 09 00:00:01 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:00:01 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:00:01 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:f624bc05-f51507c3-61b20c9c-ecfe9e19
[Tue Apr 09 00:00:01 2013 GMT] Host /var/www/gwan/0.0.0.0_8083/#0.0.0.0
[Tue Apr 09 00:00:01 2013 GMT] log files enabled
[Tue Apr 09 00:00:01 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:00:01 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:00:01 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:525aa623-2728dd50-0e67a6ad-6763a30b
....
....
[Tue Apr 09 00:02:01 2013 GMT] memory footprint: 3.22 MiB.
[Tue Apr 09 00:02:01 2013 GMT] Host /var/www/gwan/0.0.0.0_8082/#0.0.0.0
[Tue Apr 09 00:02:01 2013 GMT] log files enabled
[Tue Apr 09 00:02:01 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:02:01 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:02:01 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:f624bc05-f51507c3-61b20c9c-ecfe9e19
[Tue Apr 09 00:02:01 2013 GMT] Host /var/www/gwan/0.0.0.0_8083/#0.0.0.0
[Tue Apr 09 00:02:01 2013 GMT] log files enabled
[Tue Apr 09 00:02:01 2013 GMT] loaded main.c 39.13 KiB MD5:15795d7c-42184ef2-c8075784-a3aa84aa
[Tue Apr 09 00:02:01 2013 GMT] loaded process_kv.c 44.44 KiB MD5:349b8978-bbebb4eb-120c6f1a-7d06f98e
[Tue Apr 09 00:02:01 2013 GMT] loaded Connection Handler main.c 18.71 KiB MD5:525aa623-2728dd50-0e67a6ad-6763a30b
[Tue Apr 09 00:02:01 2013 GMT] memory footprint: 7.13 MiB.
[Tue Apr 09 00:02:11 2013 GMT] ------------------------------------------------
[Tue Apr 09 00:02:11 2013 GMT] G-WAN 4.3.14 64-bit (Mar 14 2013 07:33:12)
[Tue Apr 09 00:02:11 2013 GMT] ------------------------------------------------
[Tue Apr 09 00:02:11 2013 GMT] Local Time: Tue, 09 Apr 2013 02:02:11 GMT+2
....
So during 2 minutes g-wan loops and after g-wan is started normally by monit I believe.
Do you have an explanation and a workaround?
I recently change my web hosting provider and from now I use a VM under Microsoft Hyper-V.
The problem remains: G-Wan is restarted by Monit which logged the following events:
Wed, 16 Oct 2013 02:02:12: process PID changed from 2171 to 20631
Wed, 16 Oct 2013 02:02:13: process PPID changed from 1 to 2171
Wed, 16 Oct 2013 02:02:43: process PID changed from 20631 to 20975
Wed, 16 Oct 2013 02:03:13: process PID changed from 20975 to 21318
Wed, 16 Oct 2013 02:03:44: process PID changed from 21318 to 21573
Wed, 16 Oct 2013 02:04:14: process PID changed from 21573 to 2171
Wed, 16 Oct 2013 02:04:14: process PPID changed from 2171 to 1
Wed, 16 Oct 2013 02:33:06: process is not running
Wed, 16 Oct 2013 02:33:37: process is running with pid 776
It happens every day even on my new VM with another hypervisor.
I am not the only one with this behavior.
Do you have an explanation and a workaround?
Thank you
Jerome
The loop means that the child process is not responding, hence the parent killing the old child and restarting a new child.
Could you email us the whole log files (trace and gwan.log)? Your partial post is missing the the informative parts.
UPDATE
That new problem for 4-years old code that worked fine so far is a platform issue, for which we have found a workaround, to be published with the next release in a few weeks.