Hi folks! Have a Pants permissions issue. I have ...
# general
s
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
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
Okay, thx 🙂