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

Leaving empty files, and then failing on reading them. #1062

Open
2 tasks done
ruben-arts opened this issue Feb 13, 2025 · 0 comments
Open
2 tasks done

Leaving empty files, and then failing on reading them. #1062

ruben-arts opened this issue Feb 13, 2025 · 0 comments

Comments

@ruben-arts
Copy link
Collaborator

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

When installing a prefix. It might result in a failure on fetching packages, if that happens the installation is instantly killed. This could result in leaving empty files. In my case it left an empty prefix/conda-meta/bla.json. This will then give an issue as the installer first checks for existing installed packages. Resulting in no way to continue without removing the prefix. As it doesn't tell you what is going wrong.

Error:
    EOF while parsing a value at line 1 column 0

Additional Context

I walked into this while testing the S3 authentication which might fail and thus stopping the installation abruptly. This might also be an issue as it doesn't close down nicely. Resulting in a left over progress bar. e.g.:

❯ pixi i
    ⠁ validate cache       [00:00:00] [━━━━━━━━━━╾─────────] markupsafe (+20)
    ⠁ download & extract   [00:00:00] [────────────────────]      0 B @ 0 B/s    email_validator (+16)
    ⠁ installing packages  [00:00:00] [━───────────────────]     2/61 python_abi (+18)                                                                         Error: 
  × failed to fetch my-webserver-0.1.0-pyh4616a5c_0.conda
      validate cache       [00:00:00] [━━━━━━━━━━━━━━━━━━━━] markupsafe (+16)
      download & extract   [00:00:00] [━━━━━━━━━━━━━━━━━━━━] 3.42 MiB @ 227.13 MiB/s email_validator (+16)
    ⠁ installing packages  [00:00:00] [━───────────────────]     2/61 python_abi (+18)    

Then trying again results in:

❯ pixi i -vvv
...
 INFO pixi::lock_file::update: the lock-file is up-to-date
 INFO pixi::lock_file::update: Updating prefix
DEBUG pixi_utils::reqwest: Using s3_config: {"rattler-s3-testing": Custom { endpoint_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("e1a7cde76f1780ec06bac859036dbaf7.eu.r2.cloudflarestorage.com")), port: None, path: "/", query: None, fragment: None }, region: "auto", force_path_style: true }}
 INFO rattler_networking::s3_middleware: Creating S3 middleware using {"rattler-s3-testing": Custom { endpoint_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("e1a7cde76f1780ec06bac859036dbaf7.eu.r2.cloudflarestorage.com")), port: None, path: "/", query: None, fragment: None }, region: "auto", force_path_style: true }}
DEBUG pixi_utils::reqwest: s3_middleware: S3Middleware { s3: S3 { auth_storage: AuthenticationStorage { backends: [KeyringAuthenticationStorage { store_key: "rattler" }, FileStorage { path: "/Users/rubenarts/.rattler/credentials.json", cache: RwLock { data: FileStorageCache { content: {} }, poisoned: false, .. } }, NetRcStorage { machines: {} }], cache: Mutex { data: {}, poisoned: false, .. } }, config: {"rattler-s3-testing": Custom { endpoint_url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("e1a7cde76f1780ec06bac859036dbaf7.eu.r2.cloudflarestorage.com")), port: None, path: "/", query: None, fragment: None }, region: "auto", force_path_style: true }}, expiration: 300s } }
DEBUG pixi::environment::conda_prefix: updating prefix for 'default'
Error: 
  × EOF while parsing a value at line 1 column 0
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

1 participant