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

codchi init command causes error on Windows due to incorrect store.tar.gz location #26

Closed
g4yamanaka opened this issue Sep 13, 2024 · 3 comments
Labels

Comments

@g4yamanaka
Copy link

Issue Description:

Overview:
Running the codchi init command on a Windows environment caused a panic. The issue was due to store.tar.gz being located in a different path than expected.

Environment:

  • OS: Windows 11 Professional (version 10.0.22631, 64-bit)
  • Codchi Version: 0.2.2

Error Log:

Panic occurred in file 'src/platform/mod.rs' at line 34

Failed initializing Driver.: "wsl.exe" "--import" "codchistore" "C:\Users\username\AppData\Local\codchi\store" "C:\Users\username\AppData\Local\Temp\codchi\store.tar.gz" "--version" "2" failed with exit status ExitStatus(ExitStatus(4294967295)). Stderr:

Cause:
The error was caused by store.tar.gz being located at the following path instead of the expected one:

C:\Program Files\WindowsApps\Codchi_0.2.2.0_x64__zhe5fvwpe5y5t\VFS\Common AppData\codchi

Steps to Reproduce:

  1. Install codchi on a Windows environment.
  2. Run the codchi init command.
  3. The error log as shown above is produced.

Resolution:
The issue was resolved by pointing to the correct location of store.tar.gz.

Additional Information:
report:

name = "codchi"
operating_system = "Windows 10.0.22631 (Windows 11 Professional) [64-bit]"
crate_version = "0.2.2"
explanation = """
Panic occurred in file 'src/platform/mod.rs' at line 34
"""
cause = '''
Failed initializing Driver.: "wsl.exe" "--import" "codchistore" "C:\\Users\\username\\AppData\\Local\\codchi\\store" "C:\\Users\\username\\AppData\\Local\\Temp\\codchi\\store.tar.gz" "--version" "2" failed with exit status ExitStatus(ExitStatus(4294967295)). Stderr:
'''
method = "Panic"
backtrace = """

   0: 0x7ff68499b930 - <unresolved>
   1: 0x7ff6846ef64b - <unresolved>
   2: 0x7ff684725b06 - <unresolved>
   3: 0x7ff6846e3e28 - <unresolved>
   4: 0x7ff684980190 - <unresolved>
   5: 0x7fff129e257d - BaseThreadInitThunk
   6: 0x7fff13deaf28 - RtlUserThreadStart"""

@htngr
Copy link
Contributor

htngr commented Sep 16, 2024

Can you post the output of the following commands?

  • codchi --version
  • codchi -vv

htngr added a commit that referenced this issue Sep 16, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14.

@github-actions github-actions bot added the Stale label Nov 16, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants