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

[nix-bundle] Error that zettelkasten directory doesn't exist, but it definitely does #371

Closed
MaienM opened this issue Sep 5, 2020 · 3 comments
Labels
discussion Forum like question asked; not exactly a feature or a bug.

Comments

@MaienM
Copy link

MaienM commented Sep 5, 2020

I'm trying to use a different directory (that is located on a different mount than $HOME in case this is relevant), but neuron is having none of it.

❯ neuron --zettelkasten-dir /mnt/bulk/Cloud/Dropbox/Zettelkasten rib
neuron: user error (Zettelkasten directory (/mnt/bulk/Cloud/Dropbox/Zettelkasten/) does not exist. You may create it manually using `mkdir /mnt/bulk/Cloud/Dropbox/Zettelkasten/` before running neuron.)

❯ mkdir /mnt/bulk/Cloud/Dropbox/Zettelkasten/
mkdir: cannot create directory ‘/mnt/bulk/Cloud/Dropbox/Zettelkasten/’: File exists

❯ stat /mnt/bulk/Cloud/Dropbox/Zettelkasten/
  File: /mnt/bulk/Cloud/Dropbox/Zettelkasten/
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 131072005   Links: 4
Access: (0755/drwxr-xr-x)  Uid: ( 1000/  maienm)   Gid: (  985/   users)
Access: 2020-09-05 16:50:27.204380970 +0200
Modify: 2020-09-05 16:47:37.094689675 +0200
Change: 2020-09-05 16:47:37.094689675 +0200
 Birth: 2020-09-05 10:31:01.463146085 +0200

❯ neuron --version
0.6.6.1
@srid
Copy link
Owner

srid commented Sep 13, 2020

Is this still an issue?

It seems more like some filesystem mount issue on your system than a bug with neuron.

@srid srid added the discussion Forum like question asked; not exactly a feature or a bug. label Sep 13, 2020
@MaienM
Copy link
Author

MaienM commented Sep 13, 2020

It is still an issue, yes.

❯ neuron --version
0.6.8.1

❯ neuron -d /mnt/bulk/Cloud/Dropbox/Zettelkasten rib
neuron: user error (Zettelkasten directory (/mnt/bulk/Cloud/Dropbox/Zettelkasten/) does not exist. You may create it manually using `mkdir /mnt/bulk/Cloud/Dropbox/Zettelkasten/` before running neuron.)

❯ stat /mnt/bulk/Cloud/Dropbox/Zettelkasten/
  File: /mnt/bulk/Cloud/Dropbox/Zettelkasten/
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 131104769   Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1000/  maienm)   Gid: (  985/   users)
Access: 2020-09-13 08:47:20.421144136 +0200
Modify: 2020-09-13 08:47:24.597803490 +0200
Change: 2020-09-13 08:47:24.597803490 +0200
 Birth: 2020-09-13 08:46:45.301205625 +0200

The folder in question is on a different mount than my home directory (which does work), but everything else I've done with it has worked fine, neuron is the first program to have any sort of issues with it.

/dev/nvme0n1p2 on / type ext4 (rw,relatime)
/dev/sda1 on /mnt/bulk type ext4 (rw,relatime)

Note that I am using the bundled version of neuron (https://github.com/srid/neuron/releases/download/nightly/neuron-linux-bundle), in case that's relevant.

@srid srid changed the title Error that zettelkasten directory doesn't exist, but it definitely does [nix-bundle] Error that zettelkasten directory doesn't exist, but it definitely does Sep 13, 2020
@MaienM
Copy link
Author

MaienM commented Sep 13, 2020

I think this is caused by this issue in nix-bundle. Looking at the current list of mapped paths it seems /mnt is not included.

I don't think there's much this project can do about this problem, so I'll close this for now. For anyone else facing this issue a workaround is using the the docker image with a volume mount:

docker run --rm -i -v "$PWD:/zettelkasten" sridca/neuron neuron -d /zettelkasten rib --watch

@MaienM MaienM closed this as completed Sep 13, 2020
srid added a commit that referenced this issue Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Forum like question asked; not exactly a feature or a bug.
Projects
None yet
Development

No branches or pull requests

2 participants