-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elog - Log Entry Calender and Table exceptions #3198
Comments
In both applications the UI invokes a search based on the default query, e.g. search for log entries for the past 12 hours. I think you would need to reach out to @ffeldbauer who I think is the original contributor of the elog module. |
Aside from the logbook error, the Not sure how the |
Dear George,
In a talk by Florian he showed,that it did work in 2020 with the search string.
https://indico.fhi-berlin.mpg.de/event/52/contributions/564/attachments/222/683/phoebus-elog-client.pdf
As far as I know, Florian is not actively maintaining the elog app anymore.
Do you have any idea what could have changed this behavior? Elog was fixed for newer versions of Phoebus in the codeathon 2023, right?
Best regards
|
OK. |
Dear Georg,
I have now downloaded the Source file and I have compiled
phoebus-product as is:
...
[INFO] app-logbook ........................................ SUCCESS
[ 0.004 s]
[INFO] app-logbook-inmemory ............................... SUCCESS
[ 1.245 s]
[INFO] app-logbook-ui ..................................... SUCCESS
[ 3.257 s]
[INFO] app-logbook-olog ................................... SUCCESS
[ 0.003 s]
[INFO] app-logbook-olog-client ............................ SUCCESS
[ 1.114 s]
[INFO] app-logbook-olog-client-es ......................... SUCCESS
[ 1.661 s]
[INFO] app-logbook-olog-ui ................................ SUCCESS
[ 4.162 s]
[INFO] app-logbook-elog ................................... SUCCESS
[ 0.862 s]
...
I guess, I have now all apps included. Unfortunately, the error remains.
Best regards
|
I think your build still contains a bit too much... With the dependencies and exclusions I have defined in a build for your use case I have the following
This configuration will launch the proper UI and query the elog supported endpoint when launched, i.e. call |
Dear Georg,
Thanks to your advice, at least I now get results. Unfortunately they
are not reliable:
The Log Entry Table does show results, yet ignoring the search string
(see error messages below), but it displays all messages, while Log
Entry Calender does not:
It somehow tries do add Scratch Pad, when I scroll through the Table
multiple times:
```
2024-11-25 12:53:23 INFO [org.phoebus.framework.jobs] Job 'searching
logbook for : {search=*}': Finished - Cancelled
2024-11-25 12:53:23 INFO [org.phoebus.logbook.ui.write.LogEntryModel]
Adding default logbook "Scratch Pad"
```
When using the advanced search and adding the time scale the following
error messages appear:
```
2024-11-25 13:03:25 INFO [org.phoebus.framework.jobs] Job 'searching
logbook for : {search=*, start=1731931399, end=1732536199}': Finished -
Cancelled
java.time.format.DateTimeParseException: Text '1731931405' could not be
parsed at index 0
at
java.base/java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2052)
at
java.base/java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1954)
at java.base/java.time.LocalDateTime.parse(LocalDateTime.java:494)
at org.phoebus.elog.api.ElogClient.findLogs(ElogClient.java:279)
at
org.phoebus.logbook.ui.LogbookSearchJob.lambda$getRunnable$0(LogbookSearchJob.java:56)
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:840)
Exception in thread "JavaFX Application Thread"
java.lang.NullPointerException: Cannot invoke "java.util.List.stream()"
because "this.logEntries" is null
at
org.phoebus.logbook.ui.LogEntryCalenderViewController.refresh(LogEntryCalenderViewController.java:283)
at
org.phoebus.logbook.ui.LogEntryCalenderViewController.setLogs(LogEntryCalenderViewController.java:278)
at
org.phoebus.logbook.ui.LogbookSearchController.lambda$search$0(LogbookSearchController.java:41)
at
com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at
com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at
com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at
com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:316)
at java.base/java.lang.Thread.run(Thread.java:840)
```
Best regards
Simon
P.S.: In the meantime I've tested py_elog from the PSI on which Florian
has developed his elog api
(https://github.com/paulscherrerinstitute/py_elog) to check, that my
elog instance is working as expected.
|
Please make sure you have the following in your settings file for Phoebus: |
Dear Georg,
I've tried that.
Unfortunately, the calender and table apps are not working reliable. I
have another elog instance using SSL, i.e. https://..., if I use this
url in the settings the table does not show anything at all. The
calender does. But I also have to use the "-clean" option to start
phoebus. It seems there might be some caching problems in my test
environment.
And if I can't use the search-String-function properly, this does not
work either in a production environment. The "send to logbook" function
works reliably.
Best regards
|
Hi, We do not have an elog service running, so I have no possibility debugging your issues. |
Dear George,
|
Hi, |
Dear George,
Can I somehow increase the error log level or did you mean something different? |
Actually that message says that search is done in the background and then terminates. It's not an error message. |
Yes indeed, that would be great. Unfortunately today and tomorrow I am not available anymore but please feel free to write me [email protected] so that we can find a suitable appointment. |
Dear Phoebus team and developer,
Short description
I get exceptions, when I try to use the Log Entry Calender and Table with elog.
My environment
Phoebus version
I used the latest release version:
https://github.com/ControlSystemStudio/phoebus/releases/download/v4.7.3/Phoebus-4.7.3-linux.tar.gz
OS
settings.ini
elog logbook config
Based on Florian Feldbauers example
Problem description
Using "Send to Logbook" I can successfully add entries to the elog. If I click on logbooks or tags I retrieve the corresponding types and categories defined in elog automatically. I see these entries in the elog web view.
But if I use the Log Entry Calender or Table, I retrieve the following exceptions and don't see any log entries:
Log Entry Calender
Log Entry Table
Thanks in advance.
Best regards
Simon
The text was updated successfully, but these errors were encountered: