-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Trying to run CKAN as an administrator #3956
Comments
Hi @mnh713, which version of .NET Framework do you have installed? 4.8 is required to run the latest CKAN release, so you'll need to update that if you haven't already. |
Yes I have v. 4.8
…On Thu, Dec 14, 2023, 3:58 PM HebaruSan ***@***.***> wrote:
Hi @mnh713 <https://github.com/mnh713>, which version of .NET Framework
do you have installed? 4.8 is required to run the latest CKAN release, so
you'll need to update that if you haven't already.
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WV4W4AHNKOS2ZRUO5LTYJNY7PAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWG4ZTAMZRGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK. And when you say it will no longer open, is there an error message? |
No, after opening (launching) Ckan, the program launching window (looks
like a DOS window) then immediately closes. No error message is shown
…On Thu, Dec 14, 2023, 3:59 PM HebaruSan ***@***.***> wrote:
OK. And when you say it will no longer open, is there an error message?
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WVZ7GHXE55VFI6OYP2LYJNZF5AVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWG4ZTONBYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hmm, are you comfortable working from the command line? We might be able to capture more information like this:
That should cause the output from the terminal window to be shown in the window you opened. If any messages were printed before it was closed, it would remain visible instead of disappearing too quickly to read. |
Sure, I'll give it a try
…On Thu, Dec 14, 2023, 4:16 PM HebaruSan ***@***.***> wrote:
Hmm, are you comfortable working from the command line? We might be able
to capture more information like this:
1. Start → run
2. cmd
3. cd to the folder where ckan.exe is
4. ckan.exe --show-console
That should cause the output from the terminal window to be shown in the
window you opened. If any messages were printed before it was closed, it
would remain visible instead of disappearing too quickly to read.
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WV2JHZSTDIJOW4LMIDLYJN3CNAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWG43TQNJTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Okay, I had to use the --asroot--show-console
…On Thu, Dec 14, 2023, 4:17 PM Marshall Hitt ***@***.***> wrote:
Sure, I'll give it a try
On Thu, Dec 14, 2023, 4:16 PM HebaruSan ***@***.***> wrote:
> Hmm, are you comfortable working from the command line? We might be able
> to capture more information like this:
>
> 1. Start → run
> 2. cmd
> 3. cd to the folder where ckan.exe is
> 4. ckan.exe --show-console
>
> That should cause the output from the terminal window to be shown in the
> window you opened. If any messages were printed before it was closed, it
> would remain visible instead of disappearing too quickly to read.
>
> —
> Reply to this email directly, view it on GitHub
> <#3956 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BEV5WV2JHZSTDIJOW4LMIDLYJN3CNAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWG43TQNJTGE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Ahh, if you're running as administrator, can you try not doing that? |
Okay, I'll try again
…On Thu, Dec 14, 2023, 4:36 PM HebaruSan ***@***.***> wrote:
Ahh, if you're running as administrator, can you try not doing that?
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WVZY2QDN5OT6OJKLWFLYJN5NRAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHAZDOOJVGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I typed (see attached),
…On Thu, Dec 14, 2023, 4:36 PM Marshall Hitt ***@***.***> wrote:
Okay, I'll try again
On Thu, Dec 14, 2023, 4:36 PM HebaruSan ***@***.***> wrote:
> Ahh, if you're running as administrator, can you try not doing that?
>
> —
> Reply to this email directly, view it on GitHub
> <#3956 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BEV5WVZY2QDN5OT6OJKLWFLYJN5NRAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHAZDOOJVGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Hi @mnh713, attachments don't come through GitHub's email interface. Can you share what you found in some other way? |
I typed,
d:\SteamLibrary\steamapps\common\ckan.exe --show-console
The replay is "You are trying to run as CKAN as an administrator"
…On Thu, Dec 14, 2023, 4:46 PM HebaruSan ***@***.***> wrote:
Hi @mnh713 <https://github.com/mnh713>, attachments don't come through
GitHub's email interface. Can you share what you found in some other way?
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WV6S4X43LBH7SYJG2QLYJN6T7AVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHA2TEOBUGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks. Do you have a non-administrator user on your PC that you could try this as? |
No, would need to create a non-administrative user, can try and do this now
…On Thu, Dec 14, 2023, 4:53 PM HebaruSan ***@***.***> wrote:
Thanks. Do you have a non-administrator user on your PC that you could try
this as?
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WV6FA4L4PYQKPGAOLCLYJN7NHAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHA3DSMBRGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, sounds good. For what it's worth, CKAN should not be run as an administrator, but if you must do that, the |
So it did not work in the user account I just made??? However I ran it back
on my original account using the --asroot
Ckan v1.34.0 is running
With the "manage game instances" window open over the the main clan window
…On Thu, Dec 14, 2023, 4:56 PM HebaruSan ***@***.***> wrote:
OK, sounds good.
For what it's worth, CKAN should not be run as an administrator, but if
you must do that, the --asroot parameter will allow it.
—
Reply to this email directly, view it on GitHub
<#3956 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BEV5WV7YMM4VS3WL5AN2Q3DYJN7ZFAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHA3TMNBVGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Should I proceed with the instructions given in the manage game instance
window "new game instant" ?
…On Thu, Dec 14, 2023, 5:11 PM Marshall Hitt ***@***.***> wrote:
So it did not work in the user account I just made??? However I ran it
back on my original account using the --asroot
Ckan v1.34.0 is running
With the "manage game instances" window open over the the main clan window
On Thu, Dec 14, 2023, 4:56 PM HebaruSan ***@***.***> wrote:
> OK, sounds good.
>
> For what it's worth, CKAN should not be run as an administrator, but if
> you must do that, the --asroot parameter will allow it.
>
> —
> Reply to this email directly, view it on GitHub
> <#3956 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BEV5WV7YMM4VS3WL5AN2Q3DYJN7ZFAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHA3TMNBVGU>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
So I proceeded ahead and CKAN is running with no lost to (mods). Ckan is
v1.34.0, KSP is v1.12.5.3190
Thank you for your help
Respectfully,
Marshall Hitt
…On Thu, Dec 14, 2023, 5:15 PM Marshall Hitt ***@***.***> wrote:
Should I proceed with the instructions given in the manage game instance
window "new game instant" ?
On Thu, Dec 14, 2023, 5:11 PM Marshall Hitt ***@***.***>
wrote:
> So it did not work in the user account I just made??? However I ran it
> back on my original account using the --asroot
>
> Ckan v1.34.0 is running
>
> With the "manage game instances" window open over the the main clan window
>
> On Thu, Dec 14, 2023, 4:56 PM HebaruSan ***@***.***> wrote:
>
>> OK, sounds good.
>>
>> For what it's worth, CKAN should not be run as an administrator, but if
>> you must do that, the --asroot parameter will allow it.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#3956 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/BEV5WV7YMM4VS3WL5AN2Q3DYJN7ZFAVCNFSM6AAAAABAVQZPU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWHA3TMNBVGU>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
|
Glad you got it working! |
@HebaruSan I wonder if it's trying to read/write a protected file? Maybe add some additional debugging statements around each attempted file access (try/catch) to be a bit more verbose? |
@linuxgurugamer No, it's detecting that the user is an administrator, printing an error, and exiting. |
I am having this error as well. I have uninstalled CKAN and have reinstalled it and I am getting the immediate popup and CKAN closes. When I did a quick screenshot is says because I am trying to run as Admin. I have ensured "run as admin" is unchecked. Now CKAN does not work at all. |
Hi @Armour9, I'm replying here instead of on #3985 so other users who land on the original pinned issue can find it. Don't worry, it's nowhere near as complicated as coding! 😁 Here are some introductions to Windows shortcuts that show how you can set up command line parameters for use with programs:
In the case of CKAN, this is where you would put (This can also be done by typing in a Q: But isn't that annoying? Why do I have to do that? |
So I just want to confirm, there is no way to run the app without administrator privileges? Did some googling and from what I understand is if the app doesn't have admin rights then it won't be able to read/write correctly and thus not work, i.e. running this app requires admin rights? If this is not the case, is it possible to strip the exe of privileges while still logged into the admin profile. I found a cmd line that allows you to run an exe as another user (preferably as one without admin rights) with the "/runas <user_name>" command line, but this still requires that the non-admin user profile exists on the PC. I don't want to do that. From what I see from the earlier "--asroot" flag post and mnh713's post that running it requires admin rights and exposing yourself to risk is unavoidable. |
@QuackQuackZA no, you've misunderstood. CKAN does not need admin privs, and you should not run CKAN as admin. The whole point of this check is to catch it when someone does that. |
Thanks. Is the only way to do it, to create another user on your PC? |
Is there an existing issue for this?
Operating System
Windows 10 home
CKAN Version
version before v. 1.33.2 update
Games
KSP 1
Game Version
1.12.5
Did you make any manual changes to your game folder (i.e., not via CKAN)?
no
Describe the bug
After selecting update Ckan to v.1.33.2 from the Ckan main page. Ckan closed and no longer will open
Steps to reproduce
removed Ckan from computer and re-download Ckan v. 1.33.2 and launch. Ckan still does not launch.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: