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

Bus error when using openneuro-cli on UPenn's cluster #3015

Open
tsalo opened this issue Mar 13, 2024 · 4 comments
Open

Bus error when using openneuro-cli on UPenn's cluster #3015

tsalo opened this issue Mar 13, 2024 · 4 comments
Labels

Comments

@tsalo
Copy link

tsalo commented Mar 13, 2024

What went wrong?

I regularly get a Bus error when using the OpenNeuro CLI on UPenn's cluster. I don't know if this is a problem with UPenn's cluster or with openneuro-cli, but I figured I should open an issue.

Expected behavior

When running openneuro login, I would expect it to run successfully. However, after the three prompts, it stalls and then raises a Bus error.

How to reproduce

  1. Create a conda environment:

    conda create --name openneuroenv python=3.11
    conda activate openneuroenv
    conda install -c conda-forge nodejs
    conda update -c conda-forge nodejs  # increases it to v20.9.0
    npm install -g @openneuro/cli
    
    • nodejs is v20.9.0
    • npm is 10.1.0
    • @openneuro/cli is 4.22.0
    • bids-validator is 1.14.3
  2. Run openneuro login. I chose https://openneuro.org, provided my API key, and chose Yes to error reporting.

Desktop

  • Operating System: CentOS Linux 7 (Core)
  • Kernel: Linux 3.10.0-1160.21.1.el7.x86_64
  • Architecture: x86-64

Additional information

No response

@tsalo tsalo added the bug label Mar 13, 2024
@tsalo
Copy link
Author

tsalo commented Mar 15, 2024

@effigies proposed creating a Python-based credential manager, which would probably address this problem.

@tsalo
Copy link
Author

tsalo commented Mar 18, 2024

Can users just use keyring, or does OpenNeuro have specific requirements? Also, is there any way for users to login with the generic credentials? I.e., a username and API key?

@nellh
Copy link
Contributor

nellh commented Mar 18, 2024

openneuro login creates a .openneuro JSON file in the user's home directory and the API key and URL in that file are the only required values.

@tsalo
Copy link
Author

tsalo commented Mar 23, 2024

@nellh do you know how that JSON file could be used for authentication without using openneuro-cli as the credential helper (e.g., with git-credential-datalad)?

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