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

[Bug]: : Error: spawn ENAMETOOLONG #725

Open
hannesdelbeke opened this issue May 13, 2024 · 5 comments
Open

[Bug]: : Error: spawn ENAMETOOLONG #725

hannesdelbeke opened this issue May 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@hannesdelbeke
Copy link

Describe the bug

When I start Obsidian, git doesn't commit anymore.
Instead I get an error.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

git: Everything is up-to-date
plugin:obsidian-git:45237 git obsidian error: Error: spawn ENAMETOOLONG
plugin:obsidian-git:26944 Uncaught (in promise) Error: Error: spawn ENAMETOOLONG
    at GitExecutorChain.onFatalException (plugin:obsidian-git:26944:79)
    at GitExecutorChain.eval (plugin:obsidian-git:26936:24)
    at Generator.throw (<anonymous>)
    at rejected (plugin:obsidian-git:25805:29)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Steps to reproduce

start Obsidian

Expected Behavior

create a git commit
then a git push

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

2.24.1

@hannesdelbeke hannesdelbeke added the bug Something isn't working label May 13, 2024
@hannesdelbeke
Copy link
Author

i manually commited my files, let's see if this error comes back.
it's gone for now.

@hannesdelbeke
Copy link
Author

hannesdelbeke commented May 13, 2024

seems to commit and push fine now

@Vinzent03
Copy link
Collaborator

Great it's solved. Same as #238
A solution is probably to set the commit message not via command line argument, but per an extra input file.

@hannesdelbeke
Copy link
Author

hannesdelbeke commented May 15, 2024

it's solved for me, which is great. 🥳

what I'm concerned about: I rely on Obsidian Git to auto backup my notes, which the plugin failed to do.
I can close this issue, since my problem is solved, but the problem wont be prevented in the future for anyone else.

Recently I've been manually checking git weekly, since a merge issue lead to my notes not being backed up for 4 months 😱
I wouldn't have noticed this bug otherwise.
Before this, Git obsidian auto backed up my notes without issues for the last 2+ years.

@curtainteddy
Copy link

Encountered the same issue with the Iconize plugin. Deleting the pre-defined icon packs and adding my local icon pack caused many file changes. Fixed it by adding the icon folder to .gitignore.

If it's applicable and you have bulk of redundant files, try doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants