Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 82 of 238  Not logged in ELOG logo
icon5.gif   Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Wed Nov 13 23:46:38 2013 bottomtextlogin.jpgexample.htm
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.
    icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Andreas Luedeke on Thu Nov 14 11:31:23 2013 

Hung Dao wrote:
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.

 I have a possible explanation for this problem, but it is just guess work. If I'm right, then just download the latest ELOG version and it will work properly again.

  • You've downloaded an elog version from git, which still contained the line 12 in elogd.c: char svn_revision[] = "$Id$";
  • Since you did checkout from git, the $Id$ was not substituted.  
  • ELOG trys to extract the version by this:      rsprintf
              ("<center><a class=\"bottomlink\" title=\"%s\" href=\"https://midas.psi.ch/elog/\">ELOG V%s-%d</a></center>",
               loc("Goto ELOG home page"), VERSION, atoi(svn_revision + 13));
  • svn_revision + 13 is pointing into the void. Still I would have expected that you get a number as a result.

My advice: download again and retry.
 

 
English (auto-detected) » English
 
       icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Thu Nov 14 20:06:44 2013 

Andreas Luedeke wrote:

Hung Dao wrote:
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.

 I have a possible explanation for this problem, but it is just guess work. If I'm right, then just download the latest ELOG version and it will work properly again.

  • You've downloaded an elog version from git, which still contained the line 12 in elogd.c: char svn_revision[] = "$Id$";
  • Since you did checkout from git, the $Id$ was not substituted.  
  • ELOG trys to extract the version by this:      rsprintf
              ("<center><a class=\"bottomlink\" title=\"%s\" href=\"https://midas.psi.ch/elog/\">ELOG V%s-%d</a></center>",
               loc("Goto ELOG home page"), VERSION, atoi(svn_revision + 13));
  • svn_revision + 13 is pointing into the void. Still I would have expected that you get a number as a result.

My advice: download again and retry.
 

 
English (auto-detected) » English
 

 I have downloaded a latest version.  It has displayed the new version as ELOG V2.9.2-bac715d where seems defined in GIT_REVISION as I guess.  Then I set Bottom Text Login to a html file, it still shows those unwanted characters.

          icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Andreas Luedeke on Fri Nov 15 08:34:05 2013 

Hung Dao wrote:

Andreas Luedeke wrote:

Hung Dao wrote:
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.

 I have a possible explanation for this problem, but it is just guess work. If I'm right, then just download the latest ELOG version and it will work properly again.

  • You've downloaded an elog version from git, which still contained the line 12 in elogd.c: char svn_revision[] = "$Id$";
  • Since you did checkout from git, the $Id$ was not substituted.  
  • ELOG trys to extract the version by this:      rsprintf
              ("<center><a class=\"bottomlink\" title=\"%s\" href=\"https://midas.psi.ch/elog/\">ELOG V%s-%d</a></center>",
               loc("Goto ELOG home page"), VERSION, atoi(svn_revision + 13));
  • svn_revision + 13 is pointing into the void. Still I would have expected that you get a number as a result.

My advice: download again and retry.
 

 
English (auto-detected) » English
 

 I have downloaded a latest version.  It has displayed the new version as ELOG V2.9.2-bac715d where seems defined in GIT_REVISION as I guess.  Then I set Bottom Text Login to a html file, it still shows those unwanted characters.

English (auto-detected) » English
 

Okay, why don't you just remove the unwanted characters from the html file? Because the attached file contains exactly those characters.

             icon2.gif   Re: Unwanted characters showing when using Bottom Text Login to a html file, posted by Hung Dao on Fri Nov 15 23:02:03 2013 

Andreas Luedeke wrote:

Hung Dao wrote:

Andreas Luedeke wrote:

Hung Dao wrote:
When using Bottom Text Login to a html file showing some unwanted characters. Also, the ELOG Version is longer displayed. Bottom Text Login = example.htm Attached are bottomtextlogin.jpg which shows the characters on the left and example.htm which I used.

 I have a possible explanation for this problem, but it is just guess work. If I'm right, then just download the latest ELOG version and it will work properly again.

  • You've downloaded an elog version from git, which still contained the line 12 in elogd.c: char svn_revision[] = "$Id$";
  • Since you did checkout from git, the $Id$ was not substituted.  
  • ELOG trys to extract the version by this:      rsprintf
              ("<center><a class=\"bottomlink\" title=\"%s\" href=\"https://midas.psi.ch/elog/\">ELOG V%s-%d</a></center>",
               loc("Goto ELOG home page"), VERSION, atoi(svn_revision + 13));
  • svn_revision + 13 is pointing into the void. Still I would have expected that you get a number as a result.

My advice: download again and retry.
 

 
English (auto-detected) » English
 

 I have downloaded a latest version.  It has displayed the new version as ELOG V2.9.2-bac715d where seems defined in GIT_REVISION as I guess.  Then I set Bottom Text Login to a html file, it still shows those unwanted characters.

English (auto-detected) » English
 

Okay, why don't you just remove the unwanted characters from the html file? Because the attached file contains exactly those characters.

Yes, unwanted characters are in my file.  In fact, they are not visible under some editor.  So, I have found a reference from this site http://www.ventrino.com/blog/60/2008/07/three-little-characters-i%C2%BB%C2%BF-designed-to-make-your-life-hell/ about how to remove them.  Basically, file's properties has to set to either ASCII or Encode as UTF-8 without BOM.  Thanks.

icon5.gif   Inconsistent and long load times, posted by Fabian on Fri Nov 15 10:59:51 2013 
We recently installed ELOG and it works pretty well, but the load times are rather inconsistent. Most of the time 
it is very fast, but it also often hangs for around 5-10 seconds while loading. It seems to affect all parts of 
the page that are returned at random, so sometimes the main html file will hang, sometimes the css file and 
sometimes the images.

The hardware it is running on is nothing special, an older 3 GHz Celeron, but it should be fast enough. It is 
running on Debian 7. 

Any ideas what the problem could be, or how I could investigate it further to find the bottleneck?
    icon2.gif   Re: Inconsistent and long load times, posted by Andreas Luedeke on Fri Nov 15 11:30:31 2013 
> We recently installed ELOG and it works pretty well, but the load times are rather inconsistent. Most of the time 
> it is very fast, but it also often hangs for around 5-10 seconds while loading. It seems to affect all parts of 
> the page that are returned at random, so sometimes the main html file will hang, sometimes the css file and 
> sometimes the images.
> 
> The hardware it is running on is nothing special, an older 3 GHz Celeron, but it should be fast enough. It is 
> running on Debian 7. 
> 
> Any ideas what the problem could be, or how I could investigate it further to find the bottleneck?

I'm not an expert in debugging web applications. Here are my two cent:
We once had a problem when we hosted very large logbooks (several 10 thousands of entries) that the server would run
out of real memory and was slowed down by swapping. Therefore my first idea would be to monitor the server: Is
the CPU load peaking? What happens with the memory consumption? Any other suspicious process running on the server?
But it could be as well a network or browser problem. Did you try different browsers?
Did you check the elogd log file?
       icon2.gif   Re: Inconsistent and long load times, posted by Fabian on Fri Nov 15 12:21:45 2013 
> I'm not an expert in debugging web applications. Here are my two cent:
> We once had a problem when we hosted very large logbooks (several 10 thousands of entries) that the server would run
> out of real memory and was slowed down by swapping. Therefore my first idea would be to monitor the server: Is
> the CPU load peaking? What happens with the memory consumption? Any other suspicious process running on the server?
> But it could be as well a network or browser problem. Did you try different browsers?
> Did you check the elogd log file?

The logbook only has a few hundred entries, elogd is using only around 20-30 MB and there is enough free RAM. The load 
average for the server is around 0.2, elogd only uses 5% CPU at most when it is accessed and the CPU is idle most of the 
time. 

Strangely it happens mostly when using Chrome, and almost never with Firefox. I captured the network traffic, but I can't 
see anything unusual. It just takes very long until the answer is returned by the elogd server.
          icon2.gif   Re: Inconsistent and long load times, posted by David Pilgram on Fri Nov 15 13:46:16 2013 
> > I'm not an expert in debugging web applications. Here are my two cent:
> > We once had a problem when we hosted very large logbooks (several 10 thousands of entries) that the server would run
> > out of real memory and was slowed down by swapping. Therefore my first idea would be to monitor the server: Is
> > the CPU load peaking? What happens with the memory consumption? Any other suspicious process running on the server?
> > But it could be as well a network or browser problem. Did you try different browsers?
> > Did you check the elogd log file?
> 
> The logbook only has a few hundred entries, elogd is using only around 20-30 MB and there is enough free RAM. The load 
> average for the server is around 0.2, elogd only uses 5% CPU at most when it is accessed and the CPU is idle most of the 
> time. 
> 
> Strangely it happens mostly when using Chrome, and almost never with Firefox. I captured the network traffic, but I can't 
> see anything unusual. It just takes very long until the answer is returned by the elogd server.

My tuppance worth.  I have noticed (firefox) that some attachments take rather longer than might be expected to upload.  I
originally thought this was the ghostview program processing say a pdf to make pngs etc, but have more recently started to
question that assumption.  No solution or much clue, just another observation.
icon5.gif   date and time, posted by David Pilgram on Wed Nov 13 13:36:48 2013 
[13 Nov]
As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read
earlier quoted entries (what with word-wrapping of the browser).
I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have 
given at the top of this initial entry.

So this is what I put in the config file:

....
Time format = %a %d %b %y
Date format = %d %b
Prepend on reply = [$date] \n
...

The time is used in the string for the Thread display.

Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as

[Wed 13 Nov 13]

Now this is hardly a disaster, but any ideas why the date formatting is being ignored?
    icon2.gif   Re: date and time, posted by Hal Proctor on Wed Nov 13 14:27:34 2013 

> [13 Nov] > As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read > earlier quoted entries (what with word-wrapping of the browser). > I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have > given at the top of this initial entry. > > So this is what I put in the config file: > > .... > Time format = %a %d %b %y > Date format = %d %b > Prepend on reply = [$date] \n > ... > > The time is used in the string for the Thread display. > > Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as > > [Wed 13 Nov 13] > > Now this is hardly a disaster, but any ideas why the date formatting is being ignored?

 

https://midas.psi.ch/elogs/Forum/67405

Why all the > Characters?  Maybe back off the version as stated in above link?  Not sure about the date issue.

       icon2.gif   Re: date and time, posted by David Pilgram on Wed Nov 13 14:41:07 2013 

Hal Proctor wrote:

> [13 Nov] > As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read > earlier quoted entries (what with word-wrapping of the browser). > I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have > given at the top of this initial entry. > > So this is what I put in the config file: > > .... > Time format = %a %d %b %y > Date format = %d %b > Prepend on reply = [$date] \n > ... > > The time is used in the string for the Thread display. > > Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as > > [Wed 13 Nov 13] > > Now this is hardly a disaster, but any ideas why the date formatting is being ignored?

 

https://midas.psi.ch/elogs/Forum/67405

Why all the > Characters?  Maybe back off the version as stated in above link?  Not sure about the date issue.

 I don't know what happened here - I mean, I understand the ">" characters being added to the start of every line of a quoted previous entry, but now what then happened to the formatting.

By default in plain mode elog adds ">" to the start of every quoted line, just as quoting an email will do (some mailer programs).

If you're beyond your nteenth reply, word-wrapping of the browser etc makes past comments difficult to read.  Of course it would be equally difficult in in html mode as the boxes would get more and more nested.

Not sure if your link here about html is relivent to the use of the ">" to indicate a quoted reply or not, although that wasn't really my question - which was about date format in the config file.

    icon2.gif   Re: date and time, posted by Andreas Luedeke on Thu Nov 14 11:19:12 2013 
> [13 Nov]
> As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read
> earlier quoted entries (what with word-wrapping of the browser).
> I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have 
> given at the top of this initial entry.
> 
> So this is what I put in the config file:
> 
> ....
> Time format = %a %d %b %y
> Date format = %d %b
> Prepend on reply = [$date] \n
> ...
> 
> The time is used in the string for the Thread display.
> 
> Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as
> 
> [Wed 13 Nov 13]
> 
> Now this is hardly a disaster, but any ideas why the date formatting is being ignored?

Hi David,
yes, a $date is substituted with the "Time format" in the function build_subst_list().
I guess that is a bug, but it could break many existing logbooks to change it.
I leave this to Stefan.

There is a simple solution for your problem: you can execute a shell command.

Prepend on reply = $shell(date '+[%d %b]') \n
Reply string =

That snipped will do exactly what you want :-) (of course you need to have the "-x" option to start elogd.)

Kind Regards
Andreas
       icon2.gif   Re: date and time, posted by David Pilgram on Fri Nov 15 13:43:18 2013 
> > [13 Nov]
> > As my threads have lots of replies, I end up with a forest of ">" characters which makes it difficult to read
> > earlier quoted entries (what with word-wrapping of the browser).
> > I thought to replace the ">"s by a simple date entry prepended to the start of each reply. - much as I have 
> > given at the top of this initial entry.
> > 
> > So this is what I put in the config file:
> > 
> > ....
> > Time format = %a %d %b %y
> > Date format = %d %b
> > Prepend on reply = [$date] \n
> > ...
> > 
> > The time is used in the string for the Thread display.
> > 
> > Only I don't get the date, with the date format, prepended to replies but the time, in the time format, as
> > 
> > [Wed 13 Nov 13]
> > 
> > Now this is hardly a disaster, but any ideas why the date formatting is being ignored?
> 
> Hi David,
> yes, a $date is substituted with the "Time format" in the function build_subst_list().
> I guess that is a bug, but it could break many existing logbooks to change it.
> I leave this to Stefan.
> 
> There is a simple solution for your problem: you can execute a shell command.
> 
> Prepend on reply = $shell(date '+[%d %b]') \n
> Reply string =
> 
> That snipped will do exactly what you want :-) (of course you need to have the "-x" option to start elogd.)
> 
> Kind Regards
> Andreas

Hi Andreas,

Thanks for this, I'll give the solution a go.  
I take the point that if it's a bug, other logbooks may be affected if it were fixed; but perhaps another
parameter - $thedate or something could be created instead?
icon5.gif   Error when attempted to submit an entry, posted by Hung Dao on Wed Nov 13 16:11:18 2013 error.jpg
One of my users reported that he received this error when attempted to submit an editing entry. Basically he is only one to edit this entry. When go ahead to press the button, the entry is updated successfully. What cause and how to prevent this error not to populate? Thanks
    icon2.gif   Re: Error when attempted to submit an entry, posted by Stefan Ritt on Wed Nov 13 16:31:28 2013 

Hung Dao wrote:
One of my users reported that he received this error when attempted to submit an editing entry. Basically he is only one to edit this entry. When go ahead to press the button, the entry is updated successfully. What cause and how to prevent this error not to populate? Thanks

Please read the documentation in https://midas.psi.ch/elog/config.html und the option "Use Lock". If you don't need locking, just turn it off.

icon8.gif   kerberos authentication NOT working, posted by Fabio Sella on Wed Oct 30 17:57:38 2013 

Hi guys,

we configured a kdc server using OPENLDAP as backend. We installed on it elog and configured the Kerberos Authentication on one logbook as follows:

Authentication = Kerberos, File
Kerberos Realm = TEST.COM
Password file = ./pwd.xml

 
Detect language » Italian
 

Even if the kinit comand is retrieving correctly a ticket for the user tsearch@TEST.COM(we see it using klist and tcpdump on lo interface), elogd kerberos authentication is not working.

We tried using tcpdump for troubleshooting but no traffic is generated on the loopback interface.

Did someone solve this problem or do you have an idea on how to make the kerberos authentication working?

Thanks

    icon2.gif   Re: kerberos authentication NOT working, posted by Hal Proctor on Fri Nov 1 14:14:03 2013 

Fabio Sella wrote:

Hi guys,

we configured a kdc server using OPENLDAP as backend. We installed on it elog and configured the Kerberos Authentication on one logbook as follows:

Authentication = Kerberos, File
Kerberos Realm = TEST.COM
Password file = ./pwd.xml

 
Detect language » Italian
 

 

Even if the kinit comand is retrieving correctly a ticket for the user tsearch@TEST.COM(we see it using klist and tcpdump on lo interface), elogd kerberos authentication is not working.

We tried using tcpdump for troubleshooting but no traffic is generated on the loopback interface.

Did someone solve this problem or do you have an idea on how to make the kerberos authentication working?

Thanks

 I have asked for same help, and no one has answered with a solution on implementing a kerberos .  I saw exactly what you were seeing. (did you try fully qualifying the domain within the username field for logon?  \\TEST.COM\username)

I still couldn't get it to work

       icon2.gif   Re: kerberos authentication NOT working, posted by Andreas Luedeke on Mon Nov 4 15:07:40 2013 

Hal Proctor wrote:

Fabio Sella wrote:

Hi guys,

we configured a kdc server using OPENLDAP as backend. We installed on it elog and configured the Kerberos Authentication on one logbook as follows:

Authentication = Kerberos, File
Kerberos Realm = TEST.COM
Password file = ./pwd.xml

 
Detect language » Italian
 

 

Even if the kinit comand is retrieving correctly a ticket for the user tsearch@TEST.COM(we see it using klist and tcpdump on lo interface), elogd kerberos authentication is not working.

We tried using tcpdump for troubleshooting but no traffic is generated on the loopback interface.

Did someone solve this problem or do you have an idea on how to make the kerberos authentication working?

Thanks

 I have asked for same help, and no one has answered with a solution on implementing a kerberos .  I saw exactly what you were seeing. (did you try fully qualifying the domain within the username field for logon?  \\TEST.COM\username)

I still couldn't get it to work

 Just my two cent:
- did you edit the Makefile to compile elogd with kerberos (USE_KRB5   = 1)?
- did you look into the elogd logfile for error messages at start-up or at login time?
I can only say that I got it working right away - that is the case when you learn least.
Maybe you should post your specific software versions: operating system (in my case Scientific Linux 5.1 (Boron)), Kerberos version (klist -V), etc.
 
English (auto-detected) » English
 
          icon2.gif   Re: kerberos authentication NOT working, posted by Olaf Kasten on Wed Nov 13 16:26:32 2013 

Andreas Luedeke wrote:

Hal Proctor wrote:

Fabio Sella wrote:

Hi guys,

we configured a kdc server using OPENLDAP as backend. We installed on it elog and configured the Kerberos Authentication on one logbook as follows:

Authentication = Kerberos, File
Kerberos Realm = TEST.COM
Password file = ./pwd.xml

 
Detect language » Italian
 

 

Even if the kinit comand is retrieving correctly a ticket for the user tsearch@TEST.COM(we see it using klist and tcpdump on lo interface), elogd kerberos authentication is not working.

We tried using tcpdump for troubleshooting but no traffic is generated on the loopback interface.

Did someone solve this problem or do you have an idea on how to make the kerberos authentication working?

Thanks

 I have asked for same help, and no one has answered with a solution on implementing a kerberos .  I saw exactly what you were seeing. (did you try fully qualifying the domain within the username field for logon?  \\TEST.COM\username)

I still couldn't get it to work

 Just my two cent:
- did you edit the Makefile to compile elogd with kerberos (USE_KRB5   = 1)?
- did you look into the elogd logfile for error messages at start-up or at login time?
I can only say that I got it working right away - that is the case when you learn least.
Maybe you should post your specific software versions: operating system (in my case Scientific Linux 5.1 (Boron)), Kerberos version (klist -V), etc.
 
English (auto-detected) » English
 

 I'm having same issue. Kerberos is working on Apache on same ubuntu 12.04 server. I used the USE_KRB5 option for compiling elog.

Does anyone  have an idea to solve that problem? 

icon5.gif   Image attachments null in e-mails. Error log?, posted by Daniel Campora on Tue Jun 25 19:31:56 2013 

 Hi there :)

I'm having a problem with the e-mail notification on my installation of elog. I'm testing the attachment upload with images, and it seems to work seamlessly. However upon posting, the e-mail notification sends a null attachment, instead of the image I would expect.

Is there an error log I can check for this? I started the elog process without the daemon option, but I can't see any error coming up.

Cheers,
 

    icon4.gif   Re: Image attachments null in e-mails. Error log?, posted by Andreas Luedeke on Wed Jun 26 10:10:45 2013 

Daniel Campora wrote:

 Hi there :)

I'm having a problem with the e-mail notification on my installation of elog. I'm testing the attachment upload with images, and it seems to work seamlessly. However upon posting, the e-mail notification sends a null attachment, instead of the image I would expect.

Is there an error log I can check for this? I started the elog process without the daemon option, but I can't see any error coming up.

Cheers,
 

This is one of the few exceptional cases where reading the documentation can actually help: https://midas.psi.ch/elog/config.html#global

Detect language » English
 

https://midas.psi.ch/elog/config.html#global

 

You can turn on logging using the "Logfile=<filename>" command in the elogd.cfg configuration. With "Logging level=3" you see all elog access, but sending email is in the log anyway.

    icon2.gif   Re: Image attachments null in e-mails. Error log?, posted by Stefan Ritt on Wed Jun 26 13:41:47 2013 

Daniel Campora wrote:

 Hi there :)

I'm having a problem with the e-mail notification on my installation of elog. I'm testing the attachment upload with images, and it seems to work seamlessly. However upon posting, the e-mail notification sends a null attachment, instead of the image I would expect.

Is there an error log I can check for this? I started the elog process without the daemon option, but I can't see any error coming up.

Cheers,
 

Some people reported that there is a problem if you don't have ImageMagick installed. So please install that package and try again.

Cheers,
Stefan 

    icon2.gif   Re: Image attachments null in e-mails. Error log?, posted by Stefan Ritt on Wed Nov 6 17:06:40 2013 

Daniel Campora wrote:

 Hi there :)

I'm having a problem with the e-mail notification on my installation of elog. I'm testing the attachment upload with images, and it seems to work seamlessly. However upon posting, the e-mail notification sends a null attachment, instead of the image I would expect.

Is there an error log I can check for this? I started the elog process without the daemon option, but I can't see any error coming up.

Cheers,
 

This problem has been fixed in the current version. Please get it from bitbucket.org. 

icon5.gif   "Show only new entries" stuck for one user, posted by Mark Campbell on Fri Nov 1 21:47:12 2013 

 For one user in our ELog installation the "Show only new entries" button seems to be stuck on one particular date and time " ...

 

New entries since: Tue Oct 22 10:56:27 2013

 

this occurs with different browsers and PC's

For other users it works as described in this forum post ...

"When you are active browsing entries, your activity is recorded (only the time) in the password file. Now when you are inactive for more than one hour, you are considered "logged out", and your last activity is taken as a filter for new entries. That means you see new entries since your last activity in the logbook. " https://midas.psi.ch/elogs/Forum/1612

 

Regards

Mark.

    icon2.gif   Re: "Show only new entries" stuck for one user, posted by Stefan Ritt on Tue Nov 5 13:40:58 2013 

Mark Campbell wrote:

 For one user in our ELog installation the "Show only new entries" button seems to be stuck on one particular date and time " ...

 

New entries since: Tue Oct 22 10:56:27 2013

 

this occurs with different browsers and PC's

For other users it works as described in this forum post ...

"When you are active browsing entries, your activity is recorded (only the time) in the password file. Now when you are inactive for more than one hour, you are considered "logged out", and your last activity is taken as a filter for new entries. That means you see new entries since your last activity in the logbook. " https://midas.psi.ch/elogs/Forum/1612

 

Regards

Mark.

Sure it will be stuck on a date/time, until you show "inactivity". So wait for >1h, and then check again. You will see the time updated.

/Stefan 

       icon2.gif   Re: "Show only new entries" stuck for one user, posted by Mark Campbell on Tue Nov 5 14:35:44 2013 

Stefan Ritt wrote:

Mark Campbell wrote:

 For one user in our ELog installation the "Show only new entries" button seems to be stuck on one particular date and time " ...

 

New entries since: Tue Oct 22 10:56:27 2013

 

this occurs with different browsers and PC's

For other users it works as described in this forum post ...

"When you are active browsing entries, your activity is recorded (only the time) in the password file. Now when you are inactive for more than one hour, you are considered "logged out", and your last activity is taken as a filter for new entries. That means you see new entries since your last activity in the logbook. " https://midas.psi.ch/elogs/Forum/1612

 

Regards

Mark.

Sure it will be stuck on a date/time, until you show "inactivity". So wait for >1h, and then check again. You will see the time updated.

/Stefan 

 Hi Stefan,

well I just logged on tonight after being "inactive"  (away from work) for two days and the "Show only new entries" button is still stuck at "Tue Oct 22 10:56:27 2013". 

Could it be that I am have left myself logged in on another machine somewhere?

How does ELog determine "activity"?

Regards

Mark.

          icon2.gif   Re: "Show only new entries" stuck for one user, posted by Mark Campbell on Tue Nov 5 15:25:59 2013 

Mark Campbell wrote:

Stefan Ritt wrote:

Mark Campbell wrote:

 For one user in our ELog installation the "Show only new entries" button seems to be stuck on one particular date and time " ...

 

New entries since: Tue Oct 22 10:56:27 2013

 

this occurs with different browsers and PC's

For other users it works as described in this forum post ...

"When you are active browsing entries, your activity is recorded (only the time) in the password file. Now when you are inactive for more than one hour, you are considered "logged out", and your last activity is taken as a filter for new entries. That means you see new entries since your last activity in the logbook. " https://midas.psi.ch/elogs/Forum/1612

 

Regards

Mark.

Sure it will be stuck on a date/time, until you show "inactivity". So wait for >1h, and then check again. You will see the time updated.

/Stefan 

 Hi Stefan,

well I just logged on tonight after being "inactive"  (away from work) for two days and the "Show only new entries" button is still stuck at "Tue Oct 22 10:56:27 2013". 

Could it be that I am have left myself logged in on another machine somewhere?

How does ELog determine "activity"?

Regards

Mark.

 I just had a look in the password file and found ...

 <full_name>Mark Campbell</full_name>

    <last_logout>Tue Oct 22 10:56:27 2013</last_logout>

    <last_activity>Wed Nov  6 01:17:08 2013</last_activity>

    <inactive>0</inactive>

 
So it appears that the <last_logout> tag is not being updated.
 
 
---------------------------------------------------
 
Some activity from the messages file ...
 
18-Oct-2013 15:52:12 [2003883@10.11.112.178] {ops} LOGOUT
21-Oct-2013 06:40:03 [10.17.48.165] {ops} LOGIN user "2003883" (attempt)
21-Oct-2013 06:40:04 [10.17.48.165] {ops} LOGIN user "2003883" (success)
22-Oct-2013 07:01:51 [10.17.48.176] {ops} LOGIN user "2003883" (attempt)
22-Oct-2013 07:01:51 [10.17.48.176] {ops} LOGIN user "2003883" (success)
22-Oct-2013 07:10:13 [2003883@10.17.48.176] {ops} LOGOUT
22-Oct-2013 13:26:32 [10.17.48.176] {ops} LOGIN user "2003883" (attempt)
22-Oct-2013 13:26:32 [10.17.48.176] {ops} LOGIN user "2003883" (success)
22-Oct-2013 14:13:16 [2003883@10.17.48.165] {ops} LOGOUT
23-Oct-2013 06:24:30 [10.17.48.165] {ops} LOGIN user "2003883" (attempt)
23-Oct-2013 06:24:30 [10.17.48.165] {ops} LOGIN user "2003883" (success)
25-Oct-2013 22:25:42 [10.17.48.90] {ops} LOGIN user "2003883" (attempt)
25-Oct-2013 22:25:42 [10.17.48.90] {ops} LOGIN user "2003883" (success)
25-Oct-2013 22:43:45 [2003883@10.17.48.90] {ops} LOGOUT
 
 
 
Regards
 
Mark.
             icon2.gif   Re: "Show only new entries" stuck for one user, posted by Mark Campbell on Tue Nov 5 20:04:11 2013 

Mark Campbell wrote:

Mark Campbell wrote:

Stefan Ritt wrote:

Mark Campbell wrote:

 For one user in our ELog installation the "Show only new entries" button seems to be stuck on one particular date and time " ...

 

New entries since: Tue Oct 22 10:56:27 2013

 

this occurs with different browsers and PC's

For other users it works as described in this forum post ...

"When you are active browsing entries, your activity is recorded (only the time) in the password file. Now when you are inactive for more than one hour, you are considered "logged out", and your last activity is taken as a filter for new entries. That means you see new entries since your last activity in the logbook. " https://midas.psi.ch/elogs/Forum/1612

 

Regards

Mark.

Sure it will be stuck on a date/time, until you show "inactivity". So wait for >1h, and then check again. You will see the time updated.

/Stefan 

 Hi Stefan,

well I just logged on tonight after being "inactive"  (away from work) for two days and the "Show only new entries" button is still stuck at "Tue Oct 22 10:56:27 2013". 

Could it be that I am have left myself logged in on another machine somewhere?

How does ELog determine "activity"?

Regards

Mark.

 I just had a look in the password file and found ...

 <full_name>Mark Campbell</full_name>

    <last_logout>Tue Oct 22 10:56:27 2013</last_logout>

    <last_activity>Wed Nov  6 01:17:08 2013</last_activity>

    <inactive>0</inactive>

 
So it appears that the <last_logout> tag is not being updated.
 
 
---------------------------------------------------
 
Some activity from the messages file ...
 
18-Oct-2013 15:52:12 [2003883@10.11.112.178] {ops} LOGOUT
21-Oct-2013 06:40:03 [10.17.48.165] {ops} LOGIN user "2003883" (attempt)
21-Oct-2013 06:40:04 [10.17.48.165] {ops} LOGIN user "2003883" (success)
22-Oct-2013 07:01:51 [10.17.48.176] {ops} LOGIN user "2003883" (attempt)
22-Oct-2013 07:01:51 [10.17.48.176] {ops} LOGIN user "2003883" (success)
22-Oct-2013 07:10:13 [2003883@10.17.48.176] {ops} LOGOUT
22-Oct-2013 13:26:32 [10.17.48.176] {ops} LOGIN user "2003883" (attempt)
22-Oct-2013 13:26:32 [10.17.48.176] {ops} LOGIN user "2003883" (success)
22-Oct-2013 14:13:16 [2003883@10.17.48.165] {ops} LOGOUT
23-Oct-2013 06:24:30 [10.17.48.165] {ops} LOGIN user "2003883" (attempt)
23-Oct-2013 06:24:30 [10.17.48.165] {ops} LOGIN user "2003883" (success)
25-Oct-2013 22:25:42 [10.17.48.90] {ops} LOGIN user "2003883" (attempt)
25-Oct-2013 22:25:42 [10.17.48.90] {ops} LOGIN user "2003883" (success)
25-Oct-2013 22:43:45 [2003883@10.17.48.90] {ops} LOGOUT
 
 
 
Regards
 
Mark.

 Yah! It's working again ...

New entries since:

Wed Nov 6 01:51:02 2013

 

I found out I was still logged on to one workstation, I logged off from there, waited a few hours and tried again. All good.

 

Regards Mark

icon5.gif   Attachment file names encoding, posted by Alexander Nozik on Mon Oct 28 11:21:19 2013 
Hello,
I am trying to move elog from old FreeBSD system to a new Ubuntu server and stuck with attachment encoding problem. The elog entries as well as attachments &#1072;&#1096;&#1076;&#1091; &#1090;&#1092;&#1100;&#1091;&#1099; are mostly in koi8-r or cp1251 encoding. While it is relatively easy to configure log entries to display correctly, I still can't manage to deal with attachments. In old elog all attachments with Cyrillic file names are "not found" by elog web interface while files are present in the directory (though previous admin could have done something with the encoding).

If I am creating a new elog with default koi8-r charset, then new cyrrilic attachments are uploaded and displayed normally but after download the file name encoding is broken. Does elog do something with attachment name encoding?
    icon2.gif   Re: Attachment file names encoding, posted by Andreas Luedeke on Tue Oct 29 12:04:44 2013 

Alexander Nozik wrote:
Hello,
I am trying to move elog from old FreeBSD system to a new Ubuntu server and stuck with attachment encoding problem. The elog entries as well as attachments &#1072;&#1096;&#1076;&#1091; &#1090;&#1092;&#1100;&#1091;&#1099; are mostly in koi8-r or cp1251 encoding. While it is relatively easy to configure log entries to display correctly, I still can't manage to deal with attachments. In old elog all attachments with Cyrillic file names are "not found" by elog web interface while files are present in the directory (though previous admin could have done something with the encoding).

If I am creating a new elog with default koi8-r charset, then new cyrrilic attachments are uploaded and displayed normally but after download the file name encoding is broken. Does elog do something with attachment name encoding?


You should be able to figure this out:
As an administrator you can have a look what are the real file names on the file system.
With your browser you can see what are the names of the attachment. Like in this forum, the entry https://midas.psi.ch/elogs/Forum/67571 has an attachment https://midas.psi.ch/elogs/Forum/131008_181353/import.xml
If the two match you don't have an encoding but some file system problem. If they don't match, then we are one step further in solving your problem Smile
Thought, the file name in the URL has to be URL encoded (see e.g. http://www.w3schools.com/tags/ref_urlencode.asp), which is of course different from the encoding of the file system.
       icon2.gif   Re: Attachment file names encoding, posted by Alexander Nozik on Wed Oct 30 10:15:13 2013 
Thank you for reply.

I am not very experienced linux user so it could be a problem with the file system. Let me just describe what I do and what I see as a result.

I created a new elog just for the testing purpose, it has "Charset = koi8-r" line in the config file. Than I post a new entry to this elog with russian text and a file with russian file name from windows (so I expect that charset is cp1251). Now I open this entry. The text is fine and the filename is fine on the page (the same russian text I expect to see), but when I try to download it, the actual file name is broken and to restore it I need koi8-r -> cp1252 transformation. The file itself is readable.
If I look in the actual logbook directory, then in the entry file the file name is readable (entry file encoding is koi8-r), but the attachment file name contains many "?" and not readable by file system.

So first my question is what happened to the file name incoding in a logbook directory, and the second one: what should I do to make attachments download as they were uploaded?

Thank you in advance.
ELOG V3.1.5-3fb85fa6