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

problems using smb filesystem with kerberos #82

Open
tharwan opened this issue Feb 24, 2025 · 3 comments
Open

problems using smb filesystem with kerberos #82

tharwan opened this issue Feb 24, 2025 · 3 comments

Comments

@tharwan
Copy link

tharwan commented Feb 24, 2025

Hi,

I was trying to setup a filesystem that uses smb and kerberos authentication. Using fsspec in a notebook works just fine. Jupyter-fsspec also initialises the filesystem but then throws errors in the logs. Setup looks like this:

sources:
  - name: "H_Drive"
    path: "smb://<host>/<share>"
    kwargs:
      host: "<host>"

and the logs I could identify:

INFO:jupyter_fsspec.file_manager:Initialized filesystem 'H_Drive' with protocol 'smb'
[E 2025-02-24 09:47:20.400 ServerApp] {
      "Traceparent": "00-bbf169150e001a25cdb58d479a6cb7a4-08bbb02d496b27d0-01",
      "Cookie": "<user>=[secret]; _xsrf=[secret]; jupyterhub-session-id=[secret]",
      "Accept-Encoding": "gzip, deflate, br",
      "Priority": "u=3, i",
      "Accept-Language": "en-GB,en;q=0.9",
      "Authorization": "token [secret]",
      "Sec-Fetch-Dest": "empty",
      "Referer": "<instance>/user/<user>/lab",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15",
      "X-Xsrftoken": "<token>",
      "Sec-Fetch-Mode": "cors",
      "Cache-Control": "no-cache",
      "Pragma": "no-cache",
      "Sec-Fetch-Site": "same-origin",
      "Content-Type": "application/json",
      "Accept": "*/*",
      "X-Forwarded-Port": "443,80",
      "X-Forwarded-Host": "<instance>",
      "X-Forwarded-Proto": "https,http",
      "X-Forwarded-For": "<>:55325, <>,<>",
      "X-Real-Ip": "<>",
      "Connection": "close",
      "Host": "<instance>"
    }
[E 2025-02-24 09:47:20.400 ServerApp] 500 GET /user/<user>/jupyter_fsspec/files?key=[secret]&item_path=&type=default&1740386840283
@martindurant
Copy link
Member

Using fsspec in a notebook works just fine

Can you show what lines you run in the notebook?

Is the jupyter server being run from the same environment as the kernel in the notebook?

@tharwan
Copy link
Author

tharwan commented Feb 24, 2025

I found a workaround to set secret: none in the config.

@martindurant
Copy link
Member

Would appreciate if you could show your final config, for the benefit of others.

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

2 participants