fraschetti / Octoslack

OctoPrint plugin for Slack, Mattermost, Pushbullet, Pushover, Rocket.Chat, Discord, Riot/Matrix, & Microsoft Teams
MIT License
74 stars 34 forks source link

Printer reports print progress as N/A at Print Progress Interval when no print is active #69

Closed dgsmithmn closed 4 years ago

dgsmithmn commented 4 years ago

My printer is reporting ":heavy_minus_sign: Print progress N/A :horse_racing:" every 30 minutes (what I have the Interval - Time (minutes) set to in Print Progress). I do not have Printer status heartbeat notifications enabled.

fraschetti commented 4 years ago

Hi @dgsmithmn

Please see the steps below to enable the Octoslack logging for the octoprint.log file. Once enabled, we should have a bit more information. Octoslack only responds to OctoPrint events so we'll see which events your instance is responding to.

  1. Enable DEBUG logging
  2. Reproduce the issue
  3. Send Octoprint.log

Instructions to enable DEBUG logging for Octoslack

For OctoPi releases, the log file will be located in: /home/pi/.octoprint/logs/octoprint.log

dgsmithmn commented 4 years ago

Here's a portion of what the log is reporting:

2019-11-13 06:28:23,164 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 06:28:45,228 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1771222} 2019-11-13 06:43:23,167 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 06:43:45,248 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1772122} 2019-11-13 06:58:23,170 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 06:58:45,241 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1773022} 2019-11-13 07:13:23,173 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 07:13:45,213 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1773922} 2019-11-13 07:28:23,175 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 07:28:45,223 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1774822} 2019-11-13 07:36:13,771 - octoprint.plugins.Octoslack - ERROR - Slack RTM API read error (Exception): Unable to send due to closed RTM websocket 2019-11-13 07:43:23,178 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 07:43:45,217 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1775722} 2019-11-13 07:58:23,180 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 07:58:45,248 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1776622} 2019-11-13 08:13:23,183 - octoprint.server.heartbeat - INFO - Server heartbeat <3 2019-11-13 08:13:45,254 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 1777522} 2019-11-13 08:28:23,186 - octoprint.server.heartbeat - INFO - Server heartbeat <3

The Octoslack plugin is reporting the progress every half hour at 6:32, 7:02, 7:32 etc, but it is always at 100% since the print is finished.

image

dgsmithmn commented 4 years ago

Here are my Print Progress settings image image image

fraschetti commented 4 years ago

Hi @dgsmithmn

I've been unable to reproduce this thus far. If you're still experiencing a problem, can you follow my steps above to enable DEBUG logging for this plugin and then report back with a more detailed log dump?

Thanks!

fraschetti commented 4 years ago

Hi @dgsmithmn

Let me know if you are still experiencing the issue and if you can provide a debug log for me to take a look at.

fraschetti commented 4 years ago

Hi @dgsmithmn It's been six months since you reported your issue and I wasn't able to reproduce the issue in my limted testing. If this is still a problem for you, feel free to reopen this ticket with the info I requested above and we'll go from there.