Open estellecomment opened 7 years ago
Exporting logs remotely would also be awesome
adb logcat | grep --line-buffered Medic
gives you log.
Note that in the adb log, you don't have the status of messages, which is the most useful part. So that would have to be added to logs.
(For the UI, the message statuses are fetched from DB, and getting that from logcat is complicated/impossible.)
adb logcat | grep --line-buffered Medic
gives you log.
I'd recommend this as being more correct:
adb logcat MedicGateway:V AndroidRuntime:E '*:S'
We can probably leave gateways plugged into a laptop, and then ssh + adb when needed.
@bishwas-medic interested in your thoughts on this, especially when trying to make the gateways more independent rather than less.
Exporting logs remotely would also be awesome
Any thoughts on how this would work? Where would you export them to? Perhaps possible for an android phone to read the logs and send them as an email?
We're at a training on site away from the office, and can't troubleshoot or restart the gateway.
It may be more practical to take the gateway phone with you to the training.
Just clarifying/adding few things here.
This happened on a Sunday (which can possibly happen again as Sunday is a work day and not a holiday in Nepal's official calendar), so I was not at the office to directly check and get logs from the gateway phone and was supporting from my home. On normal weekdays, this isn't a problem.
Taking the gateway phone to the training is not advised as the training area may not have proper internet connection.
We are working on to directly push/pull SMS with NTC's SMPP server with our own gateway server. This should eliminate the need to maintain gateway phones and make it lot easier to access logs and remote troubleshooting.
Exporting logs remotely would also be awesome Any thoughts on how this would work?
If you have physical access to the phone, then either a button that emails logs yes, or use adb to get logs through USB. If you have remote log access through ssh, you can save them to wherever, so no need for extra features.
This would have come in useful because when you reboot the gateway phone you apparently lose the logs. So if you reboot because of an issue, you lose the log that could have helped fix it.
It may be more practical to take the gateway phone with you to the training.
If a project runs into a problem and the person troubleshooting the problem isn't physically with the phone, you're stuck. Like if Bishwas is at another training/meeting, or working from home, or it's after hours/holiday...
There are multiple issues here...
@alxndrsn @estellecomment Any thoughts? I'm leaning towards 3.
Details from conversation with @bishwas-medic
3 sounds sensible. Android 6 (which we're already supporting) has a data backup feature, which encrypts and pushes to Google Drive.
Ok sounds good. Store the logs somewhere in the cloud, secure and backed up, and accessible to tech leads.
Hi @sglangevin,
This ticket has not been touched in 90 days. Is it still relevant?
Please also ensure this ticket has a Priority, Status and Type label.(See triaging old issues for more detail)
We've had a couple of requests to do a deeper dive into gateway reliability which has improved but isn't where we need it to be yet. I'm thinking we can include this one as part of that work.
Currently you need a person to physically look at gateway phones to diagnose them. We're at a training on site away from the office, and can't troubleshoot or restart the gateway.
Remote access would be nice. Or just remote rebooting.
We can probably leave gateways plugged into a laptop, and then ssh + adb when needed. (another option is grounding @jaymedic at the office and remote-controlling him by phone, which is the current workaround)