upgrade stretch->buster raise multiple listeners problem

Discussion in 'Installation/Configuration' started by kmchen, Jul 26, 2019.

  1. kmchen

    kmchen Member

    After an upgrade from STRETCH to BUSTER ISPCONFIG vhost raise a syntax error:

    Code:
    :~# systemctl restart apache2
    Job for apache2.service failed because the control process exited with error code.
    ...
    juil. 26 19:29:26 ks307144 apachectl[21680]: AH00526: Syntax error on line 6 of /etc/apache2/sites-enabled/000-apps.vhost:
    juil. 26 19:29:26 ks307144 apachectl[21680]: Cannot define multiple Listeners on the same IP:port
    juil. 26 19:29:26 ks307144 apachectl[21680]: Action 'start' failed.
    ...
    ~# rgrep 8081 /etc/apache2/
    /etc/apache2/sites-available/apps.vhost: Listen 8081
    /etc/apache2/sites-available/apps.vhost: NameVirtualHost *:8081
    /etc/apache2/sites-available/apps.vhost:<VirtualHost _default_:8081>
    
    But I can't find multiple port definition on port 8081 defined on line 6 of /etc/apache2/sites-enabled/000-apps.vhost

    I tried "php -q update.php" and reconfigure all service without success.

    Thanks for your help
     
  2. kmchen

    kmchen Member

    I commented the lines that raise the error but now ISPCONFIG do not work anymore and I can't see where would be that multiple definition:
    Code:
    :~# rgrep -e 8081 /etc/apache2/
    /etc/apache2/sites-available/apps.vhost:# Listen 8081
    /etc/apache2/sites-available/apps.vhost: NameVirtualHost *:8081
    /etc/apache2/sites-available/apps.vhost:<VirtualHost _default_:8081>
    :~# lsof -i:8081
    
    Any idea apreciated
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Take a look at the /etc/apache2/ file, maybe it contains multiple include statements now for the files from sites-available folder?
     
  4. kmchen

    kmchen Member

    What do you mean by "/etc/apache2/ file"

    It would be an included file out of /etc/apache2 (rgrep is looking for all occurences recursively I guess)
     
  5. kmchen

    kmchen Member

    A new listen to 8081 suddenly appeared in buster, thow, but if I comment ispconfig listen noone is listening:
    Code:
    kmc@kmcs:~$ sudo netstat -tulpn | grep 8081
    kmc@kmcs:~$
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the apache2.conf file to ensure that it does not contain two include lines for files in /etc/apache2/sites-enabled folder.
     
  7. kmchen

    kmchen Member

    Yes !
    Here was the guilty includeOptional :
    Code:
    # Include generic snippets of statements
    IncludeOptional conf-enabled/*.conf
    
    # Include the virtual host configurations:
    #guilty commented out-->IncludeOptional sites-enabled/
    IncludeOptional sites-enabled/*.vhost
    
    Thanks a million Till
     

Share This Page