Open AstroPhotoJay opened 6 months ago
Same issue here started occurring overnight. (The dashboard stopped working between 2-7am. I believe there was no new diaper change or anything else recorded during that time.) I haven't updated the app or changed any settings recently either. I can still access all other screens directly, just the dashboard doesn't load anymore.
I do wonder if daylight savings is a potential issue here - our timezone changed to AEST (Australian Eastern Standard Time - "winter time" in Australia) two days ago. Happy to do more testing.
Digging into the stacktrace (mine looks identical to the one in included in the initial report), here's the relevant part:
/app/www/public/dashboard/templatetags/cards.py, line 85, in card_diaperchange_types
stats[key]["changes"] += 1
Local vars:
Variable | Value |
---|---|
child | |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': |
date | None |
empty | False |
instance | |
instances | <QuerySet [ |
key | 7 |
max_date | datetime.datetime(2024, 4, 10, 0, 0, 0, 529603, tzinfo=zoneinfo.ZoneInfo(key='Australia/Sydney')) |
min_date | datetime.datetime(2024, 4, 3, 0, 0, 0, 529603, tzinfo=zoneinfo.ZoneInfo(key='Australia/Sydney')) |
stats | {0: {'changes': 4.0, 'empty': 0.0, 'solid': 0.0, 'wet': 4.0}, 1: {'changes': 8.0, 'empty': 0.0, 'solid': 1.0, 'wet': 7.0}, 2: {'changes': 7.0, 'empty': 0.0, 'solid': 1.0, 'wet': 6.0}, 3: {'changes': 7.0, 'empty': 0.0, 'solid': 1.0, 'wet': 7.0}, 4: {'changes': 9.0, 'empty': 0.0, 'solid': 2.0, 'wet': 9.0}, 5: {'changes': 8.0, 'empty': 0.0, 'solid': 2.0, 'wet': 8.0}, 6: {'changes': 8.0, 'empty': 0.0, 'solid': 2.0, 'wet': 8.0}} |
time | datetime.datetime(2024, 4, 9, 13, 9, 41, 529603, tzinfo=zoneinfo.ZoneInfo(key='Australia/Sydney')) |
week_total | 0 |
x | 6 |
This issue seems to have resolved itself as of 10 APR 2024 at 16:30 AEST.
I had to restart my server this morning, but I did not think to check BB at the time so am not sure if this helped or not. No other changes made (that I can think of).
It took an extra day for me, but the issue seems to have resolved itself on my end too. I did not restart BB or change any settings - the dashboard suddenly started working again this morning.
(I made a copy of the database when the issue occurred, just in case. The timing makes me think that it was daylight savings related for us in AEST. Happy to try to reproduce/debug this on my end if that'd be useful.)
@jfschmakeit if you are comfortable sharing the database that may be helpful for troubleshooting.
The symptoms definitely sound like some data that was new enough to appear on the dashboard was causing the bug and once that data aged out the bug went away.
The last DST change was a month ago so I wasn’t thinking that but maybe it is related to some measure that looks at a month’s worth of data or something 🤔
After upgrading from v2.2.0-ls123 to latest, I am getting this error whenever I try to visit the front end.
Any help to try and solve this issue would be appreciated.
Below is further info with sensitive info edited out.
Traceback
API and /admin/ both work and are accessible.
With daylight savings having just ended for us, I altered the time of a nappy change which may have been an issue but this did not work.
I tried the solution suggested in https://github.com/babybuddy/babybuddy/issues/140 but received the below errors as well...
Stack
Docker compose (deployed via portainer)
NGINX and cloudlfare tunnel used to expose service to the internet.