Cannot open terracotta 4.3.6 management console which is running on localhost:9540 - caching

Terracotta server array is successfully running but the management console that comes with the Terracotta Server Open Source Software (OSS) kit is not working. when the terracotta server array is started ,it says "2019-01-05 11:58:16,739 INFO - Management server started on 0.0.0.0:9540" but I get a not found error when I try to hit the url. Can anybody suggest how to view the caches stored inside terracotta or how can I access the management console?
According to "http://ww1.terracotta.org/documentation/4.1/tms/tms#enable-agent", management-console/bin/start-tmc.sh can be used to start the terracotta management console. But in the kit "TERRACOTTA SERVER 4.X AND OLDER" downloaded from "http://www.terracotta.org/open-source/" doesnt contain an file as start-tmc.sh

the way it works is that the Terracotta Server exposes REST endpoints via the built-in management server that's running on 0.0.0.0:9540 (hence why you see 2019-01-05 11:58:16,739 INFO - Management server started on 0.0.0.0:9540).
And then, you have the TMC (Terracotta Management Console) component that delivers the UI portion, and reaches back to the Terracotta management server to fetch the stats / data etc...
Now, the open-source version does not offer the Management Console...so that's why you don't see the "start-tmc.sh" in the kit.
But you should be able to access the REST endpoints from the built-in Terracotta Management Server anyway...
It should be accessible at: http://host:port/tc-management-api
And from there, you should be able to fetch all sort of data items using various REST calls (eg. /agents/topologies/ for the server topology, etc...)
Here is the latest doc for the Terracotta REST if you want to explore further:
https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fto-title_terracotta_rest_developer_guide.html%23
Finally, as explained in the doc (at https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fco-use_rest_api_versions.html%23), there are 2 API versions available...with the "v2" version being available and recommended for Terracotta 4.2 and higher (hence you should use the v2 with 4.3.6)
Lost of example REST calls at https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fco-oper_examples_of_uris.html%23... but couple here as well:
curl http://localhost:9540/tc-management-api/v2/agents/info
curl http://localhost:9540/tc-management-api/v2/agents/topologies/
curl http://localhost:9540/tc-management-api/v2/agents/cacheManagers/
Hope that helps.

Related

Firely server - how to add US CORE 3.1.0 support

I have a set of FHIR transaction bundle files generated by the synthea tool, which are accepted by, for example, Intersystems IRIS Health server which has built-in hl7.fhir.us.core/3.1.0 support.
If I post such a bundle to a freshly installed Firely, it produces errors of type "Unable to resolve reference to profile 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex'". How could I enable hl7.fhir.us.core/3.1.0 on Firely server?
The public endpoint of Firely Server loads us-core by default. To enable us-core on your local version, you should adjust your settings. See https://docs.fire.ly/projects/Firely-Server/en/latest/features/conformanceresources.html

Where to download Terracotta

I am completely new to Terracotta and trying to understand it by following an example given in this post - Integrating Terracotta EHCache for Hibernate with Spring PetClinic
I was able to download and make the Sprin's petclinic application up and running but I am stuck on what software to download for terracotta as given in Step 4:
Step 4 - Install Terracotta
Download Terracotta from the http://www.terracotta.org/download. Unzip
and install into $TC_HOME
I went to terracotta site and got confused on what software I need to download for working on the example that I am following.
I followed the SO post for Is Terracota Cluster still opensource? and registered myself with terracotta and then again I see multiple softwares available for download in Terracotta site
Please help me on what is the software I need to download for this example.
Once you are on the Terracotta Open Source download page, what you want is the link inside section Terracotta Server Array which points to the terracotta-{version}.tar.gz archive.
Note that registration is not mandatory and can be skipped - see X icon on top right of the registration form.

How to set up OpenI plugin for Mondrian

I want to replace jPivot with OpenI in Mondrian OLAP Server. I have deployed Mondrian which comes with jPivot as default sample distribution in Glassfish server and it was successful. Now I need to replace this with OpenI Which is having nice UI and features (I think this framework is built upon jPivot).
To avoid too many comments in the question, I create an answer at here:
You can try a pure javascript webpivottable . This is a client side solution and no dependence to any back end technology. Here is demo and documents
The latest version (version 1.6) can enable/disable proxy at UI now, so no problem to integrate it into local Mondrian server(just disable proxy at UI).
For cross domain access(web server and Mondrian server not at the same host:port), you can set options.server.xmlaProxy in the customOptions to your http proxy at your web server.

Exception while using Windows Azure Caching : No such host is known

I am trying to get started with Azure and am trying to use the Caching feature. I created a cloud service project and added a Cache worker role and a web role. I installed "Windows Azure Caching" nuget into projects for both the roles and added the name of cache worker role as identifier in DataCacheClients element in web.config of the web role.
I added the following code into the web role:
DataCacheFactory cf = new DataCacheFactory();
DataCache c = cf.GetDefaultCache();
When I try to run this locally on the emulator, I get the following exception:
ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure.
Please retry later. (One or more specified cache servers are unavailable,
which could be caused by busy network or servers. For on-premises cache clusters,
also verify the following conditions. Ensure that security permission has been granted
for this client account, and check that the AppFabric Caching Service is allowed through
the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater
than or equal to the serialized object size sent from the client.).
Additional Information : The client was trying to communicate with the server: net.tcp://MvcWebRole1:24233.
Inner Exception : No such host is known
Can you please tell me what I am missing here?
Azure SDK used : v2.0
Timing of your question couldn't be better. We also faced exactly the same issue and were scrathing our head as to what the problem could be. We had one project where everything worked perfectly fine and in one we were getting the same error. Based on our research, we have identified the problem with the Nuget package for caching. It seems a new version (2.1.0.0) was released yesterday and we found that if we install that package, we get this error. Can you check the package version in your case? The documentation states that this new version can only be used with the latest SDK (2.1) released today.
One solution would be to uninstall version 2.1.0.0 and install version 2.0.0.0. To install version 2.0.0.0, open Package Manager Console (View --> Other Windows --> Package Manager Console) and type following command there:
Install-Package Microsoft.WindowsAzure.Caching -Version 2.0.0.0
This fixed our problem. Hopefully it should fix yours too.
Here is a link to the Windows Azure Cloud Integration Engineering blog on how to deal with this same issue. They recommend upgrading to Azure SDK v 2.1 or rolling back as the accepted answer states.
http://blogs.msdn.com/b/cie/archive/2013/08/08/windows-azure-caching-2-1-0-0-no-such-host-is-known.aspx
This exception could also occur under compute emulator if for the role in the client library configuration there is no cache configured. In my case this happened on purpose, since the cache emulator has some problems that can slow down the test and debugging on the service.
In previous version of Windows Azure Caching, in this scenario the construction of DataCacheFactory would fail with an exception (handled by my code); with Windows Azure Caching 2.1 (and Azure SDK 2.1) in this same scenario the code would consider the role name as a server address and thus on DataCache construction would try to communicate with the non existing cache -- this leads to a 3 minute wait and the exception reported in the question.
I have changed my code to detect the new situation for this scenario -- you can find more detail in this SO question.

How to actually configure debugging in CFBuilder

I have ColdFusion Builder 2.0.0 installed and I am trying to look at the much vaunted step debugging. However, I cannot seem to get it to work as I don't have my site / JRun install setup in the naive way the examples show.
I am using version 9,0,1,274733 of ColdFusion and my configuration is as follows:-
Installed as multi-server version with Jrun here:- c:\Apps\JRun4
application files are here:- d:\websites\my.website.com
web root is here d:\websites\my.website.com\www
core library of CFCs is here d:\websites\frameworks\core which is mapped in CF as core
I have read this watched this http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089-31c11ef1121cdfd6aa0-7fff.html and this http://forta.com/blog/index.cfm/2007/5/30/CF8-Debugger-Getting-Started and watched this https://experts.adobeconnect.com/_a204547676/p33029638/?launcher=false&fcsContent=true&pbMode=normal but I get stuck at the point after you have configured RDS and you are setting up the server for your project.
Now I am pretty sure the above is correct, when I move to the next page in the wizard I get the following:-
Now I as I understand it my Server Home should be c:\Apps\JRun4 and my Document root should be d:\websites\my.website.com
This all looks like it is going to be fine until you actually try and debug when I get
followed by
I can confirm that the server is running and RDS is enabled as in the RDS Dataview I can see all my databases.
Any help would be gratefully received as this is very frustrating and the documentation is very lacking.
There is a video tutorial as well that you may want to check and see if that helps. http://blogs.adobe.com/anand/2011/01/learn-how-to-debug-coldfusion-applications-using-coldfusion-builder-2.html
You need to specify the RDS username/password and the "application server name". If you are using the base instance that was installed when you setup the multiserver install of CF that is "cfusion", otherwise its the name of the instance you are using.
The RDS username is most likely "admin" unless you setup custom users for RDS. The password is the RDS password you specified when you installed CF.

Resources