Local Path Storage Vault authentication fails in Comet Backup: CreateFile: Logon failure: unknown user name or bad password

Applicable to:

  • Comet Backup for Windows

Symptoms

  • A backup job to a Local Path Storage Vault using a UNC network path fails with the following error, even though the Windows network authentication credentials configured in the Storage Vault are correct:

    CONFIG_TEXT: CreateFile: Logon failure: unknown user name or bad password

  • The same UNC path can be accessed manually from the affected server using the same credentials (for example with net use), including when tested while running as NT AUTHORITY\SYSTEM.
  • The error can differ from the one above, while the credentials are still correct and the Test Connection option of the Storage Vault succeeds. For example, a job to a Local Path Storage Vault with a UNC path fails with:

    CONFIG_TEXT: Can't access Storage Vault: Failed to check for config file: Stat: CreateFile \\?\UNC\server\share\comet\config: Access is denied.

  • When several Storage Vaults on the same Windows server point to the same network server, a backup job fails with a message similar to the following:

    CONFIG_TEXT: Error accessing storage path '\\server\share': CreateFile \\server\share: This user can't sign in because this account is currently disabled.. Additionally, creating the directory failed because: mkdir \\server: The specified path is invalid.. Additionally, logging in to the Windows network share failed because: Retried 1 times over 0:00: A specified logon session does not exist. It may already have been terminated.

Cause

Comet Backup's Local Path Storage Vault establishes its Windows network connection internally on every backup job. This internal connection attempt can fail to make a connection to an SMB server, while an external net use performing the identical operation succeeds consistently.

Once any connection has been successfully established to that server, Comet's own mechanism works normally from then on.

A Windows limitation can also cause this. A single user session cannot connect to the same network resource (such as a NAS) using more than one set of credentials at the same time. If several Local Path Storage Vaults use the same network server with different credentials, Comet attempts multiple concurrent connections to it, and the backup job fails with a Windows logon error even when each set of credentials is valid.

Resolution

Solution 1

Force the correct network session to be established before each backup job, and close it afterward, using Before and After commands on the Storage Vault.

  1. Log in to your Comet Management Console.
  2. Go to Users > username > Storage Vault tab > click on the Storage Vault that uses the Local Path storage method with a UNC destination.
  3. In the pop-up window, switch to Commands tab.
  4. Add the following as Before task commands, in this order:

    Note: Replace <share-path> with the full UNC path to the destination share, and <username> with the Windows network account configured for the Storage Vault.

    Warning: The password will be stored in clear text in the Before command field.

    C:\> net use <share-path> /DELETE

    C:\> net use <share-path> /user:<username> password

  5. Add the following as an After task command, to close the session again once the backup finishes:

    C:\> net use <share-path> /DELETE

  6. Save the Storage Vault settings.
  7. Run the backup job again.
Solution 2

Switch the Storage Vault to Comet Backup's native SMB storage method, which authenticates independently of the Windows network redirector.

  1. Log in to your Comet Management Console.
  2. Go to Users > username > Storage Vault tab > click on the Storage Vault that uses the Local Path storage method with a UNC destination.
  3. In the pop-up window, switch to the Storage tab.
  4. Change the storage method to the SMB storage method, using the same server address, share, and Windows network credentials.
  5. Save the Storage Vault settings.
  6. Run the backup job again.
Solution 3

If several Storage Vaults point to the same network server, make sure they all use the same credentials and clear any stale network sessions.

  1. In Comet Backup, remove the unused Storage Vaults that point to the same network server, if any.
  2. Edit the remaining Storage Vaults that point to this network server and make sure they all use the same Windows network credentials.
  3. On the Windows server where the Comet Backup agent runs, restart the Comet Elevator and Delegate services.
  4. Run the backup job again.
Solution 4

In a confirmed case where the Test Connection option succeeded, but jobs failed with "Access is denied", changing the username used by the backup.delegate service resolved the error while the Storage Vault kept the Local Path storage method.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.