Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 703 of 806  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Authordown Author Email Category OS ELOG Version Subject
  1522   Mon Nov 21 10:41:46 2005 Smile Carlos Mateocmateo@indra.esQuestionWindows2.6.0beta5Re: Automatic creation of new entry in another logbook

Stefan Ritt wrote:

Carlos Mateo wrote:
I am trying to create an entry in logbook2 when I submit a new entry in logbook1. The automatically created entry in logbook2 will have a reference to the entry that created it.


Please tell me for what purpose you need two identical logbooks. Maybe what you want can be achieved in a simpler way.

They are not identical. They just share some information


Carlos Mateo wrote:
1.- Using the "Execute new" I call elog to create the second entry. As the server is single-process, it locks: elog is waiting for elogd to be ready and elogd is waiting for elog to finish to accept new requests. As my server is on a Windows machine I canīt execute elog on background.


Have you tried to start your elog with the start command under Widnows, like start elog .... This is the equivalent of starting a process in the background under linux.

Thank you. It works with start!


Carlos Mateo wrote:
2.- I tried to run 2 servers on different ports using the same elogd.cfd file, calling the second server from elog. This "almost" works: the logbook files are updated, but the original server must be restarted to "see" the changes.


This is because you use the same data directory for both servers. If one server writes a new entry to a file, the other server does not realize this. Only when you restart it, it rescans the whole data directory and gets aware of the new entry. Try using separate data directories for the two servers.


Carlos Mateo wrote:
3.- Using the "Menu text" option, I create a link to create the new entry. The problem is that attributes are not parsed: a link like this <a href="/logbook2/?cmd=New&pAttr=Value $ID">Test</a> wonīt substitute $ID


Parsing attributes is not implemented and therefore will not work.


Thank you for your help
  69811   Fri Jul 26 12:52:54 2024 Entry Carl Unsworthcarl.unsworth@stfc.ac.ukBug reportLinuxV3.1.5-23df00dOld attachments erroneously appearing on new Elog entries.

Hi, I'm not sure if this is an Elog bug, something wrong in my configuration/database.

When I create a new article on Elog it always shows an attachment from one of the first entries ever made to this log book made. This is in addition to any attachments which were actually added during article creation.

I just made an example entry to demonstrate. First attachment here shows how the entry looks in the GUI, it has an attached text file called "jail.local", 2nd attachment is how that entry looks in the database file - no attachment.

Does anyone have any idea what's happening?

Attachment 1: Screenshot_from_2024-07-26_11-46-44.png
Screenshot_from_2024-07-26_11-46-44.png
Attachment 2: Screenshot_from_2024-07-26_11-47-58.png
Screenshot_from_2024-07-26_11-47-58.png
  69812   Fri Jul 26 12:53:23 2024 Question Carl Unsworthcarl.unsworth@stfc.ac.ukBug reportLinuxV3.1.5-23df00dOld attachments erroneously appearing on new Elog entries.

Hi, I'm not sure if this is an Elog bug, something wrong in my configuration/database.

When I create a new article on Elog it always shows an attachment from one of the first entries ever made to this log book made. This is in addition to any attachments which were actually added during article creation.

I just made an example entry to demonstrate. First attachment here shows how the entry looks in the GUI, it has an attached text file called "jail.local", 2nd attachment is how that entry looks in the database file - no attachment.

Does anyone have any idea what's happening?

Attachment 1: Screenshot_from_2024-07-26_11-46-44.png
Screenshot_from_2024-07-26_11-46-44.png
Attachment 2: Screenshot_from_2024-07-26_11-47-58.png
Screenshot_from_2024-07-26_11-47-58.png
  69814   Fri Jul 26 13:14:38 2024 Reply Carl Unsworthcarl.unsworth@stfc.ac.ukBug reportLinuxV3.1.5-23df00dRe: Old attachments erroneously appearing on new Elog entries.

Thanks very much for the quick response Stefan. My apologies, I thought I was on the latest version or I would have upgraded before contacting you.
The file I installed from was the rpm "elog-3.1.5-20240226.el9.x86_64.rpm" which still seems to be the latest version on the Dropbox downloads page.
Do I need to use the tar distribution to get the latest?

Stefan Ritt wrote:

This bug has been fixed in meantime, please upgrade to the current version.

 

  69816   Fri Jul 26 14:33:50 2024 Reply Carl Unsworthcarl.unsworth@stfc.ac.ukBug reportLinuxV3.1.5-23df00dRe: Old attachments erroneously appearing on new Elog entries.

Great, thank you again. I have now installed the latest and the problem appears to be gone.

Stefan Ritt wrote:

I updated the EL9 rpms, so please try again.

 

  1359   Thu Jul 28 17:11:32 2005 Question Carl Shireycarl.shirey@pw.utc.comQuestionLinux2.6Login twice
Where I work we started to use Elog for our shift carry over log, everyone seems to likes it.
I do have one problem for some reason we have to login twice in order to submit a new entree in
the log. I do have a guest account setup so when we click logon the logon page pops up and you
type in username and password and enter. Then main page pops up and you are still in the guest mode.
Click on logon again and enter everything again and this you get in the edit mode.
I hope you can me with this.
  1363   Mon Aug 1 23:41:06 2005 Reply Carl Shireycarl.shirey@pw.utc.comQuestionLinux2.6Re: Login twice

Stefan Ritt wrote:

Carl Shirey wrote:
Where I work we started to use Elog for our shift carry over log, everyone seems to likes it.
I do have one problem for some reason we have to login twice in order to submit a new entree in
the log. I do have a guest account setup so when we click logon the logon page pops up and you
type in username and password and enter. Then main page pops up and you are still in the guest mode.
Click on logon again and enter everything again and this you get in the edit mode.
I hope you can me with this.


Can you send me your elogd.cfg?


Yes Here is a copy of the elog.cfg.

Thanks for your help
Attachment 1: elogd.cfg
[global]
Mirror server = http://pdl:8080
Mirror cron = 30 01 * * *

port = 8080

Welcome title = <center><H1>Test & Operations Log</h1><p>Contact Carl Shirey with questions.</p></center>

#  Top text = <center><a href="/">Logbooks</a></center>
Bottom text = <center><a href="/">Logbooks</a></center>

#  SMTP host = E102374@pwflwp

#  Theme = compact

Theme = default

password file = elogd_passwd

self register = 1

Login expiration = 1

Group DRO = DRO-E06, DRO-E8A, DRO-E8B, DRO-North_Stand, DRO-EWR, DRO-Other

Group OPS = OPS-E06, OPS-E8A, OPS-E8B, OPS-North_Stand, OPS-EWR, OPS-Other

Group Stand_Crew = Stand_Crew-E06, Stand_Crew-E08, Stand_Crew-North_Stand, Stand_Crew-PSA,

Group ELECTRICIAN = Elec_Log

Group Test_log = Test_log

admin user = e102374, admin

Write Password Expiration = 0

Reverse sort = 1

Default encoding = 1




##########################################################################
##########################################################################

[DRO-E06]
Comment = DRO PASS#DOWN E06 LOG

#   look and feel

Menu commands = Edit, Copy to

Display mode = full

Guest menu commands = Back, Find, Login, Help

Guest find menu commands = Find, Login, Help

Date format = %B %d, %Y


#   attributes

Attributes = Author, Category, Subject

Options Category = Test, Maintenance, Repair

Required Attributes = Author, Category, Subject

Thread display = $Subject, posted by $author, on $date

Quick filter = Date

 

#   preset author and email

Preset Author = $long_name

Preset Author Email = $user_email

 

#   these attributes cannot be changed

Locked Attributes = Author, Last Revision, Auther Email

 

#   add last revision on each edit

Subst on Edit Last Revision = $date by $long_name

 

#   some comments showing up in the "new" page

Message comment = Please enter your <b>log</b> here:

Attachment comment = Please upload your <b>FILE</b> here:
 

#   a few flags



Filtered browsing = 0

Entries per page = 10

Restrict edit = 1

Summary lines = 0

Back to main = 1

Restrict edit time = 8


#   options for reply

Subst on reply subject = Re: $Configuration Name

Remove on reply = Author, Author Email

 

#   No Email notification

Suppress Email to users = 1

#   RSS Title

RSS Title = $subject, posted by $author on $entry time




##########################################################################
##########################################################################

[DRO-E8A]
Comment = DRO PASS#DOWN E8A LOG

#   look and feel

Menu commands = Edit, Copy to

Display mode = full

Guest menu commands = Back, Find, Login, Help

Guest find menu commands = Find, Login, Help

Date format = %B %d, %Y


#   attributes

Attributes = Author, Category, Subject

Options Category = Test, Maintenance, Repair

Required Attributes = Author, Category, Subject

Thread display = $Subject, posted by $author, on $date

Quick filter = Date

 

#   preset author and email

Preset Author = $long_name

Preset Author Email = $user_email

 

#   these attributes cannot be changed

Locked Attributes = Author, Last Revision, Auther Email

 

#   add last revision on each edit

Subst on Edit Last Revision = $date by $long_name

 

#   some comments showing up in the "new" page

Message comment = Please enter your <b>log</b> here:

Attachment comment = Please upload your <b>FILE</b> here:
 

#   a few flags

Filtered browsing = 0

Entries per page = 10

Restrict edit = 1

Summary lines = 0

Back to main = 1

Restrict edit time = 8
 

#   options for reply

Subst on reply subject = Re: $Configuration Name

Remove on reply = Author, Author Email

 

#   No Email notification

Suppress Email to users = 1

#   RSS Title

RSS Title = $subject, posted by $author on $entry time


##########################################################################
##########################################################################

[DRO-E8B]
Comment = DRO PASS#DOWN E8B LOG

#   look and feel

Menu commands = Edit, Copy to

Display mode = full

Guest menu commands = Back, Find, Login, Help

Guest find menu commands = Find, Login, Help

Date format = %B %d, %Y
 

#   attributes

Attributes = Author, Category, Subject

Options Category = Test, Maintenance, Repair

Required Attributes = Author, Category, Subject

Thread display = $Subject, posted by $author, on $date

Quick filter = Date

 

#   preset author and email

Preset Author = $long_name

Preset Author Email = $user_email

 

#   these attributes cannot be changed

Locked Attributes = Author, Last Revision, Auther Email

 

#   add last revision on each edit

Subst on Edit Last Revision = $date by $long_name

 

#   some comments showing up in the "new" page

Message comment = Please enter your <b>log</b> here:

Attachment comment = Please upload your <b>FILE</b> here:

 

#   a few flags

Filtered browsing = 0

Entries per page = 10

Restrict edit = 1
... 1466 more lines ...
  1378   Fri Aug 5 02:14:22 2005 Reply Carl Shireycarl.shirey@pw.utc.comQuestionLinux2.6Re: Login twice

Stefan Ritt wrote:

Carl Shirey wrote:
Yes Here is a copy of the elog.cfg.


I tried with your config file and it worked fine. So can you tell me:

  • At what URL do you access your logbook? Do you just type http://localhost:8080 or anything else
  • Do you use any proxy or stunnel?
  • What is the URL in your browser showing on the first and second login?

You might want to consider to put a
URL = http://<your host>:8080/
into your config file.


Thanks
Your questions that you ask me help me out.
What I was doing was typing in the URL was http://pdls:8080 and it took me the pass down log. When I went to login into Elog took me back to the log but the URL read http://pdls.pwfl.com:8080 so when I log in the second time I was to be the edit mode. So I guess I should have typing in the URL http://pdls.pwfl.com:8080.

Thanks again for your help
ELOG V3.1.5-3fb85fa6