NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.68k stars 13.83k forks source link

LBRY will not start because of permission error #119933

Open yisraeldov opened 3 years ago

yisraeldov commented 3 years ago

Describe the bug LBRY will not start because there is a permissions error

To Reproduce Steps to reproduce the behavior:

  1. start lbry
  2. will not start
  3. chmod a+wrx /home/yisraeldov/.local/share/lbry/lbryum/lbc_mainnet/headers
  4. Now you can start

Expected behavior LBRY should start without this

Notify maintainers @enderger

Metadata

- system: `"x86_64-linux"`
 - host os: `Linux 5.10.24, NixOS, 20.09.3866.9a1672105db (Nightingale)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.10`
 - channels(root): `"home-manager-20.09, nixos-20.09.3866.9a1672105db, nixos-unstable-21.05pre283367.0a5f5bab0e0"`
 - channels(yisraeldov): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
enderger commented 3 years ago

I cannot reproduce this on either of my systems.

yisraeldov commented 3 years ago

Strange, did you remove the file that I mentioned before installing ?

On Tue, 2021-04-20 at 06:04 -0700, Daniel wrote:

I cannot reproduce this on either of my systems.

enderger commented 3 years ago

Hmm, moving that file seems to actually cause that behavior. Unfortunately, since I am just wrapping the AppImage I don't know exactly if I can fix that. It seems like a state file used by Lbry's cryptocurrency, which cannot reside in the immutable Nix store. If anyone else has any ideas on how to fix this, I'd be more than happy to hear them, as I'm still pretty new to Nixpkgs.

Also, sorry for the delayed response, I was still waking up and don't usually get onto my machines until I've been up for a hour or 2. I was working off of the fact that it worked in every instance when getting it into Nixpkgs.

karolchmist commented 3 years ago

I can reproduce the problem, and @yisraeldov's command fixes it:

chmod a+wrx ~/.local/share/lbry/lbryum/lbc_mainnet/headers

Not sure how to fix the installation since it's a file in user folder...

enderger commented 3 years ago

From what I can tell, this file is made at first run. The install script does not even have access to user directories, so a fix may not be possible on our end.

Artturin commented 2 years ago

Report the issue upstream

billksun commented 7 months ago

Just encountered this issue. Still relevant.

yisraeldov commented 7 months ago

@billksun Not sure, it never starts for me. But I sadly think the project is dead.

raspher commented 7 months ago

@enderger @yisraeldov please look at https://github.com/lbryio/lbry-desktop/issues/7766 it's that one i've got a month or two ago. It won't start cos of died servers. I've fixed wallet servers locally and it worked.

Development slowed down 2y ago, now last commit is 10 moths old. This may be patched, but sadly /decentralized, user-controlled content marketplace/ is not as decentralized as one may think.

nktrjsk commented 1 month ago

Fix also worked for me