1-800-691-1991 | 9am - 8pm ET
EN

Veeam Explorer for Oracle restore fails with: "You have new mail in /var/spool/mail/root"

KB ID: 4216
Product: Veeam Backup & Replication
Published: 2021-09-27
Last Modified: 2021-09-27

Challenge

Restoring an Oracle Database to a Linux server using Veeam Explorer for Oracle fails with:
Error: Wrong SCP response: 1.scp: /root
You have new mail in /var/spool/mail/root/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx: No such file or directory
Log Example
Uploading file (Unix mask: 0766, timeout: 300 sec)...
from: C:\Users\bkpsvc\AppData\Local\Temp\FilesFromSSH_02882835-9da8-4238-8481-39b46381cee0\a7b51e0a-af32-4e17-9d3d-99a8b03ef0c1
to: /root
You have new mail in /var/spool/mail/root/c85b28ba-0d9a-44be-bae3-49bdb6cfe6e7
SCP file uploading (from: C:\Users\bkpsvc\AppData\Local\Temp\FilesFromSSH_02882835-9da8-4238-8481-39b46381cee0\a7b51e0a-af32-4e17-9d3d-99a8b03ef0c1, to: '/root
You have new mail in /var/spool/mail/root/c85b28ba-0d9a-44be-bae3-49bdb6cfe6e7')...
SCP command: scp -p -t '/root
You have new mail in /var/spool/mail/root/c85b28ba-0d9a-44be-bae3-49bdb6cfe6e7'
SCP connection closed
Removing directory: C:\Users\bkpsvc\AppData\Local\Temp\FilesFromSSH_02882835-9da8-4238-8481-39b46381cee0...
Error: Wrong SCP response: 1.scp: /root
You have new mail in /var/spool/mail/root/c85b28ba-0d9a-44be-bae3-49bdb6cfe6e7: No such file or directory
Type: System.Exception
Stack:
at Veeam.SSH.Core.SCPProtocol.WaitUntilDone(Int32 timeout, CancellationToken ct)
at Veeam.SSH.Core.SshGranadosFileLoader.UploadFile(SshGranadosConnectionImpl connection, SshConnectionConfig config, String from, String to, String mode, Int32 timeout, ILogger logger, CancellationToken ct)
at Veeam.SSH.Core.SshGranadosConnectionImpl.UploadFile(String from, String to, String mode, Int32 timeout, CancellationToken ct)
at Veeam.SSH.Core.SshConnection.UploadFile(String from, String to, String mode, Int32 timeout, CancellationToken ct)
at Veeam.Oracle.Linux.Client.System.SshClient.UploadFile(String localFilePath, String remoteFilePath, Int32 timeout, UnixMask umask, CancellationToken ct)
at Veeam.Oracle.Linux.Client.System.FileBroker.Upload(Byte[] content, String target, CancellationToken ct)
at Veeam.Oracle.Linux.Client.System.TempFolderManager.SaveTempFile(Byte[] content, String extension, CancellationToken ct)
at Veeam.Oracle.Linux.Client.System.FileSystemManager.SaveManagedTempFile(Byte[] content, String extension, String permissionSourcePath, CancellationToken ct)
at Veeam.Oracle.Restore.TempPFile.Save(IOracleMachineConnection machine, PFile pFile, String targetOracleHome)
at Veeam.Oracle.Restore.SpfileBuilder.CreateSpfile()
at Veeam.Oracle.Restore.Restorers.RestartWithSpfileRestorer.Restore(IOracleObserver observer, CancellationToken ct)
at Veeam.Oracle.Restore.Restorers.RestorersRunner.Run()
at Veeam.Oracle.Restore.DatabaseRestorer.RunRestore(IUndoStack undoStack, IDisposables disposables)
at Veeam.Oracle.Restore.DatabaseRestorerBase.RestoreDatabase(IDisposables disposables, IUndoStack undoStack)
Process failed. Reverting changes...

Cause

Mail notification on login from Linux is passed through to Veeam's terminal and can cause the issue.

Solution

In most Linux environments, mail notification on login is enabled by default for the root user.

To work around this issue, either:

  • Use another non-root user that does not have mail notifications enabled on login to restore the database in Veeam Explorer for Oracle.
  • Disable mail notification on login for the root user.
KB ID: 4216
Product: Veeam Backup & Replication
Published: 2021-09-27
Last Modified: 2021-09-27

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Your report was sent to the responsible team. Our representative will contact you by email you provided.

Oops! Something went wrong.

Please try again later.

KB Feedback/Suggestion

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Policy.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you for your interest in Veeam products!
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please try again later.