• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Remove subscription error

ZbyszekL

Basic Pleskian
I can not remove a subscription.

Internal error.
ERROR: Call to a member function getScheme() on a non-object (Apache.php:785)
 
Try to run

# plesk log --all

click remove button and find more details in logs.
 
[29-Aug-2013 08:47:20 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
[29-Aug-2013 08:53:06 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
[29-Aug-2013 08:59:31 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
[29-Aug-2013 09:03:48 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
[29-Aug-2013 09:04:21 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
[29-Aug-2013 09:12:18 Europe/Berlin] PHP Fatal error: Call to a member function getScheme() on a non-object in /opt/psa/admin/plib/WebServerManager/Adapter/Apache.php on line 785
 
Nothing more? I can say nothing by looking at these errors. Thus contact Support Team. They will check and fix it directly on your server.
 
The problem was:

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

and after: sudo dpkg --configure -a

Configuring plesk-completion (11.5.30-debian6.0.build115130819.13) ...
Configuring librdbmspp (2.0-735641.13073116) ...
Configuring psa-watchdog (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-autoinstaller (3.15.15-130814.09) ...
Configuring sw-libboost-serialization1.49.0 (1.49.0-13080810) ...
Configuring sw-libpoco (1.4.3p1-13073117) ...
Configuring psa-firewall (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-pylibplesk (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-courier-authlib (0.65.0-debian6.0.build115130819.13) ...
Configuring libpam-plesk (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-l10n (11.5.30-debian6.0.build115130819.13) ...
Configuring sw-libboost-date-time1.49.0 (1.49.0-13080810) ...
Configuring drweb-bases (6.0.2.4-1302271534+plesk~lenny) ...
Configuring psa11.5-php-fakepackage (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-locale-base-en-us (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-skins (11.5.30-601.13081913) ...
Configuring psa-migration-manager (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-web-hosting (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-mailman-configurator (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-management-node (11.5.30-debian6.0.build115130819.13) ...
Configuring sw-libboost-thread1.49.0 (1.49.0-13080810) ...
Configuring psa-vpn (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-roundcube (0.8.6-debian6.0.build115130812.16) ...
Instalowanie nowej wersji pliku konfiguracyjnego /etc/psa-webmail/roundcube/roundcube.conf ...
Configuring libaps (1.0.6-798670.13080109) ...
Configuring psa-fileserver (11.5.30-debian6.0.build115130819.13) ...
Configuring plesk-service-node-utilities (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-migration-agents (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-drweb-configurator (11.5.30-debian6.0.build115130819.13) ...
Configuring psa-spamassassin (11.5.30-debian6.0.build115130819.13) ...

problem solved.
 
Unable to configure the web server: Execution failed.

after deleting a subscription I got this:

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: 2013-09-02T11:41:46+02:00 ERR (3) [util_exec]: proc_close() failed 2013-09-02T11:41:51+02:00 ERR (3) [util_exec]: proc_close() failed 2013-09-02T11:41:52+02:00 ERR (3) [panel]: Apache config (13781149040.37628100) generation failed: Template_Exception: apache2: bad user name wyderka file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 68 code: 0 apache2: bad user name wyderka
 
OK, I've found it.
Plesk does not remove all after the subscription delete. If the client has some other domains or subdomains with the subscription you have to remove some entries in
/opt/psa/admin/conf/vhosts_bootstrap.conf
If you are not sure what to remove, check in: /etc/apache2/plesk.conf.d/vhosts
In my case there were folders with configuration of missing subdomains. I deleted all folders and all 'Include' entries from /opt/psa/admin/conf/vhosts_bootstrap.conf
After that I did a: /usr/local/psa/admin/bin/httpdmng --reconfigure-all
And it helped.
For me this was helpful: http://serverkb.co.uk/wiki/Apache
 
/opt/psa/admin/conf/vhosts_bootstrap.conf

This should not be present or included from other configs in 11.5.30. This means you have an inherently broken configuration. I suggest removing it (keep backup though).

Here's mine /etc/apache2/conf.d/zz010_psa_httpd.conf for reference (it doesn't mean you should have exactly the same one!):

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Include '/etc/apache2/plesk.conf.d/server.conf'
Include '/etc/apache2/plesk.conf.d/horde.conf'
Include '/etc/apache2/plesk.conf.d/roundcube.conf'
Include '/etc/apache2/plesk.conf.d/vhosts/*.conf'
Include '/etc/apache2/plesk.conf.d/forwarding/*.conf'
Include '/etc/apache2/plesk.conf.d/wildcards/*.conf'


Notice that vhosts/*.conf is used instead of vhosts_bootstrap.conf since Plesk 11.5.
 
Here's mine:
/etc/apache2/conf.d# cat zz010_psa_httpd.conf
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Include '/etc/apache2/plesk.conf.d/server.conf'
Include '/etc/apache2/plesk.conf.d/atmail.conf'
Include '/etc/apache2/plesk.conf.d/horde.conf'
Include '/etc/apache2/plesk.conf.d/roundcube.conf'
Include '/etc/apache2/plesk.conf.d/vhosts/*.conf'
Include '/etc/apache2/plesk.conf.d/forwarding/*.conf'
Include '/etc/apache2/plesk.conf.d/wildcards/*.conf'

and now in /etc/apache2/plesk.conf.d/vhosts/ I have all my domains...
 
So how did /opt/psa/admin/conf/vhosts_bootstrap.conf affect you? It's not clear whether it was actually included. Can you check this?
 
Well, after I deleted all entries in vhosts_bootstrap.conf, I also deleted all folders from /etc/apache2/plesk.conf.d/vhosts/ where were all the subdomains conf files (sub1.domain.com, sub2.domain.com), from subscription previously deleted.

(I've deleted subscription eg.: domain.com
Under this subscription there were few subdomains: sub1.domain.com, sub2.domain.com etc...)

So after I deleted a subscription and tried to --reconfigure-all I had error "..... bad user name wyderka" etc. shown abowe.
Then I've deleted all entries from bootstrap and from folder. I do not know what exactly was the problem but after this I was able to reconfigure-all with no errors and all my sites work fine.

sorry for the grammar ;-)
 
Back
Top