cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
655
Views
1
Helpful
5
Replies
ramprasathv
Beginner

MAS Logs not captured.

Hi All,

I’m trying to run the sample iOS application (IndoorWayFinding, provided by CISCO) pointing to our MAS url. The registration is not successful and there are no logs in MAS for this registration failure. What could be the possible reason for the logs not getting captured?

Please Note:

  • The logs are set to trace level.
  • I am connected to the proper SSID.
  • Connecting to Sandbox works fine.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi

Here are the answers to your points :

1. What happens when you try to access the URL not from your iOS device but from your desktop/laptop. Do you still get an empty page ? Then you have not configured venues in your connect and engage and synced it properly. I am outlining the steps one by one. On your PI , create a campus > building > floor and add a floor map. Then sync your controller and the floor map/network designs to the MSE. Then on your MSE, enable connect and engage. Then on the mseui in your MSE enable "cmx mobile app enablement" and save the configuration. Now in your connect and engage, import the maps and sync it to the MAS server. Now on your browser when you type the url above you should see the venue information.

2. Yes, that is the kind of response you should get from your URL. Your setup should be correct.

3. "The network connection was lost". - this is not a CMX SDK error. If you are using XCode 6 , you might need to restart your XCode after cleaning up your project.

Abhishek Bhattacharyya

View solution in original post

5 REPLIES 5
abhisbha
Cisco Employee

Hi

1. Go to /opt/cmx-mobile-app-server/logs and do tail -f cmx-mobile-app-server.log | grep registration. If your registration request was received it must be captured here. If it is not captured here, it means your registration request was not received.

2. Check if your device can access the mas server or not. Go to the browser on your ios device and try to navigate to https://serverip:port/cmx-cloud-server/api/cmxmobile/v1/venues/info/. This will ensure that you can reach the mas server from your device.

If you are unable to do so, there must a firewall or some network config blocking the request.

Abhishek

Abhishek Bhattacharyya

Hi,

Tried the above on an iOS browser. Following are the findings

1.Our local MAS url: Returns an empty page, however not an error.

2.Cisco sandbox url: Returns a page with venue details in JSON.

3.iOS SDK registration: Error code=-1005 "The network connection was lost".

We ran getServerConfig.sh on our local MAS through telnet and were able to see the venue details on the terminal.

Thanks

Hi

Here are the answers to your points :

1. What happens when you try to access the URL not from your iOS device but from your desktop/laptop. Do you still get an empty page ? Then you have not configured venues in your connect and engage and synced it properly. I am outlining the steps one by one. On your PI , create a campus > building > floor and add a floor map. Then sync your controller and the floor map/network designs to the MSE. Then on your MSE, enable connect and engage. Then on the mseui in your MSE enable "cmx mobile app enablement" and save the configuration. Now in your connect and engage, import the maps and sync it to the MAS server. Now on your browser when you type the url above you should see the venue information.

2. Yes, that is the kind of response you should get from your URL. Your setup should be correct.

3. "The network connection was lost". - this is not a CMX SDK error. If you are using XCode 6 , you might need to restart your XCode after cleaning up your project.

Abhishek Bhattacharyya

View solution in original post

Thanks again for the quick response.

With port 8082 we are now able to register the client and get the location information.

Hi Abhishek,

Thanks for your response.

The issue seems to be that the MAS SDK Server is responding with 404 (not found) error to all the mobile client requests.

We tried accessing the URL https://serverip:port/cmx-cloud-server/api/cmxmobile/v1/venues/info/ :

a) if the port=8085 (SDK server port), then we get the response error 404

b) if the port=8082 (server port), then we get a valid response

Hence got bit confused on which is the port to use from the mobile client. We are using the CMX iOS SDK framework for the mobile client app. Will really appreciate if this can be clarified. Have also put this request in a separate discussion thread.

Thanks.

--Ram.

Content for Community-Ad