Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 351 of 808  Not logged in ELOG logo
    icon8.gif   Re: ELOG deamon stuck in find_thread_head(), posted by Soren Poulsen on Wed Jul 6 12:06:01 2011 

Soren Poulsen wrote:

soren poulsen wrote:

ELOG seems to enter a loop when you do certain opeations on certain messages: I moved a message to a different logbook and the deamon just gets stuck.

If I restart the daemon, the message was in fact moved: I can move it back to its original destination without problems.

I started in GDB and break with ctrl-C when the process gets stuck, to be told :

Program received signal SIGINT, Interrupt.
0x000000000040a968 in find_thread_head ()

I then made a core dump.

I put the files here: http://cern.ch/poulsen2/elog-error-report-110430.zip (they are too big to upload).

I get into the same problem in other circumstances such as when opening some threads (maybe because they contain "Reply-to" references to non-existing messages, but I have problems reproducing this on the test installation.

I should maybe also submit the incriminating thread.

Soren

 

 1. It appears that some times find_thread_head is called with message references that do not exist. That is not good.

I put in a little check like this  before seeing if the message has an "in_reply_to" reference:

The line:

if (lbs->el_index[i].in_reply_to)

becomes:

if (i < *lbs->n_el_index && lbs->el_index[i].in_reply_to)
 

2. The trouble started when I deleted a message in the middle of a thread, which left the thread badly "connected" (references to a deleted message).

3. Also, when a thread is badly connected, it is a problem moving messages to a different logbook. ELOG complains that it cannot access the message (with the invalid reference). But ELOG should ignore it, since the message was deleted.

 

Soren

 It would be nice to have this corrected. The problem occurs when you select (read) a message which refers to another message via "In-reply-to", and this message does not exist.

Soren

    icon4.gif   Re: calculate diff of 2 date(s), posted by sohail bhatti on Mon Feb 6 15:59:04 2017 

Alex Kühnel wrote:

thx!

Stefan Ritt wrote:

There is the "subst on edit = ..." option you should use in addition.

Stefan

Alex Kühnel wrote:

is ist possible that subst only works for the initial create of a logbook entry? when I change/edit one of the parameter "Einsatzbegin" or "Einsatzende" the "Einsatzzeit" is not changed.

regards

/alex

Alex Kühnel wrote:

I found the solution in the forum :-)

subst Einsatzzeit = $shell(/usr/local/elog/diff.sh \"$Einsatzbeginn\" \"$Einsatzende\")

and diff.sh is

#!/bin/sh
#set -x
s1=$(date -d "$1" +%s)
s2=$(date -d "$2" +%s)
d=$(echo "($s2-$s1)/60"|bc -lq)
printf "%.0f Minuten" $d
 

 

 

Alex Kühnel wrote:

hi

I have an elogsystem for documenting emergency services. I have a starttime and an endtime. Is it possible to calculate the diff between the 2 timestamps and convert it to minutes?

 

Attributes = Bereitschafts Kalender Woche, Bereitschafts Woche, Einsatzbeginn, Einsatzende, Einsatzzeit, Telefon Nummer, Station, Status, Problem 
Options Status= Offen{1}, Erledigt{2}, Geschlossen{3}

......

Type Einsatzbeginn = datetime
Type Einsatzende = datetime

....

Subst Einsatzzeit  = $shell(Einsatzende - Einsatzbeginn)  

 

regards

/alex

 

 

 

 

 

icon5.gif   self-registration, posted by tony summerfelt on Fri Aug 9 21:10:20 2002 
i seem to be unable to find a clear explanation of how to enable self-registration in the docs.

just to be sure i grepped the doc directory, but the two references to it were in the changelog and the faq.

it could be just me but i'm not reading between the lines or connecting the various places in the docs to get it going :/
    icon2.gif   Re: self-registration, posted by tony summerfelt on Sun Aug 11 18:45:08 2002 
> Sorry, I haven't fully documented it yet, will do on Monday next week. For 
> now, see the configuration file for this forum which is attached.

that's ok. i just wanted to make sure that i hadn't missed something. i'm eventually switching over my entire dial up bbs, to my web page, with elog being the message system. self-registration was the last piece of the puzzle for me :)
    icon3.gif   Re: elogd.cfg for this demo site, posted by tony summerfelt on Wed Aug 14 19:45:56 2002 
> Just since some people asked for: Here is the elogd.cfg for this demo 

quite a few things i wanted to do were in that config :)

the only feature i can think of now is a link on the subject in threaded display mode. 

i really crank up the resolution on my monitor, so i tend to miss clicking on the icon (or message number...
icon3.gif   logging, posted by tony summerfelt on Thu Aug 15 20:21:17 2002 
is it possible to add ip information into the logging? that's something i was working on already but never finished...now that there's logging already added :)
icon4.gif   weird date bug, posted by tony summerfelt on Tue Sep 17 17:23:35 2002 
i have a forum with one message. the forums is displayed with the search mode set to threaded.

the list shows this: 

posted by tony summerfelt on Tuesday, September 17/2002 -- 11:19 AM

but the entry date on the message is:

Sunday, September 01/2002 -- 01:47 AM 

the 'posted by' shows the current date/time everytime i look at the message.
    icon2.gif   Re: weird date bug, posted by tony summerfelt on Tue Sep 24 17:24:38 2002 
> I vaguely remember there was once a problem with that date. So can you please 
> try again with a recent version of ELOG?

i just entered a new message and it's doing the same thing...

the version showing at the bottom of the listing is v2.1.2 (even though i updated to 2.1.3)
ELOG V3.1.5-3fb85fa6