romkatv / gitstatus

Git status for Bash and Zsh prompt
GNU General Public License v3.0
1.71k stars 105 forks source link

git status plugin daemon initialization failed in zorin os #443

Closed EthixLucifer closed 2 months ago

EthixLucifer commented 2 months ago

everytime i open the terminal i get this error in the terminal that Says.

[ERROR]: gitstatus failed to initialize.

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

    +(anon):7> setopt monitor
    +(anon):9> ((  ! _GITSTATUS_STATE_POWERLEVEL9K  ))
    +(anon):10> [[ -r /proc/version && 'Linux version 5.15.0-121-generic (buildd@lcy02-amd64-009) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #131~20.04.1-Ubuntu SMP Mon Aug 12 13:09:56 UTC 2024' == *Microsoft* ]]
    +(anon):13> print -rn
    +(anon):14> zsystem flock -f lock_fd /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.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=210144'
    +(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> [[ '              210144' == \ #<1-> ]]
    +(anon):60> typeset -gi 'GITSTATUS_DAEMON_PID_POWERLEVEL9K=pgid'
    +(anon):62> sysopen -w -o cloexec -u req_fd -- /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.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.1000.210114.1726896667.1.daemon.log):

    +_gitstatus_daemon_p9k_:3> local pgid=210144
    +_gitstatus_daemon_p9k_:4> [[ 210144 == <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_:12> uname_sm=+_gitstatus_daemon_p9k_:93> zsystem flock -- /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.1.lock
    +_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> ((  ! 1  ))
    +_gitstatus_daemon_p9k_:21> [[ linux == linux ]]
    +_gitstatus_daemon_p9k_:23> ((  ! 1  ))
    +_gitstatus_daemon_p9k_:23> cpus=+_gitstatus_daemon_p9k_:23> getconf _NPROCESSORS_ONLN
    +_gitstatus_daemon_p9k_:23> cpus=4 
    +_gitstatus_daemon_p9k_:27> args+=( -t 8 ) 
    +_gitstatus_daemon_p9k_:30> mkfifo -- /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.1.fifo
    +_gitstatus_daemon_p9k_:31> print -rnu 13 -- '              210144'
    +_gitstatus_daemon_p9k_:33> zf_rm -- /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.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=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus
    +_gitstatus_daemon_p9k_:45> set -- -d /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install
    +/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install:472> [ -z '' ']'
    +/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/install:473> _gitstatus_install_main /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus -d /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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.8 ']'
    +_gitstatus_install_main:2> emulate -L sh -o no_unset
    +_gitstatus_install_main:7> local argv1=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus ']'
    +_gitstatus_install_main:63> gitstatus_dir=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus 
    +_gitstatus_install_main:13> getopts :s:m:d:p:e:fnh opt -d /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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 /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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> : /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.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=''
    +_gitstatus_install_main:135> local cache_dir=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.cache/gitstatus
    +_gitstatus_install_main:137> [ -z '' ']'
    +_gitstatus_install_main:138> [ -n '' ']'
    +_gitstatus_install_main:142> [ -z '' -a -e /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd ']'
    +_gitstatus_install_main:143> daemon=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd 
    +_gitstatus_install_main:145> [ -n /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd ']'
    +_gitstatus_install_main:146> local gitstatus_version='' libgit2_version=''
    +_gitstatus_install_main:147> . /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info
    +/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:6> gitstatus_version=v1.5.4 
    +/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:21> libgit2_version=tag-2ecf33948a4df9ef45a66c68b8ef24a5e60eaac6 
    +/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build.info:22> libgit2_sha256=4ce11d71ee576dbbc410b9fa33a9642809cc1fa687b315f7c23eeb825b251e93 
    +_gitstatus_install_main:151> [ -z v1.5.4 ']'
    +_gitstatus_install_main:155> local version=v1.5.4
    +_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_ /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd v1.5.4 0
    +_gitstatus_set_daemon_p9k_:1> _gitstatus_zsh_daemon=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd 
    +_gitstatus_set_daemon_p9k_:2> _gitstatus_zsh_version=v1.5.4 
    +_gitstatus_set_daemon_p9k_:3> _gitstatus_zsh_downloaded=0 
    +_gitstatus_install_main:157> return
    +_gitstatus_daemon_p9k_:49> [[ -n /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd ]]
    +_gitstatus_daemon_p9k_:50> [[ -n v1.5.4 ]]
    +_gitstatus_daemon_p9k_:51> [[ 0 == [01] ]]
    +_gitstatus_daemon_p9k_:53> ((  UID == EUID  ))
    +_gitstatus_daemon_p9k_:54> local home=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix
    +_gitstatus_daemon_p9k_:62> [[ -x /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd ]]
    +_gitstatus_daemon_p9k_:63> HOME=/media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/usrbin/gitstatusd -G v1.5.4 -s -1 -u -1 -d -1 -c -1 -m -1 -v DEBUG -t 8
    +_gitstatus_daemon_p9k_:64> local -i ret=0
    +_gitstatus_daemon_p9k_:65> [[ 0 == (0|129|130|131|137|141|143|159) ]]
    +_gitstatus_daemon_p9k_:65> return ret
    +_gitstatus_daemon_p9k_:84> local -i ret=0
    +_gitstatus_daemon_p9k_:85> zf_rm -f -- /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.1.lock /tmp/gitstatus.POWERLEVEL9K.1000.210114.1726896667.1.fifo
    +_gitstatus_daemon_p9k_:86> kill -- -210144

  System information:

    zsh:      5.8
    uname -a: Linux ethix-HP-Pavilion-15-Notebook-PC 5.15.0-121-generic #131~20.04.1-Ubuntu SMP Mon Aug 12 13:09:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
romkatv commented 2 months ago

Try this:

rm -rf /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k && git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /media/ethix/5cb9449b-ea13-4400-8b17-cd6e02439d85/Users/home/ethix/.oh-my-zsh/custom/themes/powerlevel10k && exec zsh
EthixLucifer commented 2 months ago

Thank you it solved the issue, i was facing it for quite some time....