so my answer to Andrea is also visible for everyone else.
I wrote the elog client for Phoebus in 2020.
Some time later the abstract logbook API within Phoebus has been
refactored but unfortunately I did not notice these changes.
By the time I noticed, I didn't have the time to work on this
project as I'm working since several years mainly on the DAQ for
our tracking detector instead of the detector control system.
When I build the first version of the elog client, I dug through
the code to find the interfaces I had to implement and to find all
the files I needed to modify.
I'm usually not programming in Java so it that was quiet a time
consuming task for me.
Does some documentation exists, that explains how to write and
integrate such plugins to Phoebus?
If someone could point me to such a documentation or maybe provide
a simple example, I would try to find some time and update my elog
client for the new phoebus version.
Dear colleagues,
I did the following:
1. I compiled phoebus from scratch with maven (master from
gitlab), adding the elog application to build.xml
<ant dir="app/logbook/ui"/>
<ant dir="app/logbook/elog"/> —-> My
addiction
<ant dir="app/log-configuration"/>
2. I checked inside my elog installation to read the
password:
<password
encoding="SHA256”>My password</password>
3. I added the following to my settings file:
org.phoebus.logbook/logbook_factory=elog
org.phoebus.logbook.ui/logbook_factory=elog
org.phoebus.elog.api/username=shift
org.phoebus.elog.api/password=My password
org.phoebus.elog.api/categories=Info, Problem, Shift summary,
Data quality, Micromegas, ECAL, MasterTime, MSADC
org.phoebus.elog.api/types=
When I start Phoebus with ./phoebus.sh -settings
my_settings.ini and I open the logbook, I get the following
error:
2025-04-26
10:37:40 INFO
[org.phoebus.logbook.olog.ui.LogEntryTableViewController]
Single search: *
2025-04-26
10:37:40 SEVERE
[org.phoebus.logbook.olog.ui.LogbookSearchJob] Failed to
obtain logs
org.phoebus.logbook.LogbookException:
java.lang.UnsupportedOperationException
at
org.phoebus.logbook.LogClient.search(LogClient.java:494)
at
org.phoebus.logbook.olog.ui.LogbookSearchJob.lambda$getRunnable$0(LogbookSearchJob.java:59)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at
java.base/java.lang.Thread.run(Thread.java:842)
Caused
by: java.lang.UnsupportedOperationException
... 9
more
What I do not understand is why the “olog” app is referred to
in this error, since I am not using it at all..
Thanks,
Bests,
Andrea Celentano