AWS Thinkbox Discussion Forums

Connect with Remote Desktop

Hi,

Just went up to the RC1 8.1 beta, and the connect with remote desktop has stopped working. The script in the menu and the short cut keys setup don’t work, and I can confirm the RD does work if accessed manually.

Mark

Hey Mark,

Can you check the Console panel (View->New Panel->Console) or the Monitor logs and check if there is an error message when it fails to connect with RD?

Hi,

I cleared the console and tried to conect and get the below, with no connection to the machine.

2017-01-09 09:15:43: Running script ConnectWithRemoteDesktop (\dhserver02\DeadlineRepository8\scripts\Slaves\ConnectWithRemoteDesktop.py)
2017-01-09 09:15:43: Traceback (most recent call last):
2017-01-09 09:15:43: File “DeadlineUI/Commands/ScriptCommands.py”, line 105, in InnerExecute
2017-01-09 09:15:43: PythonNetException: FileNotFoundException : Could not find file ‘\dhserver02\DeadlineRepository8\custom\scripts\General\ConnectWithRemoteDesktop.py’.
2017-01-09 09:15:43: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2017-01-09 09:15:43: 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)
2017-01-09 09:15:43: at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2017-01-09 09:15:43: at System.IO.StreamReader…ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
2017-01-09 09:15:43: at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
2017-01-09 09:15:43: at FranticX.Scripting.PythonNetScriptEngine.ExecuteFile(String scriptFile, String moduleName, Boolean optimizeCode)
2017-01-09 09:15:43: at Deadline.Scripting.DeadlineScriptManager.CreateModuleFromFile(String scriptFilePath, String moduleName, Boolean addGlobalFunctions)
2017-01-09 09:15:43: at Deadline.Scripting.ClientUtils.ExecuteScript(String scriptFilename, Object args)
2017-01-09 09:15:43: File “\dhserver02\DeadlineRepository8\scripts\Slaves\ConnectWithRemoteDesktop.py”, line 24, in main
2017-01-09 09:15:43: ClientUtils.ExecuteScript(generalScript, nameList)
2017-01-09 09:15:43:

Thanks,
Mark

Ah yes, this is a bug that we are aware of where that script needs to be in the custom folder in order to run. We are currently looking into fixing this for the next release, but you can workaround this in the meantime by copying the script file in your repo from REPO/scripts/Slaves/ConnectWithRemoteDesktop.py to REPO/custom/scripts/Slaves/ConnectWithRemoteDesktop.py.

Ok, thanks, I’ll try here now, and look out for it in the next release.

Hi,

I tried copying the file, and restarted the monitor but still doesn’t work?

Mark

The example fix that Ryan G provided was specifically for the right-click script found for RDC when in the SLAVES panel. You would need to also copy over the same looking script from the “General” folder, “Pulse” folder, bla bla bla folders, all under your “REPO/scripts/…” directory structure to the equivalent location but under “…/custom”.

Ok, I have tried to use the script through the monitor/slaves panel and doesn’t work. Its not a big thing as it will be fixed in the next release, just a pain!

Hi,

I just went up to the newest RC version and the RDC is still not working, either through the scripts menu on the slave list, or by the shortcut key.

Thanks,
Mark

Do you have any same-named scripts still located under your “…/repo/custom/…” directory structure? If so, “custom” always takes precedence over the same-named shipping version of our script(s).

Cool, no idea why there was a file in there, but renamed, and fixed!!

Thanks,
Mark

I just ran into this as well, just upgraded from 8.0.11.2 to 8.1.5.5-rc1 and when I select “Scripts > Connect with Remote Desktop” for a slave nothing happens and the console log shows:

There is nothing in our custom folder and I haven’t set anything (as far as I can remember) to tell it to use custom versions of these things. Looking at scripts\Slaves\ConnectWithRemoteDesktop.py, there are a couple of function calls that build paths, maybe one of them has changed in 8.1 and is sticking custom into the path now? Or it’s meant to try a custom one if it exists and it’s not falling back on the built-in one?

Hey mplec,

It was trying to check the custom folder first then fall back on the regular one. This was removed however since it was checking just if there was anything in the custom\scripts\general folder so it should not be checking the custom folder at all now. Would you be able to updated to 8.1.5.11 or 9.0.0.9 since this should be fixed in both of those versions.

Grant

HI Grant -

An option to override sounds good, though I don’t have an immediate need for it just always good to know it can be done when it’s needed. Ideally it would check for the custom one and fall back on the built-in one if no custom one is present.

I can’t update right now, but possibly can do it yet this week. I’ll put in a request for a 9.0 license in the meantime and check back in here as soon as I am updated and give it another try.

Thanks,
Matt

Privacy | Site terms | Cookie preferences