I'm attempting to use AM 1.9.1 and Store statistics in DAS 3.0.0. I'm using a mysql database to house my WSO2AM_STATS_DB instance.
Data is being stored successfully in the database. I have records indicating that attempts were throttled out and requests were made successfully. Unfortunately, when I attempt to view any of the statistics in either the store or the publisher application, the logs show this error:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'TempTable.apiPublisher' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Can anyone provide some guidance on how to resolve this?
I was able to resolve this issue by removing the ONLY_FULL_GROUP_BY from the configuration for MySQL.
Related
I have made a Power BI Dashboard with Analysis Services (Live Connection). I have full access to the database and in Power Bi Desktop everything works (all data is visible and updated).
Then, when I publish the dashboard, and go to app.powerbi.com to open the DB, it gives me the error message that it cannot access the data source. "This report could not access its data source. please contact , the author, to have it fixed." However, the gateway is set correctly and also connected to the corresponding dataset. I've already delete and re-create the role in the database. What is noticeable is that the update date right after the publishing says: 1.1.53, 00:53:28. After the first gateway update it shows the correct date and time. Can anyone help me to fix the problem? Thank you very much!
You need to assign all of the end users read/write roles on the Tabular model.
I am trying to do intergadget communication between two gadgets, a date range picker and an batch record line trending.
The information I found is from other products from WSO2, not for DAS 3.1.0
Is it posible to do intergadget communication between a date range and a batch record line trending?
If so, does someone have an example working of this?
Its very important for our company to know this answers, because we are trying to use the WSO2 products, but we can't if we aren't able to show the historic data in the dashboard.
For this you need to add pub-sub connection between the gadgets.
You can get the information related to inter-gadget communication on below links.
https://medium.com/#megala.11/how-to-visualize-wso2-apim-statistics-in-das-c349b3fd83a
https://docs.wso2.com/display/DS200/Configuring+Gadgets+for+Inter-gadget+Communication
https://docs.wso2.com/display/DS200/Inter-gadget+Communication
I have configured API Manager 2.0.0 & API Manager Analytics Pack to use MySQL databases.
For each server, there exists a WSO2AM_STATS_DB. I have given these differing names on my MySQL server. I have also pointed my datasources in master-datasources.xml(for APIM) & stats-datasources.xml(for Analytics) to the relevant databases.
I couldn't find any relevant schema(dbscripts) for these databases in their respective packs.
On running, the Analytics database is populated but the APIM database isn't and throws an exception. The Analytics database not only gets the schema but also the invocation details of my API.
I am unable to get the stats on my dashboard though.
Previously, I (unwittingly) configured the h2-repository stats database to be the same for both servers (due to the folder structure) and was able to get all the statistics on my dashboard in the publisher.
Other configurations I have tried :
On the MySQL Server, pointed it to the same database (the Analytics one with the schema) but with no results on my dashboard (after waiting for a while).
Both datasources (WSO2AM_STATS_DB) in 2 servers should be pointed to the same database. There are no database scripts for this. Tables are created automatically.
By default in both servers, Stats DB path comes like this. (note ../ part)
<url>jdbc:h2:../tmpStatDB/WSO2AM_STATS_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;AUTO_SERVER=TRUE</url>
So if you extract both servers to the same directory as mentioned in this doc, both datasources will be pointing to the same database (inside tmpStatDB) like this.
/parent_dir
|__wso2am-2.0.0/
|__wso2am-analytics-2.0.0/
|__tmpStatDB/
So, what happens here is, wso2am-analytics writes stats data to shared database, then apim reads it and shows data on its databases.
I'm trying to query a DAS table with the Data Explorer but no matter what I put in for the query it returns nothing. If I leave it blank it returns all the rows. I'm using the default H2 database in my example.
My tables data
Query by attribute name
All fields that you want to query need to be indexed (via the Event Persistence Configuration configuration of the stream). See https://docs.wso2.com/display/DAS301/Configuring+Indexes for the details.
Hi I am trying to export the list of users that have signed up for an API key using Carbon but can't seem to figure out where to do this. I have tried accessing the h2 database (the WSO2Carbon_DB as well as the APIDB, however, there is no user information stored in these tables - at least I can't find them.
While going through directly in the APIM database, you may not be bale to find it,because tables are connected with constraints. But check the following tables; which contain the entries you needed
IDN_OAUTH_CONSUMER_APPS,IDN_OAUTH2_ACCESS_TOKEN,AM_SUBSCRIBER , AM_APPLICATION