<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Je viens de refaire une installation toute neuve de Debian (Jessie)
    avec wapt uniquement et j'ai le même problème. J'utilise Apache
    2.4.10 et voici le contenu du log <br>
    <br>
    <br>
    *** Starting uWSGI 2.0.7-debian (64bit) on [Wed May 20 10:08:04
    2015] ***<br>
    compiled with version: 4.9.1 on 25 October 2014 19:17:54<br>
    os: Linux-3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1
    (2015-04-24)<br>
    nodename: srv-omv<br>
    machine: x86_64<br>
    clock source: unix<br>
    pcre jit disabled<br>
    detected number of CPU cores: 4<br>
    current working directory: /home/administrateur<br>
    writing pidfile to /var/run/waptserver.pid<br>
    detected binary path: /usr/bin/uwsgi-core<br>
    setgid() to 33<br>
    setuid() to 118<br>
    your processes number limit is 31835<br>
    your memory page size is 4096 bytes<br>
    detected max file descriptor number: 65536<br>
    lock engine: pthread robust mutexes<br>
    thunder lock: disabled (you can enable it with --thunder-lock)<br>
    uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3<br>
    Python version: 2.7.9 (default, Mar  1 2015, 13:01:26)  [GCC 4.9.2]<br>
    Python main interpreter initialized at 0x143f680<br>
    python threads support enabled<br>
    your server socket listen backlog is limited to 100 connections<br>
    your mercy for graceful operations on workers is 60 seconds<br>
    mapped 1237056 bytes (1208 KB) for 16 cores<br>
    *** Operational MODE: preforking ***<br>
    WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter
    0x143f680 pid: 6547 (default app)<br>
    *** uWSGI is running in multiple interpreter mode ***<br>
    spawned uWSGI master process (pid: 6547)<br>
    spawned uWSGI worker 1 (pid: 6678, cores: 1)<br>
    spawned uWSGI worker 2 (pid: 6679, cores: 1)<br>
    spawned uWSGI worker 3 (pid: 6680, cores: 1)<br>
    spawned uWSGI worker 4 (pid: 6681, cores: 1)<br>
    spawned uWSGI worker 5 (pid: 6682, cores: 1)<br>
    spawned uWSGI worker 6 (pid: 6683, cores: 1)<br>
    spawned uWSGI worker 7 (pid: 6684, cores: 1)<br>
    spawned uWSGI worker 8 (pid: 6685, cores: 1)<br>
    spawned uWSGI worker 9 (pid: 6686, cores: 1)<br>
    spawned uWSGI worker 10 (pid: 6687, cores: 1)<br>
    spawned uWSGI worker 11 (pid: 6688, cores: 1)<br>
    spawned uWSGI worker 12 (pid: 6689, cores: 1)<br>
    spawned uWSGI worker 13 (pid: 6690, cores: 1)<br>
    spawned uWSGI worker 14 (pid: 6691, cores: 1)<br>
    spawned uWSGI worker 15 (pid: 6692, cores: 1)<br>
    spawned uWSGI worker 16 (pid: 6693, cores: 1)<br>
    Gracefully killing worker 7 (pid: 6684)...<br>
    *** Starting uWSGI 2.0.7-debian (64bit) on [Wed May 20 10:12:48
    2015] ***<br>
    compiled with version: 4.9.1 on 25 October 2014 19:17:54<br>
    os: Linux-3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1
    (2015-04-24)<br>
    nodename: srv-omv<br>
    machine: x86_64<br>
    clock source: unix<br>
    pcre jit disabled<br>
    detected number of CPU cores: 4<br>
    current working directory: /<br>
    <br>
    <br>
    Et voici l'erreur que j'obtiens à l'adresse <a class="moz-txt-link-freetext" href="https://10.111.XXX.XXX">https://10.111.XXX.XXX</a><br>
    <h1>Proxy Error<br>
    </h1>
    <p>The proxy server received an invalid
      response from an upstream server.<br>
      The proxy server could not handle the request <em><a
          href="https://10.111.15.2/">GET /</a></em>.</p>
    <p>
      Reason: <strong>Error reading from remote server</strong></p>
    <hr>
    <address>Apache/2.4.10 (Debian) Server at 10.111.15.2 Port 443<br>
      <br>
      <br>
      <br>
    </address>
    <br>
    <br>
    <div class="moz-cite-prefix">Le 20/05/2015 09:27, Denis Cardon a
      écrit :<br>
    </div>
    <blockquote cite="mid:555C375F.6040101@tranquil-it-systems.fr"
      type="cite">Bonjour Joel,
      <br>
      <br>
      <blockquote type="cite">
        <br>
        J'ai un problème d'accès suite à une installation sur un serveur
        NAS Debian.
        <br>
        <br>
        J'ai pris soins de libérer les ports 80, 443 et 8080 avant
        <br>
        l'installation. L'installation c'est correctement déroulé mais
        j'ai un
        <br>
        retour erreur lorsque je j'essaie d'accéder au serveur WAPT.
        Après
        <br>
        quelques recherche sur le net, modifier les temps d'attente du
        proxy
        <br>
        pourrait résoudre mon problème. C'est pour l'instant la seule
        piste que
        <br>
        j'ai sous le coude.
        <br>
        <br>
        Auriez vous des pistes de recherche ou des commandes pouvant
        m'aider sur
        <br>
        la résolution de mon problème ???
        <br>
        <br>
        <br>
        <br>
        <br>
        ====================================================
        <br>
        *Page : https://10.111.15.2/*
        <br>
        <br>
        <br>
          Proxy Error
        <br>
        <br>
        The proxy server received an invalid response from an upstream
        server.
        <br>
        The proxy server could not handle the request /GET /
        <br>
        <https://10.111.15.2/>/.
        <br>
        <br>
        Reason: *Error reading from remote server*
        <br>
        <br>
------------------------------------------------------------------------
        <br>
        Apache/2.2.22 (Debian) Server at 10.111.15.2 Port 443
        <br>
      </blockquote>
      <br>
      Quel est la version de apache, votre NAS fait tourner une version
      wheezy de debian, donc ça devrait être bon de ce côté là.
      <br>
      <br>
      Le message sous-entend que apache n'a pas pu contacter le service
      uwsgi/python. Il faudrait regarder les log /var/log/waptserver.log
      pour vérifier si il n'y a pas un message d'erreur.
      <br>
      <br>
      Pour tester la partie python indépendamment du reste, vous pouvez
      lancer le serveur python avec la commande suivante:
      <br>
       /etc/init.d/waptserver stop
      <br>
       python /opt/wapt/waptserver/waptserver.py
      <br>
      <br>
      Par défaut le service uwsgi et le python n'écoute uniquement sur
      localhost. Une manière de tester la partie python sans apache est
      de modifier la ligne 2009, vous remplacer 127.0.0.1 par 0.0.0.0:
      <br>
       server = Rocket(('0.0.0.0', port), 'wsgi', {"wsgi_app":app})
      <br>
      <br>
      Ainsi le serveur python sera accessible directement sur le port
      8080 depuis votre poste d'administration sans passer par apache.
      <br>
      <br>
      Cordialement,
      <br>
      <br>
      Denis Cardon
      <br>
      <br>
      <blockquote type="cite">
        <br>
        ====================================================
        <br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        WAPT mailing list
        <br>
        WAPT@lists.tranquil.it
        <br>
        http://lists.tranquil.it/listinfo/wapt
        <br>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>