Open devzero opened 6 days ago
This is an error I've seen when running SB with deno 2. Are you doing that? If so, you may want to switch to an edge build which has been updated for Deno 2.
NixOS is, in fact, running deno 2.0.5. Though I noticed, that as soon as I removed the git plugin config from my SETTINGS, it stopped crashing. I've patched my nix config to use edge (overlay is below for those who care), though I'll have to update the hash every time edge.silverbullet.md changes. I didn't notice any changes in the changelog talking about post 0.9.4 feature work, but I guess it's just in progress.
{channels, inputs, ...}:
final: prev: {
silverbullet = prev.silverbullet.overrideAttrs (attrs: {
version = "0.9.5";
src = final.fetchurl {
url = "https://edge.silverbullet.md/silverbullet.js";
hash = "sha256-1W9gR2smsRhipEd3kfonkTpkbDdbKXzZZ2DFZynNsgM=";
};
});
}
And that builds, but fails to run:
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.221.0/text/closest_string.ts
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.221.0/fmt/colors.ts
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.221.0/console/unicode_width.ts
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.221.0/encoding/base64url.ts
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.170.0/streams/readable_stream_from_iterable.ts
Nov 14 15:30:26 silverbullet[777850]: Download https://deno.land/std@0.170.0/io/buffer.ts
Nov 14 15:30:27 silverbullet[777850]: error: Operation not permitted (os error 1) (for '/var/empty/.cache/deno/remote/https/deno.land')
Nov 14 15:30:27 silverbullet[777850]: Check the permission of the directory.
Nov 14 15:30:27 silverbullet[777850]: at file:///nix/store/555klhxs0arc90pjqpmbjhncb39lvf86-silverbullet-0.9.5/lib/silverbullet.js:2:125
Nov 14 15:30:27 systemd[1]: silverbullet.service: Main process exited, code=exited, status=1/FAILURE
If you update plugs now this should be fixed. Just pushed a new git plug build.
I continually get the crash dump below and as a result it becomes unusable. This is running on NixOS, but my home NixOS machine doesn't have this problem, so it's either related to content of the space, or because this machine is behind a HTTPS proxy with non-standard SSL certs. If I stop the service, wipe out .silverbullet.db* and restart, it fixes it temporarily, but some undetermined amount of time later it happens again every time.
I'm also running the GIT plugin (from SETTINGS):
I just realized it might be the git plugin, so I just disabled that and will track if that isolates the issue.
Host is a x86_64 NixOS 24.11 system running newest silverbullet from nixpkgs.
Here's the log output: