Re: Summary view - Umlauts, posted by Kenneth Andersson on Tue Jan 8 22:30:45 2008
|
Uwe wrote: |
Stefan Ritt wrote: |
Uwe wrote: |
Moving a logbook from one installation to another, posted by Val Schmidt on Mon Dec 17 02:17:20 2007
|
I've attempted to move a logbook from an old elog installation to a new one on another system. The version of elog is the same (2.6.1) in both. Both systems have the same name and the logbooks are and installation are going in the same place. So all paths are identical. Also, for the new installation, I've simply recompiled the same sources used to install the original one. The only difference is an upgrade in the OS.
I've rsync'd the directory and contents from the old installation to the logbooks/ directory for the new one. I then over-wrote the standard config file with the new one. I then started elogd in the new place.
What I find is
a) The default entry from the demo logbook is inserted into my logbook. This I can live with but it was unexpected.
b) The dates for all my entries as shown in my browser have years starting in 1946, rather than 2006. This is particularly odd since all of the actual log files have the correct dates.
c) The numbering of entries has been reset to 1.
Can anyone explain what I've done to mucky this up and how to fix it?
Thanks in advance,
Val
|
Re: Moving a logbook from one installation to another, posted by Stefan Ritt on Mon Dec 17 08:13:22 2007
|
Val Schmidt wrote: |
I've attempted to move a logbook from an old elog installation to a new one on another system. The version of elog is the same (2.6.1) in both. Both systems have the same name and the logbooks are and installation are going in the same place. So all paths are identical. Also, for the new installation, I've simply recompiled the same sources used to install the original one. The only difference is an upgrade in the OS.
I've rsync'd the directory and contents from the old installation to the logbooks/ directory for the new one. I then over-wrote the standard config file with the new one. I then started elogd in the new place.
What I find is
a) The default entry from the demo logbook is inserted into my logbook. This I can live with but it was unexpected.
b) The dates for all my entries as shown in my browser have years starting in 1946, rather than 2006. This is particularly odd since all of the actual log files have the correct dates.
c) The numbering of entries has been reset to 1.
|
That sounds really strange. The only thing I can think of is that the demo entry conflicted with your other entries and two of them have the same entry ID. The entry ID is a unique key which identifies each entry. If you look into the raw logbook file 011108a.log with a text editor, you will see them as
$@Mid@$: 1
Date: Thu Nov 08 18:37:57 2001
Author: Stefan Ritt
Type: Routine
Category: General
Subject: Welcome
Attachment:
Encoding: ELCode
========================================
[B]Congratulations for installing ELOG sucessfully!
[/B]
This is a demo entry to ensure the elogd server is working correctly.
Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.
so in this case the ID is 1. When you rsync'ed your entries into the demo logbook directory, you probably got two entries with the ID 1, which screws up elogd. Try to delete the file 011108a.log before you do the rsync. If you start elogd interactively with the "-v" flag, you will see some debugging output which can you help identify some problems:
[ritt@pc5082 ~/elog]$ ./elogd -v
elogd 2.7.0 built Dec 13 2007, 08:05:12 revision 1977
Config file : /afs/psi.ch/user/r/ritt/elog/elogd.cfg
Resource dir : /afs/psi.ch/user/r/ritt/elog
Logbook dir : /afs/psi.ch/user/r/ritt/elog/logbooks/
Indexing logbook "demo" in "logbooks/demo/" ...
Config [demo], MD5=F2E39262960C779517FEE576C17B1ED0
Entries:
ID 1, 011108a.log, ofs 0, thead, MD5=81D89C3C94C6626BB7FF191026040E83
After sort:
ID 1, 011108a.log, ofs 0
ok
Server listening on port 8080 ...
|
Re: Moving a logbook from one installation to another, posted by Val Schmidt on Mon Dec 17 19:18:13 2007
|
Stefan, I'm still stumped. I'm sorry for the hassle.
I've removed all the demo entries from both my logbook and the demo. I restarted elog in verbose mode and everything seems normal. I've even run the binary from my old elog installation on the config and logbooks in the new place and it works like a champ.
So I think I've concluded that my new compilation is mucky'd up. The logbooks and config file are fine.
So for the record, the new installation is on MacOS 10.5 (Leopard). The compiler is gcc4.0. There is one warning when I compile:
src/elog.c: In function 'url_encode':
src/elog.c:209: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness
But this is not likely the problem.
So I stuck a debug statement into the code and recompiled to see the dates that are read from the logbook. Here is what I found:
DEBUG: Thu Nov 08 18:37:57 2001
DEBUG: Sun, 09 Apr 2006 12:38:31 +52175311
DEBUG: Sun, 09 Apr 2006 12:41:17 +52175311
DEBUG: Mon, 10 Apr 2006 09:24:26 +52175311
DEBUG: Mon, 10 Apr 2006 09:29:50 +52175311
DEBUG: Mon, 10 Apr 2006 16:15:31 +52175311
DEBUG: Mon, 10 Apr 2006 18:22:16 +52175311
DEBUG: Mon, 10 Apr 2006 18:23:20 +52175311
I haven't yet been able to figure out what this last number is and if it should indeed be part of the date. Any ideas here?
Thanks,
-Val
Stefan Ritt wrote: |
Val Schmidt wrote: |
I've attempted to move a logbook from an old elog installation to a new one on another system. The version of elog is the same (2.6.1) in both. Both systems have the same name and the logbooks are and installation are going in the same place. So all paths are identical. Also, for the new installation, I've simply recompiled the same sources used to install the original one. The only difference is an upgrade in the OS.
I've rsync'd the directory and contents from the old installation to the logbooks/ directory for the new one. I then over-wrote the standard config file with the new one. I then started elogd in the new place.
What I find is
a) The default entry from the demo logbook is inserted into my logbook. This I can live with but it was unexpected.
b) The dates for all my entries as shown in my browser have years starting in 1946, rather than 2006. This is particularly odd since all of the actual log files have the correct dates.
c) The numbering of entries has been reset to 1.
|
That sounds really strange. The only thing I can think of is that the demo entry conflicted with your other entries and two of them have the same entry ID. The entry ID is a unique key which identifies each entry. If you look into the raw logbook file 011108a.log with a text editor, you will see them as
$@Mid@$: 1
Date: Thu Nov 08 18:37:57 2001
Author: Stefan Ritt
Type: Routine
Category: General
Subject: Welcome
Attachment:
Encoding: ELCode
========================================
[B]Congratulations for installing ELOG sucessfully!
[/B]
This is a demo entry to ensure the elogd server is working correctly.
Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.
so in this case the ID is 1. When you rsync'ed your entries into the demo logbook directory, you probably got two entries with the ID 1, which screws up elogd. Try to delete the file 011108a.log before you do the rsync. If you start elogd interactively with the "-v" flag, you will see some debugging output which can you help identify some problems:
[ritt@pc5082 ~/elog]$ ./elogd -v
elogd 2.7.0 built Dec 13 2007, 08:05:12 revision 1977
Config file : /afs/psi.ch/user/r/ritt/elog/elogd.cfg
Resource dir : /afs/psi.ch/user/r/ritt/elog
Logbook dir : /afs/psi.ch/user/r/ritt/elog/logbooks/
Indexing logbook "demo" in "logbooks/demo/" ...
Config [demo], MD5=F2E39262960C779517FEE576C17B1ED0
Entries:
ID 1, 011108a.log, ofs 0, thead, MD5=81D89C3C94C6626BB7FF191026040E83
After sort:
ID 1, 011108a.log, ofs 0
ok
Server listening on port 8080 ...
|
|
Re: Moving a logbook from one installation to another, posted by Stefan Ritt on Tue Dec 18 09:41:16 2007
|
First of all, you should also describe what has been improved. While for you it is important what is not working, for me it is also important what is working, to get more information if such a problem should occur again. So is your demo entry still there? Is the numbering still starting from 1 after you removed the demo entry?
The suspicious dates Sun, 09 Apr 2006 12:38:31 +52175311 ring actually a bell: Under MacOS, there was always the problem with the timezone. The last number in the date string is the time zone in minutes (where the hour has actually 100 minutes). So an GMT offset of one hour would be +0100, two hours +0200 and so on. Somehow it seems like your number are screwed up completely. So +52175311 is equivalent to ~59 years, which explains why your dates are around 1946. The question is now how did these number go into your entries? Have you copied the *.log files over from the old location or generated newly? Did the old files already have this problem (load the *.log files into an ASCII editor!). The time zone is handled inside ELOG in the following function:
/* workaround for wong timezone under MAX OSX */
long my_timezone()
{
#if defined(OS_MACOSX) || defined(__FreeBSD__)
time_t tp;
time(&tp);
return -localtime(&tp)->tm_gmtoff;
#else
return timezone;
#endif
}
As you can see, MAXOSX needs a different treatment. I got this code from someone else since I don't have a Mac available. One suspicion I have is that the variable OS_MACOSX is not defined correctly. There is some code which checks for __APPLE__ and then defines OS_MACOSX. Maybe put a print statement next to time(&tp); to see if that code is really executed.
Val Schmidt wrote: |
Stefan, I'm still stumped. I'm sorry for the hassle.
I've removed all the demo entries from both my logbook and the demo. I restarted elog in verbose mode and everything seems normal. I've even run the binary from my old elog installation on the config and logbooks in the new place and it works like a champ.
So I think I've concluded that my new compilation is mucky'd up. The logbooks and config file are fine.
So for the record, the new installation is on MacOS 10.5 (Leopard). The compiler is gcc4.0. There is one warning when I compile:
src/elog.c: In function 'url_encode':
src/elog.c:209: warning: pointer targets in passing argument 2 of 'strlcpy' differ in signedness
But this is not likely the problem.
So I stuck a debug statement into the code and recompiled to see the dates that are read from the logbook. Here is what I found:
DEBUG: Thu Nov 08 18:37:57 2001
DEBUG: Sun, 09 Apr 2006 12:38:31 +52175311
DEBUG: Sun, 09 Apr 2006 12:41:17 +52175311
DEBUG: Mon, 10 Apr 2006 09:24:26 +52175311
DEBUG: Mon, 10 Apr 2006 09:29:50 +52175311
DEBUG: Mon, 10 Apr 2006 16:15:31 +52175311
DEBUG: Mon, 10 Apr 2006 18:22:16 +52175311
DEBUG: Mon, 10 Apr 2006 18:23:20 +52175311
I haven't yet been able to figure out what this last number is and if it should indeed be part of the date. Any ideas here?
Thanks,
-Val
Stefan Ritt wrote: |
Val Schmidt wrote: |
I've attempted to move a logbook from an old elog installation to a new one on another system. The version of elog is the same (2.6.1) in both. Both systems have the same name and the logbooks are and installation are going in the same place. So all paths are identical. Also, for the new installation, I've simply recompiled the same sources used to install the original one. The only difference is an upgrade in the OS.
I've rsync'd the directory and contents from the old installation to the logbooks/ directory for the new one. I then over-wrote the standard config file with the new one. I then started elogd in the new place.
What I find is
a) The default entry from the demo logbook is inserted into my logbook. This I can live with but it was unexpected.
b) The dates for all my entries as shown in my browser have years starting in 1946, rather than 2006. This is particularly odd since all of the actual log files have the correct dates.
c) The numbering of entries has been reset to 1.
|
That sounds really strange. The only thing I can think of is that the demo entry conflicted with your other entries and two of them have the same entry ID. The entry ID is a unique key which identifies each entry. If you look into the raw logbook file 011108a.log with a text editor, you will see them as
$@Mid@$: 1
Date: Thu Nov 08 18:37:57 2001
Author: Stefan Ritt
Type: Routine
Category: General
Subject: Welcome
Attachment:
Encoding: ELCode
========================================
[B]Congratulations for installing ELOG sucessfully!
[/B]
This is a demo entry to ensure the elogd server is working correctly.
Click [I]"New"[/I] to add new pages and [I]"Delete"[/I] to delete this page.
so in this case the ID is 1. When you rsync'ed your entries into the demo logbook directory, you probably got two entries with the ID 1, which screws up elogd. Try to delete the file 011108a.log before you do the rsync. If you start elogd interactively with the "-v" flag, you will see some debugging output which can you help identify some problems:
[ritt@pc5082 ~/elog]$ ./elogd -v
elogd 2.7.0 built Dec 13 2007, 08:05:12 revision 1977
Config file : /afs/psi.ch/user/r/ritt/elog/elogd.cfg
Resource dir : /afs/psi.ch/user/r/ritt/elog
Logbook dir : /afs/psi.ch/user/r/ritt/elog/logbooks/
Indexing logbook "demo" in "logbooks/demo/" ...
Config [demo], MD5=F2E39262960C779517FEE576C17B1ED0
Entries:
ID 1, 011108a.log, ofs 0, thead, MD5=81D89C3C94C6626BB7FF191026040E83
After sort:
ID 1, 011108a.log, ofs 0
ok
Server listening on port 8080 ...
|
|
|
ELog Friendly Reporting Tools, posted by Matt on Wed Dec 12 16:05:00 2007
|
We have used ELog for some time now (within the IT industry) for several things (on-call tracking, after-hours work, knowledge base and a few other uses in development). Now that we have a good base of data, we would like to do some trending analysis. We have used Excel in the past for this, but it is rather time consuming. Does anyone have recommendations for tools (hopefully open source) they have used? I know nearly anything will since ELog uses flat files, but I'm looking for recommendations that you all know works well. |
Print Function, posted by Adam Blandford on Wed Dec 5 13:10:52 2007
|
While it is possible to print a logbook using the standard web browser print command in the Full or Summary view, a dedicated print function allowing the user to print out a hardcopy of a particular logbook would be very helpful.
Cheers
Adam
P.S. Thankyou for the response in elog:65671 |
Re: Print Function, posted by Stefan Ritt on Wed Dec 5 21:33:48 2007
|
Adam Blandford wrote: |
While it is possible to print a logbook using the standard web browser print command in the Full or Summary view, a dedicated print function allowing the user to print out a hardcopy of a particular logbook would be very helpful.
Cheers
Adam
P.S. Thankyou for the response in elog:65671
|
This is possible since the beginning: Click on Find, then check Display full entries and Printable output and hit Search. You get then a single page containing all entries from the logbook which you can easily print to get a hardcopy. |
Icon comment, posted by Uwe on Thu Nov 29 21:40:29 2007
|
Hello,
one idea for improvement. When using the option 'Icon comment' this comment is shown when creating a new entry and moving with he mouse over the icon but it is not displayed in full or summary view. In full or summary view the filename is shown. Not really important, but perhaps an improvement.
Thanks!
Uwe |
Re: Icon comment, posted by Stefan Ritt on Mon Dec 3 09:05:16 2007
|
Uwe wrote: |
one idea for improvement. When using the option 'Icon comment' this comment is shown when creating a new entry and moving with he mouse over the icon but it is not displayed in full or summary view. In full or summary view the filename is shown. Not really important, but perhaps an improvement.
|
I implemented this request in SVN revision #1974. |
Re: Icon comment, posted by Uwe on Mon Dec 3 11:25:54 2007
|
Stefan Ritt wrote: |
Uwe wrote: |
one idea for improvement. When using the option 'Icon comment' this comment is shown when creating a new entry and moving with he mouse over the icon but it is not displayed in full or summary view. In full or summary view the filename is shown. Not really important, but perhaps an improvement.
|
I implemented this request in SVN revision #1974.
|
Thank you!
Uwe |
Display Picture in ELOG Welcome Page, posted by Adam Blandford on Fri Nov 30 08:57:54 2007
|
Hi
I want to display an image on the title page and have put the following code into the elogd.cfg:
Welcome Title = <img src="pictures/ln2.jpg"><p><font size = 5 color=white>Welcome to My Project Log</font>
I have put the picture "ln2.jpg" in a pictures folder I have created in the root ELOG directory however the image does not show up. Any assistance would be great :)
Thanks in advance
Adam
|
Re: Display Picture in ELOG Welcome Page, posted by Gregory M. Caughey on Fri Nov 30 10:36:21 2007
|
Adam Blandford wrote: |
Hi
I want to display an image on the title page and have put the following code into the elogd.cfg:
Welcome Title = <img src="pictures/ln2.jpg"><p><font size = 5 color=white>Welcome to My Project Log</font>
I have put the picture "ln2.jpg" in a pictures folder I have created in the root ELOG directory however the image does not show up. Any assistance would be great :)
Thanks in advance
Adam
|
Hi Adam,
You might double check your file names vs. HTML tags. It appears in your example above that your HTML tag is requesting a file named: "1n2.jpg" and your image file name is "In2.jpg". Please note that in the first case the file name starts with (1) a numeral one and in the second case the file name start with a capital (I) a capital I.
Greg |
Re: Display Picture in ELOG Welcome Page, posted by Stefan Ritt on Fri Nov 30 11:34:42 2007
|
Adam Blandford wrote: |
Hi
I want to display an image on the title page and have put the following code into the elogd.cfg:
Welcome Title = <img src="pictures/ln2.jpg"><p><font size = 5 color=white>Welcome to My Project Log</font>
I have put the picture "ln2.jpg" in a pictures folder I have created in the root ELOG directory however the image does not show up. Any assistance would be great :)
Thanks in advance
Adam
|
You cannot put the images into a subdirectory. The above link "pictures/ln2.jpg" will translate into a URL
http://<your server/pictures/ln2.jpg
and there the path pictures will be taken as a logbook name, and the server will complain that this logbook does not exist. Unfortunately you cannot see this error message since it happens during the loading of the picture, and the browser just displays a broken picture link. So put your image into the root of the elogd server and it will be fine. |
quick filter, posted by Willem Koster on Wed Sep 5 15:05:52 2007
|
Greetings,
Last night we updated to 2.6.5 and now the <ENTER>-key on the "quick filter" searches won't work anymore in
internet exporer (@windows). I have to use the <TAB>-key now to get the results.
The ENTER-key still works under firefox (Windows & linux) and opera (at least under linux, because
opera@windows refuses to log me on .. whatever) and I would like to see it come back to internet explorer as
well.
Regards,
Willem Koster |
Re: quick filter, posted by Willem Koster on Wed Sep 5 16:35:29 2007
|
> Greetings,
>
> Last night we updated to 2.6.5 and now the <ENTER>-key on the "quick filter" searches won't work anymore in
> internet exporer (@windows). I have to use the <TAB>-key now to get the results.
>
> The ENTER-key still works under firefox (Windows & linux) and opera (at least under linux, because
> opera@windows refuses to log me on .. whatever) and I would like to see it come back to internet explorer as
> well.
>
> Regards,
> Willem Koster
ehm... funny enough the quick-filter entry used in this elog does work with IE.
(we're using ELOG V2.6.5-1844 btw)
update: when we try just one quick-filter it works ok, when we add our second quick-filter it stops working.
Both quick-filters are tekst-searches (just like this forum only has one tekst-search quick-filter).
We suspect that this is an explorer issue and probably not something that can be solved with elog, but ...
maybe .. who knows...
update2:
In the source we see:
<noscript><input type="Submit" value="Search"></noscript>
If we remove the <noscript> </noscript> tags we get a submit-button, but our problem seems to be solved.
(obviously hacking the source-code is not our primary choice :-) |
Re: quick filter, posted by Stefan Ritt on Thu Sep 6 08:50:53 2007
|
> > Greetings,
> >
> > Last night we updated to 2.6.5 and now the <ENTER>-key on the "quick filter" searches won't work anymore in
> > internet exporer (@windows). I have to use the <TAB>-key now to get the results.
> >
> > The ENTER-key still works under firefox (Windows & linux) and opera (at least under linux, because
> > opera@windows refuses to log me on .. whatever) and I would like to see it come back to internet explorer as
> > well.
> >
> > Regards,
> > Willem Koster
>
> ehm... funny enough the quick-filter entry used in this elog does work with IE.
>
> (we're using ELOG V2.6.5-1844 btw)
>
> update: when we try just one quick-filter it works ok, when we add our second quick-filter it stops working.
>
> Both quick-filters are tekst-searches (just like this forum only has one tekst-search quick-filter).
>
> We suspect that this is an explorer issue and probably not something that can be solved with elog, but ...
> maybe .. who knows...
>
>
>
> update2:
>
> In the source we see:
>
> <noscript><input type="Submit" value="Search"></noscript>
>
> If we remove the <noscript> </noscript> tags we get a submit-button, but our problem seems to be solved.
> (obviously hacking the source-code is not our primary choice :-)
The code above is for cases where JavaScript is not enabled. The quick filter text box contains code like:
onChange="document.form1.submit()"
which is some javacode which causes the browser to submit the form after the contents of the text box has changed.
Now if javascript is turned off, this does not work obviously. So I added the <noscript> section which shows the
Submit button, so people can click on it. But you are telling me that IE accepts the hit on return (not the click
on the Submit button) even when JavaScript is off, right? Can you temporarily remove the onChange section and see
what happens? |
Re: quick filter, posted by Uwe on Wed Nov 28 23:35:36 2007
|
> > > Greetings,
> > >
> > > Last night we updated to 2.6.5 and now the <ENTER>-key on the "quick filter" searches won't work anymore in
> > > internet exporer (@windows). I have to use the <TAB>-key now to get the results.
> > >
> > > The ENTER-key still works under firefox (Windows & linux) and opera (at least under linux, because
> > > opera@windows refuses to log me on .. whatever) and I would like to see it come back to internet explorer as
> > > well.
> > >
> > > Regards,
> > > Willem Koster
> >
> > ehm... funny enough the quick-filter entry used in this elog does work with IE.
> >
> > (we're using ELOG V2.6.5-1844 btw)
> >
> > update: when we try just one quick-filter it works ok, when we add our second quick-filter it stops working.
> >
> > Both quick-filters are tekst-searches (just like this forum only has one tekst-search quick-filter).
> >
> > We suspect that this is an explorer issue and probably not something that can be solved with elog, but ...
> > maybe .. who knows...
> >
> >
> >
> > update2:
> >
> > In the source we see:
> >
> > <noscript><input type="Submit" value="Search"></noscript>
> >
> > If we remove the <noscript> </noscript> tags we get a submit-button, but our problem seems to be solved.
> > (obviously hacking the source-code is not our primary choice :-)
>
> The code above is for cases where JavaScript is not enabled. The quick filter text box contains code like:
>
> onChange="document.form1.submit()"
>
> which is some javacode which causes the browser to submit the form after the contents of the text box has changed.
> Now if javascript is turned off, this does not work obviously. So I added the <noscript> section which shows the
> Submit button, so people can click on it. But you are telling me that IE accepts the hit on return (not the click
> on the Submit button) even when JavaScript is off, right? Can you temporarily remove the onChange section and see
> what happens?
Hello,
I installed the latest version (2.7) of ELOG and having the problem that the quick filter only works when hitting the
enter-key when there is only one free text field (subtext). Whene having two or more free text field you have to use
the tab-key or click onto the elog icon. We are using Internet Explorer, not tested on Mozilla right now.
Thanks!
Uwe |
Re: quick filter, posted by Stefan Ritt on Thu Nov 29 12:22:44 2007
|
> I installed the latest version (2.7) of ELOG and having the problem that the quick filter only works when hitting the
> enter-key when there is only one free text field (subtext). Whene having two or more free text field you have to use
> the tab-key or click onto the elog icon. We are using Internet Explorer, not tested on Mozilla right now.
I found that this is indeed an Internet Explorer bug, since it works with all other browsers I tested. There is however a
workaround: I added some code to the current version of elog which shows a "Search" button whenever the page is accessed
through the Internet Explorer. Then the behavior of hitting <return> works again. The change is in revision #1970 and will
be contained in the next release. |
Re: quick filter, posted by Uwe on Thu Nov 29 18:59:59 2007
|
> > I installed the latest version (2.7) of ELOG and having the problem that the quick filter only works when hitting the
> > enter-key when there is only one free text field (subtext). Whene having two or more free text field you have to use
> > the tab-key or click onto the elog icon. We are using Internet Explorer, not tested on Mozilla right now.
>
> I found that this is indeed an Internet Explorer bug, since it works with all other browsers I tested. There is however a
> workaround: I added some code to the current version of elog which shows a "Search" button whenever the page is accessed
> through the Internet Explorer. Then the behavior of hitting <return> works again. The change is in revision #1970 and will
> be contained in the next release.
Thanks again for your help! |
large attachment seems to hang elogd?, posted by Haitao Yu on Tue Mar 7 21:41:28 2006
|
Hello,
I am trying to attach somewhat large file (4-15MB files tested) with my messages but it seems to hang the elogd server for a really long time (30-100minutes). The file upload was done pretty soon (within a few seconds), then the elogd process seems to be busy doing something, using around 50MB of memory and 95% of CPU time, and stop respond to the requests. I can read the logbook with another copy of elogd running on another port, and I can see (and download) the uploaded file. I am wondering what could cause the problem --- and could it be related to the problem of not setting up the SMTP server right? Thanks for any suggestion!
Haitao
P.S. I read in some old message that if we want to upload very large files, we have to change the WEB_BUFFER_SIZE in elogd.c, however this parameter is no longer in v2.6.1. Is there something similiar I have to change? |
Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Thu Oct 25 09:43:52 2007
|
Hello,
I'm observing the same behavior with ELOG V2.6.5-1844.
Is there a fix for this?
Best Regards,
Konrad |
Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:33:49 2007
|
Hi,
I am having the same problem with 2.6.4.1 and the latest version. It just hangs and taking a long time to upload multiple of 1.5 to 2 MB attachments...or just one few MB attachment. Hope that's a fix soon. |
Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:39:54 2007
|
Hi,
I did more testing..if I suppress email notification, it is fast. There is something wrong there.
Jacky Li wrote: | Hi,
I am having the same problem with 2.6.4.1 and the latest version. It just hangs and taking a long time to upload multiple of 1.5 to 2 MB attachments...or just one few MB attachment. Hope that's a fix soon. |
|
Re: large attachment seems to hang elogd?, posted by Jacky Li on Wed Oct 31 22:44:06 2007
|
Ok,
I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.
Jacky Li wrote: | Hi,
I did more testing..if I suppress email notification, it is fast. There is something wrong there. |
Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:00:56 2007
|
Hi,
Jacky Li wrote: | Ok,
I noticed that the email notification got two copies of the attached files to elog post. It looks like the cause is
between elog and the mail server. When there is email notification, the attachement is sent along to the mail server and that's taking a long time and there are two copies of the attachment.
Jacky Li wrote: | Hi,
I did more testing..if I suppress email notification, it is fast. There is something wrong there.
|
|
Indeed I can confirm that without email notification it's blazing fast. I haven't observed attachments being send twice. Though I got two indentical entries in the elog.
On my box I'm using sendmail. Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification?
Best Regards,
Konrad |
Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:06:41 2007
|
Konrad Klimaszewski wrote: | Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification? |
There is such an option:
Email format = 47
This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time. |
Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:15:55 2007
|
Stefan Ritt wrote: |
Konrad Klimaszewski wrote: | Until there is some fix in the way elog comunicates with mailer (if it is possible that is) could we have an option to suppress sending attachments in email notification? |
There is such an option:
Email format = 47
This tells elog to send email notifications without attachments. Anyhow I would not recommend to send big attachments as emails, since most email systems won't allow you that. Since the attachments are base64 encoded, the encoding can also take quite a long time. |
Great . I missed this one while digging through documentation.
Maybe you could consider setting as default:Email format = 111
Cheers,
Konrad |
Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 14:20:27 2007
|
Konrad Klimaszewski wrote: | Great . I missed this one while digging through documentation.
Maybe you could consider setting as default:Email format = 111 |
Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy 
An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that. |
Re: large attachment seems to hang elogd?, posted by Konrad Klimaszewski on Mon Nov 5 14:34:31 2007
|
Stefan Ritt wrote: |
Konrad Klimaszewski wrote: | Great . I missed this one while digging through documentation.
Maybe you could consider setting as default:Email format = 111 |
Well, then people will come up and ask: I can see some attachment name in my email, but the attachment is missing, what can I do?. So they would not find the configuration option as you did not, and complain here. You never can make everybody happy 
An alternative approach however would be to limit the attachment size. If above 1 MB for example, do not send it. Then make this a flexible parameter (maybe someone wants 2 MB). I will think about that. |
Of course you're right. I suggested using "111" because then in email notification there is a link to the attachment.
Which for me is enough . But there always will be someone that's not happy.
Your solution is nice but then attachments will be sent in a bit inconsistent way.
Easier would be to make it more obvious in the documentation.
I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" ).
Best Regards,
Konrad
PS
Thanks for implementing ELCode for tables - love them  |
Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Mon Nov 5 15:05:33 2007
|
Konrad Klimaszewski wrote: | I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" ). |
http://midas.psi.ch/elog/faq.html#18
Konrad Klimaszewski wrote: | Thanks for implementing ELCode for tables - love them  |
Have you tried tables in HTML form? Even better! Just switch the encoding from ELCode to HTML (starting from version 2.7.0). |
Re: large attachment seems to hang elogd?, posted by Jacky Li on Tue Nov 20 22:27:03 2007
|
Hi,
I put in the option:
Email Format = 111
Attachment still comes in to the notification instead of the link. I am using elog-2.7.0-1. Any ideas? Thank you.
Stefan Ritt wrote: |
Konrad Klimaszewski wrote: | I don't know put it in the FAQ or something (under: "Why my posts with large attachments are submitted so slowly" ). |
http://midas.psi.ch/elog/faq.html#18
Konrad Klimaszewski wrote: | Thanks for implementing ELCode for tables - love them  |
Have you tried tables in HTML form? Even better! Just switch the encoding from ELCode to HTML (starting from version 2.7.0). |
|
Re: large attachment seems to hang elogd?, posted by Stefan Ritt on Thu Nov 22 14:16:51 2007
|
Jacky Li wrote: | I put in the option:
Email Format = 111
Attachment still comes in to the notification instead of the link. I am using elog-2.7.0-1. Any ideas? |
You will see the attachment name in the notification (see below), but the actual attachment is not contained in the email, thus making it very small. |
|
ELOG V3.1.5-3fb85fa6 | | | |