# Error with the Lan Manager service

**URL:** <https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842>\
**Category:** Configuration\
**Created:** [April 19, 2024, 9:10am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842 "2024-04-19T09:10:20Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![s7evinLN](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/s7evinln/32/16060_2.png) [@s7evinLN](https://community.gladysassistant.com/u/s7evinLN)\
**Post date:** [April 25, 2024, 12:15pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/21 "2024-04-25T12:15:49Z")

</div>

Perfect, I voted for it

---

<div class="post-metadata">

**Author:** ![s7evinLN](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/s7evinln/32/16060_2.png) [@s7evinLN](https://community.gladysassistant.com/u/s7evinLN)\
**Post date:** [April 25, 2024, 12:20pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/22 "2024-04-25T12:20:12Z")

</div>

Yes, the scan timeout — the error I’m getting comes from the timeout, and I have the impression that the nmap command takes longer to execute from the Gladys plugin than when run directly on the container.  
All the more so because before adding this timeout I could find my devices on the network.

So I think that for cases like mine, making it configurable (leaving 30s as the default) could help, at least to rule out this possibility.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 25, 2024, 5:26pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/23 "2024-04-25T17:26:02Z")

</div>

Otherwise we can just increase the timeout to 45 seconds; I don’t see any problem with that.

---

<div class="post-metadata">

**Author:** ![s7evinLN](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/s7evinln/32/16060_2.png) [@s7evinLN](https://community.gladysassistant.com/u/s7evinLN)\
**Post date:** [May 2, 2024, 8:50am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/24 "2024-05-02T08:50:35Z")

</div>

Well, I ended up bringing up a fresh Gladys instance on another server, same problem.  
So this time it’s clear: it’s indeed the timeout that’s breaking the plugin for me.

What should I do to get the timeout increased in a future release?  
If possible, 1 minute rather than 30 or 45 seconds, please

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [May 2, 2024, 10:08am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/25 "2024-05-02T10:08:51Z")

</div>

If you’re comfortable with GitHub, you can make a Pull Request to change the variables here: [Gladys/server/services/lan-manager/lib/lan-manager.constants.js at master · GladysAssistant/Gladys · GitHub](https://github.com/GladysAssistant/Gladys/blob/master/server/services/lan-manager/lib/lan-manager.constants.js#L18)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 2, 2024, 11:20am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/26 "2024-05-02T11:20:40Z")

</div>

I created a PR here :

> <https://github.com/GladysAssistant/Gladys/pull/2065>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \### Description of change
> 
> Update LAN Manager timeout to 60s
> 
> ( https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/25 )

It was really a change that took me a second 😃

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 2, 2024, 11:33am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/27 "2024-05-02T11:33:35Z")

</div>

It’s merged, it will be included in the next version of Gladys!

---

<div class="post-metadata">

**Author:** ![s7evinLN](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/s7evinln/32/16060_2.png) [@s7evinLN](https://community.gladysassistant.com/u/s7evinLN)\
**Post date:** [May 2, 2024, 12:31pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/28 "2024-05-02T12:31:25Z")

</div>

Thank you very much!  
No, I’m not at all comfortable with GitHub unfortunately, I’d really like to …

---

<div class="post-metadata">

**Author:** ![s7evinLN](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/s7evinln/32/16060_2.png) [@s7evinLN](https://community.gladysassistant.com/u/s7evinLN)\
**Post date:** [May 7, 2024, 8:38am UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/29 "2024-05-07T08:38:48Z")

</div>

@pierre-gilles I just tested on version 4.40, everything is OK!  
Thank you very much

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 7, 2024, 5:42pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/30 "2024-05-07T17:42:51Z")

</div>

Great, glad to see that 4.40 fixed your issue!

> [@Gladys Assistant 4.40 : Connecter Gladys à une installation Zigbee2mqtt existante](https://community.gladysassistant.com/t/gladys-assistant-4-40-connecter-gladys-a-une-installation-zigbee2mqtt-existante/8899):
>
> Salut à tous slight_smile Je sors aujourd’hui Gladys Assistant 4.40, une mise à jour qui apporte un gros morceau : la possibilité de connecter Gladys à une instance Zigbee2mqtt existante partying_face Je vous parle de toute les nouveautés sur le blog : N’hésitez pas si vous avez des retours wink

I’m closing this thread 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 7, 2024, 5:42pm UTC](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842/31 "2024-05-07T17:42:55Z")

</div>



[Previous page](https://community.gladysassistant.com/t/erreur-sur-le-service-lan-manager/8842.md?page=1)
