-
Hi, 👋🏽 I get this error when importing a local repo.
🦄 flatpak run com.gitbutler.gitbutler
** (git-butler:2): WARNING **: 12:23:58.044: webkit_settings_set_enable_offline_web_application_cache is deprecated and does nothing.
2024-09-09T05:23:58.099414Z INFO crates/gitbutler-tauri/src/main.rs:65: system git executable for fetch/push: "git"
2024-09-09T05:23:58.099500Z INFO crates/gitbutler-tauri/src/main.rs:102: starting app version=0.12.24 name=GitButler
2024-09-09T05:23:58.297572Z INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: close time.busy=26.5µs time.idle=18.6µs
2024-09-09T05:23:58.306438Z INFO get_user: crates/gitbutler-tauri/src/users.rs:10: close time.busy=17.8µs time.idle=13.5µs
2024-09-09T05:23:58.417188Z INFO get_project: crates/gitbutler-tauri/src/projects.rs:32: close time.busy=3.90ms time.idle=38.7µs id=bd979185-628e-47be-a317-4690096c30a0 no_validation=None
2024-09-09T05:23:58.421456Z ERROR set_project_active:set_project_to_window: crates/gitbutler-tauri/src/window.rs:129: error=Failed to check if lock is taken
Caused by:
Function not implemented (os error 38) id=bd979185-628e-47be-a317-4690096c30a0 window="main"
2024-09-09T05:23:58.421476Z INFO set_project_active:set_project_to_window: crates/gitbutler-tauri/src/window.rs:129: close time.busy=220µs time.idle=12.9µs id=bd979185-628e-47be-a317-4690096c30a0 window="main"
2024-09-09T05:23:58.421490Z ERROR set_project_active: crates/gitbutler-tauri/src/projects.rs:67: error=Error(Failed to check if lock is taken
Caused by:
Function not implemented (os error 38)) id=bd979185-628e-47be-a317-4690096c30a0
2024-09-09T05:23:58.421501Z INFO set_project_active: crates/gitbutler-tauri/src/projects.rs:67: close time.busy=3.39ms time.idle=8.36µs id=bd979185-628e-47be-a317-4690096c30a0
2024-09-09T05:23:58.428809Z INFO list_projects: crates/gitbutler-tauri/src/projects.rs:46: close time.busy=45.9µs time.idle=16.9µs
2024-09-09T05:24:01.447957Z INFO get_project: crates/gitbutler-tauri/src/projects.rs:32: close time.busy=3.32ms time.idle=21.8µs id=e6171fce-0396-469c-8371-38809c04b665 no_validation=None
2024-09-09T05:24:01.450663Z ERROR set_project_active:set_project_to_window: crates/gitbutler-tauri/src/window.rs:129: error=Failed to check if lock is taken
Caused by:
Function not implemented (os error 38) id=e6171fce-0396-469c-8371-38809c04b665 window="main"
2024-09-09T05:24:01.450675Z INFO set_project_active:set_project_to_window: crates/gitbutler-tauri/src/window.rs:129: close time.busy=186µs time.idle=7.23µs id=e6171fce-0396-469c-8371-38809c04b665 window="main"
2024-09-09T05:24:01.450683Z ERROR set_project_active: crates/gitbutler-tauri/src/projects.rs:67: error=Error(Failed to check if lock is taken
Caused by:
Function not implemented (os error 38)) id=e6171fce-0396-469c-8371-38809c04b665
2024-09-09T05:24:01.450690Z INFO set_project_active: crates/gitbutler-tauri/src/projects.rs:67: close time.busy=2.14ms time.idle=4.82µs id=e6171fce-0396-469c-8371-38809c04b665 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for letting us know! I think what's happening here is that GItButler tries to obtain a file-based lock that is located in the directory that is to be added. It's meant to prevent multiple windows to be opened on the same project. Could you share the type of the filesystem that the repository is stored on? Also CC @ndom91 who is handling our linux distributions. A possible fix could be to make the flie-based lock optional if os-error 38 is detected, possibly showing a warning that multiple windows on the same project should be avoided. |
Beta Was this translation helpful? Give feedback.
-
Closing in favor of #4895 . |
Beta Was this translation helpful? Give feedback.
Thanks for letting us know!
I think what's happening here is that GItButler tries to obtain a file-based lock that is located in the directory that is to be added. It's meant to prevent multiple windows to be opened on the same project.
Apparently, the filesystem doesn't support file-based locks, or the flatpack distribution doesn't allow it.
Could you share the type of the filesystem that the repository is stored on?
Also CC @ndom91 who is handling our linux distributions.
A possible fix could be to make the flie-based lock optional if os-error 38 is detected, possibly showing a warning that multiple windows on the same project should be avoided.