Gad_Ofir
(Gad Ofir)
October 24, 2018, 3:10pm
6
Install Karaf Webconsole (works also on Windows)
do you know how to do this?
edite the org.ops4j.pax.url.mvn.cfg file and add the maven repository in the last line:
org.ops4j.pax.url.mvn.repositories=
https://dl.bintray.com/openhab/mvn/online-repo/2.1@id=openhab@snapshots ,
https://repo1.maven.org/maven2@id=maven.central.repo
then need to install some web console?what is this?
do i need to install maven or is it a part of OH?
Dim
(Angelos)
October 24, 2018, 4:57pm
7
First, add the maven repo at the end of your org.ops4j.pax.url.mvn.cfg file
then…
Gad_Ofir:
then need to install some web console?what is this?
yes, enter in the OH2 console (openhab-cli console
or in windows the Karaf console when you run start.bat) and issue the following command: feature:install webconsole
https://karaf.apache.org/manual/latest/webconsole
no, the maven repo is an online storage of files/etc. when you issue the above command, OH2 will download from maven repo the necessary files to install the webconsole
when installed, you can access it from: http://localhost:8080/system/console/logs
(login using: openhab/habopen)
1 Like
Gad_Ofir
(Gad Ofir)
October 24, 2018, 6:07pm
8
very cool thank you!
i will leave complete steps for noobs, its the best that i can do
in karaf type “feature:install webconsole”
go to http://localhost:8080/system/console/logs
ogin using: openhab/habopen
one more Q i see allot of junk
any way to filter here ?
beside the log level of Error debug…
rlkoshak
(Rich Koshak)
October 24, 2018, 6:08pm
9
Some expanded things one can do with 1 with pipes and grep:
I’ve been seeing a lot of posts lately about people wanting to eliminate certain events from their events.log. This posting is to show that doing so is not only a bad idea but unnecessary.
First, I’ll apologize to the Windows users out there. I don’t know the right commands to do this on Windows without installing MinGW, Cygwin, or Linux Subsystem for Windows. Below I include both Posix (will work for Linux, iOS, BSD, and those addons to Windows listed to the left) and the Windows Powershell eq…
Gad_Ofir
(Gad Ofir)
October 24, 2018, 6:13pm
10
thanks Rich very helpfull!
still i was looking for software like “fidler” that have maybe a GUI(i know you hate that :))
but all the above will help also thanks guys!
Dim
(Angelos)
October 24, 2018, 6:43pm
11
by the way, to get rid of this auth spam, edit org.ops4j.pax.logging.cfg and set log4j2.logger.audit.level = OFF
under # Security audit logger
when using the webconsole, every http request will log an auth attempt and another success, so you will get alot of auth spam in your logs.
1 Like
KidSquid
(The Squid)
October 24, 2018, 8:53pm
12
I’m trying to add this on a Windows install and am running into a issue.
Error downloading mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.instance/4.1.3
I have edited the org.ops4j.pax.url.mvn.cfg file and placed the REPO1 url.
I have restarted OH,
Ran feature:install webconsole and still receive the error.
I am currently on OH 2.3.0-snaphsot, Build 1204
Any suggestions?
Dim
(Angelos)
October 25, 2018, 1:25am
13
KidSquid:
Any suggestions?
you should add the maven repo at the end of the file:
org.ops4j.pax.url.mvn.repositories= \
https://dl.bintray.com/openhab/mvn/online-repo/2.3@id=openhab, \
https://repo1.maven.org/maven2@id=maven.central.repo
this example is from a 2.3 stable (so line 2 maybe a bit different if you are on 2.3 snapshot)
by the way: the webconsole is not that great
KidSquid
(The Squid)
October 25, 2018, 1:32am
14
I did not have the trailing “\” on the first line…that did the trick - Thank You!
Any other suggestions for a log viewer for a Windows machine? I’m sick of opening the file and scrolling to the end each time when I am working on something.
2 Likes
Dim
(Angelos)
October 25, 2018, 1:35am
15
I don’t know what to recommend cause I don’t use OH2 on Win. I usually work on Linux and I usually grep stuff.
This post: How to watch and look through logging is good and has Win info also
Gad_Ofir
(Gad Ofir)
October 25, 2018, 5:35am
16
Gad_Ofir:
habopen
ok ok new steps i forgat the maven!
in “org.ops4j.pax.url.mvn.cfg” file
add to file below rows
org.ops4j.pax.url.mvn.repositories=
https://dl.bintray.com/openhab/mvn/online-repo/2.3@id=openhab ,
https://repo1.maven.org/maven2@id=maven.central.repo
in karaf type “feature:install webconsole”
go to http://localhost:8080/system/console/logs
login using: openhab/habopen
to get rid of this auth spam, edit org.ops4j.pax.logging.cfg and set log4j2.logger.audit.level = OFF
under # Security audit logger
thanks! not that great but cool… maybe i can use node red to filter what i need
rlkoshak
(Rich Koshak)
October 25, 2018, 2:59pm
18
I can’t promise it works over samba, but the link I provided above on “How to watch and look through logging” also shows how to tail and filter out lines using PowerShell.
For example (copied from that post):
Only shows log entries that contain MyItem in events.log
Posix
tail -F $OH_EVENTS | grep MyItem
Windows
Get-Content $Env:OH_EVENTS -Wait | where { $_ -match "MyItem" }
Read the whole post for how to set the ON_EVENTS environment variable.
Gad_Ofir
(Gad Ofir)
October 25, 2018, 7:44pm
19
Hi just want to say!
not only for tracking logs this server management is very cool!
i recommend all to install this really!
one more Q, when trying to access with
https://home.myopenhab.org /system/console/logs
i get password promoted ,and its not the login from above…
can i even connect , and what is the pass and user?
KidSquid
(The Squid)
October 25, 2018, 7:51pm
20
It should be:
u - openhab
p - habopen
works fine for me - maybe you changed during install?
Gad_Ofir
(Gad Ofir)
October 25, 2018, 7:53pm
21
KidSquid:
openhab
and you are doing it from cloud or from your LAN?
Gad_Ofir
(Gad Ofir)
October 25, 2018, 7:59pm
23
i try from cloud …
seems cool to have CLI console from phone
but its asking for password, please try so i can know if i am spicsel hh
Gad_Ofir
(Gad Ofir)
October 27, 2018, 10:36pm
24
Hi i have issue on debian when i try to install
in “org.ops4j.pax.url.mvn.cfg” file
add to file below rows
org.ops4j.pax.url.mvn.repositories=
https://dl.bintray.com/openhab/mvn/online-repo/2.3@id=openhab ,
https://repo1.maven.org/maven2@id=maven.central.repo
in karaf type “feature:install webconsole”
i have error
Error downloading mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.instance/4.1.5
anything else i need to do for debian?
Gad_Ofir
(Gad Ofir)
March 25, 2019, 9:59pm
25
after new system upgrade i am still not able to install this , maybe someone has any idea how i can get this working?
i have the same error
Error downloading mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.instance/4.2.1
just with diffrent version
i am talking about Karaf type “feature:install webconsole”
for web console of karaf