Git Status Error: "Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option" #8024
Replies: 5 comments
-
|
Make sure git is accessible via PATH on the server and that the "Git Binary Path" property (under Admin > Storage > Git) is empty. If you're using a custom path, make sure it's valid and doesn't contain special characters. |
Beta Was this translation helpful? Give feedback.
-
|
Git was already in the PATH, but there was a path in the "Git Binary Path" so I removed it. Now I get this error: Error: spawn git ENOENT at ChildProcess._handle.onexit (node:internal/child_process:287:19) at onErrorNT (node:internal/child_process:508:16) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) I have checked that git.exe is located in the directory in the PATH variable |
Beta Was this translation helpful? Give feedback.
-
|
That error means it can't find the git binary. If the process is running as a different user, make sure it's accessible to that user as well. You could also try to set the custom binary path to "git.exe" since you're on Windows |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Posting here in case this helps anyone else has the same issue. To 'fix' it I reverted back to v2.5.306 of wiki.js. Without doing anything else, git storage worked and synced. I then updated to the current version (2.5.314) and it failed again with the same error as above, so it looks like something changed in the wiki.js codebase between those versions. [Note I did initially try v2.5.301 but got an error that I was using an unsupported node.js version] Whilst the issue isn't resolved, I now have my backup and pulled it back down onto a different instance of Wiki.js running in Docker on Linux. The Windows host (running Server 2019 Datacenter) will be decommissioned. This is no longer an issue for me but maybe something the devs might want to look at as its a great piece of software. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Using Git v2.54.0 and Wiki v2.5.312 on Windows (updated to 2.5.314 and still same)
Using Git storage repository has been working fine for a couple of years but last sync was late March (only just realised). The wiki is quite mature now so updates to content dont happen frequently so it may still have been working after this time.
Due to security vulnerabilities I updated Git, Node.js, python and postgres on this host around end of April, not sure if it was working prior to this.
Everything else seem to be fine but when I click the 'Run' button for 'Add Tracked Changes' it seems to run forever so I need to refesh the page and I see the error in the 'Status' section in the left navbar.
Googling only had one hit and it was for simplegit which is a node.js package.
Any ideas what this error means or how to fix it? Thanks
Beta Was this translation helpful? Give feedback.
All reactions