romkatv / romkatv/gitstatus

[ERROR]: gitstatus failed to initialize - TrueNas Scale

Open
#454 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.8k
Forks
134
Avg merge
2d 18h
Merged PRs (30d)
1

Description

Hello,
I have been using ZSH and P10K in my Ubuntu WSL Instance for ages and love it.
After building my TrueNas Scale machine I wanted the same thing, but keep running into this issue and I do not know how to resolve it

[ERROR]: gitstatus failed to initialize.


  Zsh log (/tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.xtrace.log):

    +(anon):7> setopt monitor
    +(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):10> [[ -r /proc/version && 'Linux version 6.6.44-production+truenas (root@tnsbuilds01.tn.ixsystems.net) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Tue Jan 28 03:14:06 UTC 2025' == *Microsoft* ]]
    +(anon):13> print -rn
    +(anon):14> zsystem flock -f lock_fd /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.lock
    +(anon):15> [[ 18 == <1-> ]]
    +(anon):18> typeset -gi '_GITSTATUS_LOCK_FD_POWERLEVEL9K=lock_fd'
    +(anon):20> [[ linux-gnu == cygwin* ]]
    +(anon):41> sysopen -r -o cloexec -u resp_fd /proc/self/fd/17
    +(anon):44> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=122867'
    +(anon):46> [[ 20 == <1-> ]]
    +(anon):47> typeset -gi '_GITSTATUS_RESP_FD_POWERLEVEL9K=resp_fd'
    +(anon):48> typeset -gi '_GITSTATUS_STATE_POWERLEVEL9K=1'
    +(anon):51> ((  ! async  ))
    +(anon):41> _gitstatus_daemon_p9k_
    +_gitstatus_daemon_p9k_:1> local -i pipe_fd
    +(anon):7> setopt monitor
    +(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):51> ((  ! async  ))
    +(anon):52> ((  _GITSTATUS_CLIENT_PID_POWERLEVEL9K == sysparams[pid]  ))
    +(anon):54> local pgid
    +(anon):55> ((  0 < 20  ))
    +(anon):56> [[ -t 20 ]]
    +(anon):57> sysread -s 20 -t 10.0000000000 -i 20 'pgid[$#pgid+1]'
    +(anon):55> ((  20 < 20  ))
    +(anon):59> [[ '              122867' == \ #<1-> ]]
    +(anon):60> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=pgid'
    +(anon):62> sysopen -w -o cloexec -u req_fd -- /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.fifo
    +(anon):63> [[ 17 == <1-> ]]
    +(anon):64> typeset -gi '_GITSTATUS_REQ_FD_POWERLEVEL9K=req_fd'
    +(anon):66> print -nru 17 -- $'}hello\C-_\C-^'
    +(anon):67> local expected=$'}hello\C-_0\C-^' actual
    +(anon):68> ((  1  ))
    +(anon):68> [[ ! -t 1 ]]
    +(anon):71> local -F deadline=1
    +(anon):73> true
    +(anon):74> [[ -t 20 ]]
    +(anon):75> sysread -s 1 -t 10.0000000000 -i 20 actual
    +(anon):75> return

  Daemon log (/tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.daemon.log):

    +_gitstatus_daemon_p9k_:3> local pgid=122867
    +_gitstatus_daemon_p9k_:4> [[ 122867 == <1-> ]]
    +_gitstatus_daemon_p9k_:5> cd -q /
    +_gitstatus_daemon_p9k_:90> ((  lock_fd == -1  ))
    +_gitstatus_daemon_p9k_:9> trap '' PIPE
    +_gitstatus_daemon_p9k_:11> local uname_sm
    +_gitstatus_daemon_p9k_:93> zsystem flock -- /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.lock
    +_gitstatus_daemon_p9k_:12> uname_sm=+_gitstatus_daemon_p9k_:12> uname -sm
    +_gitstatus_daemon_p9k_:12> uname_sm='linux x86_64' 
    +_gitstatus_daemon_p9k_:13> [[ 'linux x86_64' == [^\ ]##\ [^\ ]## ]]
    +_gitstatus_daemon_p9k_:14> local uname_s=linux
    +_gitstatus_daemon_p9k_:15> local uname_m=x86_64
    +_gitstatus_daemon_p9k_:17> [[ '' == <1-> ]]
    +_gitstatus_daemon_p9k_:20> local cpus
    +_gitstatus_daemon_p9k_:21> ((  ! 0  ))
    +_gitstatus_daemon_p9k_:23> ((  ! 1  ))
    +_gitstatus_daemon_p9k_:23> cpus=+_gitstatus_daemon_p9k_:23> getconf _NPROCESSORS_ONLN
    +_gitstatus_daemon_p9k_:23> cpus=56 
    +_gitstatus_daemon_p9k_:27> args+=( -t 32 ) 
    +_gitstatus_daemon_p9k_:30> mkfifo -- /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.fifo
    +_gitstatus_daemon_p9k_:31> print -rnu 13 -- '              122867'
    +_gitstatus_daemon_p9k_:33> zf_rm -- /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.fifo
    +_gitstatus_daemon_p9k_:35> local _gitstatus_zsh_daemon _gitstatus_zsh_version _gitstatus_zsh_downloaded
    +_gitstatus_daemon_p9k_:43> local gitstatus_plugin_dir_var=_gitstatus_plugin_dir_p9k_
    +_gitstatus_daemon_p9k_:44> local gitstatus_plugin_dir=/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus
    +_gitstatus_daemon_p9k_:45> set -- -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_daemon_p9k_:47> [[ 1 == (|-|+)<1-> ]]
    +_gitstatus_daemon_p9k_:48> source /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install
    +/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install:472> [ -z '' ']'
    +/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install:473> _gitstatus_install_main /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:1> [ -n 5.9 ']'
    +_gitstatus_install_main:2> emulate -L sh -o no_unset
    +_gitstatus_install_main:7> local argv1=/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus
    +_gitstatus_install_main:8> shift
    +_gitstatus_install_main:10> local no_check='' no_install='' uname_s='' uname_m='' gitstatus_dir='' dl_status='' e=''
    +_gitstatus_install_main:11> local opt='' OPTARG='' OPTIND=1
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:14> case d (h)
    +_gitstatus_install_main:14> case d (n)
    +_gitstatus_install_main:14> case d (f)
    +_gitstatus_install_main:14> case d (d)
    +_gitstatus_install_main:55> [ -n '' ']'
    +_gitstatus_install_main:59> [ -z /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus ']'
    +_gitstatus_install_main:63> gitstatus_dir=/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:14> case s (h)
    +_gitstatus_install_main:14> case s (n)
    +_gitstatus_install_main:14> case s (f)
    +_gitstatus_install_main:14> case s (d)
    +_gitstatus_install_main:14> case s (p)
    +_gitstatus_install_main:14> case s (e)
    +_gitstatus_install_main:14> case s (m)
    +_gitstatus_install_main:14> case s (s)
    +_gitstatus_install_main:99> [ -n '' ']'
    +_gitstatus_install_main:103> [ -z linux ']'
    +_gitstatus_install_main:107> uname_s=linux 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:14> case m (h)
    +_gitstatus_install_main:14> case m (n)
    +_gitstatus_install_main:14> case m (f)
    +_gitstatus_install_main:14> case m (d)
    +_gitstatus_install_main:14> case m (p)
    +_gitstatus_install_main:14> case m (e)
    +_gitstatus_install_main:14> case m (m)
    +_gitstatus_install_main:88> [ -n '' ']'
    +_gitstatus_install_main:92> [ -z x86_64 ']'
    +_gitstatus_install_main:96> uname_m=x86_64 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:14> case p (h)
    +_gitstatus_install_main:14> case p (n)
    +_gitstatus_install_main:14> case p (f)
    +_gitstatus_install_main:14> case p (d)
    +_gitstatus_install_main:14> case p (p)
    +_gitstatus_install_main:66> [ -n '' ']'
    +_gitstatus_install_main:70> [ -z 'printf '\''\001'\'' >&13' ']'
    +_gitstatus_install_main:74> dl_status='printf '\''\001'\'' >&13' 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:14> case e (h)
    +_gitstatus_install_main:14> case e (n)
    +_gitstatus_install_main:14> case e (f)
    +_gitstatus_install_main:14> case e (d)
    +_gitstatus_install_main:14> case e (p)
    +_gitstatus_install_main:14> case e (e)
    +_gitstatus_install_main:77> [ -n '' ']'
    +_gitstatus_install_main:81> [ -z 13 ']'
    +_gitstatus_install_main:85> e=13 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -s linux -m x86_64 -p 'printf '\''\001'\'' >&13' -e 13 -- _gitstatus_set_daemon_p9k_
    +_gitstatus_install_main:115> shift 11
    +_gitstatus_install_main:117> : 13
    +_gitstatus_install_main:118> : /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus
    +_gitstatus_install_main:120> [ -n '' -a -n '' ']'
    +_gitstatus_install_main:125> [ -z linux ']'
    +_gitstatus_install_main:129> [ -z x86_64 ']'
    +_gitstatus_install_main:134> local daemon=/usr/local/bin/gitstatusd
    +_gitstatus_install_main:135> local cache_dir=/home/admin/.cache/gitstatus
    +_gitstatus_install_main:137> [ -z '' ']'
    +_gitstatus_install_main:138> [ -n '' ']'
    +_gitstatus_install_main:142> [ -z /usr/local/bin/gitstatusd -a -e /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd ']'
    +_gitstatus_install_main:145> [ -n /usr/local/bin/gitstatusd ']'
    +_gitstatus_install_main:146> local gitstatus_version='' libgit2_version=''
    +_gitstatus_install_main:147> . /home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info
    +/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:6> gitstatus_version=v1.5.5 
    +/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:21> libgit2_version=tag-2ecf33948a4df9ef45a66c68b8ef24a5e60eaac6 
    +/home/admin/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:22> libgit2_sha256=4ce11d71ee576dbbc410b9fa33a9642809cc1fa687b315f7c23eeb825b251e93 
    +_gitstatus_install_main:151> [ -z v1.5.5 ']'
    +_gitstatus_install_main:155> local version=v1.5.5
    +_gitstatus_install_main:156> _gitstatus_install_daemon_found 0 _gitstatus_set_daemon_p9k_
    +_gitstatus_install_daemon_found:1> local installed=0
    +_gitstatus_install_daemon_found:2> shift
    +_gitstatus_install_daemon_found:3> [ 1 '=' 0 ']'
    +_gitstatus_install_daemon_found:3> _gitstatus_set_daemon_p9k_ /usr/local/bin/gitstatusd v1.5.5 0
    +_gitstatus_set_daemon_p9k_:1> _gitstatus_zsh_daemon=/usr/local/bin/gitstatusd 
    +_gitstatus_set_daemon_p9k_:2> _gitstatus_zsh_version=v1.5.5 
    +_gitstatus_set_daemon_p9k_:3> _gitstatus_zsh_downloaded=0 
    +_gitstatus_install_main:157> return
    +_gitstatus_daemon_p9k_:49> [[ -n /usr/local/bin/gitstatusd ]]
    +_gitstatus_daemon_p9k_:50> [[ -n v1.5.5 ]]
    +_gitstatus_daemon_p9k_:51> [[ 0 == [01] ]]
    +_gitstatus_daemon_p9k_:53> ((  UID == EUID  ))
    +_gitstatus_daemon_p9k_:54> local home=/home/admin
    +_gitstatus_daemon_p9k_:62> [[ -x /usr/local/bin/gitstatusd ]]
    +_gitstatus_daemon_p9k_:68> ((  ! _gitstatus_zsh_downloaded  ))
    +_gitstatus_daemon_p9k_:69> [[ 1 == (|-|+)<1-> ]]
    +_gitstatus_daemon_p9k_:70> [[ /usr/local/bin/gitstatusd == /home/admin/.cache/gitstatus/* ]]
    +_gitstatus_daemon_p9k_:71> return
    +_gitstatus_daemon_p9k_:84> local -i ret=1
    +_gitstatus_daemon_p9k_:85> zf_rm -f -- /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.lock /tmp/gitstatus.POWERLEVEL9K.950.122841.1742236614.1.fifo
    +_gitstatus_daemon_p9k_:86> kill -- -122867

  System information:

    zsh:      5.9
    uname -a: Linux citadel 6.6.44-production+truenas #1 SMP PREEMPT_DYNAMIC Tue Jan 28 03:14:06 UTC 2025 x86_64 GNU/Linux

  If you need help, open an issue and attach this whole error message to it:

    https://github.com/romkatv/gitstatus/issues/new

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The trace identifies gitstatus/install, build.info, and /usr/local/bin/gitstatusd; start by reproducing initialization on TrueNAS Scale with the reported zsh 5.9 and Linux environment, then inspect the daemon handoff. The issue names no failing test or expected fix, so done requires identifying the initialization failure and verifying that gitstatus starts successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, linux, zsh
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.