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

[Bug] Cache path setting can be just a drive letter but it doesn't work #3801

Closed
navuek opened this issue Mar 3, 2023 · 16 comments · Fixed by #3804
Closed

[Bug] Cache path setting can be just a drive letter but it doesn't work #3801

navuek opened this issue Mar 3, 2023 · 16 comments · Fixed by #3804
Labels
Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN GUI Issues affecting the interactive GUI Windows Issues specific for Windows

Comments

@navuek
Copy link

navuek commented Mar 3, 2023

Background

  • Win11
  • CKAN Version: V1.31.2
  • KSP Version: V1.12.5.3190

Have you made any manual changes to your GameData folder (i.e., not via CKAN)? No

Problem

Installation fails every time for what ever mods used.

Steps to reproduce
It seems what causes the error during installation is changing the cache directory in the settings as shown in the picture:(Blue is before change, red after)
image
then i try to change the directory by just entering through the text box
image
at first it seems like it works, but do not be fooled, it's sneaky.
then after leaving and re-entering the settings page, this is what you get
image
you can no longer edit the download cache location with the change button or any button.

then when attempting to install a mod an error will be out put as so:
Access to the path 'E:\System Volume Information' is denied.
Error during installation!
If the above message indicates a download error, please try again. Otherwise, please open an issue for us to investigate.
If you suspect a metadata problem: https://github.com/KSP-CKAN/NetKAN/issues/new/choose
If you suspect a bug in the client: https://github.com/KSP-CKAN/CKAN/issues/new/choose

Be advised - if you first install a mod or two, then try to change the directory. it will all work as it should with no problems!
Expected behavior
Installation succesful

image
CKAN DOWNLOAD CACHE EDIT FAILURE.txt

@HebaruSan HebaruSan added Support Issues that are support requests Core (ckan.dll) Issues affecting the core part of CKAN Windows Issues specific for Windows labels Mar 3, 2023
@navuek
Copy link
Author

navuek commented Mar 3, 2023

I just reinstalled KSP into another drive, and put CKAN into the same drive F.
And i still get the error attempting to find system volume information of drive E. something is bugged here.
image

@HebaruSan
Copy link
Member

HebaruSan commented Mar 3, 2023

Is your download folder configured to use the E: drive?

Do you have an E: drive?

@navuek
Copy link
Author

navuek commented Mar 3, 2023

Yes i have an E drive, The old cache folder was in the E drive but now i can't even change it, the Directory stays blank like so no matter how many times i change it and to what drive i change it
image

@HebaruSan
Copy link
Member

HebaruSan commented Mar 3, 2023

Does the "Change..." button do anything?
What about "Reset"?

@navuek
Copy link
Author

navuek commented Mar 3, 2023

Yes it open the 'browse for folder window' and the window works, but it stays blank after i click OK
image
Reset does nothing, it remains blank

@navuek
Copy link
Author

navuek commented Mar 3, 2023

When i press Open, it opens the E:\ drive in file explorer

@HebaruSan
Copy link
Member

HebaruSan commented Mar 3, 2023

OK, can you close CKAN and then run it from a command prompt like this (from whatever folder has your ckan.exe)?

.\ckan.exe --debug --show-console

... and then try the Reset button again? It looks like something is throwing an exception, and that would let us see it.

@navuek
Copy link
Author

navuek commented Mar 3, 2023

Wilco

@HebaruSan
Copy link
Member

(The "N files, M MB" string is a placeholder that's supposed to be overwritten with real info about your cache folder, so something's stopping it from getting to that point.)

@navuek
Copy link
Author

navuek commented Mar 3, 2023

That's what i get when input that command in the CMD in the folder that contains the EXE
image

@HebaruSan
Copy link
Member

HebaruSan commented Mar 3, 2023

That error means that folder does not contain ckan.exe, unfortunately. Maybe double check it?

Oh, I didn't notice you're using powershell! Try this instead:

.\ckan.exe --debug --show-console

Forgot that PS adopted Unix's practice of not executing files in current dir by default.

@navuek
Copy link
Author

navuek commented Mar 3, 2023

Now it's running!
give me a moment

@navuek
Copy link
Author

navuek commented Mar 3, 2023

When trying to input a new directory the CMD doesn't react at all, no change, no new lines
some lines were added when the install failed however. so I added below the entire output of the cmd
CKAN INSTALL FAILURE.txt

@navuek
Copy link
Author

navuek commented Mar 4, 2023

When i don't mess with the directory of the cache and reach that weird state where the line is empty, the installations just work
i just managed to install the kerbal engineer and testing it now

it seems that any change to the cache directory bricks the program, but resetting it completely by deleting the CKAN localdata folder and reinstalling KSP fixes it
atleast letting me use the CKAN

@navuek
Copy link
Author

navuek commented Mar 4, 2023

edited to reflect the problem seems to stem from changing the download cache location

@navuek
Copy link
Author

navuek commented Mar 4, 2023

Here is the json config file:

{
  "AutoStartInstance": null,
  "DownloadCacheDir": "E:",
  "CacheSizeLimit": null,
  "RefreshRate": null,
  "Language": "en-US",
  "GameInstances": [
    {
      "Name": "Kerbal Space Program",
      "Path": "F:/SteamLibrary/steamapps/common/Kerbal Space Program",
      "Game": "KSP"
    }
  ],
  "AuthTokens": {},
  "GlobalInstallFilters": []
}

@HebaruSan HebaruSan changed the title [Bug] Installation fails when attempting to gain access to "System Volume Information" [Bug] Cache path setting can be just a drive letter but it doesn't work Mar 4, 2023
@HebaruSan HebaruSan added Bug Something is not working as intended GUI Issues affecting the interactive GUI and removed Support Issues that are support requests labels Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Core (ckan.dll) Issues affecting the core part of CKAN GUI Issues affecting the interactive GUI Windows Issues specific for Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants