omnt / OpenMobileNetworkToolkit

OpenMobileNetworkToolkit
BSD 3-Clause Clear License
28 stars 8 forks source link

Onsite remote logging not working #39

Open SchmidtKrisztian opened 2 weeks ago

SchmidtKrisztian commented 2 weeks ago

Hi,

I’m interested in your project and have already tested the software on the public network using remote cloud logging. Now, I’d like to test it within a private network, but with on-premises remote logging.

We have a test private mobile network setup with Ericsson radio and an Athonet core. I’ve connected a small PC (Intel NUC) to the local breakout of the core network and installed InfluxDB and Grafana on it. I downloaded the app onto a Galaxy A52S and connected it to the network.

From the mobile device, I can access the NUC; I can ping it and access the InfluxDB web GUI. I enabled remote logging and added the organization/bucket name, the API all-access key, and the InfluxDB IP address. However, for some reason, the logs aren’t reaching my bucket. In the app, the <> icon remains red when logging is enabled, and local log files are generated.

I suspected the issue might be with the InfluxDB IP address, but none of the variations I tried worked. Here are the formats I used:

https://ipaddress:8086/influxdb:443 https://ipaddress:8086/

After enabling logging, I captured packets on the NUC and saw HTTPS packets arriving from the core network to port 8086, indicating that some packets are reaching the PC. However, my bucket is still empty. I also tried different bucket/organization names and even the IDs instead of names, but none worked.

Do you have any suggestions on how I can configure this properly or insights into what might be going wrong?

Thank you!

hajoha commented 2 weeks ago

Please provide detailed logcat output. After adjusting the logging settings, try restarting the app or the phone. Also, we use http instead of https. Please use: http://<ip>:8086/.