[Bug]: Apache can not listen to 10.0.2.15:80 & 192.168.56.x:80 and consequently, does not start

Aperta
#947 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, linux
Ambito
networking

Direzione di ricerca

Start with the Network component and the attached configuration files to understand how VirtualBox initializes the 10.0.2.x and 192.168.56.x networks. Check whether their startup timing can leave the specific guest IPs unavailable when Apache starts. Done means reproducing the issue and identifying whether VirtualBox network initialization causes it; the report currently gives a workaround, not a confirmed cause.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Version

VirtualBox 7.2.22

Host OS Type

Windows

Host OS name + version

Windows 11 Pro 25H2

Host Architecture

x86

Guest OS Type

Linux

Guest Architecture

x86

Guest OS name + version

Alma Linux 9.7

Component

Network

What happened?

When I configure my Apache settings to listen to specific IPs, belonged to VirtualBox networks, it can not start. However, if i do not specify the IP, but only a port number, the problem does not occur. Example:

Listen 10.0.2.15:80 .............................. Apache does not start
Listen 192.168.56.39:80 .................... Apache does not start

Listen 80 ............................................... Apache starts

Image
How can we reproduce this?

MY CONFIGURATION FILES: see attached

POSSIBLE PROBLEM: the VirtualBox networks 10.0.2.x and 192.168.56.x are taking too much time to initialize and Apache initializes before them.

SOLUTION: delay the Apache initialization as follow:

  • Execute in terminal the following command:
    systemctl edit httpd

  • Add to the configuration file the following lines:
    [Service]
    ExecStartPre=/bin/sleep 1

  • Save the file and execute the command:
    systemctl daemon-reload

  • Restart the machine. Apache now will start without problems.

confs.zip

Comments about the solution:
It delays the loading of Apache to allow time for the VirtualBox networks to initialize BEFORE it.
Minimum experimental value for the sleep parameter: 0.12

Did you upload all of your necessary log files, screenshots, etc.?
  • Yes, I've uploaded all pertinent files to this issue.
Lingua principale
C
Stelle
1.4k
Fork
219
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VirtualBox/virtualbox

Tutte le issue di VirtualBox/virtualbox

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.