You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running openHAB with a user that has no home directory entering a command in the openHAB console produces a large warning:
2024-11-18 06:06:07.307 [WARN ] [org.jline ] - Failed to save history
java.nio.file.AccessDeniedException: /home/openhab
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:397) ~[?:?]
at java.nio.file.Files.createDirectory(Files.java:700) ~[?:?]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:807) ~[?:?]
at java.nio.file.Files.createDirectories(Files.java:793) ~[?:?]
at org.jline.reader.impl.history.DefaultHistory.internalWrite(DefaultHistory.java:227) ~[bundleFile:?]
at org.jline.reader.impl.history.DefaultHistory.save(DefaultHistory.java:219) ~[bundleFile:?]
at org.jline.reader.impl.history.DefaultHistory.add(DefaultHistory.java:384) [bundleFile:?]
at org.jline.reader.impl.LineReaderImpl.finish(LineReaderImpl.java:1140) [bundleFile:?]
at org.jline.reader.impl.LineReaderImpl.finishBuffer(LineReaderImpl.java:1109) [bundleFile:?]
at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:689) [bundleFile:?]
at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.readCommand(ConsoleSessionImpl.java:447) [bundleFile:4.4.6]
at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:405) [bundleFile:4.4.6]
at java.lang.Thread.run(Thread.java:833) [?:?]
Entering a couple commands fills up the log file very quick.
Expected Behavior
Should only print one line
Failed to save history in /home/openhab: java.nio.file.AccessDeniedException
or an even better error message
Steps to Reproduce (for Bugs)
create user without home directory
run openhab with said user
enter a command in the karaf console
Your Environment
Version used: 4.2.0
The text was updated successfully, but these errors were encountered:
When running openHAB with a user that has no home directory entering a command in the openHAB console produces a large warning:
Entering a couple commands fills up the log file very quick.
Expected Behavior
Should only print one line
or an even better error message
Steps to Reproduce (for Bugs)
Your Environment
The text was updated successfully, but these errors were encountered: