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

Issue with SMB Cloud Backup #85

Open
hermetic-charm opened this issue Jan 30, 2025 · 0 comments
Open

Issue with SMB Cloud Backup #85

hermetic-charm opened this issue Jan 30, 2025 · 0 comments

Comments

@hermetic-charm
Copy link

There seems to be an issue with connecting to a share with SMB.

My config values entered into the dialog box during setup are all correct, but rclone fails to connect with error:
The attempted logon is invalid. This is either due to a bad username or authentication information.

I went into Emudeck/tools/rclone, opened PowerShell and ran rclone config manually. I edited the SMB config, overwriting all existing values, and it immediately started working.

I made a copy of that working config file.

I then tried setup via Emudeck GUI again, and it stopped working so I compared the two configs, and the only difference was that the obscured password was different. I tried copy/paste the obscured password from my working config copy into the non-working config generated by Emudeck GUI and it started working again.

I think something is failing during setup when calling rclone obscure.

In the emudeckApp.log I see log below which stood out as a possible source. I tried looking through emuDeckSaveSync.ps1, the call to obscure in the SMB section looks fine...but based on the log it seems like it is not seeing the password passed to it at all. Maybe the issue is password is coming malformed/blank from Get-Custom-Credentials?

[01/29/2025] stderr: out-file : FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:', 
call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr.
At C:\Users\redacted\AppData\Roaming\EmuDeck\backend\functions\ToolScripts\emuDeckSaveSync.ps1:234 char:4
+    taskkill /F /IM rclone.exe > NUL 2>NUL
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], NotSupportedException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
 
Usage:
  rclone obscure password [flags]

Flags:
  -h, --help   help for obscure

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command obscure needs 1 arguments minimum: you provided 0 non flag arguments: []
2025/01/29 20:52:31 CRITICAL: Failed to create file system for "Emudeck-SMB:\\Emudeck\\saves": couldn't connect SMB: response error: The attempted logon is invalid. This is either due to a bad username or authentication information.
2025/01/29 20:52:42 CRITICAL: Failed to create file system for "Emudeck-SMB:\\Emudeck\\saves": couldn't connect SMB: response error: The attempted logon is invalid. This is either due to a bad username or authentication information.
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

1 participant