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

New Keyring not creating in Ubuntu headless renv #148

Open
anemiroffsumer opened this issue Feb 1, 2024 · 6 comments
Open

New Keyring not creating in Ubuntu headless renv #148

anemiroffsumer opened this issue Feb 1, 2024 · 6 comments

Comments

@anemiroffsumer
Copy link

Distributor ID: Ubuntu (HEADLESS)
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

We are running R in non sudo mode as a user. When trying to create a keyring:

sudo keyring::keyring_create(keyring = "example")

We get:

Error: unexpected symbol in "sudo keyring"

keyring::keyring_create(keyring = "dbsumeR_keyring")
Password:
OK
Error in b_ss_keyring_create_direct(self, private, keyring, password) :
Secret service keyring error in 'create_keyring': 'No such secret collection at path: /'
In addition: Warning message:
In b_ss_keyring_create_direct(self, private, keyring, password) :
Password ignored, will be read interactively

sudo keyring::keyring_create(keyring = "dbsumeR_keyring")
Error: unexpected symbol in "sudo keyring"
keyring::keyring_create(keyring = "dbsumeR_keyring")
Password:
OK
Error in b_ss_keyring_create_direct(self, private, keyring, password) :
Secret service keyring error in 'create_keyring': 'No such secret collection at path: /'
In addition: Warning message:
In b_ss_keyring_create_direct(self, private, keyring, password) :
Password ignored, will be read interactively

When running R in Sudo mode

We are able to successfully create a Keyring and a OK status returns.

How can we allow keyring creation in user mode within R ?

@gaborcsardi
Copy link
Member

sudo keyring::keyring_create(keyring = "example")

That is not valid R syntax, so I am not sure how this can be successful. You are clearly getting an error.

@anemiroffsumer
Copy link
Author

anemiroffsumer commented Feb 1, 2024

Ignore the Sudo part. I did not mean to add that syntax in. I realize thats invalid.

keyring::keyring_create(keyring = "dbsumeR_keyring")
Password:
OKb
Error in b_ss_keyring_create_direct(self, private, keyring, password) :
Secret service keyring error in 'create_keyring': 'No such secret collection at path: /'
In addition: Warning message:
In b_ss_keyring_create_direct(self, private, keyring, password) :
Password ignored, will be read interactively

That is the error message in a non sudo version of R

@gaborcsardi
Copy link
Member

Can you include a stack trace? I.e. the output of traceback() right after error happens?

@anemiroffsumer
Copy link
Author

Of course

@anemiroffsumer
Copy link
Author

Hi, is this what you want?

keyring::keyring_create(keyring = "dbsumeR_keyring")
Password:
OK
Error in b_ss_keyring_create_direct(self, private, keyring, password) :
Secret service keyring error in 'create_keyring': 'No such secret collection at path: /'
In addition: Warning message:
In b_ss_keyring_create_direct(self, private, keyring, password) :
Password ignored, will be read interactively

traceback()
5: b_ss_keyring_create_direct(self, private, keyring, password)
4: private$keyring_create_direct(keyring, password)
3: b_ss_keyring_create(self, private, keyring, password)
2: default_backend()$keyring_create(keyring, password)
1: keyring::keyring_create(keyring = "dbsumeR_keyring")

@gaborcsardi
Copy link
Member

Maybe this is a permission issue, and your regular user does not have access to some files it needs to have access to?

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