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

Cannot get list of installed apps #12

Closed
peterlang-p opened this issue Jan 24, 2022 · 18 comments
Closed

Cannot get list of installed apps #12

peterlang-p opened this issue Jan 24, 2022 · 18 comments
Labels
bug Something isn't working feedback requested Maintainer has worked on issue and feedback was requested

Comments

@peterlang-p
Copy link

peterlang-p commented Jan 24, 2022

Hey there :)
this will most likely be in relation to issue#6 which was closed, but for me it's still not working. My server is running on a german windows machine.

On my linux machine there are some apps listed, but when clicking on the scan button it does not really do anything:
Screenshot_20220124_103027

The log on the windows server mainly shows these two messages:
Screenshot_20220124_103001
(Basically it says: "The system cannot find the given file" and "There's no more data available")

Starting applications from commandline like python3 -m cassowary -c guest-run -- "explorer.exe" works as expected.

I'm using cassowary v0.2 for server and client.
Thanks for helping me with that :) and let me know, what further information I should provide!

Best regards!

@casualsnek
Copy link
Owner

This is fixed but i have not pushed a released containing the fix !
This is the same bug as previous... Next release will be done on another version bump.. If you need the compiled windows component i can attach it here, or you can build it yourself !

@peterlang-p
Copy link
Author

Ah sorry for that. I assumed the v0.2 already had the fix, due to the changelog:
v0.2 Scanning for app now should work on system with non english locale
No need to hurry, I'll wait for your "official" release :)

@casualsnek
Copy link
Owner

I just published, a new release can you check if it fixes your issue ?

@peterlang-p
Copy link
Author

peterlang-p commented Jan 24, 2022

Thanks for that. I'm afraid v0.3 won't start the client for me:

Downloads  python3 -m cassowary -a                                                                                                            ✔ 
[ 2022-01-24 13:20:57,874 ] | [  DEBUG ] :  [    __init__ ->                 main  ] -->  Starting configuration GUI 
error: Failed to get option 'domain': Option argument is empty
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/lang/.local/lib/python3.9/site-packages/cassowary/__main__.py", line 4, in <module>
    main()
  File "/home/lang/.local/lib/python3.9/site-packages/cassowary/__init__.py", line 154, in main
    mainui = MainWindow()
  File "/home/lang/.local/lib/python3.9/site-packages/cassowary/gui/components/main_ui.py", line 30, in __init__
    self.__reconnect(no_popup=True)
  File "/home/lang/.local/lib/python3.9/site-packages/cassowary/gui/components/main_ui.py", line 151, in __reconnect
    vm_wake()
  File "/home/lang/.local/lib/python3.9/site-packages/cassowary/base/helper.py", line 259, in vm_wake
    vms = subprocess.check_output(["virsh", "domstate", cfgvars.config["vm_name"]])
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['virsh', 'domstate', '']' returned non-zero exit status 1.

@casualsnek
Copy link
Owner

casualsnek commented Jan 24, 2022

i will look into it publish a hotfix asap ! can you share your ~/.config/casualrdh/config.json here ?

@peterlang-p
Copy link
Author

Sure thing, here's my config.json:

{
   "host":"192.168.178.33",
   "winvm_username":"Home",
   "winvm_hostname":"DESKTOP",
   "winvm_password":"{notmypw}",
   "vm_name":"",
   "term":"xterm",
   "rdp_scale":100,
   "rdp_multimon":0,
   "def_icon":"/home/user/Downloads/gui/extrares/defaulticon.png",
   "rdp_flags":"",
   "port":7220,
   "cached_drive_shares":{},
   "winshare_mount_root":"/mnt/casualrdh",
   "eom":"~~!enm!~~",
   "logfile":"/home/user/.config/casualrdh/casualrdh.log",
   "app_session_client":"xfreerdp",
   "full_session_client":"xfreerdp",
   "vm_auto_suspend":0,
   "vm_suspend_delay":600
}

@casualsnek
Copy link
Owner

casualsnek commented Jan 24, 2022

Sure thing, here's my config.json:

{
   "host":"192.168.178.33",
   "winvm_username":"Home",
   "winvm_hostname":"DESKTOP",
   "winvm_password":"{notmypw}",
   "vm_name":"",
   "term":"xterm",
   "rdp_scale":100,
   "rdp_multimon":0,
   "def_icon":"/home/user/Downloads/gui/extrares/defaulticon.png",
   "rdp_flags":"",
   "port":7220,
   "cached_drive_shares":{},
   "winshare_mount_root":"/mnt/casualrdh",
   "eom":"~~!enm!~~",
   "logfile":"/home/user/.config/casualrdh/casualrdh.log",
   "app_session_client":"xfreerdp",
   "full_session_client":"xfreerdp",
   "vm_auto_suspend":0,
   "vm_suspend_delay":600
}

Thanks figured out the issue, fixing it.. Also you may remove the def_icon line from config, it will fix icons for windows app while creating shortcuts from GUI !

By the way is your windows instance running on virt-manager, real hardware or any other virtualization platform ?

@peterlang-p
Copy link
Author

Got it, thanks. I'm running a real win10 pc, since my notebook can't handle a windows vm next to my normal usage :)

@casualsnek
Copy link
Owner

Got it, thanks. I'm running a real win10 pc, since my notebook can't handle a windows vm next to my normal usage :)

Ahh i see, the app crashed because your VM name was empty and virsh returned an error, i will update create a within a few hour that should handle it properly !

@casualsnek
Copy link
Owner

casualsnek commented Jan 24, 2022

Can you test the attached build of linux client ? If it works i will create a new release !

https://anonfiles.com/T4AfucD4x9/cassowary-0.3-py3-none-any_whl

( It was packaged after commit: 60b02a6 )

@casualsnek casualsnek added bug Something isn't working feedback requested Maintainer has worked on issue and feedback was requested labels Jan 25, 2022
@peterlang-p
Copy link
Author

The installation works now but I can't connect to my windows anymore. Clicking on Reconnect to server shows the windows login screen shortly and afterwards this popup appears:
Screenshot_20220125_091633

@casualsnek
Copy link
Owner

Looks like windows server application is not starting properly, can you send the windows logs !

@peterlang-p
Copy link
Author

peterlang-p commented Jan 25, 2022

Starting an application via commandline works, though. It's just the gui application that seems not to be able to establish the connection. I'll get the windows logs and edit them here in a minute. (Well seems like there are no new logs. The last entry in ..\.config\casualrdh\casualrdh.log is from yesterday)

@casualsnek
Copy link
Owner

Starting an application via commandline works, though. It's just the gui application that seems not to be able to establish the connection. I'll get the windows logs and edit them here in a minute.

When starting the app, windows server application is not used so it is working, can you check if opening GUI while an application launched from commandline is active corrects the connection issue !

@peterlang-p
Copy link
Author

Trying to start the gui with an windows application already running via commandline closes the application and prompts the upper timeout message.

@casualsnek
Copy link
Owner

Trying to start the gui with an windows application already running via commandline closes the application and prompts the upper timeout message.

Maybe the cassowary server application is not running on windows ? Can you open task manager "taskmgr.exe" and check if cassowary process is active ?

@casualsnek
Copy link
Owner

Are you using laptop with windows installation? i just found out that created scheduled task don't run on laptops unless plugged in while !

@casualsnek
Copy link
Owner

I am closing this issue since there was no further response for a long time, the scheduled task not running on laptops is fixed now. If you encounter any other issue, feel free to open another issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feedback requested Maintainer has worked on issue and feedback was requested
Projects
None yet
Development

No branches or pull requests

2 participants