fix(gerrit): tmpdir-related failure #119
Loading…
Reference in a new issue
No description provided.
Delete branch "kfearsoff/infra:fix-alloy-gerrit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #108
@ -112,6 +112,7 @@ in
pyroscope.java "java" {
targets = discovery.relabel.java.output
forward_to = [pyroscope.write.production.receiver]
tmp_dir = "/var/lib/gerrit" // The default "/tmp" can be cleaned up and provoke failure, see #108
I don't see how this change closes #108 it just moves the occasional unpacking problem from
/tmp
to/var/lib/gerrit
. Btw I'm pretty sure that it's a bad idea to change thetmp_dir
setting to a non-temporary directory.My understanding is that unpacking fails because the
/tmp
path got cleaned up by the system, hence the "directory doesn't exist" error message. The error message is accurate - the tmpdir is deleted, so when Alloy tries to access it, the OS says that the directory doesn't exist. Thetmp_dir
seems to only be used for unpacking the asprof, so it should be fine? I hope?It should be in
/run/alloy
, not in/var/lib/gerrit
, systemd won't cleanup the runtime directory of Alloy.It should use the relevant runtime directory.
3e1d493f80
to6a119600c9
Looks good, will test in production.
I think there's a missing
RuntimeDirectory
directive somewhere.6a119600c9
to9ebba0f74d
9ebba0f74d
tob534a4e6c8
My bad! Should be good now
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.