fatal: detected dubious ownership
Trying to install the new crowsnest following the guide but when i use
git checkout master i get this error
"fatal: detected dubious ownership in repository at '/home/pi/crowsnest"
I tried wls but that did not help also tried "git config --global safe.directory" to add to white list but still nothing. after step n.5 it did ask to Ignore the instructions to remove the crowsnest folder.
or
Ignore the instructions to remove [update manager crowsnest] from moonraker.conf.
anyhelp please.
11 Replies
Is this on a stock RatOS v2 installation?
Was away just seen your message. Yes it is , update on the 17th.
please post the result of
Welcome to BTT-CB1 2.3.1 Bullseye with Linux 5.16.17-sun50iw9
System load: 16% Up time: 32 min
Memory usage: 30% of 986M Zram usage: 17% of 493M IP: 192.168.0.133
CPU temp: 51°C Usage of /: 19% of 29G
[ 0 security updates available, 7 updates total: apt upgrade ]
Last check: 2023-06-21 15:10
Last login: Sat Jun 17 07:06:16 2023 from 192.168.0.14
biqu@ratos:~$ cd ..
biqu@ratos:/home$ cd pi
biqu@ratos:/home/pi$ cd crowsnest
ut legacy/v3
make uninstallbiqu@ratos:/home/pi/crowsnest$ git pull
fatal: detected dubious ownership in repository at '/home/pi/crowsnest'
To add an exception for this directory, call:
git config --global --add safe.directory /home/pi/crowsnest
biqu@ratos:/home/pi/crowsnest$ git checkout legacy/v3
fatal: detected dubious ownership in repository at '/home/pi/crowsnest'
To add an exception for this directory, call:
git config --global --add safe.directory /home/pi/crowsnest
biqu@ratos:/home/pi/crowsnest$ ls -la /home/pi/crowsnest
total 144
drwxr-xr-x 10 pi pi 4096 May 28 08:25 .
drwxr-xr-x 22 pi pi 4096 Jun 21 18:49 ..
drwxr-xr-x 4 pi pi 4096 May 28 08:25 bin
-rwxr-xr-x 1 pi pi 1772 May 28 08:25 crowsnest
drwxr-xr-x 3 pi pi 4096 May 28 08:25 custompios
-rw-r--r-- 1 pi pi 889 Mar 3 23:11 .editorconfig
drwxr-xr-x 8 pi pi 4096 Jun 13 16:37 .git
drwxr-xr-x 4 pi pi 4096 Mar 3 23:11 .github
-rw-r--r-- 1 pi pi 593 May 28 08:25 .gitignore
drwxr-xr-x 2 pi pi 4096 May 28 08:25 libs
-rw-r--r-- 1 pi pi 35149 Mar 3 23:11 LICENSE
-rw-r--r-- 1 pi pi 13980 Mar 3 23:11 log-example.md
-rw-r--r-- 1 pi pi 1507 May 28 08:25 Makefile
-rw-r--r-- 1 pi pi 18891 May 28 08:25 README.md
drwxr-xr-x 2 pi pi 4096 May 28 08:25 resources
drwxr-xr-x 3 pi pi 4096 May 28 08:25 tools
-rw-r--r-- 1 pi pi 12716 Mar 3 23:11 ustreamer_manpage.md
drwxr-xr-x 2 pi pi 4096 Mar 3 23:11 ustreamer-www
biqu@ratos:/home/pi/crowsnest$
Could it be that I login as Biqu and not Pi, I have to change the directory to Pi.
Oh you're definitely not supposed to login as Biqu
That makes sense then
Please follow the instructions to the letter
I still get an error:Last login: Thu Jun 22 16:36:30 2023 from 192.168.0.103
pi@ratos:~$ cd crowsnest
pi@ratos:~/crowsnest$ git pull
t checkout legacy/v3
make uninstallAlready up to date.
pi@ratos:~/crowsnest$ git checkout legacy/v3
Already on 'legacy/v3'
Your branch is up to date with 'origin/legacy/v3'.
pi@ratos:~/crowsnest$ make uninstall
crowsnest - A webcam daemon for multiple Cams and stream services.
Ahoi!
To sad that you want to uninstall crowsnest 😦
This will take a while ...
Please reboot after installation has finished.
Do you REALLY want to remove existing 'crowsnest'? (y/N) y
tools/uninstall.sh: line 123: : No such file or directory
make: *** [Makefile:40: uninstall] Error 1
pi@ratos:~/crowsnest$
and try again
I think it accidentally messed it up when you ran it as BIQU, above command should fix that
pi@ratos:~/crowsnest$ git reset --hard HEAD
HEAD is now at 0bdc1bc docs(readme): updated readme.md
pi@ratos:~/crowsnest$ cd crowsnest
t checkout legacy/v3
ma-bash: cd: crowsnest: Not a directory
pi@ratos:~/crowsnest$ git pull
ke uninstallAlready up to date.
pi@ratos:~/crowsnest$ git checkout legacy/v3
Already on 'legacy/v3'
Your branch is up to date with 'origin/legacy/v3'.
pi@ratos:~/crowsnest$ make uninstall
crowsnest - A webcam daemon for multiple Cams and stream services.
Ahoi!
To sad that you want to uninstall crowsnest 😦
This will take a while ...
Please reboot after installation has finished.
Do you REALLY want to remove existing 'crowsnest'? (y/N) y
tools/uninstall.sh: line 123: : No such file or directory
make: *** [Makefile:40: uninstall] Error 1
pi@ratos:~/crowsnest$
started all over but Last login: Thu Jun 22 16:41:04 2023 from 192.168.0.103
pi@ratos:~$ git reset --hard HEAD
fatal: not a git repository (or any of the parent directories): .git
pi@ratos:~$
It looks like you're copy pasting several lines here, run one command at a time.
try
make install
and then make uninstall
again
Then follow along from the point where you're supposed to do git checkout master
One line at a timeok
Thanks a lot, that worked.
I had this same issue, after step seven I rebooted the pi. I then continued from step eight and got the fatal error, the fix for me was that I did not cd back into crowsnest. Once I got back into that directory everything worked.