ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68634
|
Wed Jun 28 19:37:10 2017 |
| Erkcan Ozcan | erkcan@gmail.com | Bug report | Linux | V3.1.3-aded4ae | Re: Server dropping SSL connection while uploading large files | Hi,
Could someone at least suggest how I could debug this problem myself? If I know where to start, perhaps I can fix it myself and contribute to the software.
Best,
e.
Erkcan Ozcan wrote: |
Hi,
I am having trouble with uploading large (>0.5MB) files to elog. We click on upload and in a couple of seconds, the webbrowser complains that the server has dropped the connection.
Following the suggestions I found on these forums (https://midas.psi.ch/elogs/Forum/66753), I increased the timeout.tv_sec to 30 in three locations in elogd.c, but this did not help.
The problem is present in my old elog installation (from ~2 years ago), as well as the latest git snapshot from bitbucket that I cloned on June 10, 2017.
PS: Upload seems to work for non-secure configuration. It still takes a while to load, but it completes. However we prefer to use secure connections ( SSL = 1 ).
PS: Using nmap I looked at the latency to the relevant port, it can be as high as 0.5sec, but most often it is shorter.
Cheers,
e.
|
|
65909
|
Mon Jun 9 15:57:15 2008 |
| Erik Iverson | eiverson@ornl.gov | Question | Windows | | Re: Mass postings |
Stefan Ritt wrote: |
mike cianci wrote: |
I am setting this up as instrument log in a multi-hospital system, where there will be multiple instruments, in multiple departments, at multiple facilities.
I am using the "Top Group" function to keep the books separate so operators from one instrument/department/facility don't contaminate another instrument/department/facility's logbook.
What I am wondering is there someway to set it up so that a system wide manager could post a message to 5 individual logbooks for 5 identical instruments at 5 different locations all at once (one ELOG server)?
I hope this made sense. Thank you for your help.
|
Unfortunately this is not possible at the moment. You would have to use the menu command "copy to" and enable it for the admin user. Then you create your entry, and click on "copy to" once for each location you want to copy this entry.
|
I found a way to get this to work. Define a "Messages" logbook for the messages to be broadcast. None of the user installations need access to it. Use "Execute new = " to execute a script calling the elog command line client passing the message on to each target logbook. Example:
--- elogd.cfg snippet begin ---
[Messages]
...
Execute new = mass_post.sh $text &
--- elogd.cfg snippet end ---
--- mass_post.sh begin ---
#!/bin/sh
elog -a Sender="System Administrator" -l "Logbook 1" $@
elog -a Sender="System Administrator" -l "Logbook 2" $@
elog -a Sender="System Administrator" -l "Logbook 3" $@
--- mass_post.sh end ---
The $@ expands to all the command line arguments, so the $text field, with all its spaces, gets passed correctly. Sorry I showed you the example in bash/linux rather than in Windows, but I don't know Windows real well - you're better off translating into it yourself than my untested attempts. The one thing I can tell you is that the "Execute new" command must include the "background fork". In Linux this is provided by the & at the end of the line. In windows you'll need to use
Execute new = start "dummy" /min mass_post.bat
to background the process. This is ESSENTIAL. Without backgrounding the batch file, the elogd server will go into an infinite loop. The parent process will wait for the child process to exit before continuing. elogd is single-threaded, so the child process cannot start until the parent process has completed its current task (which is waiting for the child process to exit).
You may need to tweak the above a little if you want to pass variable attributes to the script instead of defining them all in the script itself.
|
66257
|
Thu Mar 19 02:50:16 2009 |
| Erik Iverson | eiverson@ornl.gov | Question | All | 2.7.4 | "Full" view formatting | I have a logbook I use to capture machine settings. There are many (~30) different attributes defined. I've defined the "Summary" view via "List display" in such a way that not all the attributes are displayed in the summary list, because there's no practical way to fit the 30 different attributes in 30 rows across the screen, and there's no need to have every attribute shown in the summary view. I would like to define something for the "Full" view that lets me put one (or more, but not all) attributes per line; much like the single-entry view does now, just with multiple entries. So a "Full" listing would look like
ID: 1
Attribute1: Value1
Attribute2: Value2
Attribute3: Value3
Text...
ID: 2
Attribute1: Value1
Attribute2: Value2
Attribute3: Value3
Text...
rather than
ID Attribute1 Attribute2 Attribute3
1 Value1 Value2 Value3
Text...
2 Value1 Value2 Value3
Text...
etc.
Any suggestions?
Thanks as always for a wonderful piece of software! |
66310
|
Tue Apr 14 17:57:56 2009 |
| Erik Iverson | eiverson@ornl.gov | Question | Windows | 2.7.5-2187 | Re: Simple Math |
Stefan Ritt wrote: |
mike cianci wrote: |
Sorry to bother you. I could see in past Forum entries that the question of "Simple Math" has come up before, although the answers were not all that simple.
Can you do simple math (i.e. attribute A + attribute B = attribute C) in ELOG ?
Thank you for putting up with my questions.
Mike
|
No, you can't. The only way is to export a logbook to CSV, then import it in a spreadsheet program, then do the math there.
|
You can pass numerical attributes to an external command via "Execute new =...". This external command can then do the math and pass the result _back_ to the logbook either as a new entry or as an edit with the command-line client "elog".
For example, given a new entry with (numerical) attributes A and B, if you have
Execute new = add_them.pl $A $B $message id
in your elog.cfg file, then $A and $B will be passed to the add_them.pl perl script. Now have the perl script (or bc, or whatever you want to use) do the appropriate math and submit the result. For example, your perl script might include
$C=$A+$B
$D=$A*$B
elog -a C=$C ... -e "$message id" "Sum as edit"
elog -a D=$D ... "Product as new entry"
|
66500
|
Thu Aug 6 22:29:12 2009 |
| Erik Iverson | eiverson@ornl.gov | Question | All | 2.7.3 | Pre-populate Attachments in URL | Is there a way to pre-populate the new entry window with one or more attachments? Per the documentation, this is easy to do with attributes, i.e., http://localhost:8070/demo/?cmd=New&pauthor=joe&ptype=Info as a URL or bookmark will do it. I'd like to do the same thing with attachments, for example http://localhost:8070/demo/?cmd=New&pauthor=joe&ptype=Photograph&attfile1=picture1.jpg&attfile2=picture2.jpg might prepopulate two attachments, giving me an edit window all ready to enter the brief description represented by the two pictures. |
66662
|
Thu Jan 7 21:41:43 2010 |
| Erik Iverson | eiverson@ornl.gov | Question | All | 2.7.8 | Any way to paste clipboard into entry? | Is there any way to directly paste an image from a Windows clipboard into an elog entry page? It's obvious
for uploading a file, but many of my users say that they never make a file, they just want to paste in an image
already onscreen. |
66667
|
Mon Jan 11 16:44:23 2010 |
| Erik Iverson | eiverson@ornl.gov | Question | All | 2.7.8 | Re: Any way to paste clipboard into entry? | > > Is there any way to directly paste an image from a Windows clipboard into an elog entry page? It's obvious
> > for uploading a file, but many of my users say that they never make a file, they just want to paste in an image
> > already onscreen.
>
> This is a limitation of the FCKEditor used inside ELOG, and actually of the whole browser concept under Windows.
> There are some extensions to Firefox which let your paste an image as an attachment, but none for doing this right
> into the text body. For some discussion about this have a look at
>
> http://forums.developer.mindtouch.com/showthread.php?t=188
>
> for example.
Hmmm. Well, does that mean that it is easier under Linux? I have to confess I couldn't figure that out either. But
I'd be delighted to have Yet Another Reason to tell the users that "it works under Linux, maybe you should switch...." |
66923
|
Thu Nov 4 13:23:50 2010 |
| Erik Butz | erik.butz@gmail.com | Question | Linux | V2.7.6-219 | elog command line submission | Hi,
I am playing with the elog automatic subscription script, but somehow I am failing in submitting an entry.
I am using a syntax as this:
echo test | elog -h 127.0.0.1 -p 8085 -d /usr/local/elogbooks/Elog -l "Sub Elog" -a "Type=MyType" -x -u user passwd
and I get a message which says:
"cannot get host name: Success"
which seems contradictory and also there is no entry submitted.
The command is executed on the host where the elog is running, the port and directory are taken from the cfg File.
What is my mistake, where is my misunderstanding of the documentation?
Any hints appreciated.
Erik |
|