casualsnek / cassowary

Run Windows Applications on Linux as if they are native, Use linux applications to launch files files located in windows vm without needing to install applications on vm. With easy to use configuration GUI
GNU General Public License v2.0
2.87k stars 75 forks source link

Timed out while connecting to server #88

Open saivishnu725 opened 2 years ago

saivishnu725 commented 2 years ago

I followed all the steps to create a win10 VM in virt-manager and enabled the Remote Desktop and installed cassowary in both Windows VM and Linux host (Pop!_OS) but running cassowary on Linux using python3 -m cassowary -a gives a dialogue box saying that it couldn't connect to the server. I've restarted the VM multiple times and installed cassowary twice but the same issue get repeated. image

The log- python3 -m cassowary -a [ 2022-06-23 17:50:19,283 ] | [ DEBUG ] : [ __init__ -> main ] --> Starting configuration GUI [ 2022-06-23 17:51:27,141 ] | [ DEBUG ] : [ helper -> vm_wake ] --> Attempting to resume VM [ 2022-06-23 17:51:28,965 ] | [ WARNING ] : [ helper -> vm_wake ] --> VM state is not set to suspended : State -> '1' [ 2022-06-23 17:51:29,228 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Opening & closing a test window to trigger login or try to fix black screen bug on first launch [ 2022-06-23 17:51:29,228 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Trying to fix black window bug by opening a test window before requested application - 1655986889.228625CMDLINE: xfreerdp /d:"DESKTOP-ERHVDDE" /u:"bridgeOS" /p:"7259" /v:"192.168.122.196" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" [ 2022-06-23 17:51:52,037 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1655986912.037741 [ 2022-06-23 17:51:52,420 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Created a marker -> One session done [ 2022-06-23 17:51:56,675 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Test window opened and closed ! [ 2022-06-23 17:51:56,911 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> An app was already opened, the black window should not appear now ! [ 2022-06-23 17:51:56,929 ] | [ DEBUG ] : [ main_ui -> __reconnect ] --> Forced reconnection attempt, no active application or explicitly forced Trying to reconnect [ 2022-06-23 17:51:56,957 ] | [ INFO ] : [ client -> init_connection ] --> Attempting to connect to server [ 2022-06-23 18:05:03,165 ] | [ DEBUG ] : [ helper -> vm_wake ] --> Attempting to resume VM [ 2022-06-23 18:05:03,541 ] | [ WARNING ] : [ helper -> vm_wake ] --> VM state is not set to suspended : State -> '1' [ 2022-06-23 18:05:03,578 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Opening & closing a test window to trigger login or try to fix black screen bug on first launch [ 2022-06-23 18:05:03,578 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Trying to fix black window bug by opening a test window before requested application - 1655987703.578729CMDLINE: xfreerdp /d:"DESKTOP-ERHVDDE" /u:"bridgeOS" /p:"7259" /v:"192.168.122.196" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" [ 2022-06-23 18:05:27,233 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1655987727.2331078 [ 2022-06-23 18:05:27,233 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Created a marker -> One session done [ 2022-06-23 18:05:30,247 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1655987730.2473316 [ 2022-06-23 18:05:30,247 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Created a marker -> One session done [ 2022-06-23 18:05:33,263 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Test window opened and closed ! [ 2022-06-23 18:05:33,263 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> An app was already opened, the black window should not appear now ! [ 2022-06-23 18:05:33,263 ] | [ DEBUG ] : [ main_ui -> __reconnect ] --> Forced reconnection attempt, no active application or explicitly forced Trying to reconnect [ 2022-06-23 18:05:33,263 ] | [ INFO ] : [ client -> init_connection ] --> Attempting to connect to server

System information:

MarcSeebold commented 2 years ago

Same here

[ 2022-09-09 19:28:10,010 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Opening & closing a test window to trigger login or try to fix black screen bug on first launch [ 2022-09-09 19:28:10,010 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Trying to fix black window bug by opening a test window before requested application - 1662776890.0106597CMDLINE: xfreerdp /d:"" /u:"Marc" /p:"smkLlPQDZ4oTpkasu+Y=" /v:"192.168.122.201" +clipboard /a:drive,root,/home/marc +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" [ 2022-09-09 19:28:46,329 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1662776926.329871 [ 2022-09-09 19:28:46,330 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Created a marker -> One session done [ 2022-09-09 19:28:49,334 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1662776929.3341308 [ 2022-09-09 19:28:49,334 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Created a marker -> One session done [ 2022-09-09 19:28:52,338 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> Test window opened and closed ! [ 2022-09-09 19:28:52,338 ] | [ DEBUG ] : [ helper -> fix_black_window ] --> An app was already opened, the black window should not appear now ! [ 2022-09-09 19:28:52,338 ] | [ DEBUG ] : [ main_ui -> __reconnect ] --> Forced reconnection attempt, no active application or explicitly forced Trying to reconnect [ 2022-09-09 19:28:52,338 ] | [ INFO ] : [ client -> init_connection ] --> Attempting to connect to server

I know that my VM is configured correctly and that RDP works fine since "winapps" works fine with it.

System information:

goddard-guryon commented 1 year ago

Same here, although I was trying to test this on Windows 11 (everything else seems to work quite nicely and I was planning to add documentation about this in the installation guide; if this error didn't show up).

System information:

Cassowary Linux client version: 0.6 Cassowary windows component version: 0.6 Linux Distribution: Arch Linux (5.19.10-arch1-1) Windows/Edition used: 11

Edit: It seems that in my case, the ipconfig window does get spawned but cassowary is unable to work with it (or gets timed out). Check this:

CMDLINE: xfreerdp /d:"RDPWindows" /u:"Goddard" /p:"***" /v:"192.168.122.75" +clipboard /a:drive,root,/ +decorations /cert-ignore /sound /scale:100 /dynamic-resolution /span  /wm-class:"cassowaryApp-echo" /app:"ipconfig.exe" 
[ 2022-09-23 21:14:51,405 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  App window seems to be created or timeout. Creating marker & Waiting 2 seconds - 1663947891.4053028 
[ 2022-09-23 21:14:51,405 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Created a marker -> One session done 
[ 2022-09-23 21:14:54,409 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  Test window opened and closed ! 
[ 2022-09-23 21:14:54,409 ] | [  DEBUG ] :  [      helper ->     fix_black_window  ] -->  An app was already opened, the black window should not appear now ! 
[ 2022-09-23 21:14:54,409 ] | [  DEBUG ] :  [     main_ui ->          __reconnect  ] -->  Forced reconnection attempt, no active application or explicitly forced 
Trying to reconnect
[ 2022-09-23 21:14:54,410 ] | [   INFO ] :  [      client ->      init_connection  ] -->  Attempting to connect to server

When the program is stuck at the freerdp command, an ipconfig window opens and closes momentarily, but there is no response in the terminal logs. After a few seconds, the next line gets printed and eventually the same error dialog box pops out, saying it is unable to connect to VM.