• 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

Issue Problem with restoring DNS settings, `Error occurred during /bin/cp command.`

jmar83

Regular Pleskian
So we see, /bin/cp is existing:


root@h2845013:~# ls /bin/cp
/bin/cp



So where is the problem?

Full messages are:

- The NS configuration file '/var/named/run-root/etc/named.conf' is absent.
- Restoring the DNS configuration file '/var/named/run-root/etc/named.conf' filemng failed: filemng: Error occurred during /bin/cp command.


Thx for feedback,
Jan
 
Have you tried to fix it with

# plesk repair dns

?
 
I think the process i've started is for problem detection and fixing for ALL plesk components - not just DNS?
 
j have this issue now too.
Code:
plesk repair dns

Checking the DNS configuration file

  The NS configuration file '/var/named/run-root/etc/named.conf' is   
  absent ............................................................ [ERROR]
 
  Restore the DNS configuration file from '/var/named/run-root/etc/named.conf.default'? [Y/n] y
    Restoring the DNS configuration file                             
    '/var/named/run-root/etc/named.conf' ............................ [2020-05-04 08:47:10.283] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'cp' '-r' '/var/named/run-root/etc/named.conf.default' '/var/named/run-root/etc/named.conf' '--allow-root'] with exit code [1]
[FAILED]
    - filemng failed: filemng: Error occurred during /bin/cp command.

Restoring DNS server configuration
 
  Synchronize DNS zones with the DNS server? [Y/n] y
    Synchronizing DNS zones with the DNS server ..................... [OK]

Error messages: 1; Warnings: 0; Errors resolved: 0


PHP Fatal error:  Uncaught PleskMultipleException: Error during adomain1.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

Error during adomain2.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

Error during adomain3.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

Error during adomain4.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

Error during adomain5.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directory

Error during adomain6.de updateZone: dnsmng failed: dnsmng: Unable to open DNS config file: No such file or directory

System error 2: No such file or directo in /opt/psa/admin/plib/Service/Dns/Connector/Plesk.php on line 14
exit status 1

here some information
 
Back
Top