openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

Fresh OS and openHABian Installation - Issues with .bash_profile / Clean Install Not Successful #1110

Closed richaardvark closed 3 years ago

richaardvark commented 3 years ago

Hello,

I have used openHABian to successfully install openHAB2 on probably at least 10 different Linux-based machines before, over the past year or so, without issue. I recently had to wipe my main Linux openHAB 2 server and start with a clean OS installation. I am running MX Linux 19.2 (which is essentially Debian 10 "Buster") and have followed the same openHABian installation/setup process / instructions that I have always used without issue except I cannot for the life of me get it to work properly. I've tried for the better part of a week now to get this working and it's driving me BONKERS. I run the script as I always have when setting up openHAB, as a "Manual / Fresh Setup" but something is just wrong with the script. It doesn't seem like it's actually installing openHAB when it says it is and skips to the part where it says it is setting up the delayed rule loading for OH startup and then it hangs there and then just shows the main openHABian menu. No error messages or anything. Then if I manually try to run through some of the setup steps, such as fixing permissions under "Apply Improvements" it then gives the following error:

There was an error or interruption during the execution of:                  │ 
                                                       │   "10 | Apply Improvements"                                                  │ 
                                                       │                                                                              │ 
                                                       │ Please try again. If the error persists, please read                         │ 
                                                       │ /opt/openhabian/docs/openhabian-DEBUG.md or                                  │ 
                                                       │ https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md   │ 
                                                       │ how to proceed.    

When I attempt to follow the Debug documentation referenced in that error message, it tells me to look at two log files that should have been created, but they are not there.

The only other clues I can find are from the main openHABian terminal window output. It seems to be an issue with PATH variables or user configuration/permissions:

richard@HomeServer:~
$ ohabian
2020-09-02_08:40:34_CDT [openHABian] Checking for root privileges... OK
2020-09-02_08:40:34_CDT [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2020-09-02_08:40:34_CDT [openHABian] openHABian configuration tool version: [master]v1.6-alpha-791(2582488)
2020-09-02_08:40:34_CDT [openHABian] Checking for changes in origin branch master... OK
2020-09-02_08:40:37_CDT [openHABian] Switching to branch master... OK
2020-09-02_08:41:00_CDT [openHABian] Updating Linux package information... OK
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2020-09-02_08:41:01_CDT [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2020-09-02_08:41:02_CDT [openHABian] Installing additional needed packages... OK
2020-09-02_08:41:03_CDT [openHABian] Beginning install of latest openHAB release (stable)... OK
2020-09-02_08:41:06_CDT [openHABian] Adding required keys to apt... OK
2020-09-02_08:41:08_CDT [openHABian] Installing selected openHAB version... OK
2020-09-02_08:41:21_CDT [openHABian] Setting up openHAB service... OK
2020-09-02_08:41:21_CDT [openHABian] Creating dependencies to jointly start services that depend on each other... OK
2020-09-02_08:41:21_CDT [openHABian] Adding delay on loading openHAB rules... OK
2020-09-02_08:43:22_CDT [openHABian] Adding an openHAB dashboard tile for 'openhabiandocs'... OK
2020-09-02_08:43:27_CDT [openHABian] Preparing openHAB folder mounts under '/srv/openhab2-*'... OK
2020-09-02_08:43:29_CDT [openHABian] Applying file permissions recommendations... FAILED (user audio)
2020-09-02_08:43:29_CDT [openHABian] Setting up Samba network shares... OK
2020-09-02_08:43:29_CDT [openHABian] Setting up Samba service... OK
2020-09-02_08:43:32_CDT [openHABian] Updating openHAB Log Viewer (frontail)... OK
2020-09-02_08:43:33_CDT [openHABian] Configuring openHAB Log Viewer (frontail)... OK
2020-09-02_08:43:33_CDT [openHABian] Setting up openHAB Log Viewer (frontail) service... OK
2020-09-02_08:43:34_CDT [openHABian] Adding an openHAB dashboard tile for 'frontail'... OK
2020-09-02_08:43:34_CDT [openHABian] Adding slightly tuned bash configuration files to system... cp: cannot create regular file '/home/user/.bash_profile': No such file or directory
FAILED (user bash_profile)
2020-09-02_08:43:42_CDT [openHABian] Updating Linux package information... OK
2020-09-02_08:43:42_CDT [openHABian] Applying file permissions recommendations... FAILED (user audio)
2020-09-02_09:53:06_CDT [openHABian] We hope you got what you came for! See you again soon ;)

Does anyone have any advice? I just want to turn my stupid lights on and this has been frustrating me for over a week now. I've purged openHAB multiple times, purged Zulu, have tried various versions of the Zulu OpenJDK, the Master vs. Stable version of openHABian, etc. but have not gotten anywhere here.

Thank you very much for your help!

mstormi commented 3 years ago

I have already responded to your post on the forum that your OS is not supported. See README.md. That it worked earlier or works on other UN*X flavours does not turn your OS into one that we are willing to support. Sorry but we don't have the spare time it takes to spend on that.

I also told you in my post how to obtain meaningful debug output so proceed with that from there, but please do so on the forum and refrain from opening Github issues against knowingly unsupported systems.