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
lokinet: init at 0.8.1 // loki-mq: init at 1.2.2 #69175
Conversation
Ah, I think the makefile is trying to set capabilities in the nix store directory. |
Nope, can't set those capabilities no matter what it seems. |
Presumably you want to run this as a |
After a quick scan of the Makefile you may want to review some of the options available. For example: |
I did want to make this as a systemd service, but from what I could tell from the readme, it's to not be run as root, and I think it's meant to be run as the user. |
Also no need to get rid of the line in the makefile or cmakelists, just remove libcap and it doesn't show up. |
If the program allows running as a dedicated non root user you can use something like I'm not familiar with the program though, so I'm not sure what they intend. |
Also this does not build with |
81c691a
to
023d435
Compare
The service has some issues building in a vm, not sure what's wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested this at all, and it isn't 100% complete... but I thought these are some changes I might suggest to this PR: Chiiruno@d6dfb02
023d435
to
9efbf31
Compare
Okay, some new problems.
|
Fixed that problem, but now the lokinet service just doesn't want to start, something about a logic error, that seems to indicate an issue with the code? |
Sorry I've been swamped with a few things lately. I'll try to checkout your branch and look through when I get a chance but in the meantime can you possibly attach the output log including the error? Maybe something will jump out at me. |
No problem at all, no rush here. ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm apologize that this took me much longer to get back to than I expected.
Got all that fixed, but there's yet another issue. |
https://github.com/loki-project/loki-network/blob/master/readme.md#running-on-linux
If following upstream instructions isn't working (I also had an error when I tried) I bet if you file an issue or use any support mediums they have upstream can probably help you out. If you open an issue link here and we can all work through the problem together. |
Is there a way to run this in its current form? Perhaps manually, without the systemd service? |
you may want to bump the version for lokinet to |
97e957e
to
e1fcb81
Compare
Only problems left are the [ exitAuth blacklistSnode upstream addNode ] options, because they don't support lists or something. |
cc @aanderse |
@Chiiruno I'm sorry but due to some RL obligations I've been very busy lately and I'm having trouble finding the time to sit down and familiarize myself with this PR again, because of the size. If @infinisil is not able to review it at this time maybe we could ping the |
I marked this as stale due to inactivity. → More info |
Motivation for this change
Cool p2p thingy.
This is WIP for the moment however, having issues with libcap and this, and can't find any documentation related to this for nix. It does build and execute, just permission issues.
unable to set CAP_SETFCAP effective capability: Operation not permitted
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)