Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 49 of 237  Not logged in ELOG logo
icon1.gif   Elog crashing at random intervals, posted by Lee Burnside on Sat Jan 28 22:23:46 2017 
We're running Elog 3.1.2 om SL 7.2 and keep getting random crashes, sometimes when no one is accessing a logbook. The following is from /var/log/messages
with debugging turned on after the latest crash.

Jan 28 12:43:56 archer elogd[9629]: POST /PHYS3305Spring2017/ HTTP/1.1
    icon2.gif   Re: Elog crashing at random intervals, posted by Lee Burnside on Mon Jan 30 12:03:36 2017 
Never mind, version from github solved issue.

 

Lee
icon5.gif   elogd crashes during SSL Mirror operations involving attachments, posted by Andreas Warburton on Mon Jan 9 17:15:56 2017 
My MacOS (10.12.2) elogd version V3.1.2 is a recent git commit (edc5e85), due to the fix to my earlier-described issue solved in the thread here: https://midas.psi.ch/elogs/Forum/68519.

I am trying to (re-)set up Mirror functionality with a linux server running the standard public (V3.1.2-bd75964).  I had initially updated
the linux server so that it also had the latest git commit (edc5e85), but could then not even add new logbook entries that involved attachments to it.
    icon1.gif   Re: elogd crashes during SSL Mirror operations involving attachments, posted by Andreas Warburton on Fri Jan 13 08:27:15 2017 Screen_Shot_2017-01-13_at_8.24.07_AM.png
The attached screenshot shows the behaviour after doing a synchronization (with Mirror simulate = 1) following first having ensured that the local (Mac)
and remote (linux) ELOGs initially showed "All entries identical" when doing a simulated synchronization, and then having edited local entries
9707 and 9709 by uploading (different) attachments to them.
       icon2.gif   Re: elogd crashes during SSL Mirror operations involving attachments, posted by Andreas Warburton on Fri Jan 13 21:05:49 2017 
When I switch from SSL = 1 to SSL = 0 and I use http:// instead of https://, the ability to upload attachments to logbook entries returns.  With
both Chrome and Safari browsers, with SSL = 1 the file upload hangs after only a small percentage of the file has been uploaded.  I ran the following
openssl diagnostic on my elogd port.  Would anyone have advice on what might be causing such errors?
          icon4.gif   Re: elogd crashes during SSL Mirror operations involving attachments, posted by Andreas Warburton on Sat Jan 14 08:27:42 2017 
For the time being, I am deeming ELOG 3.1.2 unusable with https (SSL = 1) functionality on my "Debian GNU/Linux 7 (wheezy)" server
with "OpenSSL 1.0.1t", due to the described apparent issues with SSL.  Reverting to http (SSL = 0) brings back my ability to upload attachments
and synchronize with a remote elogd running on a MacOS laptop.
             icon4.gif   Re: elogd crashes during SSL Mirror operations involving attachments, posted by Andreas Warburton on Thu Jan 19 12:56:51 2017 
Further to my comment in https://midas.psi.ch/elogs/Forum/68549, if the described synchronization requires attachment(s) to be transferred from
my Mac laptop to the Debian linux server (with SSL = 0 set), it fails in all the tests that I tried.

To check whether these problems are linked to the OpenSSL version on the linux server, we also tried building an elogd executable using 1.0.2j
icon5.gif   "No SMTP host defined in [global] section of configuration file", posted by Luca on Wed Jan 18 05:25:44 2017 
Hi,

I started re-using after a month an elog on my linux machine and, without any apparent reason since I did not used the machine at all in the
last month, every time I try to submit a post I get the following error
    icon2.gif   Re: "No SMTP host defined in [global] section of configuration file", posted by Stefan Ritt on Wed Jan 18 10:25:20 2017 
These problems usually come when you are using a different configuration file that the one you think you are using. Note that you explicitly can tell
elogd to use a specific configuation file with the "-c" flag. Also make sure to restart elogd after major changes.




Luca
icon5.gif   UTC time, posted by Luca on Mon Jan 9 15:39:59 2017 
Dear all,

I am trying to have the elog timestamp in UTC time instead of local time using the following config file but without success. Do you know what
I am doing wrong?
    icon2.gif   Re: UTC time, posted by Stefan Ritt on Mon Jan 9 17:18:15 2017 
How do you believe that you can preset a Submission item? Preset only works for attributes, so you have to define an attribute like "Submission
UTC" or similar and preset this attribute with

Preset Submission UTC = $utcdate
       icon2.gif   Re: UTC time, posted by Luca on Mon Jan 9 17:26:37 2017 
Dear Steve,

thanks a lot. Sorry but I am not expert of elog. I "inherited" from a colleague and wanted to see if I can keep it alive but to do
it I would need to move to UTC. Should this command affect the "INSERT CURRENT TIME/DATE" button? It does not seem to change.
          icon2.gif   Re: UTC time, posted by Luca on Thu Jan 12 02:35:02 2017 
Any suggestion?




Luca
wrote:



Dear Steve,
          icon2.gif   Re: UTC time, posted by Stefan Ritt on Thu Jan 12 08:28:45 2017 
The INSERT CURRENT TIME/DATE button is not affected by this setting.




Luca
wrote:



Dear Steve,
          icon2.gif   Re: UTC time, posted by Andreas Luedeke on Thu Jan 12 09:10:06 2017 
Hi Luca,

if you want to change all datetime properties to UTC time, then you'll just need to set the timezone on the server to UTC, before elogd is
started.
icon1.gif   Limit number of characters for "login user" parameter string ?, posted by Christine Quicot on Tue Jan 10 09:59:30 2017 
Hello all,

I use ELOG for about 30 users, and I've listed their email adresses in the "login user" parameter, using the LDAP authentication.
As I had problems with the users from the end of the list (they couldn't log in the logbooks) I guessed that there is a max length for the string
    icon2.gif   Re: Limit number of characters for "login user" parameter string ?, posted by Stefan Ritt on Tue Jan 10 11:13:02 2017 
There is a limit of 100 options per line, so you probably run against that. This is defined in elogd.h with MAX_N_LIST and MAX_N_ATTR. You can try to
increase these and recompile, but at some point you will hit the stack size limit of your operating system and elogd will crash.




Christine
icon14.gif   Is it possible to add custom menu commands, posted by Alex Kühnel on Sun Jan 8 19:26:29 2017 bereitschaft.PNG
hi forum,

my question, is it possible to add a custom menu entry (f.e. "Auswertung"). I will start a new php page and do some system code starting
from the new page. I have attached a pic of my "Bereitschaftsdoku".
    icon2.gif   Re: Is it possible to add custom menu commands, posted by Stefan Ritt on Mon Jan 9 11:00:53 2017 
No, calculations are not easily possible with elog. You can write some Javascript code to pull out all minutes, add them up and manipulate the DOM tree
to show the results, but this requires some JavaScript knowlegde. Alternatively, export your table to a CSV file and do your calculations with a spreadhseet
program.
       icon2.gif   Re: Is it possible to add custom menu commands, posted by Alex Kühnel on Mon Jan 9 16:02:35 2017 
ok, tnx! I will do the export and calculation with Excel

regards

/alex
icon5.gif   How to make two attributes reacting with each other, posted by Xuan Wu on Thu Jan 5 12:55:05 2017 
Hi all,

I have two attributes defined like following

Attributes = Author, Author Email, Icon, Category, System, Subject
    icon2.gif   Re: How to make two attributes reacting with each other, posted by Stefan Ritt on Thu Jan 5 13:24:06 2017 
You can do that with conditional attributes (see documentation):

 

Attributes = Author, Author Email, Icon, Category, System, Subject
       icon2.gif   Re: How to make two attributes reacting with each other, posted by Xuan Wu on Thu Jan 5 14:04:13 2017 
Thanks for your quick reply! I just test what you suggested, even I test {1} Preset on edit Icon = icon1.gif, they both didn't work.




Stefan
Ritt wrote:



You can do that with conditional attributes (see documentation):
          icon2.gif   Re: How to make two attributes reacting with each other, posted by Stefan Ritt on Thu Jan 5 14:13:07 2017 
The example I gave you worked for me, I actually tested it. Please note that it contains

Options Category = ...

and not
             icon2.gif   Re: How to make two attributes reacting with each other, posted by Xuan Wu on Thu Jan 5 14:23:08 2017 
Sorry for my carelessness. What you said is definitely right. I just wonder how can Icon and Catagory change simultaneously whatever which one be selected
first.




Stefan
                icon2.gif   Re: How to make two attributes reacting with each other, posted by Stefan Ritt on Thu Jan 5 14:35:22 2017 
If you select a (different) category, the current icon setting simply gets overwritten, what ever it was before.




Xuan
Wu wrote:



Sorry for my carelessness. What you said is definitely right. I just wonder
                   icon2.gif   Re: How to make two attributes reacting with each other, posted by Xuan Wu on Thu Jan 5 14:40:59 2017 
What I mean is that, when I select a catagory, the icon will change. If I change the icon, I need the catagory change too. 




Stefan
Ritt wrote:



If you select a (different) category, the current icon setting simply
                      icon2.gif   Re: How to make two attributes reacting with each other, posted by Andreas Luedeke on Fri Jan 6 10:22:24 2017 
IOptions does not support conditional attributes.

I think the proper solution would be to remove the icon selection field from the input form:

Show Attributes Edit = Author, Author Email, Category, System, Subject

The
                         icon14.gif   Re: How to make two attributes reacting with each other, posted by Xuan Wu on Fri Jan 6 11:05:18 2017 
So, as far as I know that ROptions and IOptions doesn't support conditional attributes.

I think what you suggest is a nice idea. An alternative way is putting Category attribute before Icon attribute and adding a tooltip
to Icon attribute. However, I think your advice is better. Thanks!
icon5.gif   elogd crashes during Find and Mirror operations under MacOS, posted by Andreas Warburton on Sat Dec 24 10:40:00 2016 
When installing ELOG 3.1.2 on my Mac Sierra (10.12.2) with the latest XCode 8.2.1, it seemed to install fine but for one warning when building elogd:


cc -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -DHAVE_SSL -I /opt/local/include -o elogd 
src/elogd.c
crypt.o auth.o regex.o mxml.o  -lssl
src/elogd.c:13840:13: warning: '__builtin___strlcpy_chk' will always overflow
      destination buffer [-Wbuiltin-memcpy-chk-size]
    icon2.gif   Re: elogd crashes during Find and Mirror operations under MacOS, posted by Andreas Luedeke on Tue Jan 3 09:20:23 2017 
I have no experience with ELOG on OSX, therefore I can only give very vague and indirect support (sorry).

I suggest that you first try
an installation without actual logbook data (just move it to a save place for a while). Does a "find" still crash elogd?

If elogd
is still crashing, you should prune your configuration until it stops crashing. Submit the smallest config here that still crashes the logbook.

Since
    icon2.gif   Re: elogd crashes during Find and Mirror operations under MacOS, posted by Stefan Ritt on Tue Jan 3 09:44:18 2017 
The current GIT revision (c017d07) fixes the problem with
the strlcpy() function (macOS 10.12.2, XCode 8.2). Can you try if that fixes your other problems, too?

Plese remember to use the recursive clone to get that version:
       icon2.gif   Re: elogd crashes during Find and Mirror operations under MacOS, posted by Andreas Warburton on Tue Jan 3 12:45:13 2017 
Thank you very much (both Andreas and Stefan)!  The build now runs without warnings, and I am now able to do Find operations without crashes.  I
still am having some issues with the synchronization, but I suspect that this is elog-content related, so will in the coming days do some more testing
from CERN (where I have higher bandwidth with my home institution in Canada).  Incidentally, I had to add a line to Makefile in order to be able to
          icon2.gif   Re: elogd crashes during Find and Mirror operations under MacOS, posted by Stefan Ritt on Tue Jan 3 12:58:13 2017 
Ah, thanks for telling me. I added that to the Makefile. I did not need this because I had in my .profiel following line

export C_INCLUDE_PATH=/opt/local/include

which I need also for other macports-based projects. But having this twice does not hurt.
ELOG V3.1.5-3fb85fa6