Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 710 of 806  Not logged in ELOG logo
ID Date Icon Author Author Email Categorydown OS ELOG Version Subject
  67704   Tue Sep 16 18:05:41 2014 Reply Chris Jenningscjennings@cosma.comBug reportWindows V2.9.2-24Re: Sort by date prior to 2002

Chris Jennings wrote:

I have an attribute formatted as a date (but not labeled as date) and is sorted as second priority. The sort works fine until I enter a date older than Jan 1st 2002. When I do this it is sorted as the latest. Is this a bug or simply not designed to use dates this old?

Thanks in advance,

Chris

 Sorry, my mistake. The cutoff date is anything before September 9th 2001 does not sort.

  67713   Wed Nov 12 03:19:17 2014 Reply Konstantin Olchanskiolchansk@triumf.caBug reportLinux2.9.2-a738Re: Defunct daemons
Also see this in ALPHA at CERN. Eventually there are so many defunct elogd processes that the user runs out of "maxproc" quota and automatic submission 
of elog messages starts to fail. (and the users complain, reboot all computers, etc).

The elogd we use is this:
https://bitbucket.org/ritt/elog/commits/44800a769b99599db7620779e2142b1161c694fc?at=master

The best I can tell, the main elogd is spawning something but does not reap finished subprocesses (wait() syscall). My guess it is spawning ImageMagik stuff 
to create preview images.

K.O.
  67714   Wed Nov 12 03:48:29 2014 Reply Konstantin Olchanskiolchansk@triumf.caBug reportLinux2.9.2-a738Re: Defunct daemons
> Also see this in ALPHA at CERN.
> The elogd we use is this: https://bitbucket.org/ritt/elog/commits/44800a769b99599db7620779e2142b1161c694fc?at=master

Okey, found it. waitpid() in my_shell() is not protected against the periodic alarm signal. (UNIX signals are evil).

In the following log file, notice the entries that have "wait_status" of "-1". Those would have generated zombies ("defunct" processes).

Nov 12 03:43:05 alphacpc05 elogd[4809]: WAITPID pid 4873, wait_status 4873, errno 2 (No such file or directory), status 0, command "convert  
'/home/alpha/online/elog/logbooks/test/141112_034304_xvthr04.pdf[0-7]' -thumbnail '600' '/home/alpha/online/elog/logbooks/test/141112_034304_xvthr04-%d.png'"
Nov 12 03:43:05 alphacpc05 elogd[4809]: WAITPID pid 4880, wait_status 4880, errno 2 (No such file or directory), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034304_xvthr04.pdf[0]'"
Nov 12 03:43:19 alphacpc05 elogd[4809]: WAITPID pid 4890, wait_status 4890, errno 2 (No such file or directory), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034304_xvthr04.pdf[0]'"
Nov 12 03:43:19 alphacpc05 elogd[4809]: WAITPID pid 4896, wait_status -1, errno 4 (Interrupted system call), status 0, command "convert  
'/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05.pdf[0-7]' -thumbnail '600' '/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05-%d.png'"
Nov 12 03:43:19 alphacpc05 elogd[4809]: WAITPID pid 4896, wait_status 4896, errno 4 (Interrupted system call), status 0, command "convert  
'/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05.pdf[0-7]' -thumbnail '600' '/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05-%d.png'"
Nov 12 03:43:20 alphacpc05 elogd[4809]: WAITPID pid 4904, wait_status 4904, errno 4 (Interrupted system call), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05.pdf[0]'"
Nov 12 03:43:48 alphacpc05 elogd[4809]: WAITPID pid 4922, wait_status 4922, errno 2 (No such file or directory), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034304_xvthr04.pdf[0]'"
Nov 12 03:43:49 alphacpc05 elogd[4809]: WAITPID pid 4929, wait_status -1, errno 4 (Interrupted system call), status 1302603136, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05.pdf[0]'"
Nov 12 03:43:49 alphacpc05 elogd[4809]: WAITPID pid 4929, wait_status 4929, errno 4 (Interrupted system call), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034318_xvthr05.pdf[0]'"
Nov 12 03:43:50 alphacpc05 elogd[4809]: WAITPID pid 4935, wait_status 4935, errno 2 (No such file or directory), status 0, command "convert  
'/home/alpha/online/elog/logbooks/test/141112_034348_xvthr06.pdf[0-7]' -thumbnail '600' '/home/alpha/online/elog/logbooks/test/141112_034348_xvthr06-%d.png'"
Nov 12 03:43:50 alphacpc05 elogd[4809]: WAITPID pid 4943, wait_status 4943, errno 2 (No such file or directory), status 0, command "identify -format '%wx%h' 
'/home/alpha/online/elog/logbooks/test/141112_034348_xvthr06.pdf[0]'"

The following code is verified to not generate zombies, please apply it to the master branch of elog:

alphadaq.cern.ch:~/packages/elog> git diff
diff --git a/src/elogd.c b/src/elogd.c
index 277ba30..2d9a848 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -892,14 +892,25 @@ int my_shell(char *cmd, char *result, int size)
 
 #ifdef OS_UNIX
    pid_t child_pid;
-   int fh, status, i;
+   int fh, status, i, wait_status;
    char str[1024];
 
    if ((child_pid = fork()) < 0)
       return 0;
    else if (child_pid > 0) {
       /* parent process waits for child */
-      waitpid(child_pid, &status, 0);
+
+      while (1) {
+         wait_status = waitpid(child_pid, &status, 0);
+
+         sprintf(str, "WAITPID pid %d, wait_status %d, errno %d (%s), status %d, command \"%s\"", child_pid, wait_status, errno, strerror(errno), status, cmd);
+         write_logfile(NULL, str);
+         eprintf("%s", str);
+
+         if (wait_status == -1 && errno == EINTR)
+            continue;
+         break;
+      }
 
       /* read back result */
       memset(result, 0, size);
diff --git a/src/git-revision.h b/src/git-revision.h

K.O.
  67715   Wed Nov 12 11:03:37 2014 Warning Ciaran Whiteciaran.white@pfizer.comBug reportWindows2.7.6Elogbook on windows 8

i have been using elogbook V2.7.6 on my XP machine for a number of years. I ahve recently upgraded to windows 8 and the reply function on my entries has changed. I can now see the previous entrys in HTML format rather than the reply box which used to appear and also my ability to upload attachments and paste working linls is removed. Do i need to upgrade to the latest version and do i ned to back up my previous entries and how do i do this?

 

Thank you

  67721   Mon Nov 24 13:10:13 2014 Reply Stefan Rittstefan.ritt@psi.chBug reportWindows2.7.6Re: Elogbook on windows 8

Ciaran White wrote:

i have been using elogbook V2.7.6 on my XP machine for a number of years. I ahve recently upgraded to windows 8 and the reply function on my entries has changed. I can now see the previous entrys in HTML format rather than the reply box which used to appear and also my ability to upload attachments and paste working linls is removed. Do i need to upgrade to the latest version and do i ned to back up my previous entries and how do i do this?

 

Thank you

Upgrading Windows should not change the behavior of ELOG, unless you made a mistake during re-installation of ELOG. Can you post a picture on how your reply looks like, it's hard for me to understand what you write.

/Stefan 

  67722   Mon Nov 24 13:24:27 2014 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux2.9.2-a738Re: Defunct daemons
> Okey, found it. waitpid() in my_shell() is not protected against the periodic alarm signal. (UNIX signals are evil).

Acknowledged. Thanks for the fix. I added it to the development branch.

/Stefan
  67723   Mon Nov 24 18:29:34 2014 Entry harish aminharish.amin@holiday.co.omBug reportWindows2.9.Error report while submitting the entry

 Dear Stefan,

I am having a log book with the 5 logbooks. All other books are working fine except only one, every time while submitting the entry I am getting a error message.

I have attached the screen shot along with the error log file.

Please help me in solving this bug.

Regards

Harish Amin 

Attachment 1: Elog_error.JPG
Elog_error.JPG
Attachment 2: error.txt
24-Nov-2014 21:17:01 [harish@127.0.0.1] {ADVERSE EVENT FORM} NEW entry #0
24-Nov-2014 21:17:01 [harish@127.0.0.1] {ADVERSE EVENT FORM} Email from <harish.amin@holiday.co.om> to harish_jamin@yahoo.com,harish.amin@holiday.co.om, SMTP host smtp.omantel.net.om
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 220 fmgw1.omantel.net.om ESMTP Smtpd; Mon, 24 Nov 2014 21:15:09 +0400
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} EHLO localhost
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-fmgw1.omantel.net.om Hello [188.66.222.72], pleased to meet you
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-ENHANCEDSTATUSCODES
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-PIPELINING
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-8BITMIME
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-SIZE 32235520
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-DSN
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-AUTH LOGIN PLAIN
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-STARTTLS
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250-DELIVERBY
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250 HELP
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} AUTH LOGIN
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} Username
24-Nov-2014 21:17:02 [harish@127.0.0.1] {ADVERSE EVENT FORM} harish.amin@holiday.co.om
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} Password
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} ****
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} 235 2.0.0 OK Authenticated
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} MAIL FROM: <harish.amin@holiday.co.om>
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250 2.1.0 <harish.amin@holiday.co.om>... Sender ok
24-Nov-2014 21:17:03 [harish@127.0.0.1] {ADVERSE EVENT FORM} RCPT TO: <harish_jamin@yahoo.com>
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250 2.1.5 <harish_jamin@yahoo.com>... Recipient ok
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} RCPT TO: <harish.amin@holiday.co.om>
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250 2.1.5 <harish.amin@holiday.co.om>... Recipient ok
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} DATA
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} 354 Enter mail, end with "." on a line by itself
24-Nov-2014 21:17:04 [harish@127.0.0.1] {ADVERSE EVENT FORM} Date: Mon, 24 Nov 2014 21:17:01 +0400
To: harish_jamin@yahoo.com,
	"Harish" <harish.amin@holiday.co.om>
From: Harish <harish.amin@holiday.co.om>
User-Agent: Elog Version 2.9.2
MIME-Version: 1.0
Subject: New ELOG entry
Message-ID: <ADVERSE+EVENT+FORM-1@holiday.co.om>
X-Elog-URL: http://localhost:8080/ADVERSE+EVENT+FORM/1
X-Elog-submit-type: web|elog
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<h3>
A new entry has been submitted on localhost:</h3>
<table border="3" cellpadding="4">
<tr><td bgcolor="#CCCCFF">Logbook</td><td bgcolor="#DDEEBB">ADVERSE EVENT FORM</td></tr>
<tr><td bgcolor="#CCCCFF">SUBJECT INITIALS</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">SUBJECT ID</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">ADVERSE EVENT FORM-1</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Adverse Event Description</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Date of Onset</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Time of Onset</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Frequency of Episode</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Was treatment given for AE</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">If Yes</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">any follow up visit required</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Follow up date</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Comments</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">ADVERSE EVENT FORM-2</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Adverse Event Description</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Date of Onset</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Time of Onset</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Frequency of Episode</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Was treatment given for AE</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">If Yes</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">any follow up visit required</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Follow up date</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Comments</td><td bgcolor="#DDEEBB"></td></tr>
<tr><td bgcolor="#CCCCFF">Logbook URL</td><td bgcolor="#DDEEBB"><a href="http://localhost:8080/ADVERSE+EVENT+FORM/1">http://localhost:8080/ADVERSE+EVENT+FORM/1</a></td></tr>
</table>

</html></body>

.
24-Nov-2014 21:17:05 [harish@127.0.0.1] {ADVERSE EVENT FORM} 250 2.0.0 sAOHF99g021280-sAOHF99h021280 Message accepted for delivery
24-Nov-2014 21:17:05 [harish@127.0.0.1] {ADVERSE EVENT FORM} QUIT
24-Nov-2014 21:17:05 [harish@127.0.0.1] {ADVERSE EVENT FORM} 221 2.0.0 fmgw1.omantel.net.om closing connection
24-Nov-2014 21:17:53 [harish@127.0.0.1] {ENROLLMENT VISIT} NEW entry #0
  67724   Tue Nov 25 12:36:47 2014 Reply Stefan Rittstefan.ritt@psi.chBug reportWindows2.9.Re: Error report while submitting the entry

harish amin wrote:

 Dear Stefan,

I am having a log book with the 5 logbooks. All other books are working fine except only one, every time while submitting the entry I am getting a error message.

I have attached the screen shot along with the error log file.

Please help me in solving this bug.

Regards

Harish Amin 

It's hard to guess from the information you sent what is wrong. The program just crashes, after the email notification has been sent successfully. Can you check if the one logbook which is not working is using some path for the logbook directory which it cannot write to due to access limitations? Just a guess.

-Stefan

ELOG V3.1.5-3fb85fa6