WSO2 API MANAGER 2.0 Analytics Issue - wso2-api-manager

I set up 3 machines:
1: the mysql 5.6 databases
2: API MANAGER 2.0
3: APIM ANALYTICS 2.0
The WSO2AM_STATS_DB database contains the statistics, but they are not displayed on the Publisher dashboard.
The error generated is as follows:
[2017-01-04 10:42:28,224] ERROR - usage:jag org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC database
[2017-01-04 10:43:41,842] ERROR - usage:jag org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC databaseCould not create connection to database server. Attempted reconnect 3 times. Giving up.

Related

Connecting to CosmosDB from Databricks

Following: https://learn.microsoft.com/en-us/azure/cosmos-db/sql/create-sql-api-spark
But getting error while creating db on Cosmos
# Configure Catalog Api to be used
spark.conf.set("spark.sql.catalog.cosmosCatalog", "com.azure.cosmos.spark.CosmosCatalog")
spark.conf.set("spark.sql.catalog.cosmosCatalog.spark.cosmos.accountEndpoint", cosmosEndpoint)
spark.conf.set("spark.sql.catalog.cosmosCatalog.spark.cosmos.accountKey", cosmosMasterKey)
# create a cosmos database using catalog api
spark.sql("CREATE DATABASE IF NOT EXISTS cosmosCatalog.{};".format(cosmosDatabaseName))
Error:
java.lang.RuntimeException: Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java

BizTalk ESSO warning after installing KB-3062831

I am running BizTalk 2013 R2 on Windows Server 2012 R2 when I saw SSO consuming memory in 1.8 to 2 GB. In order to address this memory leak issue I applied the fix published at https://support.microsoft.com/en-us/kb/3062831 . After the fix I am seeing this warning in the event log. what's best approach to match required version of SSO DB ?
There is two event log entry found after installed KB-3062831 as below.
This version of the SSO server is not compatible with the SSO database.
The SSO server will upgrade your master secret server.
SQL Server Name: [My server name]
SSO Database Name: SSODB
SSO Database Version: 5.0
Required Version: 5.1
Setting database option COMPATIBILITY_LEVEL to 100 for database 'SSODB'.
Important note: when applying BizTalk updates, you must run them on all computers where any BizTalk component is installed. This includes the MSS, IIS, BT Admin and the SDK.

Application services functionality lost in Azure

I have a ASP.NET application that uses application services to manage user roles. This application worked fine when I was using a local database. When I transitioned to Azure, the main data tables still work but I am unable have user's login or create new accounts because the Application table cannot be found. Previously, the application services created these tables automatically when using a local database. The connection string name appears accurate. This is my first attempt at Azure...is there something I'm missing?
The error is "The entity type Application is not part of the model for the current context"
For additional context: When I try to create the membership tables in the Azure database using aspnet_regsql.exe, I get the following error: "An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 40508 and the SqlException message is: USE statement is not supported to switch between databases. Use a new connection to connect to a different database."

Sybase Authentication Violation

I've been running into this error for the past 2 weeks on my Classic ASP application when connecting to sybase.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Sybase][ODBC Driver][Adaptive Server Anywhere]Unable to connect to database server: Authentication violation
I only get this error when I am attempting to insert records into the sybase database. The strange thing is that I get this error once every while; very inconsistent. I looked over the internet for a while and the only step I found was to authenticate the connection via the connection signature option:
SET TEMPORARY OPTION connection_authentication='company = company-name;
application=application-name;
signature=application-signature';
I changed the values as needed and I still receive the authentication violation error. I am certain it has to do with authorization because my application can read values from the sybase database without any errors, because unauthorized connections are in read only mode. I dont understand how my application can bypass the authorization frequently when writing records but will randomly stumble and get me this error. Am I missing anything? Are there other ways to authorize the connection?

Cannot create SQL Server DB within Amazon RDS Instance

This seems to be a common question, however I haven't found a solution out there and many related questions are quite vague. Anyways, I am deploying an ASP.NET MVC 5 application to AWS using the AWS toolkit for Visual Studio Pro 2013. I have successfully published the app to Elastic Beanstalk with the exception of my database file which exists as a localDB database (.mdf). In trying to migrate this (very small) database I have created an RDS DB instance for SQL Server Express. My issue is that I cannot create a SQL Server DB which appears to be a common issue for VS users: I right click on the DB instance, select "Create SQL Server Database", VS is busy for a few moments and then nothing happens.
What I have done thus far:
I have an RDS instance created on a VPC with a security group that has an Inbound rule set to allow all traffic from my IP
I have an IAM user account with the following policies: PowerUserAccess, AmazonS3FullAccess, AmazonVPCFullAccess (I imagine some of this is redundant-I added additional policies to see if it was a permission issue)
So to succinctly state my questions, why is Visual Studio failing to create the SQL Server DB within the database instance? Or alternatively, is there a simpler method of migrating my database to AWS?
Just FYI, these are the references I have been using to deploy my application:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.quickstart.html
https://aws.amazon.com/blogs/aws/net-support-for-aws-elastic-beanstalk-amazon-rds-for-sql-server-/
I'm brand new at AWS so let me know if clarification is needed.
Update: I checked the logs for my instance and I'm getting error logs
2014-12-12 18:16:02.72 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/AMAZONA-E3AJMJI ] for the SQL Server service. Windows return code: 0xffffffff, state: 53. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
And
2014-12-12 18:47:23.72 Logon Error: 17806, Severity: 20, State: 14.
2014-12-12 18:47:23.72 Logon SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. The logon attempt failed [CLIENT: 113.108.150.211]
2014-12-12 18:47:23.73 Logon Error: 18452, Severity: 14, State: 1.
2014-12-12 18:47:23.73 Logon Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [CLIENT: 113.108.150.211]
UPDATE: Issue solved. We use a proxy server in my office which seemed to cause authentication with the RDS instance to fail, not allowing me to connect from my machine. I accepted Ossman's answer as I think it solves a lot of similar questions I've come across trying to solve this.
This is a AWS explorer for Visual Studio 2013 bug and actually occurs because you're using the "default security group" by default when you're creating your DB instance in RDS.
Access the EC2 Service in AWS Management Console.
Click on "Security Groups", and then on "Create Security Group"
Give it a Name, Description and use "vpc-0846aa61" as VPC.
And then add following rule for both "Inbound" and "OutBound" rules
Type: "All traffic"
Source (for Inbound): "Anywhere"
Destination (for Outbound): "Anywhere"
Then Create the Security Group
Go back to your DB Instance and then change the "default" security group to the one you just created. This is done by clicking "Instance Actions" and then "Modify".
Then you should be able to see following window when you right click on your instance in Visual Studio and clicking on "Create SQL Server Database":
My DB Instance:

Resources