shell-init: error <...> after running ecryptfs-mount-private
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
New
|
Undecided
|
Unassigned |
Bug Description
After manually unmounting the home directory:
```bash
cd /
$ ecryptfs-
Sessions still open, not unmounting
$ ecryptfs-
INFO: Your private directory has been unmounted.
INFO: To see this change in your current shell:
cd /home/kipras
```
and then manually re-mounting the home directory:
```bash
$ ecryptfs-
Enter your login passphrase:
Inserted auth tok with sig [THE_SIGNATURE] into the user session keyring
INFO: Your private directory has been mounted.
INFO: To see this change in your current shell:
cd /home/kipras
```
Everything seems to work. However, if I launch another terminal, I get the following error:
```
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
```
If I `cd ~`, the terminal works fine as expected. BUT, if I launch another terminal - the same `shell-init` error comes up. It keeps happening every time I open a new terminal.
---
Signing out and then signing back in makes the problem go away.
---
I'm using arch linux.
```
$ uname -a
Linux arch-usb 5.0.7-arch1-1-ARCH #1 SMP PREEMPT Mon Apr 8 10:37:08 UTC 2019 x86_64 GNU/Linux
```
---
Also, this is probably not related since this comes from NodeJS, but I also get these errors together with the `shell-init` error:
```
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
path.js:975
const path = i >= 0 ? args[i] : process.cwd();
Error: ENOENT: no such file or directory, uv_cwd
at Object.resolve (path.js:975:47)
at Function.
at Function.
at Function.
at Module.require (internal/
at require (internal/
at /home/kipras/
at Object.<anonymous> (/home/
at Module._compile (internal/
at Object.
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v11.13.0 --silent` to unset it.
```
description: | updated |
tags: | added: ecryptfs-mount-private |
tags: | added: directories getcwd parent shell-init |
tags: |
added: parent-directories removed: directories parent |