#1 Global Leader in Data Resilience

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
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

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.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
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
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.