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

Identity manager spawns mutliple processes but doesnt unlock app #387

Open
jimothyr opened this issue Feb 9, 2024 · 20 comments
Open

Identity manager spawns mutliple processes but doesnt unlock app #387

jimothyr opened this issue Feb 9, 2024 · 20 comments

Comments

@jimothyr
Copy link

jimothyr commented Feb 9, 2024

Describe the bug
Ubuntu 23.10 wine 9.0 in x11, installer works well, app opens to sign in screen. The web browser opens and allows log in to Autodesk, then the id manager fails to authenticate the running app which freezes until the adski mgr prcesses are closed.
AdskidentityManager.exe creates multiple processes and adds more as time goes on. Fusion window has no close icon until idmgr processes are killed.

image

To Reproduce
Steps to reproduce the behavior:

  1. install with script
  2. open from desktop shortcut / launcher
  3. click sign in link
  4. log in to Autodesk
  5. click token link
  6. open link with system handler
  7. .=

Expected behavior
app is authenticated and continues to launch

Screenshots
If applicable, add screenshots to help explain your problem.

  • Elitebook laptop (integrated intel graphics)
  • Operating system : Ubuntu 23.10
  • DXVK mode
  • wine 9.0
    image
@jimothyr
Copy link
Author

jimothyr commented Feb 9, 2024

possible duplicate of #385 and #386

@Farouk123456
Copy link

if the sign in button doesnt work then its likely the mimtype handler isn't handling the adskid link that handels the login you can try copying that link by inspecting the login button and running:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\99249ee497b13684a43f5bacd5f1f09974049c6b\Autodesk Identity Manager\AdskIdentityManager.exe" [adskid link]

example:

env ROOTFOLDER=~/.fusion360 WINEPREFIX=/home/farouk/.fusion360/wineprefixes/default wine /home/farouk/.fusion360/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/99249ee497b13684a43f5bacd5f1f09974049c6b/Autodesk\ Identity\ Manager/AdskIdentityManager.exe "adskidmgr:/login?code=kfeIty8io0Wr-SCPg7Pi2sXFbNkCCHXj0XxQOKvc&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAuM3hURTF2dW5sbWJueWRCeS1MdElBQWh5VEFaN0FqM3pSRlh1LUswV29Lby51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg="

@jimothyr
Copy link
Author

jimothyr commented Feb 9, 2024

after some jiggling, this seems to have worked... my folder name was different (obviously) , thank you for this..
Is there any way of getting this working in the build? i wouldn't know where to start to assist here!!

@cjwhitedev
Copy link

this worked for me as well, thank you!

@Farouk123456
Copy link

Maybe this works on other Linux devices but on mine the adskid-mgr.desktop file doesn't get used to open this link which is the problem.

in thread #381 I mentioned this as well, and they seemingly fixed it, so I'm not sure why it didn't work for you !

@jimothyr
Copy link
Author

looks like the desktop link has the wrong file name to the path to the idmgr executable

the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now.

image

@Vanilla009
Copy link

This didn't work for me. I tried the command
env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/james/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" adskidmgr:/login?code=T5qGpAc23up_szo9KPgnSFt-lnkUy7GWP89psqt9&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAueEpzblNIVHd6d2kzZGRqT0k4ajhZNzZHVVctdkY4a054YXFyYW1DalVONC51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg=
and it gave me the error
wine: failed to open "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2": c0000135
but doesn't open a new line. If I hit enter, I get
[1]+ Exit 53 env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/james/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" adskidmgr:/login?code=T5qGpAc23up_szo9KPgnSFt-lnkUy7GWP89psqt9

@jimothyr
Copy link
Author

it took me a few runs at it.

  1. the askidmgr:code bit needs to be in quotes
    2.I had to try various combos of full path, relative path for wine prefix, , quoted and not quoted. to be honest I am not 100% sure which combo worked!

@Vanilla009
Copy link

Tried it in quotes and got this:
wine: could not open working directory L"unix\\home\\james\\", starting in the Windows directory. wine: could not open working directory L"unix\\home\\james\\", starting in the Windows directory. 0810:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 0810:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems 0810:fixme:file:NtLockFile I/O completion on lock not implemented yet 0810:fixme:win:RegisterPowerSettingNotification (000000000003010E,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub 0810:fixme:sync:SetWaitableTimerEx (00000000000000E0, 00007FFFFE1FCD08, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub 0810:fixme:win:UnregisterPowerSettingNotification (00000000DEADBEEF): stub

@robert-stevenson-1
Copy link

looks like the desktop link has the wrong file name to the path to the idmgr executable

the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now.

image

This was the fix for me.
Inside adskidmgr-opener.desktop, my FOLDER in the path after .../default" wine "C:\Program Files\Autodesk\webdeploy\production\{FOLDER}\... did not match correctly.

(I found adskidmgr-opener.desktop in /home/robert/.local/share/applications, in case anyone was looking for it)

The behaviour after was what is expected (kind of):
Click signing => Browser Opens => Sign in completed => Open the Callback link => Focus returns to fusion

  • The "kind of" behaviour is that fusion crashed, but after relaunching fusion and waiting a bit, the program is running now

Not sure how to go about fixing it, as im not sure why it was incorrect.

@Vanilla009
Copy link

looks like the desktop link has the wrong file name to the path to the idmgr executable
the /webdeploy/xxxxxx number is different on for me than was in the build version.. below is my updated version.. this seems to work now.
image

This was the fix for me. Inside adskidmgr-opener.desktop, my FOLDER in the path after .../default" wine "C:\Program Files\Autodesk\webdeploy\production\{FOLDER}\... did not match correctly.

(I found adskidmgr-opener.desktop in /home/robert/.local/share/applications, in case anyone was looking for it)

The behaviour after was what is expected (kind of): Click signing => Browser Opens => Sign in completed => Open the Callback link => Focus returns to fusion

  • The "kind of" behaviour is that fusion crashed, but after relaunching fusion and waiting a bit, the program is running now

Not sure how to go about fixing it, as im not sure why it was incorrect.

That worked, thank you!

@mtthw-meyer
Copy link

That does it. Gotta fix adskidmgr-opener.desktop

@IpsumDominum
Copy link

Hi guys,

I've done the .desktop fix, but unfortunately still not working.
This is what my .desktop looks like

[Desktop Entry]
Type=Application
Name=adskidmgr Scheme Handler
Exec=env WINEPREFIX="/home/ipsum/.fusion360/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\57cd45aa09be2d79663784069561ec17eda99ca8\Autodesk Identity Manager\AdskIdentityManager.exe" %u
StartupNotify=false
Terminal=true
MimeType=x-scheme-handler/adskidmgr;

Using the manual command:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/home/mycomputername/.fusion360/wineprefixes/default" wine "C:/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskidentityManager.exe --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2" "adskidmgr:/login?code=thecode"

Does not work for me. I get the same error

wine: could not open working directory L"unix\\home\\ipsum\\", starting in the Windows directory. wine: could not open working directory L"unix\\home\\ipsum\\", starting in the Windows directory. 0810:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 0810:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems 0810:fixme:file:NtLockFile I/O completion on lock not implemented yet 0810:fixme:win:RegisterPowerSettingNotification (000000000003010E,{02731015-4510-4526-99e6-e5a17ebd1aea},0): stub 0810:fixme:sync:SetWaitableTimerEx (00000000000000E0, 00007FFFFE1FCD08, 0, 0000000000000000, 0000000000000000, 0000000000000000, 32) semi-stub 0810:fixme:win:UnregisterPowerSettingNotification (00000000DEADBEEF): stub 

@Vanilla009 Did you have to do anything extra to get it working in the end besides modifying the .desktop file?

@Vortetty
Copy link

using

WINEPREFIX="/home/ortettyv/.fusion360/wineprefixes/default" wine "/home/ortettyv/.fusion360/wineprefixes/default/drive_c/Program Files/Autodesk/webdeploy/production/57cd45aa09be2d79663784069561ec17eda99ca8/Autodesk Identity Manager/AdskIdentityManager.exe"

seems to work well, after restarting fusion once running it

@alextrical
Copy link
Contributor

alextrical commented Feb 14, 2024

For anyone having major issues logging in please try the Proof of concept script that has been tried and tested to work.
The script to paste into your terminal can be found here
#381 (comment)

The other issue we will all be having is that Autodesk change the numbers after the 'Production folder' with every update, this results in the link changing every couple of weeks. Im aiming to get a fix for that in the next couple of days.

For now, please check the folder inside of "C:\Program Files\Autodesk\webdeploy\production" and change the script accordingly

@Vanilla009
Copy link

--process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2

I think you need to remove the --process_name Autodesk.IDSDK.DefaultProcess-v2-server_name Autodesk.IDSDK.DefaultServer-v2 from the command.

@Sjgharib
Copy link

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

@ZachCharlick
Copy link

if the sign in button doesnt work then its likely the mimtype handler isn't handling the adskid link that handels the login you can try copying that link by inspecting the login button and running:

env ROOTFOLDER=~/.fusion360 WINEPREFIX="/wineprefixes/default" wine "C:\Program Files\Autodesk\webdeploy\production\99249ee497b13684a43f5bacd5f1f09974049c6b\Autodesk Identity Manager\AdskIdentityManager.exe" [adskid link]

example:

env ROOTFOLDER=~/.fusion360 WINEPREFIX=/home/farouk/.fusion360/wineprefixes/default wine /home/farouk/.fusion360/wineprefixes/default/drive_c/Program\ Files/Autodesk/webdeploy/production/99249ee497b13684a43f5bacd5f1f09974049c6b/Autodesk\ Identity\ Manager/AdskIdentityManager.exe "adskidmgr:/login?code=kfeIty8io0Wr-SCPg7Pi2sXFbNkCCHXj0XxQOKvc&state=VzRPelVCUnJDVXRsVlJJZ0FSYnY1clJJS01IZTdkWHAuM3hURTF2dW5sbWJueWRCeS1MdElBQWh5VEFaN0FqM3pSRlh1LUswV29Lby51c2VyLXByb2ZpbGUlM0FyZWFkJTIwdXNlciUzQXJlYWQlMjB1c2VyJTNBd3JpdGUlMjB2aWV3YWJsZXMlM0FyZWFkJTIwZGF0YSUzQXJlYWQlMjBkYXRhJTNBd3JpdGUlMjBkYXRhJTNBY3JlYXRlJTIwZGF0YSUzQXNlYXJjaCUyMGJ1Y2tldCUzQWNyZWF0ZSUyMGJ1Y2tldCUzQXJlYWQlMjBidWNrZXQlM0F1cGRhdGUlMjBidWNrZXQlM0FkZWxldGUlMjBjb2RlJTNBYWxsJTIwYWNjb3VudCUzQXJlYWQlMjBhY2NvdW50JTNBd3JpdGUlMjBvcGVuaWQlMjBkZXZpY2Vfc3NvLnVzZV9hbHRlcm5hdGl2ZV9wcm9kdWN0X3BhdGg="

I am experiencing this same problem: how do you "[copy] that link by inspecting the login button"? Nothing opens in Firefox or any browser, and right clicking on the Autodesk Fusion application link doesn't have any response.

@ZachCharlick
Copy link

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

I'm in the same boat - nothing opens in a browser at all

@joaomamede
Copy link

My problem is that I can't even get it to open firefox. I'm using Wine 9.2 on U 23.10. Did you guys do anything special to get it to open the browser in the first place?

I'm in the same boat - nothing opens in a browser at all

Same here. I tried to install firefox with winetricks and make the regedit use it and no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests