[GH-ISSUE #87] [Bug Report] Credentials in System32 #73

Closed
opened 2026-02-27 04:57:23 +03:00 by kerem · 9 comments
Owner

Originally created by @snapina7format on GitHub (Sep 25, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/87

Originally assigned to: @Googolplexed0 on GitHub.

Ongoing error where I can't even boot up zotify, keep getting this error pictured below

Image
Originally created by @snapina7format on GitHub (Sep 25, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/87 Originally assigned to: @Googolplexed0 on GitHub. Ongoing error where I can't even boot up zotify, keep getting this error pictured below <img width="1399" height="659" alt="Image" src="https://github.com/user-attachments/assets/be9169a0-411b-45c3-b7ff-f11455bdb7c4" />
kerem 2026-02-27 04:57:23 +03:00
Author
Owner

@RGPZ commented on GitHub (Sep 27, 2025):

I imagine that it's because of where the credentials.json file is stored (that being your System32 file)

<!-- gh-comment-id:3341162251 --> @RGPZ commented on GitHub (Sep 27, 2025): I imagine that it's because of where the credentials.json file is stored (that being your System32 file)
Author
Owner

@snapina7format commented on GitHub (Sep 27, 2025):

I imagine that it's because of where the credentials.json file is stored (that being your System32 file)

How do I fix that?

<!-- gh-comment-id:3342119220 --> @snapina7format commented on GitHub (Sep 27, 2025): > I imagine that it's because of where the credentials.json file is stored (that being your System32 file) How do I fix that?
Author
Owner

@RGPZ commented on GitHub (Sep 28, 2025):

Change your credentials.json file location to somewhere else in your computer that won't affect your Windows installation like your documents folder if you can. There should be a command for it somewhere on the main page of this GitHub, I'm just too busy right now to check it.

<!-- gh-comment-id:3342225969 --> @RGPZ commented on GitHub (Sep 28, 2025): Change your credentials.json file location to somewhere else in your computer that won't affect your Windows installation like your documents folder if you can. There should be a command for it somewhere on the main page of this GitHub, I'm just too busy right now to check it.
Author
Owner

@snapina7format commented on GitHub (Sep 30, 2025):

Change your credentials.json file location to somewhere else in your computer that won't affect your Windows installation like your documents folder if you can. There should be a command for it somewhere on the main page of this GitHub, I'm just too busy right now to check it.

I am getting a new error despite increasing the bulk wait time to 30

Image
<!-- gh-comment-id:3353227436 --> @snapina7format commented on GitHub (Sep 30, 2025): > Change your credentials.json file location to somewhere else in your computer that won't affect your Windows installation like your documents folder if you can. There should be a command for it somewhere on the main page of this GitHub, I'm just too busy right now to check it. I am getting a new error despite increasing the bulk wait time to 30 <img width="981" height="449" alt="Image" src="https://github.com/user-attachments/assets/10ef829c-bd97-4558-a655-8290802054a8" />
Author
Owner

@Googolplexed0 commented on GitHub (Oct 1, 2025):

On a second look, something here is broken. The real question is why the credentials would ever get stored into the system32 folder.

I assume the CONFIG.get_credentials_location() used its fallback logic, pointing to the cwd of C:\WINDOWS\system32, but this fallback only happens when Python doesn't recognize the operating system environment. Your system is obviously Windows so sys.platform should return "win32" and use the default AppData path.

Unless a user explicitly sets CREDENTIALS_LOCATION = "C:\\WINDOWS\\system32" this should not be possible.

<!-- gh-comment-id:3354368655 --> @Googolplexed0 commented on GitHub (Oct 1, 2025): On a second look, something here is broken. The real question is why the credentials would ever get stored into the system32 folder. I assume the `CONFIG.get_credentials_location()` used its fallback logic, pointing to the cwd of `C:\WINDOWS\system32`, but this fallback only happens when Python doesn't recognize the operating system environment. Your system is obviously Windows so `sys.platform` should return `"win32"` and use the default `AppData` path. Unless a user explicitly sets `CREDENTIALS_LOCATION = "C:\\WINDOWS\\system32"` this should not be possible.
Author
Owner

@snapina7format commented on GitHub (Oct 3, 2025):

On a second look, something here is broken. The real question is why the credentials would ever get stored into the system32 folder.

I assume the CONFIG.get_credentials_location() used its fallback logic, pointing to the cwd of C:\WINDOWS\system32, but this fallback only happens when Python doesn't recognize the operating system environment. Your system is obviously Windows so sys.platform should return "win32" and use the default AppData path.

Unless a user explicitly sets CREDENTIALS_LOCATION = "C:\\WINDOWS\\system32" this should not be possible.

Here's the thing, I don't even know how that happened. The only thing I can think how it got routed there was the new Windows 11 update. I never messed with the location of the zotify, only started having issues again with the new Windows.

How do I change it back to where it used to be? Just the typical command of 'CREDENTIALS_LOCATION='?

<!-- gh-comment-id:3366125690 --> @snapina7format commented on GitHub (Oct 3, 2025): > On a second look, something here is broken. The real question is why the credentials would ever get stored into the system32 folder. > > I assume the `CONFIG.get_credentials_location()` used its fallback logic, pointing to the cwd of `C:\WINDOWS\system32`, but this fallback only happens when Python doesn't recognize the operating system environment. Your system is obviously Windows so `sys.platform` should return `"win32"` and use the default `AppData` path. > > Unless a user explicitly sets `CREDENTIALS_LOCATION = "C:\\WINDOWS\\system32"` this should not be possible. Here's the thing, I don't even know how that happened. The only thing I can think how it got routed there was the new Windows 11 update. I never messed with the location of the zotify, only started having issues again with the new Windows. How do I change it back to where it used to be? Just the typical command of 'CREDENTIALS_LOCATION='?
Author
Owner

@RGPZ commented on GitHub (Oct 4, 2025):

Yeah it should just be 'zotify --config-location "the path for where you want to file to be located in"

<!-- gh-comment-id:3367913514 --> @RGPZ commented on GitHub (Oct 4, 2025): Yeah it should just be 'zotify --config-location "the path for where you want to file to be located in"
Author
Owner

@snapina7format commented on GitHub (Oct 6, 2025):

Moved it appropriately, but still getting this error

Image
<!-- gh-comment-id:3372836034 --> @snapina7format commented on GitHub (Oct 6, 2025): Moved it appropriately, but still getting this error <img width="1694" height="346" alt="Image" src="https://github.com/user-attachments/assets/c7fb4cb9-f7d0-4441-9d4f-ee084dd2b5db" />
Author
Owner

@Googolplexed0 commented on GitHub (Oct 9, 2025):

Might've been related to #97, whose fix should've fixed this too.

<!-- gh-comment-id:3384079735 --> @Googolplexed0 commented on GitHub (Oct 9, 2025): Might've been related to #97, whose fix should've fixed this too.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#73
No description provided.