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 07/04/2023, à 10:51

jajaX

domaine inaccessible au bout d'un certain temps

hello,

encore moi avec des soucis d'accès, au bout d'un certain temps, à mon domaine, en https: //mondomaine.xyz depuis les résolutions d'accès, tout court, et mon soucis de place à cause des logs de mysql.

contexte :

pc portable, ASUS K95VB (i5, 16 Gb de RAM...)  qui sert de serveur (capot fermé) sous kubuntu 22.04.
j'ai un domaine en https: //mondomaine.xyz
un autre domaine en http: //mondomaine.freeboxos.fr/

dessus, j'ai installé :

- nextcloud (accessible depuis mon domaine en https: //mondomaine.xyz)
- tiny-tiny rss  (accessible depuis mon domaine en https: //mondomaine.xyz)
- airsonic (accessible depuis http: //ipfixe:port)
- jellyfin  (accessible depuis http: //ipfixe:port)

je n'ai pas réussi à faire "avaler" à airsonic et jellyfin mon domaine. on verra après

je n'ai jamais installé wordpress (vous allez pourquoi je dis ça plus bas)

le status et config d'apache2 =>

sudo systemctl status apache2
[sudo] Mot de passe de server : 
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-04-07 09:05:51 CEST; 1h 17min ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 355407 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 355418 (/usr/sbin/apach)
      Tasks: 64 (limit: 18900)
     Memory: 85.9M
        CPU: 34.556s
     CGroup: /system.slice/apache2.service
             ├─355418 /usr/sbin/apache2 -k start
             ├─355419 /usr/sbin/apache2 -k start
             ├─355420 /usr/sbin/apache2 -k start
             ├─355421 /usr/sbin/apache2 -k start
             ├─355423 /usr/sbin/apache2 -k start
             ├─355425 /usr/sbin/apache2 -k start
             ├─355427 /usr/sbin/apache2 -k start
             ├─355626 /usr/sbin/apache2 -k start
             ├─355628 /usr/sbin/apache2 -k start
             ├─355629 /usr/sbin/apache2 -k start
             ├─355632 /usr/sbin/apache2 -k start
             ├─355633 /usr/sbin/apache2 -k start
             ├─355635 /usr/sbin/apache2 -k start
             ├─355637 /usr/sbin/apache2 -k start
             ├─359075 /usr/sbin/apache2 -k start
             ├─359082 /usr/sbin/apache2 -k start
             ├─359090 /usr/sbin/apache2 -k start
             ├─359092 /usr/sbin/apache2 -k start
             ├─359093 /usr/sbin/apache2 -k start
             ├─359102 /usr/sbin/apache2 -k start
             ├─359113 /usr/sbin/apache2 -k start
lines 1-31

je l'ai redémarré ce matin

mon fichier "000-default.conf" =>

<VirtualHost *:80>
    ServerName mondomaine.xyz
    ServerAdmin monadressemail@gmail.com
    DocumentRoot /var/www

   Redirect permanent / https://mondomaine.xyz/

</VirtualHost>

mon fichier "000-default-le-ssl.conf" =>

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName mondomaine.xyz
    ServerAdmin monadressemail@gmail.com
    DocumentRoot /var/www

    <Directory /var/www>
        Options -Indexes +FollowSymLinks
        Require all granted
    </Directory>
     		
    SSLEngine on

    Include /etc/letsencrypt/options-ssl-apache.conf
    # attention à ce que les directives qui suivent ne soit pas redondantes avec le fichier inclus ci-dessus !
    SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
    SSLHonorCipherOrder on
    SSLCompression off
    SSLOptions +StrictRequire
    SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
    
    SSLCertificateFile /etc/letsencrypt/live/mondomaine.xyz/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/mondomaine.xyz/privkey.pem

    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
    
    
    LogLevel warn
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # pour airsonic :
    ProxyPreserveHost On
    ProxyPass /airsonic http://mondomaine.xyz:4050/airsonic
    ProxyPassReverse /airsonic http://mondomaine.xyz:4050/airsonic
		

		

</VirtualHost>
</IfModule>

cela fonctionne très bien. simplement, au bout d'un certains temps, 2 jours environ, mon domaine, en https: //mondomaine.xyz ne réponds plus !! pas de soucis pour les accès à airsonic et jellyfin. le seul moyen que j'ai trouvé est de redémarré la machine. mais ce matin, en redémarrant seulement apache2, cela refonctionne.

rien de transcendant dans le fichier le fichier acces.log d'apache2. par contre, le fichier error.log, j'ai contasté des "trucs" bizarres" =>

error.log3 =>

[Tue Apr 04 00:00:03.931821 2023] [:error] [pid 1337] python_init: Python version mismatch, expected '3.10.2', found '3.10.6'.
[Tue Apr 04 00:00:03.931864 2023] [:error] [pid 1337] python_init: Python executable found '(null)'.
[Tue Apr 04 00:00:03.931868 2023] [:error] [pid 1337] python_init: Python path being used '(null)'.
[Tue Apr 04 00:00:03.931880 2023] [:notice] [pid 1337] mod_python: Creating 8 session mutexes based on 180 max processes and 0 max threads.
[Tue Apr 04 00:00:03.931889 2023] [:notice] [pid 1337] mod_python: using mutex_directory /tmp 
[Tue Apr 04 00:00:03.954453 2023] [mpm_prefork:notice] [pid 1337] AH00163: Apache/2.4.52 (Ubuntu) mod_auth_tkt/2.3.99b1 mod_fcgid/2.3.9 OpenSSL/3.0.2 mod_gnutls/0.9.0 GnuTLS/3.7.3 mod_jk/1.2.48 mod_python/3.5.0+git20211031 Python/3.10.6 mod_perl/2.0.12 Perl/v5.34.0 configured -- resuming normal operations
[Tue Apr 04 00:00:03.954478 2023] [core:notice] [pid 1337] AH00094: Command line: '/usr/sbin/apache2'
[Tue Apr 04 19:32:53.632273 2023] [proxy_fcgi:error] [pid 122011] [client 168.138.128.197:37208] AH01071: Got error 'Primary script unknown', referer: http://mondomaine.freeboxos.fr/wp-login.php
[Tue Apr 04 20:37:09.701183 2023] [proxy_fcgi:error] [pid 122015] [client 162.241.174.216:50758] AH01071: Got error 'Primary script unknown', referer: http://mondomaine.xyz/wp-login.php
[Wed Apr 05 00:00:02.706727 2023] [mpm_prefork:notice] [pid 1337] AH00171: Graceful restart requested, doing restart

des appels à un fichier wordpress !

error.log2 =>

[Wed Apr 05 07:09:10.954404 2023] [:error] [pid 1378] python_init: Python version mismatch, expected '3.10.2', found '3.10.6'.
[Wed Apr 05 07:09:10.954462 2023] [:error] [pid 1378] python_init: Python executable found '(null)'.
[Wed Apr 05 07:09:10.954470 2023] [:error] [pid 1378] python_init: Python path being used '(null)'.
[Wed Apr 05 07:09:10.954501 2023] [:notice] [pid 1378] mod_python: Creating 8 session mutexes based on 180 max processes and 0 max threads.
[Wed Apr 05 07:09:10.954508 2023] [:notice] [pid 1378] mod_python: using mutex_directory /tmp 
[Wed Apr 05 07:09:11.067068 2023] [mpm_prefork:notice] [pid 1378] AH00163: Apache/2.4.52 (Ubuntu) mod_auth_tkt/2.3.99b1 mod_fcgid/2.3.9 OpenSSL/3.0.2 mod_gnutls/0.9.0 GnuTLS/3.7.3 mod_jk/1.2.48 mod_python/3.5.0+git20211031 Python/3.10.6 mod_perl/2.0.12 Perl/v5.34.0 configured -- resuming normal operations
[Wed Apr 05 07:09:11.067118 2023] [core:notice] [pid 1378] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 05 11:57:34.075192 2023] [proxy_fcgi:error] [pid 5342] [client 192.168.1.254:45164] AH01071: Got error 'PHP message: PHP Warning:  POST Content-Length of 20946215 bytes exceeds the limit of 8388608 bytes in Unknown on line 0'
[Wed Apr 05 11:57:34.075308 2023] [proxy_fcgi:error] [pid 5342] [client 192.168.1.254:45164] AH01071: Got error 'PHP message: richdocumentscode (proxy.php) error exit, PID: 29916, Message: appimage_missing'
[Wed Apr 05 11:57:34.099122 2023] [proxy_fcgi:error] [pid 5928] [client 192.168.1.254:45166] AH01071: Got error 'PHP message: richdocumentscode (proxy.php) error exit, PID: 29916, Message: appimage_missing'
[Wed Apr 05 12:00:16.761230 2023] [proxy_fcgi:error] [pid 5933] [client 192.168.1.254:34264] AH01071: Got error 'PHP message: richdocumentscode (proxy.php) error exit, PID: 29581, Message: appimage_missing'
[Wed Apr 05 21:57:49.724864 2023] [proxy_fcgi:error] [pid 9459] [client 35.221.143.234:37834] AH01071: Got error 'Primary script unknown', referer: http://mondomain.xyz
[Thu Apr 06 00:00:02.387975 2023] [mpm_prefork:notice] [pid 1378] AH00171: Graceful restart requested, doing restart

error.log1 =>

[Thu Apr 06 00:00:03.623559 2023] [:error] [pid 1378] python_init: Python version mismatch, expected '3.10.2', found '3.10.6'.
[Thu Apr 06 00:00:03.623598 2023] [:error] [pid 1378] python_init: Python executable found '(null)'.
[Thu Apr 06 00:00:03.623602 2023] [:error] [pid 1378] python_init: Python path being used '(null)'.
[Thu Apr 06 00:00:03.623614 2023] [:notice] [pid 1378] mod_python: Creating 8 session mutexes based on 180 max processes and 0 max threads.
[Thu Apr 06 00:00:03.623623 2023] [:notice] [pid 1378] mod_python: using mutex_directory /tmp 
[Thu Apr 06 00:00:03.645540 2023] [mpm_prefork:notice] [pid 1378] AH00163: Apache/2.4.52 (Ubuntu) mod_auth_tkt/2.3.99b1 mod_fcgid/2.3.9 OpenSSL/3.0.2 mod_gnutls/0.9.0 GnuTLS/3.7.3 mod_jk/1.2.48 mod_python/3.5.0+git20211031 Python/3.10.6 mod_perl/2.0.12 Perl/v5.34.0 configured -- resuming normal operations
[Thu Apr 06 00:00:03.645565 2023] [core:notice] [pid 1378] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 06 00:04:55.478225 2023] [proxy_fcgi:error] [pid 88078] [client 115.165.166.186:44708] AH01071: Got error 'Primary script unknown', referer: http://mondomaine.xyz/wp-login.php
[Thu Apr 06 00:20:36.112074 2023] [proxy_fcgi:error] [pid 88352] [client 13.127.176.69:60352] AH01071: Got error 'Primary script unknown', referer: http://mondomaine.freeboxos.fr/wp-login.php
[Thu Apr 06 09:24:55.669594 2023] [proxy_fcgi:error] [pid 88080] [client 134.122.78.116:39572] AH01071: Got error 'Primary script unknown'
[Thu Apr 06 13:38:44.504878 2023] [core:error] [pid 127491] [client 80.66.77.236:34242] AH10244: invalid URI path (/../../mnt/mtd/Config/Account1)
[Thu Apr 06 14:32:58.050045 2023] [ssl:error] [pid 127506] [client 3.95.211.243:49002] AH02042: rejecting client initiated renegotiation
[Thu Apr 06 18:49:33.405569 2023] [core:error] [pid 127359] [client 185.180.143.7:60810] AH10244: invalid URI path (/icons/.%%32%65/.%%32%65/apache2/icons/non-existant-image.png)
[Thu Apr 06 18:49:33.873431 2023] [core:error] [pid 88242] [client 185.180.143.7:33070] AH10244: invalid URI path (/icons/.%2e/%2e%2e/apache2/icons/sphere1.png)
[Thu Apr 06 18:49:34.341335 2023] [core:error] [pid 127351] [client 185.180.143.7:34016] AH10244: invalid URI path (/icons/.%%32%65/.%%32%65/apache2/icons/sphere1.png)
[Thu Apr 06 22:46:55.896778 2023] [proxy_fcgi:error] [pid 88078] [client 41.231.54.187:36930] AH01071: Got error 'Primary script unknown', referer: http://mondomaine.xyz/wp-login.php
[Fri Apr 07 00:00:02.318344 2023] [mpm_prefork:notice] [pid 1378] AH00171: Graceful restart requested, doing restart

error.log

[Fri Apr 07 09:05:51.837409 2023] [:error] [pid 355418] python_init: Python version mismatch, expected '3.10.2', found '3.10.6'.
[Fri Apr 07 09:05:51.837455 2023] [:error] [pid 355418] python_init: Python executable found '(null)'.
[Fri Apr 07 09:05:51.837460 2023] [:error] [pid 355418] python_init: Python path being used '(null)'.
[Fri Apr 07 09:05:51.837484 2023] [:notice] [pid 355418] mod_python: Creating 8 session mutexes based on 180 max processes and 0 max threads.
[Fri Apr 07 09:05:51.837490 2023] [:notice] [pid 355418] mod_python: using mutex_directory /tmp 
[Fri Apr 07 09:05:51.857903 2023] [core:warn] [pid 355418] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Apr 07 09:05:51.867792 2023] [mpm_prefork:notice] [pid 355418] AH00163: Apache/2.4.52 (Ubuntu) mod_auth_tkt/2.3.99b1 mod_fcgid/2.3.9 OpenSSL/3.0.2 mod_gnutls/0.9.0 GnuTLS/3.7.3 mod_jk/1.2.48 mod_python/3.5.0+git20211031 Python/3.10.6 mod_perl/2.0.12 Perl/v5.34.0 configured -- resuming normal operations
[Fri Apr 07 09:05:51.867829 2023] [core:notice] [pid 355418] AH00094: Command line: '/usr/sbin/apache2'

est-ce ces connexions "bizarres" qui fait que l'accès est coupé ? mauvaise config ?

merci de votre aide wink


@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne

#2 Le 27/04/2023, à 15:37

jajaX

Re : domaine inaccessible au bout d'un certain temps

hello,

je remonte le fil. comme vous pouvez le voir plus haut, apache2 génère pas mal de "sous-processus" qui passe en "mode zombie" au fil du temps.
c'est pour ça que cela ne fonctionne plus au bout d'un moment.

le fait de le relancer, supprimes ces processus.

j'ai essayé de regarder le pourquoi du comment mais sans rien trouvé grand chose.

une idée ?


@+
jajaX
Asus X93SM-YZ157V / Asus X93SM-YZ065V sous KDE Neon
ASUS K95VB sous Kubuntu 22.04 Jammy Jellyfish (64 bits) / ACER Aspire 5612 WLMI sous Kubuntu 18.04 Bionic Beaver (32 bits)

Hors ligne