-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
MQTT update from 6.0.2 to 6.1.1 gives 500 error message #2473
Comments
same here, all my mqtt clients on raspberry pi lost connection with mosquitto broker after upgrade - had to return to 6.0.2 Core Supervisor Host |
Is there anybody who can look into this? Are there other people who run into the same issue and maybe can share how they solved it? |
So there's multiple issues in here. @camyb1981 is showing an issue installing an update. @homonto and @Krzysztonek you appear to be talking about post-update authorization issues. Can you two make a new issue and move that discussion there? The authorization issues aren't the same thing. @camyb1981 First of all can you clarify how you are running Home Assistant? You put Home Assistant Operating System and Home Assistant Supervised which doesn't make sense. Those are two different installation methods, which are you using? As for the error presented, that is confusing. We install all addons the same way so I don't see how you could get an invalid argument here. My guess is that the addon did not shut down properly the first time and now its failing to start it again since the addon's data folder is already mounted in another container. Do you have access to the docker cli? If so can you run |
@mdegat01 you are right - I am working on ... rewriting the scripts on my Raspberries as till now they did not use username/password (all other clients use authentication) |
@homonto I was wondering about that. Yea there was an unannounced breaking change in the 6.1.0 release because, well, I thought it had already been done. Part of PR #2007 was this:
So I assumed that capability had been removed. However it turns out in v1.6 of Mosquitto if the config did not explicitly say If this is what broke you (you too @Krzysztonek ) then you can work around this by using customize option to set |
@mdegat01 topic closed, my python scripts got extra security ;-) btw:
maybe I did not know the syntax |
Thanks for your reply, my bad about the form which wasn't filled in correctly. I'm running HASS from a Oracle VirtualBox with the original HASS distro. This seems to me like a dedicated HASS OS as I'm not really able to perform any specific linux command from the commandline. I do have the terminal addon installed which does some kind of Linux interfacing. But I hope this is more clear now. This doesn't change the fact of the issue I'm having. I'm not doing anything special...I just go from HASS to the addon page, click the MQTT addon and from there I see that a new version is available....When I hit the UPDATE button I get the 500 error message...that's all. So indeed I don't touch or pass any input args with the request, that is also why I'm stuck on the update. What I maybe could do is DELETE the addon and reinstall, but I'm a bit worried that it all will stop working once I do this and that I need to reconfigure all my zigbee2mqtt devices. Does anybody know what the risk is of removing the MQTT addon and reinstall? Will this break my zigbee2mqtt process? It would be so much easier if the update would just work and not throw a 500 error message. A proper fix for this would be great...if there is no fix and the issue is only with my instance...then I'll need to take the time and reinstall I guess. |
Hi @camyb1981 |
Below you see the output of the command docker container ls -a: |
reinstalling is not the big thing - always have a FULL backup BEFORE you do it though ;-) |
Indeed I'm running on
I don't see any update available in HASS....how did you update from core-2022.5.0 to core-2022.5.1? |
hehee, I know, because I already did it 2 times. So yes I know that pain and yes I make full backups before, not after ;) |
2022.5.1 just simply appeared on my dashboard today early morning. Seems you need to wait a bit for your turn. Have a coffee meantime ;) |
that is why I always have a copy of the config files to ... redo from the scratch ;-) |
I've restarted HASS and now I see 2022.5.1 available...hmmm. |
The problem is that some of the updates of HA components sometimes aren't being released in the correct order.. moreover, sometimes they depend on each other and it makes some confusion. |
Update did not solve the issue...same error message
|
Then I'd suggest installing a newly issued core update v.2022.5.2. |
I think I'll need to delete the addon and reinstall...even with v.2022.5.3 the issue is still here. Thank you all for thinking along with me on this. |
@camyb1981 can you check your free space on your file system? Should be in Settings -> System -> Storage. Docker starts having strange issues when it has no room left to put images so perhaps you're hitting that? EDIT: Before trying any docker commands, try running Do you have access to the docker CLI set up? If so can try just doing this directly:
That's what supervisor does behind the scenes, sometimes doing it directly can give some more information. Could also simply try running the following to see if it frees up enough space to get past this:
There's not really any harm to this command it simply removes unused images. HA should re-download the ones it needs again if something got accidently purged.
For MQTT there's actually really minimal risk here. Almost everything that goes through the broker is not stored, it is just immediately passed off to listeners and then forgotten. The only exceptions are messages with Since I happen to use Zigbee2MQTT I can tell you unless you've customized your config to force it to send other messages with So while I can't be 100% certain since I don't know all the clients you use I'd say its most likely that you don't lose anything by uninstalling and then reinstalling with the same config. Just a brief downtime for MQTT. |
Finally now with the version 6.1.2 the installation was successful. In the end the update it did was from 6.0.2 --> 6.1.2 without any errors or issues. Now lets see if all still works. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the issue you are experiencing
I'm running HASS core-2022.4.7 with MQTT addon on version 6.0.2, when I try to update to MQTT 6.1.1 I get the below error.
Addon Error message:
Can't install homeassistant/amd64-addon-mosquitto:6.1.1: 500 Server Error for http+docker://localhost/v1.41/images/homeassistant/amd64-addon-mosquitto:6.1.1/json: Internal Server Error ("readlink /mnt/data/docker/overlay2/l: invalid argument")
At the moment all is working fine, except for the update which is failing. Other updates on other addons do not have any issues....it is only the MQTT which is failing and I'm a bit lost in the reason why. Looks like an INVALID ARGUMENT is passed...but again this is an automated process so the invalid argument must be hidden somewhere.
What could be the issue?
What type of installation are you running?
Home Assistant Supervised
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Mosquitto broker
What is the version of the add-on?
6.0.2
Steps to reproduce the issue
...
Anything in the Supervisor logs that might be useful for us?
Anything in the add-on logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: