-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPP Printer error Invalid response from API - integration not working #92714
Comments
Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) ipp documentation |
+1 |
Same issue with an Epson XP6000 Series printer. Running 2023.5.2 on Docker |
Same, with Kyocera ECOSYS P5021cdn in : Update: today I restart all the system and works again |
Same, with Brother DCP-L2530DW on Home Assistant 2023.5.0 in Docker. |
+1, running 2023.5.2 on an rpi4 |
For reference, two further "victims": |
Same on HP M475 since upgrade to 5.2. |
Same with HP Envy 7640. To be fair though, at first I thought it was just me breaking things since I was doing some networking reorganization/bashing yesterday, but it seems others have a similar problem. It is still visible (and working) from other systems. |
Same error on an EPSON XP-7100. |
Note: That I recovered from exactly this error, by deleting the IPP intergration and then re-installing. So for me, the issue was caused by the 2023.5.2 upgrade. |
Deleting and reinstalling resolved also for me (Epson XP-6000 series printer). |
Yep, indeed, reinstalling seems to fix it. |
Thanks! You'll have to let me know if it survives restart. Because mine has actually been working since last restart, but it comes and goes when I restart. |
I didn't try a restart since the reinstall, but I noticed that it took a while between the auto-detection of the printer (and reconfiguration of the integration) and the moment where the entities actually had a value. |
After rebooting my HA this morning, it started working again. Epson XP-7100. |
I just tried a re-start (a reboot of the entire RPI4 actually) and all was fine - so my removal and re-adding, seems to be sticking. I just wish that the integration cached the status - so that we can have an entity for each ink that persists. Kind of like "The last time we saw it, the level was X" - rather than giving an "unknown" when the printer is off or asleep. |
Home Assistant 2023.5.2 HP 7740 Same error message. It usually shows up after the printer goes to sleep. It used to recover when the printer wakes up. Now I have to delete and re-install the integration or re-boot the RPi 4, Thank you. |
Same issue with a Brother HL-L2350DW series |
I have the same issue post 2023.5.3 upgrade, the intermittent nature of this is sounding very much like an issue that I encountered with the Reolink integration #92891 that appears to have been caused by HA 2023.5.x - appears the Reolink issue is now resolved by 2023.5.3 Also curious to see that this issue as well as #93027 and #93006 all implicate 2023.5.x as potentially causing _Logger: homeassistant.config_entries Config entry 'Canon TR8600 series' for ipp integration not ready yet: Invalid response from API: Timeout occurred while connecting to IPP server.; Retrying in background_ |
Ok, so I just noticed something interesting. But a few minutes ago, I updated HA to 5.3 and boom!: integration in error again... |
+1 Exactly the same here when upgrading to 2023.5.3. I had previously reinstalled the integration after updating to 2023.5.2 with everything then working fine again. Interestingly, after updating to 2023.5.3, a further manual restart of HA fixes it for me but only if the printer is powered on at the time HA restarts, then everything works fine! If the printer is powered off at the time HA restarts then it doesn’t appear to work, even if the printer is subsequently powered on post-restart. I also get an error that states:
so perhaps if the printer is powered off at time of restart then something is going wrong and it never actually retries in the background? |
+1 to the manual restart bringing it back to life after HA 2023.5.3 upgrade, although not so sure about the printer on/off - both of my Canon TR8600's are reporting connected post restart. This could well depend on printer if off is really off or just a low power energy saving mode where API still responds. Will report back if the printers drop again |
I'm fairly certain this was a bug/side effect from the core updates that appears to resolve after restart, and I think 2023.5.3 has resolved based on what ive seen . I'm pretty sure roku (another one of my integrations) has encountered similar along with many others. |
Just fyi restarting fixes but only temporarily for me (I’m on latest version). I haven’t tried deleting and re-adding. I’ll do this if not resolved in next core update. |
Well, it doesn't seems so, at least for me. What appears, is that as long as the printer is reachable, the integration behaves correctly, even after multiple core restart. Now, when a core update is done, then it becomes more serious as the integration becomes immediately stuck, even if the printer is online and never recovers from that, whatever how many core restart you try. [Edit] I'm convinced that starting from 5.2 something plays havoc with this integration and probably a few others maybe using the same library or something. But one thing is clear, this is still a problem (at least for me) that has to be fixed so this issue should remain open. |
I have to agree. The HP 7740 goes to sleep each night, and the API is shut off. If HA is rebooted during that time, the integration never recovers. However, if it is rebooted during the day, when the API is awake, it will recover. This is occurring with : As @TekFan said, this appears to still be a problem that should remain open. I am willing to test possible fixes for this, but not being a coder, I wouldn't know where to start looking at it. Thank you. |
I don’t know why @ctalkington closed this one, as it still seems to happen. I also have the issue here quite consistent with an HP printer, and this is located on a powerplug that turns off each night. Only when I restart HA in the morning, I get my printer back. Restarting the integration makes no difference. |
Just to update, I had the problem again - and I now have a repro: This happens when I re-start Home Assistant (which I only do if an integration requires it). This remains a solid repro error: each HA re-start results in the API timeout error. HOWEVER,while this error is persisting, if I reboot system, on reboot, the error is gone and this integration is working fine. To be clear, for me, an HA re-start causes the problem and the only fix is: Either: uninstall and then re-install the IPP integration. OR: reboot system. |
So, this morning, update to core 5.4 and as expected, IPP integration broken again... |
I saw Tekfan's comment and strangely, I updated to 5.4 today and it has fixed the problem. |
My integration also broke today when I upgraded my docker container to 5.4. When I stopped the container and started it again, it was working again. |
Same for me as @doctorlunch - I updated to 2023.5.4 this morning, and IPP continued to work with no issues. |
The problem
Hi,
Since updating to 2023.5.2 my integration for my HP Printer has been broken (it was on and off during beta of 2023.5, but fully working on 2023.4.6). Here's what I see:
and logs
thanks for your time
What version of Home Assistant Core has the issue?
2023.5.2
What was the last working version of Home Assistant Core?
2023.4.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Internet Printing Protocol (IPP)
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ipp
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: