Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Tests do not work for the non-root user inside the docker container #83

Open
dashohoxha opened this issue Jul 29, 2018 · 4 comments
Open

Comments

@dashohoxha
Copy link
Member

They work for the root user but fail for the developer user.

I have localized the problem to this error:

$ gpg --list-secret-keys
gpg: can't connect to the agent: IPC connect call failed

When it is called with sudo it works:

$ sudo gpg --list-secret-keys
gpg: WARNING: unsafe ownership on homedir '/home/developer/.gnupg'
/home/developer/.gnupg/pubring.kbx
----------------------------------
sec   rsa4096/18D1DA4D9E7A4FD0 2016-05-14 [SC] [expires: 2026-07-27]
      A9446F790F9BE7C9D108FC6718D1DA4D9E7A4FD0
uid                 [ultimate] Test 1 <[email protected]>
ssb   rsa4096/12A2B2669B636DD4 2016-05-14 [E] [expires: 2026-07-27]
@dashohoxha
Copy link
Member Author

@diveshuttam can you try ds inject run-tests.sh? Does it work for you?
Now it seems to work for me, and I have not changed anything. This is strange.

@diveshuttam
Copy link

diveshuttam commented Jul 31, 2018

I tried I am also finding errors as yours while running the ds inject run-tests.sh though inside the container i am able to run gpg --list-secret-keys after su developer.

@dashohoxha
Copy link
Member Author

If t03-init.t works, that's Ok. Because it was failing right there, and trying to locate the problem I found that gpg --list-secret-keys was not working as expected.

@diveshuttam
Copy link

diveshuttam commented Jul 31, 2018

No my t03 init doesn't work. I am looking into this- mostly there is a problem with the permissions on the files in .egpg/.gnupg.

It gives the same errors as you listed above:
gpg: can't connect to the agent: IPC connect call failed

@diveshuttam diveshuttam mentioned this issue Aug 17, 2018
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants