Problems deploying remotely
-
Hello,
I have been trying to deploy remotely through policy, following the videotutorial instructions.I have installed the addon on the server, with its certificate, and can access to ports 444 and 8000 from the clients.
The problem is that remotely is not being installed on clients. This is a client log example.
2021-07-15 02:32:59,678 INFO [23] ServiceTriggerAction - Trigger Action: Checkin. Complete. 2021-07-15 02:34:43,206 INFO [3] ServiceTriggerAction - Manual Checkin Request Received 2021-07-15 02:34:43,206 INFO [3] ServiceTriggerAction - Checking For Checkin Policies 2021-07-15 02:34:43,472 INFO [3] PolicyCacher - Caching Policy 2722d4a8-d79c-409a-9cfc-f838174c49e6 (Enable Remote Access) 2021-07-15 02:34:43,472 DEBUG [3] PolicyCacher - Creating directory for cached files 2021-07-15 02:34:43,472 DEBUG [3] ServiceFileSystem - Creating Directory C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999 2021-07-15 02:34:43,486 DEBUG [3] PolicyCacher - Download File Remotely_Installer.exe 2021-07-15 02:34:43,486 DEBUG [3] ApiRequest - ProvisionedComm/Policy/GetFile/ 2021-07-15 02:34:43,565 ERROR [3] PolicyCacher - Could Not Cache Module: Remote Access 2021-07-15 02:34:43,565 INFO [3] PolicyCacher - Finished Caching Policy 2722d4a8-d79c-409a-9cfc-f838174c49e6 (Enable Remote Access) 2021-07-15 02:34:43,565 DEBUG [3] PolicyRunner - Releasing The Download Connection. 2021-07-15 02:34:43,565 DEBUG [3] ApiRequest - Policy/RemoveDownloadConnection/ 2021-07-15 02:34:43,627 INFO [3] PolicyExecutor - Executing Policy 2722d4a8-d79c-409a-9cfc-f838174c49e6 (Enable Remote Access) 2021-07-15 02:34:43,627 DEBUG [3] PolicyExecutor - Evaluating Conditions For Enable Remote Access 2021-07-15 02:34:43,627 DEBUG [3] PolicyExecutor - No Conditions Found For Module 2021-07-15 02:34:43,643 INFO [3] ModuleRemoteAccess - Running Remote Access Module: 2021-07-15 02:34:43,643 INFO [3] ModuleRemoteAccess - Installing Remote Access Service 2021-07-15 02:34:43,643 DEBUG [3] ApiRequest - ProvisionedComm/Policy/GetRemotelyInstallArgs/ 2021-07-15 02:34:43,752 INFO [3] ModuleCommandManager - Running Command Module: Install Remotely 2021-07-15 02:34:43,752 DEBUG [3] ServiceProcess - Starting Command: cmd.exe /c "C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999\Remotely_Installer.exe" -install -quiet -organizationid -serverurl http://192.168.1.142:8000/ -path 'C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999\Remotely-Win10-x64.zip' 2021-07-15 02:39:43,795 DEBUG [3] ServiceProcess - Process has exceeded the timeout value 2021-07-15 02:39:43,795 INFO [3] ModuleCommandManager - {"ExitCode":0,"StandardError":"Process has exceeded the timeout value","StandardOut":""} 2021-07-15 02:39:43,795 INFO [3] ModuleCommandManager - Command Module: Install Remotely Finished 2021-07-15 02:39:43,953 ERROR [3] ServiceSystemService - El servicio Remotely_Service no se encontrĂ³ en el equipo '.'. 2021-07-15 02:39:43,953 ERROR [3] ModuleRemoteAccess - Could Not Change Remotely Startup Type 2021-07-15 02:39:43,953 DEBUG [3] ServiceFileSystem - Reading Remotely Connection File 2021-07-15 02:39:43,968 ERROR [3] ServiceFileSystem - Could Not Read Connection File 2021-07-15 02:39:43,968 ERROR [3] ServiceFileSystem - No se puede encontrar una parte de la ruta de acceso 'C:\Program Files\Remotely\ConnectionInfo.json'. 2021-07-15 02:39:43,968 INFO [3] PolicyExecutor - Finished Executing Policy 2722d4a8-d79c-409a-9cfc-f838174c49e6 (Enable Remote Access) 2021-07-15 02:39:43,968 INFO [3] PolicyRunner - Policies Complete. Starting Policy Cleanup. 2021-07-15 02:39:43,968 INFO [3] PolicyRunner - Submitting Policy Results 2021-07-15 02:39:43,968 INFO [3] PolicyRunner - Completed Submitting Policy Results 2021-07-15 02:39:43,968 INFO [3] PolicyRunner - Cleaning Policy Cache
File "C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999\Remotely_Installer.exe" does exist on the client, but its size is 0KB. File "Remotely-Win10-x64.zip" does not exists on the client. It seems is not being copied.
Just to test it, I've manually copied the needed files to one client, and launch the install command, which seems to be:
"C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999\Remotely_Installer.exe" -install -quiet -organizationid -serverurl http://192.168.1.142:8000/ -path 'C:\Program Files\Toec\AppData\99999999-9999-9999-9999-999999999999\Remotely-Win10-x64.zip'
If I launch that command without the "-quiet" flag, installer complains about not supplying an organizationid. I don't know where is that GUID. If I supply a GUID, remotely installs correctly and I can see the remote registration ID for that client on the server ui, but can't launch a remote session on that client.
On the other side, navigating to remotely portal on server (on port 444 or 8000) asks for a login. I don't know if there is a default login to manage settings here. I can see there is a sqlite db in "C:\Program Files\Theopenem\Remotely\remotely.db", but, I haven't been able to list its contents with dbeaver and its sqlite connector.
If anyone has any clues to debug the problem, I would appreciate it.
Thanks!
PD: I'm running these tests with IIS (not IIS Express) on W10 Home. Only one client at a time try to avoid concurrent connection limit.
I can run TOEC-API, TOEMS-API and TOEMS-UI sites without problems with IIS Express, but I'm trying to resolve a problem with remotely site not loading properly on IIS Express, most probably due to aspnetcore2 module.Server logs
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2021-07-15 09:50:06 192.168.1.142 GET /Provision/ComConnectionTest/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 3121 2021-07-15 09:50:06 192.168.1.142 POST /ProvisionedComm/Policy/GetClientPolicies/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 586 2021-07-15 09:50:06 192.168.1.142 POST /Policy/CreateDownloadConnection/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 129 2021-07-15 09:50:06 192.168.1.142 POST /Policy/RemoveDownloadConnection/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 98 2021-07-15 09:50:06 192.168.1.142 GET /ProvisionedComm/Policy/GetRemotelyInstallArgs/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 139 2021-07-15 09:50:06 192.168.1.142 GET /signalr/negotiate clientProtocol=2.0&connectionData=[%7B%22Name%22:%22ActionHub%22%7D] 8888 - 192.168.1.248 SignalR.Client.NetStandard/2.4.0.0+(Microsoft+Windows+NT+6.2.9200.0) - 200 0 0 288 2021-07-15 09:50:07 192.168.1.142 GET /signalr/start clientProtocol=2.0&transport=webSockets&connectionData=[%7B%22Name%22:%22ActionHub%22%7D]&connectionToken=RddD%2FqAPmczbiCYHBsGSCqEyHC9EBrN3wQg6yYnba4qFBxUY0MW26Ub%2BPlfNC00SzH7V0uq%2BGZbgBiDEhRPklWczF9%2BYZgOpTPRByLqkA0eoJL4zt25MjlpNnL1lcRxR 8888 - 192.168.1.248 SignalR.Client.NetStandard/2.4.0.0+(Microsoft+Windows+NT+6.2.9200.0) - 200 0 0 66 2021-07-15 09:50:11 192.168.1.142 GET /signalr/negotiate clientProtocol=2.0&connectionData=[%7B%22Name%22:%22ActionHub%22%7D] 8888 - 192.168.1.242 SignalR.Client.NetStandard/2.4.0.0+(Microsoft+Windows+NT+6.2.9200.0) - 200 0 0 69 2021-07-15 09:50:11 192.168.1.142 GET /signalr/start clientProtocol=2.0&transport=webSockets&connectionData=[%7B%22Name%22:%22ActionHub%22%7D]&connectionToken=d1MIu%2BPh%2FFdvnjXLjvWASwQ%2B8dYa9SLHFBJ9IIebYnP%2BO6%2FG6f65PoNdW9YqYqIWI4%2Fjcz6eeA64xM%2BAibiQOhuE7HE0thouTmK1pFoKAzBcIfnYfBPx0hL%2FHdXg1Km9 8888 - 192.168.1.242 SignalR.Client.NetStandard/2.4.0.0+(Microsoft+Windows+NT+6.2.9200.0) - 200 0 0 55 2021-07-15 09:50:35 192.168.1.142 GET /Provision/ComConnectionTest/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 200 0 0 31 2021-07-15 09:50:35 192.168.1.142 POST /ProvisionedComm/Policy/GetClientPolicies/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 200 0 0 106 2021-07-15 09:50:35 192.168.1.142 POST /Policy/CreateDownloadConnection/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 200 0 0 81 2021-07-15 09:50:35 192.168.1.142 POST /ProvisionedComm/Policy/GetFile/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 404 0 0 70 2021-07-15 09:50:35 192.168.1.142 POST /Policy/RemoveDownloadConnection/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 200 0 0 101 2021-07-15 09:50:35 192.168.1.142 GET /ProvisionedComm/Policy/GetRemotelyInstallArgs/ - 8888 - 192.168.1.242 RestSharp/106.3.1.0 - 200 0 0 152 #Software: Microsoft Internet Information Services 10.0 #Version: 1.0 #Date: 2021-07-15 09:58:42 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2021-07-15 09:58:41 192.168.1.142 POST /Storage/GetFreeSpace - 8888 - 192.168.1.142 RestSharp/106.3.1.0 - 200 0 0 202 2021-07-15 09:58:42 192.168.1.142 POST /Storage/GetFreeSpace - 8888 - 192.168.1.142 RestSharp/106.3.1.0 - 200 0 0 20 2021-07-15 09:58:52 192.168.1.142 POST /Socket/SendAction - 8888 - 192.168.1.142 RestSharp/106.3.1.0 - 204 0 0 77 2021-07-15 09:58:52 192.168.1.142 POST /ProvisionedComm/Policy/UpdateLastSocketResult/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 288 2021-07-15 09:58:52 192.168.1.142 GET /Provision/ComConnectionTest/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 43 2021-07-15 09:58:52 192.168.1.142 POST /ProvisionedComm/Policy/GetClientPolicies/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 298 2021-07-15 09:58:53 192.168.1.142 POST /Policy/CreateDownloadConnection/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 117 2021-07-15 09:58:53 192.168.1.142 POST /Policy/RemoveDownloadConnection/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 85 2021-07-15 09:58:53 192.168.1.142 GET /ProvisionedComm/Policy/GetRemotelyInstallArgs/ - 8888 - 192.168.1.248 RestSharp/106.3.1.0 - 200 0 0 153
-
@davidtgbe said in Problems deploying remotely:
Could Not Cache Module: Remote Access
It seems the issue is that it can't download the Remotely install file. Are you able to deploy other installers? Something simple to test like 7zip? Right now not sure if your issue is just with Remotely or simply downloading files in general.
-
@theopenem_admin Thanks for the answer.
I will try with 7zip as you suggest. Any ideas regarding the other topics?
-remotely organization ID parameter
-default remotely login
-how to access to remotely database file?