• 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

Call to a member function getId() on null in /opt/psa/admin/plib/Repair/Dns.php on line 52

Tommy10

Basic Pleskian
Because I do not understand where I could submit a bug report I'll write it here. I have a valid Plesk license from the datacenter (not directly from Odin/Plesk).

My system:
Operation System: ‪Debian 8.3‬
Plesk Version: 12.5.30 Update #19

I executed this command:
$ plesk repair all -y

I got this:
Restoring DNS server configuration
Synchronizing DNS zones with the DNS server ..................... PHP Fatal error: Call to a member function getId() on null in /opt/psa/admin/plib/Repair/Dns.php on line 52
exit status 255

Here some more information:
$ dpkg -l | grep bind9
ii bind9 1:9.9.5.dfsg-9+deb8u5 amd64 Internet Domain Name Server
ii bind9-host 1:9.9.5.dfsg-9+deb8u5 amd64 Version of 'host' bundled with BIND 9.X
ii bind9utils 1:9.9.5.dfsg-9+deb8u5 amd64 Utilities for BIND
ii libbind9-90 1:9.9.5.dfsg-9+deb8u5 amd64 BIND9 Shared Library used by BIND

$ dpkg -l | grep dns
ii dnsutils 1:9.9.5.dfsg-9+deb8u5 amd64 Clients provided with BIND
ii libdns-export100 1:9.9.5.dfsg-9+deb8u5 amd64 Exported DNS Shared Library
ii libdns100 1:9.9.5.dfsg-9+deb8u5 amd64 DNS Shared Library used by BIND
ii libnet-dns-perl 0.81-2 amd64 Perform DNS queries from a Perl script
ii python-dnspython 1.12.0-1 all DNS toolkit for Python
 
Synchronize DNS zones with the DNS server? [Y/n] y
Synchronizing DNS zones with the DNS server ..................... [2016-01-25 11:24:52] DEBUG [dbquery] [15] SQL: DESCRIBE `dns_zone`
[2016-01-25 11:24:52] DEBUG [dbquery] [15] END: 0.0069940090179443 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [16] SQL: SELECT `dns_zone`.* FROM `dns_zone` AS `dns_zone`
[2016-01-25 11:24:52] DEBUG [dbquery] [16] END: 0.00028800964355469 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [17] SQL: DESCRIBE `ServiceInstallations`
[2016-01-25 11:24:52] DEBUG [dbquery] [17] END: 0.00068092346191406 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [18] SQL: SELECT `ServiceInstallations`.* FROM `ServiceInstallations` AS `ServiceInstallations`
[2016-01-25 11:24:52] DEBUG [dbquery] [18] END: 8.392333984375E-5 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [19] SQL: DESCRIBE `ServiceNodeConfiguration`
[2016-01-25 11:24:52] DEBUG [dbquery] [19] END: 0.0015099048614502 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [20] SQL: SELECT `ServiceNodeConfiguration`.* FROM `ServiceNodeConfiguration` AS `ServiceNodeConfiguration` WHERE (`serviceNodeId` = '1' AND `section` = 'dnsConnector')
[2016-01-25 11:24:52] DEBUG [dbquery] [20] END: 8.2015991210938E-5 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [21] SQL: DESCRIBE `ServiceNodeEnvironment`
[2016-01-25 11:24:52] DEBUG [dbquery] [21] END: 0.0006561279296875 sec
[2016-01-25 11:24:52] DEBUG [dbquery] [22] SQL: SELECT `ServiceNodeEnvironment`.* FROM `ServiceNodeEnvironment` AS `ServiceNodeEnvironment` WHERE (`serviceNodeId` = '1' AND `section` = 'componentsPackages')
[2016-01-25 11:24:52] DEBUG [dbquery] [22] END: 0.00010585784912109 sec
PHP Fatal error: Call to a member function getId() on null in /opt/psa/admin/plib/Repair/Dns.php on line 52
[2016-01-25 11:24:52] DEBUG [util_exec] [56a5f7f41e9bf] Starting: send-error-report /opt/psa/admin/bin/send-error-report
[2016-01-25 11:24:52] DEBUG [util_exec] [56a5f7f41e9bf] Finished in 0.01409s, Result: TRUE
Error occured while sending feedback. HTTP code returned: 502
exit status 255

In this log I see this line:
Error occured while sending feedback. HTTP code returned: 502

Is this the reason? What is the problem?
 
Where could I contact the Plesk Support Team? Am I allowed to contact them with a license from the datacenter and not directly from Odin/Plesk?
 
DNS was not installed over Plesk. But bind9 was installed. lol?
Installed it again - now it works.

I think there should be a better check if DNS is really installed.
 
In the Update & Upgrade settings of Plesk "DNS" was not selected (red, not installed). I've selected it so the online tool installed it on my server. Now it works fine!
 
Back
Top