HELP! New ISPConfig Upgrade Messed up server!

Discussion in 'Installation/Configuration' started by midcarolina, Nov 2, 2011.

  1. midcarolina

    midcarolina New Member

    I was alerted to the new update of ISPConfig 3.0.4 and updated it. Now I cannot access the CPanel. All browers show "not found" still using port :8080
    Luckily the sites are running, and I was able to access phpMyAdmin from the URL. Tried to do a DB repair to no avail. Still can't access CPanel.

    Also, amavisd is just GONE! The mail server was working brilliantly until the update. Now Linux does not even recognize amavisd as a service.

    Need help quick. Unhappy customers very soon. Thanks.
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    1) The amavis service can not have been removed by the update as there is no code to install or uninstall Linux system packages in the ispconfig updater. Please post the output of:

    ls /etc/init.d/amavis*

    2) When the websites are reachable, then apache is working and the controlpenal must be reachble too. Maybe you made a typo during update and it listens now to a different port. Please post the file

    /etc/apache2/sites-available/ispconfig.vhost
     
  3. midcarolina

    midcarolina New Member

    For the first command line, I get a response simply to


    /etc/init.d/amavisd (with no action) So I run this with "start". The outcome is:

    Starting amavisd: drop_priv: No such username:

    The second outcome is not available anyway, because I have never used apache2 for any commands so it is not recognized. Only httpd is recognized, so I simply followed the path in the root SSH file path like so:

    /etc/httpd/conf/sites-available

    Where usually my webserver is listed last, but is no longer there. What are the best ways to fix / repair amavisd and repair the webserver under "sites-available"?

    Thanks Till
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    1) Which Linux distribution do you use?
    2) Is the whole /etc/httpd/conf/sites-available folder missing or just the file for the ispconfig vhost?
     
  5. midcarolina

    midcarolina New Member

    Linux distro is Fedora 14 64 bit and nothing is missing. The actual file ispconfig.vhost is there.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Ok, so please post the content of that file then.

    Regarding amavis, please post the output of:

    grep amavis /etc/passwd
     
  7. midcarolina

    midcarolina New Member

    This is the out come:


    amavis:x:492:489::/var/spool/amavisd:/sbin/nologin
     
  8. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please try this:

    cp -pf /etc/amavisd/amavisd.conf /etc/amavisd/amavisd.conf.bak
    cp -pf /etc/amavisd/amavisd.conf~ /etc/amavisd/amavisd.conf
    /etc/init.d/amavisd start

    and dont forget to post the requested ispconfig.vhost file.
     
  9. midcarolina

    midcarolina New Member

    I receive the same returned error. I am asked if I want to replace the conf file, so I continue on, then run /etc/init.d/amavisd start - outcome:

    Starting amavisd: drop_priv: No such username:

    ispconfig.vhost is there, the file is empty (the stated size is 0 and opening it in a code editor, it is empty...nothing)
     
  10. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Check in the /etc/amavisd/amavisd.conf file which user and group are set in the file for amavisd and then check if the user and group exist in /etc/passwd and /etc/group

    - How did you install the update?
    - Did you receive any errors during update on the shell?
    - Is your hardisk full? Check with:

    df -h


    Regarding the empty ispconfig.vhost file, please find the content below:

    Code:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################
    
    NameVirtualHost *:8080
    
    <VirtualHost _default_:8080>
      ServerAdmin webmaster@localhost
      
      <IfModule mod_fcgid.c>
        DocumentRoot /var/www/ispconfig/
        SuexecUserGroup ispconfig ispconfig
        <Directory /var/www/ispconfig/>
          Options Indexes FollowSymLinks MultiViews +ExecCGI
          AllowOverride AuthConfig Indexes Limit Options FileInfo
          AddHandler fcgid-script .php
          FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php
          Order allow,deny
          Allow from all
        </Directory>
      </IfModule>
      
      <IfModule mod_php5.c>
        DocumentRoot /usr/local/ispconfig/interface/web/
        AddType application/x-httpd-php .php
        <Directory /usr/local/ispconfig/interface/web>
          Options FollowSymLinks
          AllowOverride None
          Order allow,deny
          Allow from all
    	  php_value magic_quotes_gpc        0
        </Directory>
      </IfModule>
      
      # ErrorLog /var/log/apache2/error.log
      # CustomLog /var/log/apache2/access.log combined
      ServerSignature Off
      
      <IfModule mod_security2.c>
        SecRuleEngine Off
      </IfModule>
    
      # SSL Configuration
      {ssl_comment}SSLEngine On
      {ssl_comment}SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
      {ssl_comment}SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
    
    </VirtualHost>
    
    <Directory /var/www/php-cgi-scripts>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
    
    <Directory /var/www/php-fcgi-scripts>
        AllowOverride None
        Order Deny,Allow
        Deny from all
    </Directory>
     
  11. midcarolina

    midcarolina New Member

    Ok, with the upgrade, I was alerted to it in the admin CPanel, so I elected to click the link under "System" (bottom left), to upgrade / update IPSConfig. It asked if I was sure. I clicked to continue and was given a message that the update was under way.

    Without giving you the HD output, no, I have TONS of storage on this server. I am currently using about 17% of 1.3 TB (Includes OS)
     
  12. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    In general it is always better to install updates on the shell as you would see if a error occurs then. The update procedure for every release is outlined in the release notes of that release which are availble on ispconfig.org and here in the forum. What you can try now is to redo the update on the shell. But first, you should make a backup of the /etc and ispconfig directory. Execute tehse commands as root user on the shell:

    tar pcfz /root/etc.tar.gz /etc
    tar pcfz /root/ispconfig.tar.gz /usr/local/ispconfig

    and do a backup of the ispconfig mysql database with phpmyadmin.

    Then follow these steps to redo the update:

    cd /tmp
    wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
    tar xvfz ISPConfig-3-stable.tar.gz
    cd ispconfig3_install/install
    php -q update.php
     
  13. midcarolina

    midcarolina New Member

    Yes, since replacing the ispconfig.vhost file, I now receive a 500 internal server error.

    I will try this. I am now concerned about a mail system that was working all too well!
     
  14. midcarolina

    midcarolina New Member

    The command line update returns this error code for ispconfig's url:


    Resolving www.ispconfig.org... 78.46.59.59
    Connecting to www.ispconfig.org|78.46.59.59|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2011-11-02 09:18:32 ERROR 404: Not Found.
     
  15. midcarolina

    midcarolina New Member

    ISPConfig 3 update

    Maybe Till will get this?
    Since the upgrade of ISPConfig 3 to 3.0.4, I have been able to repair amavisd, but still get a 500 internal server error when trying to access ISPConfig CPanel on port 8080. I have checked log after log, and this is the only thing that I find (that fits the upgrade time frame). Repeated error:

    PHP Notice: Use of undefined constant ISPC_CLASS_PATH - assumed 'ISPC_CLASS_PATH' in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:34:01 2011] [error] [client 173.93.151.171] PHP Warning: include_once(ISPC_CLASS_PATH/auth.inc.php): failed to open stream: No such file or directory in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:34:01 2011] [error] [client 173.93.151.171] PHP Warning: include_once(): Failed opening 'ISPC_CLASS_PATH/auth.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:34:01 2011] [error] [client 173.93.151.171] PHP Fatal error: Class 'auth' not found in /usr/local/ispconfig/interface/lib/app.inc.php on line 92
    [Wed Nov 02 14:42:04 2011] [error] [client 173.93.151.171] PHP Notice: Use of undefined constant ISPC_CLASS_PATH - assumed 'ISPC_CLASS_PATH' in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:04 2011] [error] [client 173.93.151.171] PHP Warning: include_once(ISPC_CLASS_PATH/auth.inc.php): failed to open stream: No such file or directory in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:04 2011] [error] [client 173.93.151.171] PHP Warning: include_once(): Failed opening 'ISPC_CLASS_PATH/auth.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:04 2011] [error] [client 173.93.151.171] PHP Fatal error: Class 'auth' not found in /usr/local/ispconfig/interface/lib/app.inc.php on line 92
    [Wed Nov 02 14:42:15 2011] [error] [client 173.93.151.171] PHP Notice: Use of undefined constant ISPC_CLASS_PATH - assumed 'ISPC_CLASS_PATH' in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:15 2011] [error] [client 173.93.151.171] PHP Warning: include_once(ISPC_CLASS_PATH/auth.inc.php): failed to open stream: No such file or directory in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:15 2011] [error] [client 173.93.151.171] PHP Warning: include_once(): Failed opening 'ISPC_CLASS_PATH/auth.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/ispconfig/interface/lib/app.inc.php on line 91
    [Wed Nov 02 14:42:15 2011] [error] [client 173.93.151.171] PHP Fatal error: Class 'auth' not found in /usr/local/ispconfig/interface/lib/app.inc.php on line 92

    Hope you may be able to help? Amavisd was a nice chore, but it is not working. Thank you.
     
  16. CLC

    CLC New Member

    Updated by running script ispconfig_update.sh
    See attached file for errors during update.
     

    Attached Files:

  17. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Then your server is not able to resolve dns names. Please check the file /etc/resolv.conf and make sure that the dns serevers listed there are working and reachable.
     
  18. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The directory that you used was a directory which had to be deleted during update and that caused this errors. But the errors dont indicate that the update went wrong.

    The next time you run a update, dont run it from a directory in /usr/local/ispconfig, better run it from e.g. /root or any other directory that does not get replaced.
     
  19. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    1) What was the reason for the amavisd issue and how did you repair it?

    2) Does the file /usr/local/ispconfig/interface/lib/config.inc.php exist? And does it contain this line?

    define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes');
     
  20. midcarolina

    midcarolina New Member

    Well, nothing is working for me repairing the system. This is a lesson learned that I should have learned long ago. Never jump on an update just because it's there. Wait for about three months until all the dummys like myself have been the ginny pigs on update bugs, crashes, etc., until the release is stable. Hard lesson learned. Lots to fix....don't know where to start.

    The biggest note: Don't place an "upgrade" link inside of any software design when you don't know or intend for it to function perfectly. If your original intent is for any upgrade to perform at its best through SSH, remove the option to update by CPanel.
     

Share This Page