Closed yaute74 closed 4 years ago
linked to #591
I just tried in Ubunu with the latest 4.0 version .... and I can't reproduce the error you described but still something is off clearly:
@DavidatorusF can you confirm this is also what you got ?
@yaute74 can you test again ? it is strange it does not behave the same in arch and in debian .... the post install script is supposed to give writting right to /opt/HO ...
@tychobrailleur @yaute74 @wsbrenk should we remove logs folder as it is now duplicated information of error.log and output.log ?
@tychobrailleur @yaute74 @wsbrenk should we remove logs folder as it is now duplicated information of error.log and output.log ?
I don't believe error.log
/ output.log
are duplicates of what is under logs/
, I think they are log files generated during installation, whereas logs under logs/
are created by HO logger.
I'd put the logs in the one place (logs/
) as they tend to accumulate after a while.
I don't believe error.log / output.log are duplicates of what is under logs/, I think they are log files generated during installation, whereas logs under logs/ are created by HO logger.
is it the case under macOS? Under Windows it seems they capture all that would be printed hence they capture all information from HOLogger ....
@tychobrailleur I want to treat this one, but I have a doubt for macOS at the moment the error.log file should be created in
${installer:sys.appdataDir}\HO\error.log
not sure if this is the right place, is it at the same level as the db ? If it is, I could simply replace it with ${installer:sys.appdataDir}\HO\logs\error.log
@yaute74 @DavidatorusF @tychobrailleur @wsbrenk could you test if it is fixed in latest artefacts (4.0.0.3010) the aim is to have all logs in a logs folder at the same level as the db folder. Hence it is specific to instalation type (zip/install) and platform (win/linux/macOS). I will submit PR based if I got positive feedback.
@akasolace I do a test with the install 4.0.0.3010. I always have an exception at start:
java.io.FileNotFoundException: log file directory '/opt/HO/null/HO/logs' doesn't exist.
at com.exe4j.runtime.LauncherEngine.checkRedirectionFile(LauncherEngine.java:184)
at com.exe4j.runtime.LauncherEngine.doRedirection(LauncherEngine.java:160)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:59)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.core.HOLauncher2669317107.main(Unknown Source)
Jul 16, 2020 8:19:30 PM org.hsqldb.persist.Logger logInfoEvent
But I have a log in ~/.ho/logs
@yaute74 ok I will work a bit more then...
this is linked to #591
@yaute74 ok I think version 3013 is fine if you can confirm it (I made test in my VM). @tychobrailleur can you please it also good for macOS then I will do the PR that closes both #622 and #591
@tychobrailleur can you please it also good for macOS
Sure:
~/Library/Application Support/HO 🔰 tree
.
├── db
│ ├── database.data
│ ├── database.lck
│ ├── database.log
│ ├── database.properties
│ ├── database.script
│ └── database.tmp
├── logs
│ ├── HO-2020-07-17.log
│ ├── error.log
│ └── output.log
└── users.json
3 directories, 9 files
👍
@akasolace it's ok now, no more exception, good job :+1: I have two logs in ~/.ho HO-2020-07-23.log and error.log
ok perfect ... HO-2020-07-23.log is the historical log, the other one is the redirected stderr
Describe the bug Exception at start on linux
To Reproduce Start HO:
Platform information: