outdoorbits / little-backup-box

This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
http://littlebackupbox.com
GNU General Public License v3.0
504 stars 103 forks source link

"Little Backup Box Info:" email does not include IP address #180

Closed mrsparkle331 closed 1 year ago

mrsparkle331 commented 1 year ago

Describe the bug No IP is shown in the start up info email

To Reproduce Steps to reproduce the behavior:

prereq:

  1. set up email service
  2. confirm test email works
  3. shutdown device
  4. start up device

Expected behavior Email that is sent on start up contains no IP. See copy and paste of email:

https (secure, certificate cannot be verified automatically, please confirm it): web UI: https://

http (insecure): web UI: http://:8000/ miniDLNA: http://:8200/

Open in file manager (Samba / Windows): smb://

Desktop (please complete the following information):

outdoorbits commented 1 year ago

Could you please login at your lbb and enter to command hostname -I What does it repeat?

mrsparkle331 commented 1 year ago

I get the local IP of the pi

mrsparkle331 commented 1 year ago

I just did an update and the email has the IP now

mrsparkle331 commented 1 year ago

spoke too soon, I did another reboot and there was no ip in that email

mrsparkle331 commented 1 year ago

I narrowed it down a bit. The email with the IP was sent after the update was completed but before the reboot. after the reboot the email does not contain the IP.

Every time the update completes I get an info email that contains the IP, but not on a cold boot or normal reboot.

outdoorbits commented 1 year ago

Did you do your update within the last hour? I changed the method to get the IP finally. Hard to say, why the IP is"empty", I never saw that issue. I will add some temporary changes to the info mail to get closer to the problem. Did you change anything in your installation (outside of LBB)?

outdoorbits commented 1 year ago

The debug-update is online. Could you please post the debug-footer of a mail without IP?

outdoorbits commented 1 year ago

Hi, I would like to remove the debug code. Did you already update and test?

mrsparkle331 commented 1 year ago

Hi sorry for the delay

i updated and tried again. The debug output shows the local ip

DEBUG: ip route get 1: 1.0.0.0 via 192.168.8.1 dev wlan0 src 192.168.8.192 uid 0 cache

hostname -I: 192.168.8.192

The email still shows blank ip except for the bb debug section

outdoorbits commented 1 year ago

It looks like your connection has been unstable/changed just in the moment the mail is generated. LBB now waits for internet connection and IP. I think it's fixed.

mrsparkle331 commented 1 year ago

I see the ip in the email now!

strange that there is a delay in getting ip. I have tried my pi 4 on three different networks in different locations and always got the blank ip. I just have a vanilla install. I am using desktop and not lite so maybe that’s causing the delay?

outdoorbits commented 1 year ago

Maybe that's why I have never seen this before. :-) Can I mark this issue as closed?

mrsparkle331 commented 1 year ago

Yep closed