Unable to access control panel after upgrade to 1.2.2

  • Hello


    I have just upgraded my old 1.1.5 to the latest i-MSCP 1.2.2 and now cant access the control panel anymore.


    Upgrade from 1.1.5 to 1.2.2
    OS: Debian Sqeezy 6.0.10


    Ports i have changed to random.


    Thanks for any help.


    Regards
    Ron

  • Did you check the dedicated ports?
    What do you mean you changed the ports to 'random'?


    Default is 8080 and 4443


    If you want to know what port it is running at run
    netstat -antp | grep nginx


    If it does not show up there, try the installation again with the -d option and show us the logs

  • Hello theemstra


    I finaly got it working now. I reinstalled and now seems to work.


    However a strange thing happens:
    The previous control panel page returns a domain alias of a customer.
    It used to be cp.lion.tdl.com now it is cp.lion.dtl.com:3726.
    When I navigate to the cp.lion.tdl.com it show the page.


    Thanks.
    Regards
    Ron

  • I have the very same problem after upgrading from 1.1.13 to 1.2.2


    panel was previously available under

    Code
    1. https://domain.tld[:433]


    Now

    Code
    1. https://domain.tld[:433]

    maps to a (random) customer domain and the panel is reachable under


    Code
    1. https://domain.tld:4443


    I've tried to switch back the panel to port 443 via autoinstaller but got the error


    "The Port '443' is reserved or not valid."



    How can this be resolved?

  • By reading the announcement or using the PanelRedirect plugin

  • It's incredible how users are not able to read errata files for new releases...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks for that hint, I've installed the PanelRedirect plugin and now


    Code
    1. https://domain.tld


    redirects to another customer domain :-/


    plugins/PanelRedirect/config.php

    Code
    1. return array(
    2. // Redirection type ( default: proxy )
    3. // Possible values: proxy, redirect
    4. 'type' => 'proxy'
    5. )
  • Quote

    Wait what? Is it really a redirect (url changes) or just another content? Also is domain.tld your panel domain?


    Its a 301 redirect


    Quote

    Distribution in use (Identifiant and codename)


    Code
    1. lsb_release -a
    2. No LSB modules are available.
    3. Distributor ID: Ubuntu
    4. Description: Ubuntu 14.04.2 LTS
    5. Release: 14.04
    6. Codename: trusty


    Quote

    i-MSCP version in use (Version and codename)


    i-MSCP 1.2.2
    Build: 20150212
    Codename: Andromeda


    Quote

    Server implementation in use (dovecot or courier, Apache ITK, Apache FPM or Apache FCGID...)


    dovecot, Apache FPM


    Quote

    The logs from /var/log/imscp which are filled only when the debug mode is enabled in your /etc/imscp/imscp.conf file.Any relevant logs which belong to the service that cause a problem


    Can you please say me, which logs are relevant to resolve this issue?

  • Maybe this is useful:


    https://hosting.fqdn.tld:443 is 301 redirected to http://customerX.tld:80
    http://hosting.fqdn.tld:80 is 301 redirected to http://sub.customerY.tld:80


    vhost configs for PanelRedirect seems present at the right place

    Code
    1. # ls -ahl /etc/imscp/apache/working | grep PanelRedirect-rw-r--r-- 1 root root 371 Apr 8 22:49 PanelRedirect.conf-rw-r--r-- 1 root root 511 Apr 8 22:49 PanelRedirect_ssl.conf


    /etc/imscp/apache/working/PanelRedirect_ssl.conf

    Code
    1. # BEGIN Plugin::PanelRedirect<VirtualHost xx.xxx.xx.xxx:443> ServerName hosting.fqdn.tld ServerAdmin [email protected] ErrorLog /var/log/apache2/hosting.fqdn.tld/error.log SSLProxyEngine On ProxyPass / https://hosting.fqdn.tld:4443/ ProxyPassReverse / https://hosting.fqdn.tld:4443/ SSLEngine On SSLCertificateFile /etc/imscp/hosting.fqdn.tld.pem SSLCertificateChainFile /etc/imscp/hosting.fqdn.tld.pem</VirtualHost># END Plugin::PanelRedirect


    /etc/imscp/apache/working/PanelRedirect.conf

    Code
    1. # BEGIN Plugin::PanelRedirect<VirtualHost xx.xxx.xx.xxx:80> ServerName hosting.fqdn.tld ServerAdmin [email protected] ErrorLog /var/log/apache2/hosting.fqdn.tld/error.log # SECTION VHOST_PREFIX != http:// BEGIN. Redirect / https://hosting.fqdn.tld/ # SECTION VHOST_PREFIX != http:// END.</VirtualHost># END Plugin::PanelRedirect



    But it seems this configurations are being overwritten by customer vhost ...


    Code
    1. # apache2ctl -SVirtualHost configuration:xx.xxx.xx.xxx:443 customerX.tld (/etc/apache2/sites-enabled/customer1-domain.tld.conf:1)xx.xxx.xx.xxx:80 is a NameVirtualHost default server sub.customerY.tld (/etc/apache2/sites-enabled/sub.customerY.tld.conf:1)....ServerRoot: "/etc/apache2"Main DocumentRoot: "/var/www"Main ErrorLog: "/var/log/apache2/error.log"Mutex rewrite-map: using_defaultsMutex ssl-stapling: using_defaultsMutex proxy: using_defaultsMutex ssl-cache: using_defaultsMutex default: dir="/var/lock/apache2" mechanism=fcntlMutex mpm-accept: using_defaultsMutex watchdog-callback: using_defaultsPidFile: "/var/run/apache2/apache2.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="www-data" id=33Group: name="www-data" id=33


    customer1-domain.tld.conf

    Code
    1. <VirtualHost xx.xxx.xx.xxx:443> ServerAdmin [email protected] ServerName customerX.tld ServerAlias www.customerX.tld vu2003.hosting.fqdn.tld LogLevel error ErrorLog /var/log/apache2/customerX.tld/error.log DocumentRoot /var/www/virtual/customerX.tld/htdocs Alias /errors /var/www/virtual/customerX.tld/errors/ # SECTION suexec BEGIN. SuexecUserGroup vu2003 vu2003 # SECTION suexec END. # SECTION php_enabled BEGIN. # SECTION php_fpm BEGIN. <IfVersion < 2.4.9> Alias /php5-fcgi /var/lib/apache2/fastcgi/php5-fcgi-customerX.tld-ssl FastCGIExternalServer /var/lib/apache2/fastcgi/php5-fcgi-customerX.tld-ssl \ -socket /var/run/php5-fpm-customerX.tld.socket \ -idle-timeout 900 \ -pass-header Authorization </IfVersion> <IfVersion >= 2.4.9> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 <Proxy "unix:/var/run/php5-fpm-customerX.tld.socket|fcgi://php5-fpm"> ProxySet disablereuse=off </Proxy> <FilesMatch "\.php5?$"> SetHandler proxy:fcgi://php5-fpm </FilesMatch> </IfVersion> # SECTION php_fpm END. # SECTION php_enabled END. <Directory /var/www/virtual/customerX.tld> Options +SymLinksIfOwnerMatch Require all granted </Directory> <Directory /var/www/virtual/customerX.tld/htdocs> # SECTION php_enabled BEGIN. AllowOverride All # SECTION php_enabled END. </Directory> # SECTION cgi_support BEGIN. ScriptAlias /cgi-bin/ /var/www/virtual/customerX.tld/cgi-bin/ <Directory /var/www/virtual/customerX.tld/cgi-bin> AllowOverride AuthConfig Indexes Limit </Directory> # SECTION cgi_support END. # SECTION addons BEGIN. # SECTION addons END. SSLEngine On SSLCertificateFile /var/www/imscp/gui/data/certs/customerX.tld.pem SSLCertificateChainFile /var/www/imscp/gui/data/certs/customerX.tld.pem Include /etc/apache2/imscp/customerX.tld.conf</VirtualHost>


    /etc/apache2/sites-enabled/sub.customerY.tld.conf