メイン コンテンツに進む
  • すばやく簡単にご注文が可能
  • 注文内容の表示、配送状況をトラック
  • 会員限定の特典や割引のご利用
  • 製品リストの作成とアクセスが可能
  • 「Company Administration(会社情報の管理)」では、お使いのDell EMCのサイトや製品、製品レベルでのコンタクト先に関する情報を管理できます。

Ripristino dagli attacchi informatici: Il ripristino dell'applicazione Windows NetWorker Server nel vault ha esito negativo con errore 'cp: preserving permissions for '/etc/hosts_nw_recovery_123456': Autorizzazione negata"

概要: Ripristino dagli attacchi informatici: Il ripristino dell'applicazione Windows NetWorker Server nel vault ha esito negativo con errore 'Failed to run: 'cp -p /etc/hosts /etc/hosts_nw_recovery_123456' err: Processo chiuso con stato 1 stderr: cp: conservazione delle autorizzazioni per '/etc/hosts_nw_recovery_123456': Autorizzazione negata' ...

この記事は自動翻訳されたものである可能性があります。品質に関するフィードバックがある場合は、このページの下部にあるフォームを使用してお知らせください。

文書の内容


現象

Il ripristino dell'applicazione per un server NetWorker in esecuzione su Windows ha esito negativo con questo stack di errori in 'apps.log' di Cyber Recovery.
 
[2022-10-12 11:48:03.879] [INFO] [apps] [RecoverNetWorkerApp.go:142 RunNWWorkflow()] : Current Task Number: 1
[2022-10-12 11:48:03.879] [INFO] [apps] [RecoverNetWorkerApp.go:144 RunNWWorkflow()] : Task Name: 10- About NetWorker
[2022-10-12 11:48:03.879] [INFO] [apps] [restapi_client.go:256 CallRESTAPI()] : Methods is :GET URL is:https://10.10.10.10:9090/nwrestapi
[2022-10-12 11:48:03.916] [INFO] [apps] [RecoverNetWorkerApp.go:223 NWAbout()] : Gathering information about Networker host: 10.10.10.10
[2022-10-12 11:48:03.917] [INFO] [apps] [RecoverNetWorkerApp.go:234 NWAbout()] : NW Version: 19.5.0.2.Build.123
[2022-10-12 11:48:03.917] [INFO] [apps] [RecoverNetWorkerApp.go:251 NWAbout()] : Networker Rest API URI: https://10.10.10.10:9090/nwrestapi/v2
[2022-10-12 11:48:03.941] [INFO] [apps] [restauth.go:68 func1()] : GET /irapi/v6/apps/6345b72b9a6dd20001dc9eae Start GetAppByID
[2022-10-12 11:48:03.943] [INFO] [apps] [restauth.go:102 func1()] : GET /irapi/v6/apps/6345b72b9a6dd20001dc9eae End GetAppByID Elapsed=1.208648ms
[2022-10-12 11:48:03.947] [INFO] [apps] [RecoverNetWorkerApp.go:142 RunNWWorkflow()] : Current Task Number: 2
[2022-10-12 11:48:03.947] [INFO] [apps] [RecoverNetWorkerApp.go:144 RunNWWorkflow()] : Task Name: 12- Before Networker Recovery
[2022-10-12 11:48:03.973] [INFO] [apps] [ddssh.go:693 CreateSSHClientConn()] : Establish SSH connection using credential
[2022-10-12 11:48:03.973] [INFO] [apps] [ddssh.go:716 CreateSSHClientConn()] : SSH connecting to 10.10.10.10:22 
[2022-10-12 11:48:04.168] [INFO] [apps] [ddssh.go:317 RunSSHCmd()] : Running: 10.10.10.10:22 cp -p /etc/hosts /etc/hosts_nw_recovery_1234561665568083
[2022-10-12 11:48:04.379] [ERROR] [apps] [ddssh.go:322 RunSSHCmd()] : Failed to run: 'cp -p /etc/hosts /etc/hosts_nw_recovery_1234561665568083' err: Process exited with status 1 stderr: cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
[2022-10-12 11:48:04.379] [ERROR] [apps] [appsUtils.go:147 BackupHostFile()] : Process exited with status 1 stderr: cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
 cp: preserving permissions for '/etc/hosts_nw_recovery_1234561665568083': Permission denied
[2022-10-12 11:48:04.379] [ERROR] [apps] [RecoverNetWorkerApp.go:294 NWPreRecovery()] : Unable to create backup copy of /etc/hosts on 10.10.10.10

Cygwin è installato e configurato correttamente sul server NetWorker basato su Windows secondo le istruzioni riportate nella guida all'installazione di Cyber Recovery.

原因

Se Cygwin è installato su un server Windows standard, si verifica lo stesso problema quando si esegue manualmente lo stesso comando "cp -p /etc/hosts /etc/hosts_rec_123456".
Administrator@vm2836 ~
$ cp -p /etc/hosts /etc/hosts_nw_rec_1234
cp: preserving permissions for ‘/etc/hosts_nw_rec_1234’: Permission denied

Administrator@vm2836 ~
$ file /etc/hosts
/etc/hosts: symbolic link to /proc/cygdrive/c/Windows/System32/drivers/etc/hosts

Administrator@vm2836 ~
$ cp -p /proc/cygdrive/c/Windows/System32/drivers/etc/hosts /etc/hosts_rec_12345678
cp: preserving permissions for ‘/etc/hosts_rec_12345678’: Permission denied

L'unica cosa che funziona è omettere l'opzione "-p" dal comando "cp", che funziona correttamente. L'opzione "-p" viene utilizzata per mantenere le caratteristiche del file durante la copia.
Administrator@vm2836 ~
$ cp /etc/hosts /etc/hosts_nw_rec_1234

Cyber Recovery presenta due percorsi di codice quando si esegue il ripristino dell'applicazione NetWorker, uno per i server basati su Linux e uno per i server basati su Windows. In questo caso, quando è stato eseguito il ripristino, è stato mostrato che il tipo di applicazione era Linux anziché Windows.  Quando è stata aggiunta l'applicazione NetWorker, non ha ottenuto le informazioni corrette per impostare il tipo di app su Windows, ma è stato invece impostato come Linux e questo è il motivo per cui cp -p viene utilizzato durante il backup del file /etc/hosts. Nel percorso del codice della finestra l'opzione "-p" non viene utilizzata.

解決方法

La soluzione consiste nell'eliminare l'applicazione NetWorker esistente e aggiungerla nuovamente correttamente in modo che il tipo di sistema operativo venga visualizzato come Windows e non Linux.

文書のプロパティ


影響を受ける製品

PowerProtect Cyber Recovery, NetWorker

製品

Cyber Recovery Series

最後に公開された日付

23 11月 2022

バージョン

1

文書の種類

Solution