Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Could not find a part of the path" saving to Samba share on Win10 #34

Open
btrumbo opened this issue Apr 13, 2021 · 4 comments
Open

Comments

@btrumbo
Copy link

btrumbo commented Apr 13, 2021

When configured to save to a Samba share, I always get:
[4/13/2021 8:10:31 AM] [KPSimpleBackup] [AdditionalInfo] Exception: System.Net.WebException: Could not find a part of the path 'U:\Documents\filed\keys backup\keepass\abc_2021.04.13_8.10.31.kdbx.tmp'. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'U:\Documents\filed\keys backup\keepass\abc_2021.04.13_8.10.31.kdbx.tmp'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing)
at System.Net.FileWebRequest.GetRequestStreamCallback(Object state)
--- End of inner exception stack trace ---
at System.Net.WebClient.OpenWrite(Uri address, String method)
at KeePassLib.Serialization.IOConnection.OpenWrite(IOConnectionInfo ioc)
at KeePassLib.PwDatabase.Save(IStatusLogger slLogger)
at KeePassLib.PwDatabase.SaveAs(IOConnectionInfo ioConnection, Boolean bIsPrimaryNow, IStatusLogger slLogger)
at KPSimpleBackup.BackupManager.SavePwDatabaseToPath(IOConnectionInfo fileInfo)
at KPSimpleBackup.BasicBackupManager.Backup()
at KPSimpleBackup.BackupManager.Run()

@marvinweber
Copy link
Owner

Hi, so this does look like the path does not exists. Have you verified, that the path really exists?
And did you add the backup folder through the "Select"-Dialog (in the first tab of the settings), or as a relative path (second tab)?

@btrumbo
Copy link
Author

btrumbo commented Apr 14, 2021 via email

@btrumbo
Copy link
Author

btrumbo commented Apr 14, 2021 via email

@marvinweber
Copy link
Owner

I note also that the path is displayed in the dialog box (but not in the error message) with unix-style forward slashes, rather than Windows style backslashes.

That should be not a problem.

Can you please check the following steps:

  1. Are backups working for another, local, path
  2. Does removing and adding again the backup path help/ fix the issue
  3. Does it work with a backup path (on the remote system), that does not contain a space (as your path seems to contain)
  4. Also, have you enabled custom file-extension in the advanced settings? If so, does it work if you disable this feature?
  5. Which version are you using? If you use 1.4, can you please check if it is working with 1.3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants