Open jdmbeer opened 3 years ago
If you go to the about menu, what hash of the server are you running?, Also can you try to past the full log (increase 200) and paste the full text (the screen capture cut off some of the log messages)
IS this the hash you are looking for? local version: bc24aca Let me get the file info for you
Yep - looks like you're on the latest code. If you can get me a full log w/ how it connected to the session i can debug. It looks like it's trying to dump data in to a session that's malformed somehow
actually seems like it updated without my knowledge because I noticed that the "devices" function is on there - which is pretty cool. Is there a permanent name / location of the file it writes to? I can pull it with SCP and drop it in
we have it set to update every boot ;) you could do "sudo systemctl status rc.local > /picobrew_pico/debug_log.txt" and grab it off the app samba share (\raspberrypi\app i think?)
I had to direct it to /home/pi to get it to write. Not sure this is what you wanted though... let me know
thats it but only has 10 lines... try "sudo systemctl status rc.local -n 20000 > /home/pi/debug_log.txt" using the line count and keep incrementing it until you can see
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http.......```
Here is the file. the first one didn't start the way you indicated so I went with 22000 lines and it didn't change, but here is the file. and of course the brew just died with a fatal error #1... ugh debug_log.txt
So from the looks of it, it appears that the Zymatic was sending data logs already, so it appears that the PI lost power? it should If it had an active session, it should have recovered (you can check by looking to see if theres anything in /picobrew_pico/app/sessions/brew/active
). If not, i'm not sure how it got to a point where it was logging data already.
Are you connected via wifi or ethernet?
Zy connects via ethernet to pi. That's interesting, I'll look in that directory when I get it back together.
Wondering if maybe during all of the taking it apart and burping Glycol maybe I accidentally shut off the Pi before the Zy. looking now there is a session file from 1/1/21 when I was test brewing. Then there is a file from 2:09 today when I originally started, then a 3rd from when I restarted
Could be @jdmbeer.
If you don't mind delete all those active brew files and go from a clean slate (I want to expose the ability to "close" or "end" a detected active session in the UI... But samba share can do that for you).
Keep using the server and your Zy and let us know here if this happens again and if you possibly can have reproduction steps that would be awesome. Thanks for being so detailed in your messaging so far that is a great help!
@jdmbeer did you by chance add an alias for your device during an active session?
I did this today (on a new vanilla install) and wanted to test some of these new features during a brew... And noticed that my session got abandoned and a brand new one was created (without the initialize session being sent, cause the machine was already brewing).
I created an issue to track the fix for that in case this is similar to what you experienced.
I suppose that is possible. I actually went to start another brew today and the server wouldn’t run complaining that the routes_frontend.py was failing. It was there but was empty from when I last used it Friday evening. I tried copying a new version of that file in and it started, but had other issues. I ended up re-flashing as starting from scratch. It’s running and here is a screen shot. The thing is you can see that it got about 5 minutes and nothing else is being written – (it’s currently 3:43). I’m thinking that later – when this is done the statistics will be updated. I’ll let you know about that.
I also ran into an issue where the Zy could not recover a brewing session. I happen to have my keyboard and monitor hooked up so I can see that calls were made to try, but the Zy says it couldn’t “connect” – probably a generic Zy response. Is this a known issue or should I open a new issue?
Thanks guys – I really can’t tell you how great what you are doing is.
Jim
From: Trevor Mack [mailto:notifications@github.com] Sent: Sunday, January 10, 2021 3:07 PM To: chiefwigms/picobrew_pico Cc: jdmbeer; Mention Subject: Re: [chiefwigms/picobrew_pico] Session Logging issue using Zymatic (#184)
@jdmbeer https://github.com/jdmbeer did you by chance add an alias for your device during an active session?
I did this today (on a new vanilla install) and wanted to test some of these new features during a brew... And noticed that my session got abandoned and a brand new one was created (without the initialize session being sent, cause the machine was already brewing).
I created an issue to track the fix for that in case this is similar to what you experienced.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chiefwigms/picobrew_pico/issues/184#issuecomment-757544067 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARP77JKNORNE2K6BGNOO65TSZIJGPANCNFSM4VZQNEVA . https://github.com/notifications/beacon/ARP77JLQMKE3I7U6VCWMZKDSZIJGPA5CNFSM4VZQNEVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFUTTJAY.gif
complaining that the routes_frontend.py was failing
So you have more data as to why it was complaining about? Likely the file left over in the active directory was an issue or something like that?
The file had ZERO bytes. Zip… nuthin in it. I have no idea why. When I replaced it the web server came up, but literally only showed the latest brew session so it acted like there was more than one file missing. I took a screenshot…. I’ll send that separately from my phone. I couldn’t come up with any idea why. So, I cut my losses, re-imaged and started again
JM
From: Trevor Mack [mailto:notifications@github.com] Sent: Monday, January 11, 2021 8:23 AM To: chiefwigms/picobrew_pico Cc: jdmbeer; Mention Subject: Re: [chiefwigms/picobrew_pico] Session Logging issue using Zymatic (#184)
complaining that the routes_frontend.py was failing
So you have more data as to why it was complaining about? Likely the file left over in the active directory was an issue or something like that?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chiefwigms/picobrew_pico/issues/184#issuecomment-757982729 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARP77JIW7K4QCXFZHLDH63LSZMCUBANCNFSM4VZQNEVA . https://github.com/notifications/beacon/ARP77JKHQGQTROWQVHSQYDDSZMCUBA5CNFSM4VZQNEVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFUW6MCI.gif
Here are the photos
These last 2 photos are from a completely separate issue with the restarting a session
JM Sent from my iPhone
On Jan 11, 2021, at 8:22 AM, Trevor Mack notifications@github.com wrote:
complaining that the routes_frontend.py was failing
So you have more data as to why it was complaining about? Likely the file left over in the active directory was an issue or something like that?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
I wanted to update this string. Now running beta6. Started a session, noticed that I'm not seeing any session data at all. I'm attaching the logs and the json that is being built in the active session folder. Then I notice that I had a connection open on two browser tabs, When I switched to the other browser tab it was showing the session data. I thought - great! it was some weird glitch because I have multiple tabs open. I close the newer tab and go back to the session window.. and the graphic disappears. nginx.access.log picobrew_pico.log 20210131_150937#abc0391a0000#e87382694c81468c9ad7a557ee25cbfc#TBNL_Dr_Rudi_v2_json.txt
I also notice that in the picobrew log it thinks the session has been running for over a week. I know the beerberry was turned off, but the browser tab persisted. I'm wondering if maybe since the tab remained the "session" was never timed out. So this may be two issues, or they may be related, Either way I wanted to provide more data.
update - changing from the Dissenter Browser to Opera seemed to allow the graphs to present. I'm still not sure if there is a session issue there or not
The browser/frontend doesn't toggle session start or end that is the responsibility of the device and the server communicating.
We do stream data from the session into your open browser tabs via the socketio interface we setup (creates a lot of back and forth noise in the logs).
Next time when you start a session do a forced cache clearing in your browser (or simply start an incognito window) and see if there are any errors being reported in the browser's console logs.
Currently running a brew - no apparently issues. However from the server side there is no "Session" Data being reported. The previous "test" brew I ran "water only" appeared to only report session data for about the first 5 minutes. Seemed to correlate with when I looked at the graph. Current session not reporting. Below is a screen shot from "sudo systemctl status rc.local -n 200 " command Let me know If I can gather more information Thanks. JM