Hubitat package manager stuck

Hi everyone. I have a weird problem with hpm.

I load it from the apps screen. Then I click on update. It comes up that there is an update from 1.9.10 or something like that. It says the new hpm is 1.9.11. I select it to update it and it says installing update forever. I waited 30 min before I stopped.

Funny thing is, when on the screen to select the hpm update at the top it says I Am running version 1.9.11

Attached is a screenshot.

Any ideas on how to fix this?

Thanks.

Paul

I'm having the same issue. I did check the app's code and it does show 1.9.11 and when I restarted HPM and checked for updates there were none listed.

I figured out how to fix it. I went to the post on here about hpm and I copied the URL from the internet and then I manually added the app code. After that, it stopped telling me there was a hpm update and it overwrote the previous code so, only one hpm showed up in apps section.

Thanks though. Maybe this will help yours.

Or, if it concerns you, you can just run a Repair on HPM. This is a known issue, the fix is not trivial. See the main HPM thread, where it has been discussed for the last month or two.

2 Likes

Hmmm... I've been noticing this when I run updates on HPM. It hangs, but I just reboot and it seems to have updated just fine. After reading this I decided to try running a repair on it. Lo and behold, I have two lines (instances?) for HPM under repair. Tried updating both. Repair ran fine but still two lines showing HPM, but only under repair. Regular app listing shows only one.

Dunno... All seems to work well except HPM updates hanging and that weird thing where it shows up twice under repair, so I think I won't worry about it. But would be nice if it were fixed.

Check to see if you have 2 copies here:

2 Likes

I don't have that icon, but if it's apps, I have only one there.

Check in the apps code page (not apps) for two instances of the HPM app code on your hub.

2 Likes

There is but one there, as well. Not two.

I have the same problem, only when updating HPM. I go through the update steps and it just sets there doing the update and it never ends. Has been this way a while for me. I just watch the screen and when the version number changes in the upper right hand corner of the HPM screen I manually leave the update process. HPM code has updated correctly. All other updates for items from HPM work exactly as they should.

When I go to my Apps Code I have only one instance of HPM. When I go to Repair inside HPM I have only one instance of HPM.

I have three different hubs and all three hubs act exactly the same way.

1 Like

Yup. Same as mine, it seems. I just walk away after running an update and come back a cup of coffee or so later. It's all still stuck, but I just close it out and it has actually updated. A minor annoyance at worst, so no big deal. Bus t I just thought someone should know.

The funny part to me is that the mods or someone have marked all of this thread as "solved." Well, OK. Whatever, guys. It does work.

Perhaps the OP marked it as solved in this thread that he created? It does sound like he was able to solve the issue for himself.

I wish I could understand why that little “solved” checkbox is so triggering for you…

1 Like

Yes, @marktheknife is correct @Madcodger. I (the original poster) did mark my post solved because I was able to get it to work.

The next time it happens I will try to do a repair on hpm to see if that is easier.

Paul

3 Likes

Ah, very good @pauljneil2 . Glad the HPM Repair worked for you.

@marktheknife The thing is, there remains an issue. Some of us still have little quirks related to HPM happening, even after trying a repair. So, the topic is not solved. Having lived through many, many threads where an issue is marked solved within hours while it clearly remains, I made that comment. The "someone" was the OP, so the comment was not wrong. The underlying issue remains. Do I care? Not especially.

I wish I had a clear and concise explanation for the phenomenon of 'HPM hanging' that is understood by all.

I've explained that HPM is self updating... it's replacing the old, running code with the new code. When it's done updating itself, it's still running. When the code tries to display the Completed screen, it doesn't exist where it was in the previous code and it spits an error and sits, displaying the old screen.

There are some classic ways of solving this ... we've all done updates in which an updater program gets launched and it does the work, then a button appears with "Install and relaunch" (or words to that effect) show. At the end of the update, the updater program launches the main program again and it's all good.

The workaround is more or less the same, with zero grace. It's ugly. HPM is always successful at performing the update. The fact it hangs is proof actually. :smiley: It's hangs because the old version is gone, and the new version is bigger, smaller, somehow different.

If you see it hang, the majority will report that the version in the upper right corner is correct. Simply exit HPM, and start it. Many have said that's all that was needed. Others suggest that it's a Repair that fixes it for them. Rebooting works, but feels like overkill to me.

The point is, HPM is updated and there's an annoying circumstance where it will not tell you it's complete. Simply seeing the correct version in the upper right is all the confirmation there is, when it hangs.

I have tried many times to add a workaround into the code, but it's not reproducible to me and my hubs. I have reverted to older versions of HPM and then upgraded... repeatedly. 1 out of 30 times I see the hang. I recently (v1.9.9) moved a portion of the upgrade code to the top of HPM in the hopes that would solve it for the majority. It did for me during testing.. I released it because I got to 35 times without seeing the hang.. but this topic makes it clear just how much that attempt didn't work for enough hubs. :smiley:

6 Likes

I see this as a VERY minor inconvenience.

Thanks for your work on this project.

3 Likes

Maybe put a note like Hubitat does during booting. "If the screen seems to hang for a long time then do this....."

It's not a problem at all when you know what's happening.

2 Likes

I get that, absolutely. :smiley:
But that's probably because it's not the first time seeing an explanation. :smiley:

It's clear from reading the above, my explanation hasn't reached enough people... yet.

@oldcomputerwiz said it.

How about:
“If update of HPM appears to hang, check version in upper right. If it has updated you are safe to exit this page and restart HPM.”

Or something similar.

2 Likes

I guess I never noticed the version number changing while it was updating. I have always just waited until I thought it should be done and then exited (if it looks to have hung) and reopened, then checked the version number. I'll have to look at the version before exiting next time.

HPM is such a mature piece of software that the updates are truly few and far between. I really think the disclaimer on the screen is the way to go.

1 Like