-
Notifications
You must be signed in to change notification settings - Fork 310
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
Error: writing tilt api configs: open /home/$USER/.tilt-dev/config.lock: file exists #4814
Comments
FWICT, this locking only happens here. I haven't managed to repro by running tilt a ton, and I haven't come up with any good theories as to the cause by inspecting the code. My current best guess is:
|
I'm also experiencing tilt taking up to 30seconds to load (from the moment I type |
@bahatron hmmm! That's interesting, we've never seen that before. Could you file a new bug for that and include the output of 'tilt doctor'? It seems unrelated to this issue, and we may need to collect more info from you to repro |
I'm having the same issue, so: ❯ tilt doctor
Tilt: v0.22.6, built 2021-08-27
System: linux-amd64
---
Docker (cluster)
- Host: tcp://192.168.49.2:2376
- Server Version: 20.10.7
- API Version: 1.41
- Builder: 2
---
Docker (local)
- Host: [default]
- Server Version: 20.10.7
- Version: 1.41
- Builder: 2
---
Kubernetes
- Env: minikube
- Context: minikube
- Cluster Name: minikube
- Namespace: default
- Container Runtime: docker
- Version: v1.21.2
- Cluster Local Registry: none
---
Thanks for seeing the Tilt Doctor!
Please send the info above when filing bug reports. 💗
The info below helps us understand how you're using Tilt so we can improve,
but is not required to ask for help.
---
Analytics Settings
--> (These results reflect your personal opt in/out status and may be overridden by an `analytics_settings` call in your Tiltfile)
- User Mode: opt-in
- Machine: f07e6b21bb352bd8a476634d78e325c6
- Repo: zkWI+v7aP9kuPp54+TzNBQ== After deleting the |
@Kludex Thanks for the report - do you remember the last time you exited Tilt before the error started? Was it by |
I don't recall. Tilt has never crashed with panic for me. The next person seeing this issue, please check @milas question above! And copy the |
we had two people see this today on 0.23.1 (not related to any recent version upgrade) 🤔 will post more details if it happens again |
I've experienced the same bug. Removing
|
It would be nice if golang/go#33974 happened. We might need to look at a workaround before then. |
spent a few mins digging into this today... Nicks link to go issue is the best option. The dependency that locks the file for us is client-go. They have a reference as a TODO to use actual file locks: https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/loader.go#L436-L438
Analyzing the situation... The best way is to use the OS locks ( |
Came across this issue for the first time yesterday, after making a few changes to a Tiltfile. Removing the config.lock file fixed the issue. Let me know if any other detail is helpful!
|
I also get this on Ubuntu, after Ctrl+C tilt, and after the system goes to sleep |
Fixes tilt-dev#4814. Signed-off-by: Nick Sieger <[email protected]>
Fixes tilt-dev#4814. Signed-off-by: Nick Sieger <[email protected]>
* config: copy go's file lock and use it instead of client-go's Fixes #4814. Signed-off-by: Nick Sieger <[email protected]> * config: attempt to complete windows filelock implementation Signed-off-by: Nick Sieger <[email protected]> Signed-off-by: Nick Sieger <[email protected]>
Two users have reported getting this error when starting Tilt:
Error: writing tilt api configs: open /home/$USER/.tilt-dev/config.lock: file exists
We don't have a repro.
The issue can be worked around by deleting the config.lock file.
The text was updated successfully, but these errors were encountered: