You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: