haven icon indicating copy to clipboard operation
haven copied to clipboard

Missing logs on Haven

Open saanganik opened this issue 6 years ago • 20 comments

I have Haven installed on three different Android phones, placed in three different rooms. I had went to a different city for three days. I received messages on signal on all of these three days from all three phones. However, when I came back and checked on the three phone, none of them has any log or entries for these three days.

Can this be due to some bug?

saanganik avatar Mar 21 '18 17:03 saanganik

Haven is still beta, and definitely has bugs, but if you received notifications, there should be logs. Were there no logs on any of the devices?

Doing manual testing now, can you make log entries appear?

n8fr8 avatar Mar 21 '18 18:03 n8fr8

There was a log for just one day on one of the phones.

Just to be clear, there are logs both before and after that three day period. For example, there were logs for yesterday. Only the logs for those three days are missing. The phones were not restarted during this whole period as they were on charging. Also, all three phones are password and fingerprint protected.

saanganik avatar Mar 22 '18 11:03 saanganik

There are some edge cases where somehow the database could not be written to, even though the notifications were sent, but strange it happened to all three devices simultaneously. Not sure what to say at this point, other than, we'll try to reproduce.

Otherwise, the next release will have the new "hearbeat" feature, which will make any activated haven device send you a ping on a configurable interval, so you can be assured it is actually running and logging. We can also look into logging screen/device unlock events.

n8fr8 avatar Mar 22 '18 13:03 n8fr8

Thanks. The two possible features you mention will be very useful.

Another could be a Haven lock feature (I don't know how feasible it will be), going something like this: When you go out (and no one is supposed to touch the phone), you 'lock' the Haven app, so that any access to it (either physically or through hacking) sends out a notification.

I have another comment unrelated to this. Most of the events usually are microphone events. And in places like where I live (construction kind of work going on, or otherwise noisy), it is difficult to arrive at the right decibel level. Slightly high and you get too many irrelevant notifications; and missing possible relevant events if slightly low. Can something be done to reduce this problem?

saanganik avatar Mar 22 '18 16:03 saanganik

False positive matches, and improved tuning/baseline detection are a big focus going forward. We understand your pain!

n8fr8 avatar Mar 22 '18 16:03 n8fr8

This could also be related to #261

n8fr8 avatar Mar 25 '18 13:03 n8fr8

I was out of city for three days again. This time it is worse.

There are three accelerometer events sent to Signal and received by me on one of the three phones right at the time when I was in flight, so did not immediately receive the Signal messages.

After that all the three phones were switched off by the next day. This when all three were on heavy powerbanks (16000 mAH and 20000mAH). All three phones and all three powerbanks were discharged, which is hard to believe, and it did not happen even the last time. Two of them are new.

So again, there are some events sent to Signal, but nothing on the logs. This did not happen when I was in the city.

My question for the developers is: The accelerometer events seem like evidence of something to me. Is there any chance these could be due some bug?

saanganik avatar Apr 08 '18 11:04 saanganik

All the phones and powerbanks were fully charged when I left.

saanganik avatar Apr 08 '18 12:04 saanganik

That is aggravating for sure! Let’s track and squash this bug-

1: The accelerometer data senses changes as small as a car door closing a block away; you can test and calibrate these values to pick up vibrations or true movement. As for power, there is a feature to conserve battery, although it currently doesn't support all android versions (yet). If you could provide the device info for the cases you’re describing, it may help solve this problem more effectively.

2: Believing you’ll get three days of life using battery packs will always disappoint, no matter the application (working on lightening the footprint to make Haven an exception).

3: In your case, the logs aren’t being written because of a DB error if I had to guess. Try uninstalling then using the new RC1 build and report back, thanks for your help!

*Be sure to run a demo session before leaving for extended times to ensure logs are being written.

lukeswitz avatar Apr 08 '18 13:04 lukeswitz

I have uninstalled and reinstalled the RC1 version, but I am not getting Signal messages. On two phones the local Signal number is not getting registered. This was a problem earlier also, but after several attempts, it got working.

saanganik avatar Apr 08 '18 15:04 saanganik

This time I am simply not getting Signal verification codes on any of the phones.

saanganik avatar Apr 08 '18 16:04 saanganik

Is it possible to send the verification code by 'Call Me' as in the Signal app? This used to happen earlier with Google verification codes and I had to the the Call method often. This seems to be an India specific problem.

saanganik avatar Apr 08 '18 16:04 saanganik

Note: Multiple device registration for one signal number is currently not supported. #277

Otherwise, your signal number needs to be reverified, please try:

  • [ ] Add remote & signal number in settings to ensure permissions are granted correctly
  • [ ] Erase & save empty values for both
  • [ ] Dismiss settings & open it again
  • [ ] Replace with correct numbers and then tap verify
  • [ ] Troubleshoot using the "test notifications" under the Logs view.

These are bugs that need to be addressed from a few angles, your patience is appreciated.

lukeswitz avatar Apr 08 '18 16:04 lukeswitz

I have tried this several times on all three phones, but the verification SMS is simply not coming through. I had seen this problem elsewhere on Haven website for +91 (India) numbers.

saanganik avatar Apr 08 '18 16:04 saanganik

#239 also mentions this, will further investigate!

lukeswitz avatar Apr 08 '18 16:04 lukeswitz

Today morning I had all the messages received in bulk. I was even able to setup one of the phones, but the other two still have the same problem.

Someone earlier had requested for a feature allowing the same local number to be used on different devices. Will this be feasible to implement?

saanganik avatar Apr 09 '18 14:04 saanganik

We will be supporting other multi-device mechanisms for remote monitoring and notifications, instead of just using Signal+phone numbers. That said, Signal does support linking devices together under a signal number (the way their desktop apps work), so it could be possible.

Regarding the earlier question, we can enable the "Call Me" feature for sure.

n8fr8 avatar Apr 09 '18 14:04 n8fr8

Added "Call me instead" feature in 2dd4873343c5be9ca6a0a15441d537a9b90fc2d5. Submitting for PR. It may be beneficial to allow the activateSignal method to fire without a value change to the string value.

lukeswitz avatar May 04 '18 20:05 lukeswitz

@fn107ba Do your phones all have SD cards? If not, this may be your bug => https://github.com/guardianproject/haven/issues/322

ghost avatar Aug 08 '18 19:08 ghost

We've made some improvements to Signal registration flow, as well as overhauled storage as well. Please test the latest 0.2.0 beta 5 release, and let us know if any issues remain.

n8fr8 avatar Apr 17 '19 17:04 n8fr8