#[SOLVED] NixOS: /run/user/1000/keyring/ssh: no such file or directory

1 messages · Page 1 of 1 (latest)

icy plinth
#

Running dagger:

❯ dagger update
▶ connect 0.6s

▼ moduleSource(refString: ".", requireKind: LOCAL_SOURCE): ModuleSource! 0.5s ERROR
! failed to load sdk for local module source: failed to import module sdk python: select: failed to call module "python-sdk" to get functions: call
  constructor: invalid nil ref
  NotFound: NotFound: rpc error: code = NotFound desc = socket /run/user/1000/keyring/ssh not found: stat /run/user/1000/keyring/ssh: no such file or
  directory
╰╴▼ sdkForModule: python 0.1s ERROR
  ! failed to import module sdk python: select: failed to call module "python-sdk" to get functions: call constructor: invalid nil ref
    NotFound: NotFound: rpc error: code = NotFound desc = socket /run/user/1000/keyring/ssh not found: stat /run/user/1000/keyring/ssh: no such file or
...
    │ 
    ╰╴✘ asModule getModDef 0.1s ERROR
      ! failed to call module "python-sdk" to get functions: call constructor: invalid nil ref
        NotFound: NotFound: rpc error: code = NotFound desc = socket /run/user/1000/keyring/ssh not found: stat /run/user/1000/keyring/ssh: no such file or
        directory
Error: failed to check if module already exists: failed to load sdk for local module source: failed to import module sdk python: select: failed to call module "python-sdk" to get functions: call constructor: invalid nil ref
NotFound: NotFound: rpc error: code = NotFound desc = socket /run/user/1000/keyring/ssh not found: stat /run/user/1000/keyring/ssh: no such file or directory
#

/run/user/1000/keyring/ssh: no such file or directory

#

NixOS: /run/user/1000/keyring/ssh: no such file or directory

crimson hinge
#

IIRC dagger is picking up the SSH_AUTH_SOCK env variable in your machine and passing that over internally so it's able to use it when initializing private modules and/or fetching private resources from your function's arguments

icy plinth
#

I have no idea why it would look up this directory. This error is quite unexpected, and I have no idea what to look for on my machine to start the debugging.

I'll check what SSH_AUTH_SOCK maps to when I am on my machine

crimson hinge
#

I have no idea why it would look up this directory. This error is quite unexpected, and I have no idea what to look for on my machine to start the debugging.

It's checking the SSH_AUTH_SOCK env variable and trying to use that file since the variable if present given that's part of the SSH agent auth socket

icy plinth
#

Ok, I figured it out apparently an update to the cosmic desktop sets up a default value for the env var if gnome keyring is enabled

#

Solution:

services.gnome.gnome-keyring.enable = false;