https://pantsbuild.org/ logo
s

salmon-planet-80683

09/21/2021, 10:17 PM
Hi folks! Have a Pants permissions issue. I have a <thing that runs jobs> - Hashicorp Nomad - that invokes
./pants
as root to execute a test. When I then try and do a
./pants
as <my own user> i, understandably, get something along the lines of
Copy code
pants.pantsd.process_manager.ProcessManager.MetadataError: failed to purge metadata directory /ROOT_TO_MY_PANTS?PROJECT/.pids/26629ce97d56/pantsd: PermissionError(13, 'Permission denied')
Would there be a way for me to execute the
purge_metadata_by_name
stuff as root so that it's not screwed up for my normal user?
w

witty-crayon-22786

09/21/2021, 10:23 PM
it’s always safe to remove the
/ROOT_TO_MY_PANTS?PROJECT/.pids
directory
so yea: you can remove that directory with sudo, and
pantsd
will shutdown and restart on the next access
s

salmon-planet-80683

09/21/2021, 11:15 PM
Okay, thx 🙂
4 Views