Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 20/05/2025, à 01:07

jlba

localhost erreur 503 (Service unavailable)

Bonsoir,

Je suis sous Ubuntu 24.10. Soudainement, mon apache local me sert une erreur 503 lorsque je tente d'accéder à localhost, localhost/Dolibarr ou localhost/phpmyadmin/

La commande

systemctl list-units --type service

me renvoit pourtant

apache2.service                                                                           loaded active running The Apache HTTP Server

Et

sudo systemctl status apache2.service -l --no-pager

renvoit

● apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-05-20 00:38:00 CEST; 20min ago
 Invocation: 25654bf7f4a74d9b8fd757c890d4c3d7
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 2788 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 2949 (/usr/sbin/apach)
      Tasks: 6 (limit: 8623)
     Memory: 43.4M (peak: 44.8M)
        CPU: 246ms
     CGroup: /system.slice/apache2.service
             ├─2949 /usr/sbin/apache2 -k start
             ├─2983 /usr/sbin/apache2 -k start
             ├─2984 /usr/sbin/apache2 -k start
             ├─2985 /usr/sbin/apache2 -k start
             ├─2986 /usr/sbin/apache2 -k start
             └─2987 /usr/sbin/apache2 -k start

mai 20 00:38:00 Cerise systemd[1]: Starting apache2.service - The Apache HTTP Server...
mai 20 00:38:00 Cerise systemd[1]: Started apache2.service - The Apache HTTP Server.

Merci de votre aide.

Hors ligne

#2 Le 20/05/2025, à 09:12

krodelabestiole

Re : localhost erreur 503 (Service unavailable)

tu as regardé la doc ?
11.4 Erreur 500

Hors ligne

#3 Le 20/05/2025, à 10:17

jlba

Re : localhost erreur 503 (Service unavailable)

Oui merci mais ça dépasse un peu mes compétences. Je n'ai qu'un logiciel installé c'est Dolibarr qui fonctionnait sans pb il y a encore quelques jours. Comment je peux savoir si c'est php ou un script php qui pose problème.

Dernière modification par jlba (Le 20/05/2025, à 10:19)

Hors ligne

#4 Le 20/05/2025, à 11:19

krodelabestiole

Re : localhost erreur 503 (Service unavailable)

Cette erreur indique que le serveur HTTP est dans les choux. Le service existe mais prend apparemment un temps interminable à répondre.

  • En premier lieu redémarrez Apache.

tu as redémarré ton ordi (pour faire simple) ?

sinon pour redémarrer seulement apache c'est aussi expliqué sur la même doc (ça m'étonnerait que ça dépasse tes compétences wink) :

Pour relancer apache2 : sudo systemctl restart apache2

2.3 Autres commandes utiles

Hors ligne

#5 Le 20/05/2025, à 11:24

krodelabestiole

Re : localhost erreur 503 (Service unavailable)

aussi dans 11. Problèmes courants :

En cas d'erreur du serveur, consultez avant tout les rapports d'erreurs dans le répertoire /var/log/apache2

Pour afficher les dernières 40 lignes du journal d'erreur par défaut :

sudo tail /var/log/apache2/error.log -n 40

Hors ligne

#6 Le 20/05/2025, à 11:43

jlba

Re : localhost erreur 503 (Service unavailable)

Voilà le retour.

[Tue May 20 01:22:02.182578 2025] [proxy:error] [pid 2647:tid 2647] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:02.182786 2025] [proxy_http:error] [pid 2647:tid 2647] [client 192.168.1.69:51422] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://192.168.1.69/
[Tue May 20 01:22:08.751290 2025] [proxy:error] [pid 2649:tid 2649] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:08.751373 2025] [proxy_http:error] [pid 2649:tid 2649] [client 192.168.1.69:53170] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 01:22:25.249986 2025] [proxy:error] [pid 2645:tid 2645] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:25.250220 2025] [proxy_http:error] [pid 2645:tid 2645] [client 127.0.0.1:47654] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 01:22:25.299252 2025] [proxy:error] [pid 2646:tid 2646] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:25.299350 2025] [proxy_http:error] [pid 2646:tid 2646] [client 127.0.0.1:47666] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://127.0.1.1/
[Tue May 20 01:22:32.293345 2025] [proxy:error] [pid 2648:tid 2648] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:32.293623 2025] [proxy_http:error] [pid 2648:tid 2648] [client 127.0.0.1:34878] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 01:22:32.350105 2025] [proxy:error] [pid 2647:tid 2647] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:22:32.350184 2025] [proxy_http:error] [pid 2647:tid 2647] [client 127.0.0.1:34892] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://127.0.0.1/
[Tue May 20 01:36:45.695279 2025] [mpm_prefork:notice] [pid 2593:tid 2593] AH00171: Graceful restart requested, doing restart
[Tue May 20 01:36:45.742729 2025] [mpm_prefork:notice] [pid 2593:tid 2593] AH00163: Apache/2.4.62 (Ubuntu) SVN/1.14.3 mod_perl/2.0.13 Perl/v5.38.2 configured -- resuming normal operations
[Tue May 20 01:36:45.742743 2025] [core:notice] [pid 2593:tid 2593] AH00094: Command line: '/usr/sbin/apache2'
[Tue May 20 01:36:51.821566 2025] [proxy:error] [pid 9217:tid 9217] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:36:51.821786 2025] [proxy_http:error] [pid 9217:tid 9217] [client 127.0.0.1:37188] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 01:36:51.893450 2025] [proxy:error] [pid 9218:tid 9218] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 01:36:51.893524 2025] [proxy_http:error] [pid 9218:tid 9218] [client 127.0.0.1:37190] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://localhost/dolibarr/
[Tue May 20 01:37:17.018568 2025] [mpm_prefork:notice] [pid 2593:tid 2593] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 20 10:09:19.080837 2025] [mpm_prefork:notice] [pid 2646:tid 2646] AH00163: Apache/2.4.62 (Ubuntu) SVN/1.14.3 mod_perl/2.0.13 Perl/v5.38.2 configured -- resuming normal operations
[Tue May 20 10:09:19.081777 2025] [core:notice] [pid 2646:tid 2646] AH00094: Command line: '/usr/sbin/apache2'
[Tue May 20 10:15:16.747264 2025] [proxy:error] [pid 2680:tid 2680] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:15:16.748172 2025] [proxy_http:error] [pid 2680:tid 2680] [client 127.0.0.1:49654] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 10:15:16.820838 2025] [proxy:error] [pid 2683:tid 2683] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:15:16.820972 2025] [proxy_http:error] [pid 2683:tid 2683] [client 127.0.0.1:49670] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://localhost/dolibarr/
[Tue May 20 10:28:06.453953 2025] [mpm_prefork:notice] [pid 2646:tid 2646] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 20 10:28:06.984238 2025] [mpm_prefork:notice] [pid 33144:tid 33144] AH00163: Apache/2.4.62 (Ubuntu) SVN/1.14.3 mod_perl/2.0.13 Perl/v5.38.2 configured -- resuming normal operations
[Tue May 20 10:28:06.984406 2025] [core:notice] [pid 33144:tid 33144] AH00094: Command line: '/usr/sbin/apache2'
[Tue May 20 10:28:48.497456 2025] [proxy:error] [pid 33147:tid 33147] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:28:48.497682 2025] [proxy_http:error] [pid 33147:tid 33147] [client 127.0.0.1:37428] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 10:28:48.578568 2025] [proxy:error] [pid 33148:tid 33148] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:28:48.578746 2025] [proxy_http:error] [pid 33148:tid 33148] [client 127.0.0.1:37440] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://localhost/dolibarr/
[Tue May 20 10:30:12.444287 2025] [mpm_prefork:notice] [pid 33144:tid 33144] AH00170: caught SIGWINCH, shutting down gracefully
[Tue May 20 10:30:38.149217 2025] [mpm_prefork:notice] [pid 2644:tid 2644] AH00163: Apache/2.4.62 (Ubuntu) SVN/1.14.3 mod_perl/2.0.13 Perl/v5.38.2 configured -- resuming normal operations
[Tue May 20 10:30:38.150555 2025] [core:notice] [pid 2644:tid 2644] AH00094: Command line: '/usr/sbin/apache2'
[Tue May 20 10:31:08.818841 2025] [proxy:error] [pid 2654:tid 2654] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:31:08.818974 2025] [proxy_http:error] [pid 2654:tid 2654] [client 127.0.0.1:41802] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Tue May 20 10:31:08.904325 2025] [proxy:error] [pid 2653:tid 2653] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:6000 (127.0.0.1:6000) failed
[Tue May 20 10:31:08.904497 2025] [proxy_http:error] [pid 2653:tid 2653] [client 127.0.0.1:41814] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://localhost/dolibarr/

Hors ligne

#7 Le 20/05/2025, à 15:13

krodelabestiole

Re : localhost erreur 503 (Service unavailable)

pourquoi utilises-tu un proxy ?

comment as-tu installé dolibarr ?

Hors ligne

#8 Le 20/05/2025, à 21:41

jlba

Re : localhost erreur 503 (Service unavailable)

2 excellentes questions.

Je ne sais pas pourquoi j'ai un proxy activé. Vérification dans paramètres / Réseau : Serveur mandataire : désactivé.

Quant à Dolibarr, j'ai du l'installer en version 16 avec Dolideb pour faire plus simple...

Dernière modification par jlba (Le 20/05/2025, à 23:47)

Hors ligne