Process Designer Unable to login to Process Center - business-process-management

IBM BPM 8.5.5 install on Linux
Process Designer installed on Windows 7
New to BPM, but completed the following:
1) Installed IBM BPM 8.5.5
2) Logged into Process Center and created a new user account.
3) Installed Process Designer on Windows 7
When Process Designer is started I enter the new user account created in Process Center. After a period of time the login attempt fails with the following details in the .log file.
!SESSION 2015-04-30 17:30:42.041 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.6 Windows 7 x86-32 20131230_180580 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR7_20131230_1725_B180580
JIT - r11.b05_20131003_47443.02
GC - R26_Java626_SR7_20131230_1725_B180580
J9CL - 20131230_180580
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -dir ltr
Command-line arguments: -os win32 -ws win32 -arch x86 -consoleLog -dir ltr -clean
!ENTRY teamworks.ae.product 1 0 2015-04-30 17:30:45.787
!MESSAGE [InteractiveSplashHandler] Starting Authoring Environment. Bundle: teamworks.ae.product Version: 8.5.5.0 BPMRepo Prefix: http://172.18.15.85:9080
!SESSION 2015-04-30 17:32:17.807 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=JRE 1.6.0 IBM J9 2.6 Windows 7 x86-32 20131230_180580 (JIT enabled, AOT enabled)
J9VM - R26_Java626_SR7_20131230_1725_B180580
JIT - r11.b05_20131003_47443.02
GC - R26_Java626_SR7_20131230_1725_B180580
J9CL - 20131230_180580
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -dir ltr
Command-line arguments: -os win32 -ws win32 -arch x86 -consoleLog -dir ltr -clean
!ENTRY teamworks.ae.product 1 0 2015-04-30 17:32:21.257
!MESSAGE [InteractiveSplashHandler] Starting Authoring Environment. Bundle: teamworks.ae.product Version: 8.5.5.0 BPMRepo Prefix: http://172.18.15.85:9080
!ENTRY teamworks.appserver.websphere 2 0 2015-04-30 17:32:35.183
!MESSAGE [com.ibm.ws.ssl.config.SSLConfig] CWPKI0041W: One or more key stores are using the default password.
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:32:35.204
!MESSAGE [com.ibm.ws.ssl.config.SSLConfigManager] CWPKI0027I: Disabling default hostname verification for HTTPS URL connections.
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:32:56.784
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:32:56.787
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:33:17.795
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:33:17.802
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:33:38.812
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:33:38.818
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 2 0 2015-04-30 17:33:59.821
!MESSAGE [com.ibm.bpm.ejbproxy.rest.EJBProxyRestHelper callEJB] Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:34:21.823
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:34:21.830
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:34:42.838
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:34:42.845
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:35:03.855
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:35:03.863
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 2 0 2015-04-30 17:35:24.867
!MESSAGE [com.ibm.bpm.ejbproxy.rest.EJBProxyRestHelper callEJB] Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:35:47.877
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:35:47.884
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:36:08.896
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:36:08.903
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:36:29.902
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:36:29.904
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 2 0 2015-04-30 17:36:50.908
!MESSAGE [com.ibm.bpm.ejbproxy.rest.EJBProxyRestHelper callEJB] Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:14.912
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:14.915
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:35.923
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:35.930
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:56.936
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:37:56.997
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY org.eclipse.ui.workbench 4 2 2015-04-30 17:38:04.640
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:582)
at teamworks.ae.product.splash.InteractiveSplashHandler.doEventLoop(InteractiveSplashHandler.java:329)
at teamworks.ae.product.splash.InteractiveSplashHandler.init(InteractiveSplashHandler.java:177)
at org.eclipse.ui.internal.Workbench$8.run(Workbench.java:781)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbench.java:797)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2456)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at teamworks.ae.product.TWApplication.start(TWApplication.java:64)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
!ENTRY org.eclipse.ui 4 0 2015-04-30 17:38:04.658
!MESSAGE Could not instantiate splash
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:582)
at teamworks.ae.product.splash.InteractiveSplashHandler.doEventLoop(InteractiveSplashHandler.java:329)
at teamworks.ae.product.splash.InteractiveSplashHandler.init(InteractiveSplashHandler.java:177)
at org.eclipse.ui.internal.Workbench$8.run(Workbench.java:781)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.createSplashWrapper(Workbench.java:797)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2456)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at teamworks.ae.product.TWApplication.start(TWApplication.java:64)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:04.877
!MESSAGE [org.springframework.context.support.AbstractApplicationContext prepareRefresh] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext#e02dc168: display name [org.springframework.context.support.ClassPathXmlApplicationContext#e02dc168]; startup date [Thu Apr 30 17:38:04 EDT 2015]; root of context hierarchy
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:04.916
!MESSAGE [org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions] Loading XML bean definitions from class path resource [registry.xml]
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:05.004
!MESSAGE [org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext#e02dc168]: org.springframework.beans.factory.support.DefaultListableBeanFactory#97ac3e97
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:05.060
!MESSAGE [org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#97ac3e97: defining beans [registry,twConfiguration,ejbDelegate.CommonServicesDelegate,ejbDelegate.ExportImportServiceDelegate,ejbDelegate.PersistenceServicesDelegate,ejbDelegate.PKGeneratorDelegate,ejbDelegate.HistoricalDataRetrievalServiceDelegate,ejbDelegate.AuthorizationAPIDelegate,ejbDelegate.BPDAPIDelegate,ejbDelegate.BPDInstanceAPIDelegate,ejbDelegate.BPDInstanceCommentAPIDelegate,ejbDelegate.BPDInstanceDocumentAPIDelegate,ejbDelegate.BPDDocumentAPIDelegate,ejbDelegate.RemoteDocumentAPIDelegate,ejbDelegate.ReportAPIDelegate,ejbDelegate.ScoreboardAPIDelegate,ejbDelegate.TaskAPIDelegate,ejbDelegate.BPDEngineServicesDelegate,ejbDelegate.ClientServicesDelegate,ejbDelegate.RepositoryServicesDelegate,ejbDelegate.EventMgrDelegate,ejbDelegate.ReflectionServicesDelegate,ejbDelegate.SecurityDelegate,ejbDelegate.TaskDelegate,ejbDelegate.TaskServicesDelegate,ejbDelegate.EventQueueManagerDelegate,ejbDelegate.RuntimeServicesDelegate,ejbDelegate.InstanceMigrationDelegate,ejbDelegate.RuntimeErrorAPIDelegate,ejbDelegate.ParticipantGroupsDelegate,ejbDelegate.AuthorizationServiceDelegate,ejbDelegate.BlueprintManagerDelegate,ejbDelegate.SecurityProviderDelegate,ejbDelegate.InternalGroupsDelegate,ejbDelegate.UserStatusServicesDelegate,ejbDelegate.IBMInterchangeImpExpServiceDelegate,ejbDelegate.PALServicesDelegate,eventAdapter,ejbDelegate.RepositoryLogDelegate,ejbDelegate.ProcessCenterActionsDelegate,ejbDelegate.OSLCServicesDelegate,ejbDelegate.LinkageServicesDelegate,eventAdapterForServer,referenceResolver,snapshotHelper,contextTreeElementsLookup,contextAndTypeTreeElementsLookup,versionSummaryIdLookup,contextDependenciesLookup,cache.versionedpo,cache.unversionedpo]; root of factory hierarchy
!ENTRY teamworks.appserver.websphere 2 0 2015-04-30 17:38:17.999
!MESSAGE [com.ibm.bpm.ejbproxy.rest.EJBProxyRestHelper callEJB] Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:43.004
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:38:43.007
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:39:04.014
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect
!ENTRY teamworks.appserver.websphere 1 0 2015-04-30 17:39:04.018
!MESSAGE [org.apache.commons.httpclient.HttpMethodDirector executeWithRetry] Retrying request

It looks like your Process Designer (PD) is not connecting properly to the Process Center. In the folder where your Process Designer is installed is a file "eclipse.ini" open that with a text editor and take a look at it. There should be an entry for the server you are connecting to. It looks something like -
-Dcom.ibm.bpm.processcenter.url=https://MyProcessServer:9443
You should confirm that entry is what you expect it to be. Check the server name and port. If it is wrong, correct it. Also make sure that you can ping that server name from the client, as sometimes the install is done against, say, the machine name, and not a FQDN.
If that is all correct there is a chance that a firewall is blocking other ports the client machine needs open to communicate with your Process Center.

Related

SonarQube Fetching analysis configuration settings shows the Operation has timed out

I am trying to integrate SonarQube with Jenkins Job and docker. For fetching the analysis configuration it shows Operation timed out while accessing the sonar server. Tried to curl the same url in job and it is giving success response. Please find below logs:
14:14:36 c:\workspace\testProject\sonartest>curl "https://sonar.xxx.com/api/server/version"
14:14:36 % Total % Received % Xferd Average Speed Time Time Time Current
14:14:36 Dload Upload Total Spent Left Speed
14:14:36
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 11 100 11 0 0 11 0 0:00:01 0:00:01 --:--:-- 11
14:14:37 7.9.1.27448
14:14:37 c:\workspace\testProject\sonartest>"c:\workspace\testProject\sonartest\sonar-scanner-msbuild\SonarScanner.MSBuild.exe" begin /k:"testprojectkey"
14:14:39 SonarScanner for MSBuild 4.10
14:14:39 Using the .NET Framework version of the Scanner for MSBuild
14:14:39 Pre-processing started.
14:14:39 Preparing working directories...
14:14:40 09:41:33.668 Updating build integration targets...
14:14:40 09:41:33.713 Fetching analysis configuration settings...
14:16:21 09:43:15.17 Failed to request and parse 'https://sonar.xxx.com/api/server/version': The operation has timed out
14:16:22
14:16:22 Unhandled Exception: System.Net.WebException: The operation has timed out
14:16:22 at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
14:16:22 at System.Net.WebClient.DownloadString(Uri address)
14:16:22 at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass15_0.<DownloadServerVersion>b__0()
14:16:22 at SonarScanner.MSBuild.PreProcessor.SonarWebService.DoLogExceptions[T](Func`1 op, String url, Action`1 onError)
14:16:22 at SonarScanner.MSBuild.PreProcessor.SonarWebService.DownloadServerVersion()
14:16:22 at SonarScanner.MSBuild.PreProcessor.SonarWebService.GetServerVersion()
14:16:22 at SonarScanner.MSBuild.PreProcessor.SonarWebService.GetProperties(String projectKey, String projectBranch)
14:16:22 at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ISonarQubeServer server, ProcessedArgs args, TeamBuildSettings settings, IDictionary`2& serverSettings, List`1& analyzersSettings)
14:16:22 at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs localSettings)
14:16:22 at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
14:16:22 at SonarScanner.MSBuild.BootstrapperClass.Execute()
14:16:22 at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger)
14:16:22 at SonarScanner.MSBuild.Program.Main(String[] args)14:17:11
14:17:11 c:\workspace\testProject\sonartest>exit 255

Configuration for Quarkus and Keycloak on Docker

I have the following setup:
Keycloak running in docker, public interface mapped to 127.0.0.1:8180, internal keycloak-n:8080
Quarkus running in docker, public interface mapped to 127.0.0.1:8080
Both run in the same docker network and can communicate
An external AutzClient (not in docker) that uses the token communicate with quarkus
Everything works if client and quarkus are outside of Docker and communicate with keycloak via the same interface. As soon as quarkus is in docker, I can't get it to work.
I've tried many changes so far. On keycloak I set the frontendUrl with /subsystem=keycloak-server/spi=hostname/provider=default:write-attribute(name=properties.frontendUrl="http://127.0.0.1:8180/auth"
My current quarkus config (oidc part) looks like:
# OIDC Configuration
quarkus.oidc.auth-server-url=http://keycloak-n:8080/auth/realms/quarkus
quarkus.oidc.client-id=backend-service
quarkus.oidc.credentials.secret=85174256-b231-4385-9fa9-257dd0d27bf0
quarkus.oidc.token.lifespan-grace=20
quarkus.oidc.introspection-path=.well-known/openid-configuration
quarkus.oidc.jwks-path=.well-known/jwks.json
quarkus.oidc.token.issuer=http://127.0.0.1:8180/auth/realms/quarkus
# Enable Policy Enforcement
quarkus.keycloak.policy-enforcer.enable=true
If I remove the token issuer, I get from vertx a issuer validation failed. With the current configuration the initial auth works, but than I get a Connection refused (Connection refused) from PolicyEnforcer, because it tries to communicate with 127.0.0.1. Stacktrace is:
2020-08-03 05:43:27,933 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Releasing connection [{}->http://keycloak-n:8080][null]
2020-08-03 05:43:27,933 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Pooling connection [{}->http://keycloak-n:8080][null]; keep alive indefinitely
2020-08-03 05:43:27,933 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Notifying no-one, there are no waiting threads
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.tsc.ThreadSafeClientConnManager] (executor-thread-1) Get connection: {}->http://127.0.0.1:8180, timeout = 0
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) [{}->http://127.0.0.1:8180] total kept alive: 1, total issued: 0, total allocated: 1 out of 20
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) No free connections [{}->http://127.0.0.1:8180][null]
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Available capacity: 20 out of 20 [{}->http://127.0.0.1:8180][null]
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Creating new connection [{}->http://127.0.0.1:8180]
2020-08-03 05:43:27,944 DEBUG [org.apa.htt.imp.con.DefaultClientConnectionOperator] (executor-thread-1) Connecting to 127.0.0.1:8180
2020-08-03 05:43:27,945 DEBUG [org.apa.htt.imp.con.DefaultClientConnection] (executor-thread-1) Connection org.apache.http.impl.conn.DefaultClientConnection#6ba49b73 closed
2020-08-03 05:43:27,946 DEBUG [org.apa.htt.imp.con.DefaultClientConnection] (executor-thread-1) Connection org.apache.http.impl.conn.DefaultClientConnection#6ba49b73 shut down
2020-08-03 05:43:27,946 DEBUG [org.apa.htt.imp.con.tsc.ThreadSafeClientConnManager] (executor-thread-1) Released connection is not reusable.
2020-08-03 05:43:27,946 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Releasing connection [{}->http://127.0.0.1:8180][null]
2020-08-03 05:43:27,946 DEBUG [org.apa.htt.imp.con.DefaultClientConnection] (executor-thread-1) Connection org.apache.http.impl.conn.DefaultClientConnection#6ba49b73 closed
2020-08-03 05:43:27,946 DEBUG [org.apa.htt.imp.con.tsc.ConnPoolByRoute] (executor-thread-1) Notifying no-one, there are no waiting threads
2020-08-03 05:43:27,947 ERROR [org.key.ada.aut.PolicyEnforcer] (executor-thread-1) Could not lazy load resource with path [/hello/find/1] from server: java.lang.RuntimeException: Could not find resource
at org.keycloak.authorization.client.util.Throwables.retryAndWrapExceptionIfNecessary(Throwables.java:91)
at org.keycloak.authorization.client.resource.ProtectedResource.find(ProtectedResource.java:232)
at org.keycloak.authorization.client.resource.ProtectedResource.findByMatchingUri(ProtectedResource.java:291)
at org.keycloak.adapters.authorization.PolicyEnforcer$PathConfigMatcher.matches(PolicyEnforcer.java:268)
at org.keycloak.adapters.authorization.AbstractPolicyEnforcer.getPathConfig(AbstractPolicyEnforcer.java:351)
at org.keycloak.adapters.authorization.AbstractPolicyEnforcer.authorize(AbstractPolicyEnforcer.java:72)
at io.quarkus.keycloak.pep.runtime.KeycloakPolicyEnforcerAuthorizer.apply(KeycloakPolicyEnforcerAuthorizer.java:45)
at io.quarkus.keycloak.pep.runtime.KeycloakPolicyEnforcerAuthorizer.apply(KeycloakPolicyEnforcerAuthorizer.java:29)
at io.quarkus.vertx.http.runtime.security.HttpAuthorizer$1$1$1.run(HttpAuthorizer.java:68)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at java.base/java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:479)
Caused by: java.lang.RuntimeException: Error executing http method [GET]. Response : null
at org.keycloak.authorization.client.util.HttpMethod.execute(HttpMethod.java:106)
at org.keycloak.authorization.client.util.HttpMethodResponse$3.execute(HttpMethodResponse.java:68)
at org.keycloak.authorization.client.resource.ProtectedResource$5.call(ProtectedResource.java:226)
at org.keycloak.authorization.client.resource.ProtectedResource$5.call(ProtectedResource.java:222)
at org.keycloak.authorization.client.resource.ProtectedResource.find(ProtectedResource.java:230)
... 15 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:609)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.keycloak.authorization.client.util.HttpMethod.execute(HttpMethod.java:84)
... 19 more
2020-08-03 05:43:27,951 DEBUG [org.key.ada.aut.AbstractPolicyEnforcer] (executor-thread-1) Checking permissions for path [http://127.0.0.1:8080/hello/find/1] with config [null].
2020-08-03 05:43:27,951 DEBUG [org.key.ada.aut.AbstractPolicyEnforcer] (executor-thread-1) Could not find a configuration for path [/hello/find/1]
Is there any real example on how to configure such a scenario? I already tried to set the frontendUrl to the internal address, that actually works for the runtime, but the web frontend is no longer accessible.
UPDATE:
From front end code (abbreviated):
java.io.InputStream stream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("META-INF/keycloak.json");
auth=AuthzClient.create(stream);
response = auth.obtainAccessToken(user, password);
final String accessToken = response.getToken();
...
requestContext.getHeaders().add(HttpHeaders.AUTHORIZATION, AUTH_HEADER_PREFIX + accessToken);
...
and config in keycloak.json is
{
"realm": "quarkus",
"auth-server-url": "http://localhost:8180/auth/",
"ssl-required": "external",
"resource": "backend-service",
"verify-token-audience": true,
"credentials": {
"secret": "85174256-b231-4385-9fa9-257dd0d27bf0"
},
"confidential-port": 0,
"policy-enforcer": {}
}
Many thanks
So the following setup works for me:
frontendUrl: external-docker-ip --> NOT localhost!
set in jboss cli by e.g.:
/subsystem=keycloak-server/spi=hostname/provider=default:write-attribute(name=properties.frontendUrl,value="http://172.20.48.1:8180/auth")
##quarkus config
quarkus.oidc.auth-server-url=http://internal_keycloak_docker_IP:8080/auth/realms/quarkus
quarkus.oidc.token.issuer=http://external-docker-ip:8180/auth/realms/quarkus
##client json file
"auth-server-url": "http://external-docker-ip:8180/auth/"

NativeScript running iOS fails on local server using HTTPS

I'm having issues with NativeScript running iOS (either simulated or physical) communicating with my local server (either running on linux or on the same test deployment running on my MacBook) due to SSL issues. From the searching I've already done this is due to the app transport security blocking the request as it's an untrusted SSL connection. I've modified the file app/App_Resources/iOS/Info.plist to add the lines
`<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>`
but it is still failing. The inner exception states
Error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.40” which could put your confidential information at risk.
These lines should resolve the issue as it allows for untrusted communication. It seems that they're getting ignored. Any ideas why this might be failing?
Here's the full stack trace...
`
(qrmobileapp) Created Activity ID: 0x96907, Description: Loading Preferences From System CFPrefsD
(CFNetwork) Faulting in NSHTTPCookieStorage singleton
(CFNetwork) Faulting in CFHTTPCookieStorage singleton
(CFNetwork) Creating default cookie storage with process/bundle identifier
(CFNetwork) TIC Enabling TLS [1:0x60400016a800]
(CFNetwork) TIC TCP Conn Start [1:0x60400016a800]
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> setting up Connection 1
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] start
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 1, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 2, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 11, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 12, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 14, Pending(0)
(qrmobileapp) Created Activity ID: 0x96908, Description: SecTrustEvaluateIfNecessary
(Security) [com.apple.securityd:SecError] Trust evaluate failure: [leaf AnchorTrusted SSLHostname]
(CFNetwork) TIC TLS Trust Result [1:0x60400016a800]: 2
(CFNetwork) TIC SSL Trust Error [1:0x60400016a800]: 3:0
(CFNetwork) TIC TCP Conn Cancel [1:0x60400016a800]
(CFNetwork) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> HTTP load failed (error code: -1202 [3:-9813])
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> finished with error - code: -1202
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] cancelled. Events:
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:start
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:satisfied
(libnetwork.dylib) [com.apple.network:] 0.010s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:start_connect
(libnetwork.dylib) [com.apple.network:] 0.014s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:finish_transport
(libnetwork.dylib) [com.apple.network:] 0.056s [1] path:cancel
(CFNetwork) TIC TCP Conn Destroyed [1:0x60400016a800]
(qrmobileapp) Created Activity ID: 0x96909, Description: SecTrustReportTLSAnalytics
(CFNetwork) TIC Enabling TLS [2:0x60c00016a380]
(CFNetwork) TIC TCP Conn Start [2:0x60c00016a380]
(CFNetwork) Task <A96EE6D0-30B8-4950-AC4C-DC1F9BD02E8F>.<2> setting up Connection 2
(libnetwork.dylib) [com.apple.network:] [2 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/getToken, tls] start
(qrmobileapp) Created Activity ID: 0x9690a, Description: send control actions
(CFNetwork) TIC TLS Event [2:0x60c00016a380]: 1, Pending(0)
CONSOLE ERROR file:///app/tns_modules/#angular/core/bundles/core.umd.js:1682:24: ERROR {
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 0,
"statusText": "Unknown Error",
"url": null,
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for (unknown url): 0 Unknown Error",
"error": {
"line": 1298,
"column": 38,
"sourceURL": "file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js",
"originalStack": "ZoneAwareError#file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:1298:38\nfile:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:87:37\nUIApplicationMain#[native code]\nstart#file:///app/tns_modules/tns-core-modules/application/application.js:272:26\nrun#file:///app/tns_modules/tns-core-modules/application/application.js:300:10\nbootstrapNativeScriptApp#file:///app/tns_modules/nativescript-angular/platform-common.js:160:26\nbootstrapApp#fil`

Cassandra connection idling and timing out

I'm trying to load and delete data from Cassandra using the python driver. I have tried this both using cassandra running in a docker container and again locally after the docker version was giving me problems. Here's an example of what I'm doing:
class Controller(object):
def __init__(self):
self.cluster = Cluster()
self.session = self.cluster.connect('mykeyspace')
def insert_into_cassandra(self):
query = ('INSERT INTO mytable (mykey, indexed_key) VALUES (?, ?)')
prepared = self.session.prepare(query)
prepared.consistency_level = ConsistencyLevel.QUORUM
params_gen = self.params_generator(fname)
execute_concurrent_with_args(self.session, prepared, self.parameter_generator(), concurrency=50)
def delete_param_gen(self, results):
for r in results:
yield [r.mykey]
def delete_by_index(self, value):
query = "SELECT mykey from mytable where indexed_key = '%s'" % value
res = self.session.execute(query)
delete_query = "DELETE from mytable where mykey = ?"
prepared = self.session.prepare(delete_query)
prepared.consistency_level = ConsistencyLevel.QUORUM
params_gen = self.delete_param_gen(res)
execute_concurrent_with_args(self.session, prepared, params_gen, concurrency=50)
Nothing crazy. When loading/deleting data, I frequently see the following messages:
Sending options message heartbeat on idle connection (4422117360) 127.0.0.1
Heartbeat failed for connection (4422117360) to 127.0.0.1
Here are some logs from deleting data.
[2017-02-28 08:37:20,562] [DEBUG] [cassandra.connection] Defuncting connection (4422117360) to 127.0.0.1: errors=Connection heartbeat timeout after 30 seconds, last_host=127.0.0.1
[2017-02-28 08:37:20,563] [DEBUG] [cassandra.io.libevreactor] Closing connection (4422117360) to 127.0.0.1
[2017-02-28 08:37:20,563] [DEBUG] [cassandra.io.libevreactor] Closed socket to 127.0.0.1
[2017-02-28 08:37:20,564] [DEBUG] [cassandra.pool] Defunct or closed connection (4422117360) returned to pool, potentially marking host 127.0.0.1 as down
[2017-02-28 08:37:20,566] [DEBUG] [cassandra.pool] Replacing connection (4422117360) to 127.0.0.1
[2017-02-28 08:37:20,567] [DEBUG] [cassandra.connection] Defuncting connection (4426057600) to 127.0.0.1: errors=Connection heartbeat timeout after 30 seconds, last_host=127.0.0.1
[2017-02-28 08:37:20,567] [DEBUG] [cassandra.io.libevreactor] Closing connection (4426057600) to 127.0.0.1
[2017-02-28 08:37:20,567] [DEBUG] [cassandra.io.libevreacto[2017-02-28 08:37:20,568] [ERROR] [cassandra.cluster] Unexpected exception while handling result in ResponseFuture:
Traceback (most recent call last):
File "cassandra/cluster.py", line 3536, in cassandra.cluster.ResponseFuture._set_result (cassandra/cluster.c:67556)
File "cassandra/cluster.py", line 3711, in cassandra.cluster.ResponseFuture._set_final_result (cassandra/cluster.c:71769)
File "cassandra/concurrent.py", line 154, in cassandra.concurrent._ConcurrentExecutor._on_success (cassandra/concurrent.c:3357)
File "cassandra/concurrent.py", line 203, in cassandra.concurrent.ConcurrentExecutorListResults._put_result (cassandra/concurrent.c:5539)
File "cassandra/concurrent.py", line 209, in cassandra.concurrent.ConcurrentExecutorListResults._put_result (cassandra/concurrent.c:5427)
File "cassandra/concurrent.py", line 123, in cassandra.concurrent._ConcurrentExecutor._execute_next (cassandra/concurrent.c:2369)
File "load_cassandra.py", line 148, in delete_param_gen
for r in rows:
File "cassandra/cluster.py", line 3991, in cassandra.cluster.ResultSet.next (cassandra/cluster.c:76025)
File "cassandra/cluster.py", line 4006, in cassandra.cluster.ResultSet.fetch_next_page (cassandra/cluster.c:76193)
File "cassandra/cluster.py", line 3781, in cassandra.cluster.ResponseFuture.result (cassandra/cluster.c:73073)
cassandra.cluster.NoHostAvailable: ('Unable to complete the operation against any hosts', {})r] Closed socket to 127.0.0.1
And here are some from inserting data:
[2017-02-28 16:50:25,594] [DEBUG] [cassandra.connection] Sending options message heartbeat on idle connection (140301574604448) 127.0.0.1
[2017-02-28 16:50:25,595] [DEBUG] [cassandra.cluster] [control connection] Attempting to reconnect
[2017-02-28 16:50:25,596] [DEBUG] [cassandra.cluster] [control connection] Opening new connection to 127.0.0.1
[2017-02-28 16:50:25,596] [DEBUG] [cassandra.connection] Not sending options message for new connection(140301347717016) to 127.0.0.1 because compression is disabled and a cql version was not specified
[2017-02-28 16:50:25,596] [DEBUG] [cassandra.connection] Sending StartupMessage on <AsyncoreConnection(140301347717016) 127.0.0.1:9042>
[2017-02-28 16:50:25,596] [DEBUG] [cassandra.connection] Sent StartupMessage on <AsyncoreConnection(140301347717016) 127.0.0.1:9042>
[2017-02-28 16:50:30,596] [DEBUG] [cassandra.io.asyncorereactor] Closing connection (140301347717016) to 127.0.0.1
[2017-02-28 16:50:30,596] [DEBUG] [cassandra.io.asyncorereactor] Closed socket to 127.0.0.1
[2017-02-28 16:50:30,596] [DEBUG] [cassandra.connection] Connection to 127.0.0.1 was closed during the startup handshake
[2017-02-28 16:50:30,597] [WARNING] [cassandra.cluster] [control connection] Error connecting to 127.0.0.1:
Traceback (most recent call last):
File "cassandra/cluster.py", line 2623, in cassandra.cluster.ControlConnection._reconnect_internal (cassandra/cluster.c:47899)
File "cassandra/cluster.py", line 2645, in cassandra.cluster.ControlConnection._try_connect (cassandra/cluster.c:48416)
File "cassandra/cluster.py", line 1119, in cassandra.cluster.Cluster.connection_factory (cassandra/cluster.c:15085)
File "cassandra/connection.py", line 333, in cassandra.connection.Connection.factory (cassandra/connection.c:5790)
cassandra.OperationTimedOut: errors=Timed out creating connection (5 seconds), last_host=None
[2017-02-28 16:50:39,309] [ERROR] [root] Exception inserting data into cassandra
Traceback (most recent call last):
File "load_cassandra.py", line 54, in run
controller.insert_into_cassandra(filename)
File "extract_to_cassandra.py", line 141, in insert_into_cassandra
for success, result in results:
File "cassandra/concurrent.py", line 177, in _results (cassandra/concurrent.c:4856)
File "cassandra/concurrent.py", line 186, in cassandra.concurrent.ConcurrentExecutorGenResults._results (cassandra/concurrent.c:4622)
File "cassandra/concurrent.py", line 165, in cassandra.concurrent._ConcurrentExecutor._raise (cassandra/concurrent.c:3745)
cassandra.WriteTimeout: Error from server: code=1100 [Coordinator node timed out waiting for replica nodes' responses] message="Operation timed out - received only 0 responses." info={'consistency': 'QUORUM', 'required_responses': 1, 'received_responses': 0}
[2017-02-28 16:50:39,465] [DEBUG] [cassandra.connection] Received options response on connection (140301574604448) from 127.0.0.1
[2017-02-28 16:50:39,466] [DEBUG] [cassandra.cluster] Shutting down Cluster Scheduler
[2017-02-28 16:50:39,467] [DEBUG] [cassandra.cluster] Shutting down control connection
[2017-02-28 16:50:39,467] [DEBUG] [cassandra.io.asyncorereactor] Closing connection (140301574604448) to 127.0.0.1
[2017-02-28 16:50:39,467] [DEBUG] [cassandra.io.asyncorereactor] Closed socket to 127.0.0.1
[2017-02-28 16:50:39,468] [DEBUG] [cassandra.pool] Defunct or closed connection (140301574604448) returned to pool, potentially marking host 127.0.0.1 as down
I tweaked with consistency and even set it to 1, but that didn't work. Inserts tend to work better when running cassandra locally as opposed to docker, but they still timeout. Deletes usually work for a couple of seconds and then hang/timeout.
edit: Here's are the logs from cassandra when things fail:
INFO 18:39:11 MUTATION messages were dropped in last 5000 ms: 4 for internal timeout and 0 for cross node timeout. Mean internal dropped latency: 2933809 ms and Mean cross-node dropped latency: 0 msINFO 18:39:11 Pool Name Active Pending Completed Blocked All Time Blocked [48/1513]
INFO 18:39:11 MutationStage 32 15 470 0 0
INFO 18:39:11 ViewMutationStage 0 0 0 0 0
INFO 18:39:11 ReadStage 0 0 59 0 0
INFO 18:39:11 RequestResponseStage 0 0 0 0 0
INFO 18:39:11 ReadRepairStage 0 0 0 0 0
INFO 18:39:11 CounterMutationStage 0 0 0 0 0
INFO 18:39:11 MiscStage 0 0 0 0 0
INFO 18:39:11 CompactionExecutor 0 0 6399 0 0
INFO 18:39:11 MemtableReclaimMemory 0 0 36 0 0
INFO 18:39:11 PendingRangeCalculator 0 0 1 0 0
INFO 18:39:11 GossipStage 0 0 0 0 0
INFO 18:39:11 SecondaryIndexManagement 0 0 0 0 0
INFO 18:39:11 HintsDispatcher 0 0 0 0 0
INFO 18:39:11 MigrationStage 0 0 2 0 0
INFO 18:39:11 MemtablePostFlush 0 0 62 0 0
INFO 18:39:11 PerDiskMemtableFlushWriter_0 0 0 36 0 0
INFO 18:39:11 ValidationExecutor 0 0 0 0 0
INFO 18:39:11 Sampler 0 0 0 0 0
INFO 18:39:11 MemtableFlushWriter 0 0 36 0 0
INFO 18:39:11 InternalResponseStage 0 0 0 0 0
INFO 18:39:11 AntiEntropyStage 0 0 0 0 0
INFO 18:39:11 CacheCleanupExecutor 0 0 0 0 0
INFO 18:39:11 Native-Transport-Requests 33 0 727 0 0
INFO 18:39:11 CompactionManager 0 0INFO 18:39:11 MessagingService n/a 0/0
INFO 18:39:11 Cache Type Size Capacity KeysToSave
INFO 18:39:11 KeyCache 1368 51380224 all
INFO 18:39:11 RowCache 0 0 all
INFO 18:39:11 Table Memtable ops,data
INFO 18:39:11 system_distributed.parent_repair_history 0,0
INFO 18:39:11 system_distributed.repair_history 0,0
INFO 18:39:11 system_distributed.view_build_status 0,0
INFO 18:39:11 system.compaction_history 1,231
INFO 18:39:11 system.hints 0,0
INFO 18:39:11 system.schema_aggregates 0,0
INFO 18:39:11 system.IndexInfo 0,0
INFO 18:39:11 system.schema_columnfamilies 0,0
INFO 18:39:11 system.schema_triggers 0,0
INFO 18:39:11 system.size_estimates 40,1255
INFO 18:39:11 system.schema_functions 0,0
INFO 18:39:11 system.paxos 0,0
INFO 18:39:11 system.views_builds_in_progress 0,0
INFO 18:39:11 system.built_views 0,0
INFO 18:39:11 system.peer_events 0,0
INFO 18:39:11 system.range_xfers 0,0
INFO 18:39:11 system.peers 0,0
INFO 18:39:11 system.batches 0,0
INFO 18:39:11 system.schema_keyspaces 0,0
INFO 18:39:11 system.schema_usertypes 0,0
INFO 18:39:11 system.local 0,0
INFO 18:39:11 system.sstable_activity 6,117
INFO 18:39:11 system.available_ranges 0,0
INFO 18:39:11 system.batchlog 0,0
INFO 18:39:11 system.schema_columns 0,0
INFO 18:39:11 system_schema.columns 0,0
INFO 18:39:11 system_schema.types 0,0
INFO 18:39:11 system_schema.indexes 0,0
INFO 18:39:11 system_schema.keyspaces 0,0
INFO 18:39:11 system_schema.dropped_columns 0,0
INFO 18:39:11 system_schema.aggregates 0,0
INFO 18:39:11 system_schema.triggers 0,0
INFO 18:39:11 system_schema.tables 0,0
INFO 18:39:11 system_schema.views 0,0
INFO 18:39:11 system_schema.functions 0,0
INFO 18:39:11 system_auth.roles 0,0
INFO 18:39:11 system_auth.role_members 0,0
INFO 18:39:11 system_auth.resource_role_permissons_index 0,0
INFO 18:39:11 system_auth.role_permissions 0,0
INFO 18:39:11 mykeyspace.mytable 430,27163514
INFO 18:39:11 system_traces.sessions 0,0
INFO 18:39:11 system_traces.events 0,0
INFO 18:39:13 ParNew GC in 261ms. CMS Old Gen: 46106544 -> 74868512; Par Eden Space: 208895224 -> 0; Par Survivor Space: 16012448 -> 26083328
I see messages like this too:
Out of 29 commit log syncs over the past 248s with average duration of 1596.14ms, 1 have exceeded the configured commit interval by an average of 18231.00ms
One thing you could try, is to reduce the idle_heartbeat_interval setting in your connection. By default it is 30 seconds, but you can configure that when instancing your Cluster class. In this example, I'll set it to 10 seconds:
def __init__(self):
self.cluster = Cluster(idle_heartbeat_interval=10)
self.session = self.cluster.connect('mykeyspace')
If that doesn't help, then it might be time to check your data model for anti-patterns.

Error installing Crashlytics curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect

Installing Crashlytics (3.7.3)
[!] Error installing Crashlytics
[!] /usr/bin/curl -f -L -o /var/folders/2n/hv7xjs3x1mz8988vz8nl3mc40000gn/T/d20160817-1341-a6uhwh/file.zip https://kit-downloads.fabric.io/cocoapods/crashlytics/3.7.3/crashlytics.zip --create-dirs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
The previous thread posted 10 days back has been closed by some other user.
Error installing Crashlytics - SSL peer handshake failed
The reply is that it is working fine with other mac osX user. What to do for the current user.

Resources