mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.

Home Page:https://docs.mainsail.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Excessive amount of DNS requests

manisto opened this issue · comments

Mainsail Version:

v2.11.2

Browser:

Firefox

Device:

Desktop PC

Operating System:

Linux

What happened?

Mainsail is making an insane amount of DNS requests, around ~585 requests every ten minutes. I noticed because my pi-hole complained about reaching the maximum amount of current connections. In the attached image, you can see exactly when I turned on the printer last night just before 20:00 (8 PM). The red bars are the requests made by mainsail.
mainsail-dns

What did you expect to happen instead?

I expect mainsail to only make a reasonable amount of DNS requests.

How to reproduce this bug?

Setup local DNS proxy or pihole and monitor the amount of DNS requests over time.

Additional information:

I'm running Mainsail OS on as Raspberry Pi 4B 8GB.

To address the excessive DNS requests in Mainsail v2.11.2, here are some steps and considerations:

1. Check Reconnect Intervals

The VUE_APP_RECONNECT_INTERVAL setting in Mainsail is set to 5000 milliseconds (5 seconds). This interval could be causing frequent DNS lookups. Try increasing this interval to reduce the frequency of reconnection attempts.

2. Identify Specific Features or Plugins

Certain features or plugins, such as webcam streaming or maintenance checks, could be generating DNS requests. Temporarily disable these features to see if it reduces the number of DNS requests.

3. Monitor Specific Requests

Use your DNS proxy or Pi-hole to identify which specific DNS requests are being made frequently. This can help pinpoint the source of the excessive requests.

4. Update Dependencies

Ensure that all dependencies, including axios, are up to date to avoid any known issues that could cause excessive DNS requests.

5. Check for Known Issues and Fixes

Review recent issues and pull requests in the Mainsail repository for any related fixes. For example, fixes for overdue checks and spool-id searches have been implemented in recent versions.

If these steps do not resolve the issue, please provide more detailed logs or specific DNS request patterns observed in your Pi-hole for further investigation.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

Mainsail itself is only a Webinterface and make no single DNS request...