-
Notifications
You must be signed in to change notification settings - Fork 59
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
NixOS, service fails immediately result 'exit-code' #123
Comments
Hmm -- I should probably get a nixpkgs PR into place for bees 0.7alpha, which is what I'm actually using in production these days. That said, the service wrapper is unmodified between the releases, so I don't expect there'll be any impact on your issue, whatever it may be. What you can do immediately is run the service wrapper by hand, with
That should provide a trace-level log to allow further analysis. |
Thanks for such a quick response, here's the result of that command
|
Ahh! So the If you want to look at the identifiers for your various filesystems, you might look at the output of |
That's what i thought too, but running |
Hmmm. So, the failing line is:
If you run |
|
Hmmmm. Any chance adding the |
no change |
i'm not clear on how |
this seems to work |
i suspect the |
As the author of the script in question -- I very much intended
...or...
|
...that said, if we change the |
no |
adding |
Ahh! Is the filesystem mounted at the time of testing? |
yes |
Interesting. If you can figure out how to reproduce, it'd be curious to run that down. (You might see the automated tests at https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/bees.nix as a starting point). |
...anyhow, if our immediate fix is to add an option in the wrapper script and Nix module to pass |
i'm a hobbyist and quite new to nixos and unsure of how to do either of those things... |
I'll try to get a PR into nixpkgs with the extra wrapper option this weekend at the latest, and can help you run/test it locally when we get there. Speaking of which -- there are arguably two parts to the fix. The Nix module part will be becoming a nixpkgs PR; the part that applies to this repo is an addition to PR #104, and can arguably be folded into that ticket, so I don't think there's call to keep it open here. |
Thinking about it a bit more -- Rather than passing through an extra configuration knob, better to add an automatic fallback from kernel to fstab lookup; that way we aren't adding an additional thing that needs to be tuned. |
that does seem like a cleaner way to go about it |
One important caveat: I expect to have a PR filed against nixpkgs over the weekend; that's not to say it'll be merged. The review queue there is long and slow-moving; being flagged as a package's maintainer package gets one a little bit of leeway, but not always very much. Either way, I'll @-notify you in on that PR when it's filed, and we can pick back up there. |
As reported by @evils-devils in Zygo/bees#123, the bees service wrapper can fail on account of `findmnt` not being able to identify a mounted filesystem using the default (kernel-introspection) mechanism. Fall back to mtab and fstab-based inspection in turn should this fail.
Hi, I hope this is the right place for this issue.
The nixpkgs repo seems quite busy, and @charles-dyfis-net (the nix package maintainer?) seems active here too.
I'm running on NixOS 19.03 with the latest kernel (5.2.9) and bees-service 0.6.1
My config is:
systemctl status
shows:Changing the verbosity doesn't change this, is there another location i should look for logs?
Nix only seems to provide the
beesd
command and notbees
, attempting to runsudo beesd -v 8 <UUID>
fails in:Thanks for your consideration and let me know if there is anything i can do to help solve this.
The text was updated successfully, but these errors were encountered: