You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be a better idea to use TMPDIR instead of current user's home directory for writing gops port files. The homedir may not be writable, while TMPDIR is. It also allows us to run gops binary with a different user than the app embedding the gops agent.
TMPDIR might be deleted, PID files shouldn't get lost. In the case of long-running processes, you don't want to end up seeing you cannot access to a problematic server because the PID file is gone.
We just merged a PR that allows you to use gops against an address, does that work for you better? 288e543
Maybe we should just silently ignore when we cannot write a PID file and expect user to target the address when they are using the command line tool.
I'm having a quick play adding gops to RancherOS, and so some of the go processes are in namespaced filesystems. I think at the moment, /run is common to most of the containers - so I'm wondering if we could add an agent Option GopsDir, and either softlink that into the user's .config, use a GOPSDIR env var, or something else way more clever :)
it is still an issue if one tries to run inside k8s container with read only root file system.
if nobody objects I would simply ignore read-only file system and permission denied errors on mkdir/write of config. We have remote mode anyway.
Activity
rakyll commentedon Mar 2, 2017
TMPDIR might be deleted, PID files shouldn't get lost. In the case of long-running processes, you don't want to end up seeing you cannot access to a problematic server because the PID file is gone.
We just merged a PR that allows you to use gops against an address, does that work for you better?
288e543
Maybe we should just silently ignore when we cannot write a PID file and expect user to target the address when they are using the command line tool.
SvenDowideit commentedon Sep 16, 2017
I'm having a quick play adding gops to RancherOS, and so some of the go processes are in namespaced filesystems. I think at the moment,
/runis common to most of the containers - so I'm wondering if we could add an agent OptionGopsDir, and either softlink that into the user's.config, use aGOPSDIRenv var, or something else way more clever :)zuoRambo commentedon Nov 13, 2017
#60
xaurx commentedon May 19, 2023
it is still an issue if one tries to run inside k8s container with read only root file system.
if nobody objects I would simply ignore
read-only file systemandpermission deniederrors on mkdir/write of config. We have remote mode anyway.opinion?
inliquid commentedon Oct 13, 2023
@xaurx just got the same issue, k8s environment and read-only filesystem. Maybe give an option to not write to
portfileat all?