# \[SOLVED\] Yunomdns service failed to start after system update

**URL:** https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876
**Category:** Support
**Tags:** update, dns, service, english
**Created:** [November 17, 2021, 7:24pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876 "2021-11-17T19:24:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![SaleB](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@SaleB](https://forum.yunohost.org/u/SaleB)
#### Post date: [November 17, 2021, 7:24pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/1 "2021-11-17T19:24:53Z")

</div>

### My YunoHost server

**Hardware:** local VMWare VM  
**YunoHost version:** 4.0.3 installed / 4.3.3 updated  
\*\*I have access to my server : through the webadmin and direct access via keyboard / screen  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

I have run into a bit of trouble after running the update from the admin panel. I think that this was the first update run since the original 4.0.3 version install. The web interface indicates the version now 4.3.3. **yunomdns service stopped working** after the update. I can still access the admin panel by typing the local IP address but because all the apps are secured through the .local routes they are unavailable to me at the moment (I think).

[Here](https://paste.yunohost.org/tahakomama) is the log. I have tried restarting the whole VM and restarting the mdns service from services list and got the same result.

I have also tried to find some info on the web, based on the specific rows from the log, but could not find anything related. I understand that it is trying to register something that is already there, so I am hoping that there is a quick solution like, delete that, and it will go through. Unfortunately, I am not very familiar with Linux under the hood, so I am unable to solve it on my own.

Please help  
Thank you.

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [November 17, 2021, 10:52pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/2 "2021-11-17T22:52:38Z")

</div>

Hello, and welcome!

I suspect the yunomdns script did not get updated, somehow. Can you share its content with the following command in the CLI?

`cat /usr/bin/yunomdns | yunopaste`

---

<div class="post-metadata">

### Author: ![SaleB](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@SaleB](https://forum.yunohost.org/u/SaleB)
#### Post date: [November 17, 2021, 11:19pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/3 "2021-11-17T23:19:36Z")

</div>

Hello, thank you, and thank you for the replay.

[Here](https://paste.yunohost.org/qozanelovo) is the paste.

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [November 18, 2021, 12:09am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/4 "2021-11-18T00:09:13Z")

</div>

Could it be that you added `yunohost.local` as a domain on your server ? (Like, is it listed in the webadmin in the “Domains” section ?)

---

<div class="post-metadata">

### Author: ![SaleB](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@SaleB](https://forum.yunohost.org/u/SaleB)
#### Post date: [November 18, 2021, 12:45am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/5 "2021-11-18T00:45:00Z")

</div>

Yes, it is in the list on the domains page. Should it not be there?  
It is listed as only one and default domain and it page states that it cannot be removed

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [November 18, 2021, 12:57am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/6 "2021-11-18T00:57:33Z")

</div>

I guess you should be able to, but we didn’t think of that even though now that you mention it it’s obvious haha 😅

So basically the code tries to publish **two times** yunohost.local (because it’s always added by convenience) and the code miserably crashes complaining that yunohost.local is already published

The code should be easily fixable tho 😉

---

<div class="post-metadata">

### Author: ![SaleB](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@SaleB](https://forum.yunohost.org/u/SaleB)
#### Post date: [November 18, 2021, 1:06am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/7 "2021-11-18T01:06:29Z")

</div>

You are saying that I found a bug?

I thought that the source of the problem was an error on my part.

How do I fix it now?

I am not too familiar with python, but it should be not too complicated to either unregister if registered and then register again or just simply jump over that statement if the registration already exists.

---

<div class="post-metadata">

### Author: ![SaleB](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@SaleB](https://forum.yunohost.org/u/SaleB)
#### Post date: [November 19, 2021, 8:42pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/8 "2021-11-19T20:42:22Z")

</div>

Solved!

After rereading the last comment I got an idea. So, I created a yuno.local domain. Unfortunately, I was not allowed to delete the old domain with apps still on it. So, I moved all the apps to the new domain, minus Motomo which does not have domain change implemented, and Monica which errored out two times with the same error on trying to change the domain. Then I uninstalled those two and deleted the old domain. After that, every other app is working fin on the new domain.

But, still, it would have been much easier if there was a “try” clause or “ifExists” function at an appropriate place in the code.

---

<div class="post-metadata">

### Author: ![Nafetz](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nafetz/32/5785_2.png) [@Nafetz](https://forum.yunohost.org/u/Nafetz)
#### Post date: [November 19, 2021, 11:00pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/9 "2021-11-19T23:00:45Z")

</div>

> [@Aleks](#):
>
> So basically the code tries to publish **two times** yunohost.local

Is there a solution or workaround for people using yunohost.local as their only domain?

---

<div class="post-metadata">

### Author: ![niels](https://forum.yunohost.org/user_avatar/forum.yunohost.org/niels/32/2368_2.png) [@niels](https://forum.yunohost.org/u/niels)
#### Post date: [November 24, 2021, 4:41pm UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/10 "2021-11-24T16:41:14Z")

</div>

I had the same issue, only the yunohost.local domain to work on and was using an app (kresus) that does not handle domain change.  
I worked around it by editing /usr/bin/yunomdns as root and change line 152 from:

```auto
zc.register_service(info, allow_name_change=True, cooperating_responders=True)

```

to:

```auto
try:
    zc.register_service(info, allow_name_change=True, cooperating_responders=True)
except:
    pass

```

Then I restarted the service with `sudo systemctl restart yunomdns` and checked that it went well with `sudo systemctl status yunomdns`.

But I’m not intimate with yunohost (yet) and this is a dirty trick. Please keep that in mind.

---

<div class="post-metadata">

### Author: ![Nafetz](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nafetz/32/5785_2.png) [@Nafetz](https://forum.yunohost.org/u/Nafetz)
#### Post date: [November 28, 2021, 11:25am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/11 "2021-11-28T11:25:46Z")

</div>

Thank you very much for your help.  
With the update to Yunohost 4.3.4.1 today yunomdns is running again 🙂

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [December 28, 2021, 11:25am UTC](https://forum.yunohost.org/t/solved-yunomdns-service-failed-to-start-after-system-update/17876/12 "2021-12-28T11:25:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
