Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to record run time" failures when moving temp file #1631

Open
derrickstolee opened this issue Jan 22, 2020 · 3 comments
Open

"Failed to record run time" failures when moving temp file #1631

derrickstolee opened this issue Jan 22, 2020 · 3 comments

Comments

@derrickstolee
Copy link
Contributor

We are getting failures when trying to record our ".time" files. Likely, these are permissions issues for a shared drive or users using Windows Server 2016 who cloned with admin permissions.

The priority here is probably low. We likely are running the loose objects step and packfile maintenance step a bit too aggressively for these users.

What's the right fix here?

@kewillford
Copy link
Member

I know there are some items #1579 and #1580 that relate to this but I was thinking that if this is only trying to record the ".time" file, it would be easiest to write the file to a location that the user has permissions to if it fails. There shouldn't be any security concerns for this one file. Might mean that we are checking 2 places for the most current ".time" file but seems a lot easier that messing with ACLs and trying to get that right.

@derrickstolee
Copy link
Contributor Author

Interesting. We could have the mount-based maintenance check something local to the enlistment, say in the .gvfs directory instead of just the shared object cache. This wouldn't prevent multiple mounts that share a cache from each running the maintenance quickly, but we could at least prevent a single mount from running it too often.

I wonder if we should just defer to those existing items, and note that they have not risen to priority yet. In the meantime, I can probably clear these warnings from our alerts, at minimum.

@kewillford
Copy link
Member

We could also use somewhere like the user's AppData folder (a known location that the user will have access to) if we want a shared location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants