Hi Everyone,
I'm Noura a TSE here at google. Starting 23.6, we have a breaking change for our on-premise customers where git 2.39.1+ must be installed on the machine where Looker is hosted. Worktree provide the benefit for a faster entry into development mode among other benefits and is not supported on older git version like 1.8. You can verify your git version as follow :
git --version
If git is not installed you may face the following issue
- Cannot switch into development mode
- Cannot create a new project (either return a 500 error page or see below screenshot)
![4CwvU2UWzEF8ycb.png 4CwvU2UWzEF8ycb.png](https://www.googlecloudcommunity.com/gc/image/serverpage/image-id/79802iD8B59E27C2812638/image-size/medium?v=v2&px=400)
How to resolve this issue?
The first step is to verify that git is installed on the server and verify the git version (git --version)
If git is already installed on your server and you have the correct version, verify the looker logs.
Looker logs are generally situated in this file path /home/looker/log/ and run the following command:
$ grep "Cannot allocate memory" looker.log
If you see an error along those line
:: Errno::ENOMEM : Cannot allocate memory - Cannot allocate memory - cd /mnt/lookershare/models-user-x/testproject && git something[...]
You will need to run the following command:
$ sysctl vm.overcommit_memory=1
For persistence add this line `vm.overcommit_memory=1` to `/etc/sysctl.conf` file and restart the VM for the change to take effect.
Feel free to reach out to our
support team if you still face any issue.
Best,
Noura