vhost slave server not updating after update 3.2.9

Discussion in 'ISPConfig 3 Priority Support' started by senormedia, Nov 30, 2022.

  1. senormedia

    senormedia Member HowtoForge Supporter

    vhost on slave server are not updating after update
    3.2.9
    there is nothing on ispconfig log, also did tools resysnc
    it is creating a site but not the vhost or updating
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. senormedia

    senormedia Member HowtoForge Supporter

    All i got was finished server.php after running
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you missed enabling debug mode, see the link I posted above.
     
  5. senormedia

    senormedia Member HowtoForge Supporter

    02.12.2022-00:55 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    02.12.2022-00:55 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    And you run server.sh on the slave system, right? According to the debug output, there I nothing to update on this system and also no connection error.
     
  7. senormedia

    senormedia Member HowtoForge Supporter

    correct on slave, do i do it on master

    it creates a site but no vhost so the connection seems fine

    how can i go about fixing
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    No, just run it on the slave as the slave ouulls updates from master.

    A site in ISPConfig is vhost. So what exactly is missing? To debug this, you must change something in the site, press save, then run server.sh. and take care you really commented out server.sh in root crontab first, otherwise debug might show wrong results.
     
  9. senormedia

    senormedia Member HowtoForge Supporter

    The vhost that is not working is the site for example if i update the derivatives for nginx nothing happens or if i create a new site on that server it will create the directory but nothing in sites-available


    So make a change then run /usr/local/ispconfig/server/server.sh with crontab -e ispconfig/cron.log commented out ?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Correct, as described in the debug tutorial.
     
  11. senormedia

    senormedia Member HowtoForge Supporter

    04.12.2022-01:13 - DEBUG [plugins.inc:118] - Calling function 'ssl' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    04.12.2022-01:13 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'apache2_plugin' raised by event 'web_domain_update'.
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: chattr -i '/var/www/clients/client2/web10' - return code: 0
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client2/web10' - return code: 0
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: chattr +i '/var/www/clients/client2/web10' - return code: 0
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 1
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apachectl' 2> /dev/null - return code: 1
    04.12.2022-01:13 - DEBUG [system.inc:2225] - Could not check apache version, apachectl not found.
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:1828] - Enable SSL for: mywebsite.com
    PHP Warning: file_put_contents(/etc/apache2/sites-available/mywebsite.com.vhost): failed to open stream: No such file or directory in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 865
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:1874] - Writing the vhost file: /etc/apache2/sites-available/mywebsite.com.vhost
    PHP Warning: fopen(/etc/apache2/sites-available/mywebsite.com.vhost): failed to open stream: No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 2965
    PHP Warning: fgets() expects parameter 1 to be resource, bool given in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 2972
    PHP Warning: fclose() expects parameter 1 to be resource, bool given in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 3035
    PHP Warning: file_put_contents(/etc/apache2/sites-available/mywebsite.com.vhost): failed to open stream: No such file or directory in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 865
    PHP Warning: symlink(): No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1908
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:1909] - Creating symlink: /etc/apache2/sites-enabled/100-mywebsite.com.vhost->/etc/apache2/sites-available/mywebsite.com.vhost
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apache2ctl' 2> /dev/null - return code: 1
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: which 'apachectl' 2> /dev/null - return code: 1
    04.12.2022-01:13 - DEBUG [system.inc:2225] - Could not check apache version, apachectl not found.
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:3445] - Writing the PHP-FPM config file: /etc/php/8.1/fpm/pool.d/web23.conf
    04.12.2022-01:13 - DEBUG [services.inc:56] - Calling function 'restartPHP_FPM' from module 'web_module'.
    04.12.2022-01:13 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'php8.1-fpm' 2>&1 - return code: 0
    04.12.2022-01:13 - DEBUG [web module.inc:316] - Restarting php-fpm: systemctl reload php8.1-fpm.service
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:1992] - Apache status is: running
    04.12.2022-01:13 - DEBUG [services.inc:56] - Calling function 'restartHttpd' from module 'web_module'.
    04.12.2022-01:13 - DEBUG [system.inc:2082] - Trying to use Systemd to restart service
    04.12.2022-01:13 - DEBUG [system.inc:2399] - safe_exec cmd: systemctl is-enabled 'nginx' 2>&1 - return code: 0
    04.12.2022-01:13 - DEBUG [web module.inc:236] - Checking nginx configuration...
    04.12.2022-01:13 - DEBUG [web module.inc:239] - nginx configuration ok!
    04.12.2022-01:13 - DEBUG [web module.inc:246] - Restarting httpd: systemctl restart nginx.service
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:1995] - Apache restart return value is: 0
    04.12.2022-01:13 - DEBUG [apache2 plugin.inc:2006] - Apache online status after restart is: running
    04.12.2022-01:13 - DEBUG [plugins.inc:118] - Calling function 'ssl' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
    04.12.2022-01:13 - DEBUG [plugins.inc:118] - Calling function 'update' from plugin 'nginx_plugin' raised by event 'web_domain_update'.
    04.12.2022-01:13 - WARNING - The nginx plugin cannot be used together with the apache2 plugin.
    04.12.2022-01:13 - DEBUG [modules.inc:205] - Processed datalog_id 2090
    04.12.2022-01:13 - DEBUG [server:217] - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
     
  12. senormedia

    senormedia Member HowtoForge Supporter

  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Which operating system do you use?
     
  14. senormedia

    senormedia Member HowtoForge Supporter

    Debian 11

    Master is Apache
    And all slave servers are nginx

    I did the same update on another set up i have and 2 of the slaves worked perfectly fine and they where nginx as well but one failed like my set up
    same os and eveything
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely you logged in wrongly as root user. On Debian 11, you can not use just "su" to become root, you must use "su -" command, if you use just su, then your root user will not be able to see installed software as PATH variable is not set correctly which then results that the updater or any software you use or install behaves wrong.
     
  16. senormedia

    senormedia Member HowtoForge Supporter

    I used su --

    how can i fix it or im screwed?
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Delete the apache plugin symlink in /usr/local/ispconfig/server/plugins-enabled/ folder.
     
  18. senormedia

    senormedia Member HowtoForge Supporter

    That seem to do the trick thank you, do you know what i did wrong so it wont happen on next update

    Also new thing i saw on update is that it ask you to stop services for example mail should you press no on that or yes?
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    The update does not ask about stopping services. The update asks if a specific service shall be configured if it was not configured before, so you should answer with yes only when you added this service new and it shall be used now and was not used before. As mentioned before, the most likely reason for your issue was to not use 'su -' and the updater asked you in that case which server to configure.
     

Share This Page