Analytics tab empty in Worklight Console - ibm-mobilefirst

I've added an analytics server (Linux, accessible from the http:///iwap/worklight/v1/index.html) to use with my Worklight 6 server, but, the "Analytics" tab is now displaying, but, is empty.
The changed the wl.analytics.url under the war configuration for "Environment entries for web modules" and restarted the app.
The Worklight V6 Information Center (under "Installing and configuring the IBM Websphere Analytics PLatform"|"Configuring Worklight Server for analytics") says to use the format "http://<>iwap/v1/events/_bulk, but, the description column in the "Environment entries for web modules" settings says to use "http:///iwap/v1/events/app_activities". I've tried both, both with same result, empty screen under the Analytics tab.
Not sure where to go at this point, any one set this up successfully?

The correct syntax is:
http://${iwap.server.path}/iwap/v1/events/_bulk
If the analytics tab is blank, its possible that your IWAP server is not currently running or is unreachable from your worklight server.
In truth, the analytics tab just acts as an iFrame. You can visit the analytics console using the URL:
http://${iwap.server.path}/iwap/worklight/v1/index.html
If you are unable to visit that link, then the issue is with your IWAP server. Make sure that the server is started using the command "service analytics start" on the IWAP machine.

The IP address you enter is the IP address of the analytics server you installed independently of the Worklight server. Have you done this?
Installing and Configuring the analytics platform
The analytics tab in the Worklight console simply shows an iframe, using a slightly modified URL from the one you entered in the configuration. If you entered
http://<>/iwap/v1/events/_bulk (this the correct URL)
The URL you can visit is
http://<>/iwap/worklight/v1/index.html
You said you can visit it directly. Can you view the network tab or console in Firebug or Chrome developer tools to see if the URL it is attempting to visit from the Worklight console is correct?

Related

How to view debug logs in IBM Bluemix

I am new to IBM Bluemix. I have created new IBM Mobile Foundation service to the dashboard. I wish to view the console logs for my application.
I referred the following link for logs in Bluemix -
https://www.ibm.com/blogs/bluemix/2015/10/bluemix-logging-options/
To view logs using Bluemix, the doc says follow the steps -
Login to Bluemix -> Click Dashboard -> Click on your application -> Click on Files and Logs:
The expected screen is as below.
I try to follow the steps -
Bluemix Login -> Dashboard -> My_Foundation_Service
But i can't find "Files and Logs" option anywhere.
Please can someone show me how i can view server debug logs in IBM Bluemix?
Thanks!
When you create an instance of Mobile Foundation Service, it creates a Cloud Foundry Application which hosts the Mobile Foundation runtime as a Liberty Application.
It seems that you have navigated to the Services section in the Bluemix dashboard.
In 'Cloud Foundry Apps' section, you will see an application. In your case the app name should be similar to MobileFoundationmu-Server.
Select that app and you should see Logs section to get the logs.
If you have a cloudfoundry cli and the bluemix cli then you can just type in cf logs APP_NAME in cmd.

Mobile First Platform v 7.1 cannot register the devices

We have done the installation and configuration of MFP 7.1V with WAS 8.5.5.0 V successfully.Here we are able to access the operation and analytics console and able to add the application (.wlapp files) and adapter files and able to access those application in tab by instantiating an apk files in the tab.
But here the issue we are facing is we are not able to get the devices list in the operation console and analytics and devices tracking in the analytics console.
So essentially I guess the issue is that the applications fail to connect to the server at all. Please edit your question with the full client-side log with the errors.
Until then my suggest is to verify in the generate .plist/.properties file that you are indeed attempting to connect to the correct server. Verify the host, port and context-root values in the files.

Push service shows up as inactive on the map console

I installed IBM Mobile First 8.0.0. I deployed Push service and the tables are also created. In the mobile first console the push service is showing as inactive. On inspecting the element in the chrome error window it points to GET URL returning 404. When i paste the URL in the browser and execute, it returns the live update adapter is not available and the database may be corrupted
Any help in this regard is highly appreciated
If you installed the MobileFirst DevKit, then this shouldn't happen since everything is built-in. Try reinstalling in this case.
If this is a production or test environment installation using the IBM Installation Manager and Configuration tool, then you may have specified an incorrect path of the push services .war file. You can confirm this by comparing the various paths that are defined in the application server's server.xml file.

Log profile tab in worklight console

In worklight console, i have this log profiles tab. Why and how to use the Log profile tab in worklight console. I went throught the document couldnt find any link regarding that. Please provide me some links regarding that.
The Log Profiles tab that you are referring to is explained in the following Getting Started tutorial: Remote controlled client-side log collection.
In the Log Profiles tab you will be able to review and act upon the various data that you can collect from devices running your application.

IBM Worklight 6.1 - When are these properties used? publicWorkLightHostname/Protocol/Port

I do not understand the purpose of the properties listed in worklight.properties:
publicWorkLightHostname
publicWorkLightProtocol
publicWorkLightPort
Those properties are set when you do in eclipse the Run As -> "Build settings and deploy target..."
Are they duplicated? Which one is the valid one? Are they used in different ways?
I have read the documentation in info center:
https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fadmin%2Fr_configuring_the_ibm_worklight_server_location.html
But there is no mention to the "Build settings and...".
See this question and answer: worklight server configuration - separating adapters and server
The properties that are found in worklight.properties relate to the
Worklight Server. The properties you have mentioned:
publicWorklightHostname, publicWorklightPort, publicWorklightProtocol,
are required because the server itself needs to know what is its URL
to the outside world, so that it can embed it in redirects and such.
These are also required for the Mobile Web, Desktop Browser
environments and Worklight Console.
For example:
Create a new application and add the Mobile Web environment > Run on Worklight Development Server deploy. Open Worklight Console and click on "Get application URL". Copy the URL. Go to worklight.properties, change the publicWorklightPort to "100"; Go back to console, compare the previous URL with the current.
From Javier:
They are not used by the mobile apps. They are shipped with the .war and are used by the .war to provide information to the user like the web url, but the server does not use them for the execution of a mobile app.