Differences between revisions 47 and 65 (spanning 18 versions)
Revision 47 as of 2010-12-01 03:33:28
Size: 2215
Editor: ZachKorth
Comment:
Revision 65 as of 2021-03-03 02:03:20
Size: 3366
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
 . attachment:elog.png  . {{attachment:elog.png}}
Line 5: Line 5:
 . We're using the [https://midas.psi.ch/elog/ Electronic Logbook] software by [https://midas.psi.ch/~stefan/ Steffan Ritt]. The elog is installed on Nodus under {{{/cvs/cds/caltech/elog/elog-2.8.0/}}}.  . We're using the [[https://midas.psi.ch/elog/|Electronic Logbook]] software by [[https://midas.psi.ch/~stefan/|Steffan Ritt]]. The elog is installed on Nodus under {{{/export/home/elog/elog/}}}.
Line 7: Line 7:
 . It can be accessed from either the address: http://nodus.ligo.caltech.edu:8080/40m/ or from the old one on Dziban http://dziban.ligo.caltech.edu:40/40m/.  . It can be accessed from the address: http://nodus.ligo.caltech.edu:8080/ (then redirected to https://nodus.ligo.caltech.edu:8081/ once you login)
Line 9: Line 9:
[[BR]] <<BR>>
Line 12: Line 12:
= Manual Restart procedure =
 . The elog runs on background in Nodus. '''''To kill the process''''', ssh nodus and then enter:
= Start procedure =
If no elog is not already running, one can simply do this:
{{{
cd /export/elog/
./startELOGD.sh
}}}
Line 15: Line 19:
 . {{{ pkill -3 elogd
Line 17: Line 20:
 rm -f /var/run/elogd.pid }}} ----
= Restart procedure =
Check first what caused this. You can see this in the file: /export/elog/connections.log
Line 19: Line 24:
 . '''''To restart it''''' enter: Make sure that thing which crashed elogd is not present now.
Most probably it is a heavy pdf with too many data points.
Also, at this point, if you find that connections.log file has become too long (>10 Mb). Rename it to: OLD-YYYY_MM_DD_connections.log
A new file will be created when you restart elog in the next step.
Line 21: Line 29:
 . {{{
./elogd -p 8080 -c /cvs/cds/caltech/elog/elog-2.8.0/elogd.cfg -D }}}
{{{
cd /export/elog/
./restartELOGD.sh
}}}
Line 24: Line 34:
[[BR]] Note: sometimes the zombie elog process does not die with this process. Check if the elog process id was renewed after this action. If the zombie still exists, explicitly kill the process by "kill -9 ...".
Line 26: Line 37:
= The restarting script =
 . The following scripts executes the above commands for you if you are feeling particularly lazy or lost
= Configuration =
 1. The ELOG is run on our gateway machine, nodus. The elog software lives in /export/elog. (something in here about why its not on the shared disk)
 1. The configuration file for all the elogs lives in /export/elog/elog-common. It is elogd.cfg.
 1. The themes for each elog tab are in elog-common/themes/
Line 29: Line 42:
  . 1. Log into nodus
  . 2. Go to /cvs/cds/caltech/elog
  . 3. Run ./start-elog.csh
----
= Adding new logbook =
Add the new logbook options in /export/elog/elog-common/elogd.cfg by taking inspiration from existing logbooks. Create a directory with the same name in /export/elog/elog-common/logbooks/, give it the correct permissions and set owner to controls in group 1001 using following:
Line 33: Line 46:
[[BR]] {{{
sudo mkdir /export/elog/elog-common/logbooks/XYZ
sudo chmod 775 /export/elog/elog-common/logbooks/XYZ
sudo chown controls:1001 /export/elog/elog-common/logbooks/XYZ
}}}
Then restart elog using the above instructions.
Line 43: Line 62:
   . attachment:contextmenu.png    . {{attachment:contextmenu.png}}



Start procedure

If no elog is not already running, one can simply do this:

cd /export/elog/
./startELOGD.sh


Restart procedure

Check first what caused this. You can see this in the file: /export/elog/connections.log

Make sure that thing which crashed elogd is not present now. Most probably it is a heavy pdf with too many data points. Also, at this point, if you find that connections.log file has become too long (>10 Mb). Rename it to: OLD-YYYY_MM_DD_connections.log A new file will be created when you restart elog in the next step.

cd /export/elog/
./restartELOGD.sh

Note: sometimes the zombie elog process does not die with this process. Check if the elog process id was renewed after this action. If the zombie still exists, explicitly kill the process by "kill -9 ...".


Configuration

  1. The ELOG is run on our gateway machine, nodus. The elog software lives in /export/elog. (something in here about why its not on the shared disk)
  2. The configuration file for all the elogs lives in /export/elog/elog-common. It is elogd.cfg.
  3. The themes for each elog tab are in elog-common/themes/


Adding new logbook

Add the new logbook options in /export/elog/elog-common/elogd.cfg by taking inspiration from existing logbooks. Create a directory with the same name in /export/elog/elog-common/logbooks/, give it the correct permissions and set owner to controls in group 1001 using following:

sudo mkdir /export/elog/elog-common/logbooks/XYZ
sudo chmod 775 /export/elog/elog-common/logbooks/XYZ
sudo chown controls:1001 /export/elog/elog-common/logbooks/XYZ

Then restart elog using the above instructions.


FCKeditor (HTML Editor)

  • A little subprogram called FCKeditor is responsible for the text editing interface that appears when the HTML encoding is chosen as a way to write/edit an entry. If the make command is used to compile the elog, the FCKeditor fails to be installed.

  • In that case, during the installation of the elog, one has just to go inside the path /cvs/cds/caltech/elog/elog-2.7.5/scripts/ and simply unzip the file fckeditor.zip. That's it.

Enabling the browser's context menu

  • The context menu is that one which pops up when right clicking with the mouse.
    • contextmenu.png

  • Under FCKeditor, the context menu is disabled by default. To enable it, one has to modify the FCKeditor config file /cvs/cds/caltech/elog/elog-2.7.5/scripts/fckeditor/fckconfig.js by setting the field FCKConfig.BrowserContextMenuOnCtrl = false ; to true.

  • Then to get the browser's context menu, instead of FCKeditor's, one has to hold <CTRL> when right clicking with the mouse.

  • Sometime clearing the cash of the browser might be necessary in order for the change to have effect.

How_To/Restart_the_elog (last edited 2021-03-03 02:03:20 by AnchalguptaATligoDOTorg)