Giter Club home page Giter Club logo

Comments (3)

AndreasBerz avatar AndreasBerz commented on July 24, 2024

Laut Web-Recherche erscheint der Fehler "sockets disabled, connection limit reached", wenn der Wert server.max-connections aus der lighttpd-Konfiguration überschritten wird.
Man könnte also versuchen in der Datei /etc/debmatic/lighttpd/lighttpd.conf die beiden Werte server.max-connections=1024 und server.max-fds=2048 zu verdoppeln, verdreifechen, etc.
Ich habe aber den Eindruck, dass sich die offenen Verbindungen aus irgendeinem Grund kummulieren und nach ca. einer Woche den zulässigen Wert überschreiten. Mit einer Erhöhung der Werte würde man das Problem nur hinauszögern. Dann steigt die Debmatic eben nach zwei, drei Wochen aus, was nicht weithilft.

Als Workaround habe ich nun unter /etc/cron.d ein cron-Script angelegt, welches den lighttpd.service einmal pro Tag neu startet.

/etc/crond.d/restart-lighttpd
SHELL=/bin/sh
# You can also override PATH, but by default, newer versions inherit it from the environment
#PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed
0 12    * * *   root    /usr/bin/systemctl -q restart lighttpd.service
#

Damit läuft die Debmatic seit etlichen Wochen stabil, ohne auszusteigen.

from debmatic.

gstrauss avatar gstrauss commented on July 24, 2024

Latest lighttpd release is lighttpd 1.4.76. If your distro (Xubuntu) is still shipping an older version, then please make some noise to try to get the distro to provide an updated lighttpd package. (Debian and Ubuntu typically ship out-of-date software.)

It is possible that you are hitting a bug fixed in lighttpd 1.4.76: https://redmine.lighttpd.net/issues/3249

If you think this might be a different issue, please help me to reproduce the issue. I am a lighttpd developer, but do not use Debmatic, so you might open an issue on https://redmine.lighttpd.net/ if you're willing to work with me to collect more data, e.g. to establish if connections are not being closed.

from debmatic.

AndreasBerz avatar AndreasBerz commented on July 24, 2024

dpkg -l lighttpd says...

||/ Name           Version           Architektur  Beschreibung
+++-==============-=================-============-============================================
ii  lighttpd       1.4.63-1ubuntu3.1 amd64        fast webserver with minimal memory footprint

The lighttpd issue #3249 states that it occures only in Version 1.4.74 and 1.4.75 of lighttpd.
So, it is probably a different issue.

from debmatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.