When starting openhabian-config, I get the git errors below (2.5M2, Raspbian GNU/Linux 9 (stretch)) :
2019-08-20_21:11:21_CEST [openHABian] Checking for root privileges... OK
2019-08-20_21:11:21_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
2019-08-20_21:11:21_CEST [openHABian] openHABian configuration tool version: [master]-0()
2019-08-20_21:11:22_CEST [openHABian] Checking for changes in origin... error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
fatal: The remote end hung up unexpectedly
OK
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
error: object file .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029 is empty
fatal: loose object f8f70ec18d4dc7bd093044eb316b18b09dcbe029 (stored in .git/objects/f8/f70ec18d4dc7bd093044eb316b18b09dcbe029) is corrupt
If it doesn’t resolve all by itself try deleting /opt/openhabian/.git
Thanks for the suggestion. But it didn’t help.
[19:19:11] openhabian@openhabian:/opt/openhabian$ sudo openhabian-config
2019-08-22_19:19:14_CEST [openHABian] Checking for root privileges… OK
2019-08-22_19:19:14_CEST [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
2019-08-22_19:19:14_CEST [openHABian] openHABian configuration tool version: []-0()
2019-08-22_19:19:14_CEST [openHABian] Checking for changes in origin… fatal: not in a git directory
fatal: not in a git directory
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
OK
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
I now get the following, what doesn’t look too bad:
[19:32:41] openhabian@openhabian:/opt/openhabian$ sudo openhabian-config
2019-08-22_19:32:48_CEST [openHABian] Checking for root privileges… OK
2019-08-22_19:32:48_CEST [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2019-08-22_19:32:48_CEST [openHABian] openHABian configuration tool version: [master]v1.5-504(a342f21)
2019-08-22_19:32:49_CEST [openHABian] Checking for changes in origin… OK
2019-08-22_19:32:52_CEST [openHABian] Updating myself… OK - No remote changes detected. You are up to date!