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

Could not get installed app list #6

Closed
Le0xFF opened this issue Jan 21, 2022 · 31 comments
Closed

Could not get installed app list #6

Le0xFF opened this issue Jan 21, 2022 · 31 comments
Labels
bug Something isn't working

Comments

@Le0xFF
Copy link
Contributor

Le0xFF commented Jan 21, 2022

After connecting to the VM and then switching to the Guest Apps tab, I get the error that "Could not get installed app list from the server due to timeout".

What should I do?
Error

@casualsnek
Copy link
Owner

casualsnek commented Jan 22, 2022

Can you switch to other tabs without error, if you can you look into C:\Users\username\.config\casualrdh\

There should be a log file ! Also make sure restart the vm and do not login as any user before starting cassowary !

@casualsnek casualsnek added the bug Something isn't working label Jan 22, 2022
@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Yes I can switch to other tabs without any problem.
I just boot the VM and then run cassowary, so i don't login at all in the VM!
I tried to create a path to Windows (in the Linux -> Windows tab) but all I get is a system error 87, parameter not correct

Here's also the error log
casualrdh.log

@casualsnek
Copy link
Owner

casualsnek commented Jan 22, 2022

Yes I can switch to other tabs without any problem.

can you open registry editor and browse to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths then attach a screenshot of it !

I tried to create a path to Windows (in the Linux -> Windows tab) but all I get is a system error 87, parameter not correct

Which windows and build number are you using, this looks like error from win32 API !which would have been used for searching installed applications but not for sharing drives

I will update both linux and windows component, which may fix the error on guest app tab and get more logging info for directory sharing error !

also try running: python3 -m cassowary -c guest-run -- "explorer.exe" this should open up windows explorer, check if you have "Z:" Drive available in "This PC"

EDIT: Second may not actually be an error, looks like you chose C as drive letter while creating map use other drive letter.. By the way do you want VM "C:" drive to appear in linux or some folder on linux to show up as drive in windows VM ?

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

browse to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths then attach a screenshot of it!

AppPath

Which windows and build number are you using

WinVer
I already used the same Windows build with WinApps without any issue.

python3 -m cassowary -c guest-run -- "explorer.exe"

It open Windows explorer without any issues and from there I can also see my Linux root from there
Explorer

@casualsnek
Copy link
Owner

Yes I can switch to other tabs without any problem. I just boot the VM and then run cassowary, so i don't login at all in the VM! I tried to create a path to Windows (in the Linux -> Windows tab) but all I get is a system error 87, parameter not correct

Here's also the error log casualrdh.log

The issue will fixed, this was because you are not using english as language, dumb mistake on my part.. Should be fixed on next release that will be done by tonight !

Program looks for error with "[WinError 2] The system cannot find the file specified" to safely ignore but since you are non english it said "[WinError 2] Impossibile trovare il file specificato" which let the exception happen and crashed 😆

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Fair enough, nice to know! So to fix my problem will I just have to install the new .whl file?

@casualsnek
Copy link
Owner

Fair enough, nice to know! So to fix my problem will I just have to install the new .whl file?

Yes and also download the windows setup of newer release and run setup.bat.. Then logout and it should work

For the second issue "Linux->Windows" Tab is for Making a location on host appear as Local Disk in VM, I suppose you chose "C" as drive letter which already exists in windows and therefore the crash.. Use another drive letter and it should work !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

I suppose you chose "C" as drive letter

No, I choose "B" as drive letter, but anyway I'll test it again with the upcoming release and I'll eventually update this issue!

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

I tried a couple of different letters, such as P and L, but always same results.
FolderMapping

@casualsnek
Copy link
Owner

casualsnek commented Jan 22, 2022

Are you using any app launched with cassowary while doing this ? If Not open explorer with python3 -m cassowary -c guest-run -- "explorer.exe" do not close explorer and try this again !, This share is only available while app is running through cassowary session not standard login !

If this solves this problem, this inconvinence should be solved with : #7

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Sadly same error even with explorer.exe open :(
Error2

@casualsnek
Copy link
Owner

casualsnek commented Jan 22, 2022

looks like even Z:\ is not mapped... there must be something wrong
can you open powershell with python3 -m cassowary -c guest-run -- "powershell.exe"
and run net use Z: \\tsclient\root /persistent:Yes and post the output

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

looks like even Z:\ is not mapped

It seems it's mapped only when I open explorer.exe, as you can see from the image.

net use Z: \\tsclient\root /persistent:Yes

Powershell

@casualsnek
Copy link
Owner

looks like even Z:\ is not mapped

It seems it's mapped only when I open explorer.exe, as you can see from the image.

net use Z: \\tsclient\root /persistent:Yes

Powershell

Hmm, it says drive is already in use but i dont see it in explorer !
Also it's not mapped in screenshots as you think !
A properly mapped Z looks like this

image

The drive should also show up in two places as you see in my screenshot...

Can you please open powershell with: python3 -m cassowary -c guest-run -- "powershell.exe
run net use
and gdr -PSProvider 'FileSystem' and share the output of these commands !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Oh okay, yeah that look like a proper mapped drive 😆

run net use
and gdr -PSProvider 'FileSystem' and share the output of these commands!

PS

@casualsnek
Copy link
Owner

Weird Z: drive is not shown in explorer but PS shows like mapping worked !

cah if check if you run: net use P: \\tsclient\root\home\leot\Scaricati /persistent:Yes
in powershell the same way does this give system error 87 too or not

and what hets listed if you run
ls Z:\ in powershell

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

net use P: \tsclient\root\home\leot\Scaricati /persistent:Yes

It just works, it says "command correctly executed" and ofc if I try to give that command again it says that the device is already in use.

With ls I can see my whole root folder.

PS2

@casualsnek
Copy link
Owner

I just created new release can you check if it solves any of your issue !

Also run net use Z: /delete and net use P: /delete before updating !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Okay, with the new release my initial problem is fixed, yay!
May I suggest you to also add the .exe name beside the App name, maybe even between bracket, so one can clearly know what app is adding!

GuestAppsWorking

By the way, the app I added has no proper icon, but I don't know if that depends on my distro/DE (VoidLinux/Mate)

icon


The other problem tho, the mapping folder one, is not fixed I guess? Because I'm still having the same error 87.

FolderMappingNotWorking

@casualsnek
Copy link
Owner

Okay, with the new release my initial problem is fixed, yay! May I suggest you to also add the .exe name beside the App name, maybe even between bracket, so one can clearly know what app is adding!

GuestAppsWorking

By the way, the app I added has no proper icon, but I don't know if that depends on my distro/DE (VoidLinux/Mate)

icon

The other problem tho, the mapping folder one, is not fixed I guess? Because I'm still having the same error 87.

FolderMappingNotWorking

The icons are extracted from the exe file on vm itself, can you find paint's icon in "~/.cache/casualrdh/" ?
I will add exe name in next version !

For the second issue, i will look into it. Since i cannot reproduce it on my system i, i may ask lot of of questions, hope you don't mind it !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

can you find paint's icon in "~/.cache/casualrdh/" ?

No, i find absolutely nothing there :(

cache

I may ask lot of of questions, hope you don't mind it!

Absolutely not! I'll try to reply as fast as possible. This project is what Linux users are craving since years and I'd like to contribute and fix most of the stuffs I can 😄

@casualsnek
Copy link
Owner

image

Were you able to see the app icon, after you click add from the GUI ?

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Nope, not at all.

Paint

@casualsnek
Copy link
Owner

casualsnek commented Jan 22, 2022

I will look into this... can you create separate issue for no icons issue as well as the directory sharing issue ! It will be easier for other people with similar issue too ! Also i will improve logging first it will make handling issues easier for end user as well as me !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

When I tried to make a shortcut for another application, the icon showed up for the other one!

So I guess the problem is just for MSPaint 😆

I guess I'll get that icon from somewhere else.
Word
Word2

In fact icons are being saved to .cache/casualrdh folder!
Word3

@casualsnek
Copy link
Owner

I suspect the directory sharing issue maybe due to Enterprise LTSC edition, can you share link to the ISO image you are using so i can test it ! ?

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 22, 2022

Here's the link!


Btw, an update about the directory sharing. With the new release my root is now properly and automatically mapped when I open explorer.exe through the command python3 -m cassowary -c guest-run -- "explorer.exe"

explorer

But if I close explorer.exe and I open the cassowary gui, the situation is still the same as before!

Error

@casualsnek
Copy link
Owner

i will push an update with more logging.. maybe tomorrow after which i can know what failed ! Since Z: is now mapped i suspect one or two places where it could be breaking !

@casualsnek
Copy link
Owner

Since the main issue for this thread was apps not being listed ! I am closing this one and for System Error 87 error while sharing directory discussion should continue here: #11

@casualsnek
Copy link
Owner

Can you test the v0.3, it should fix this issue properly !

@Le0xFF
Copy link
Contributor Author

Le0xFF commented Jan 24, 2022

Yes, it still works even with the new release. Every app is listed and I'm able to add any of them without any 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
Projects
None yet
Development

No branches or pull requests

2 participants