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

Crash if hosts file doesn't exist on Windows 10 #178

Open
Spartelfant opened this issue May 2, 2019 · 1 comment
Open

Crash if hosts file doesn't exist on Windows 10 #178

Spartelfant opened this issue May 2, 2019 · 1 comment

Comments

@Spartelfant
Copy link

My hosts file had gotten messy (unrelated to hostsupdater) so I figured the simplest remedy was to delete it, assuming hostsupdater would recreate it if needed.

But instead %WINDIR%\System32\drivers\etc\hosts not existing lead to hostsupdater crashing, in turn causing vagrant to fail during provisioning. I've attached a textfile with the error output. As a sidenote, I was running vagrant from an elevated command prompt.

hostsupdater error output.txt

Please let me know if I can contribute in any way to solving this or narrowing down the cause.

@cgsmith
Copy link
Collaborator

cgsmith commented Jul 9, 2019

@Spartelfant good catch on this bug. I will make a check for a hosts file before attempting a write.

@cgsmith cgsmith added the bug label Jul 9, 2019
@cgsmith cgsmith added this to the next-release milestone Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants