ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67463
|
Wed Mar 6 17:56:22 2013 |
| Ron Beekman | ron.beekman@gmail.com | Question | Windows | V2.9.2-247 | Wrong link in "Your ELOG account has been activated" email | After entering a new user and activating it in ELOG, the new user receives an email.
The link does not work because the port number is repeated in the link (see below)
In the Global part of the elogd.ini we have added the port:
port = 8080
Maybe I am overlooking something, any suggestions are very much appreciated!
Thanks!
Ron
- - - - - -
Email Subject: Your ELOG account has been activated
Email Body:
Your ELOG account has been activated on host eloghost:8080.
You can access it at http://eloghost:8080:8080/logbookname/?unm=newuser.
To subscribe to any logbook, click on 'Config' in that logbook. |
67468
|
Thu Mar 7 14:37:27 2013 |
| Ron Beekman | ron.beekman@gmail.com | Question | Windows | V2.9.2-247 | Re: Wrong link in "Your ELOG account has been activated" email | Hi Stefan, thank you very much for having a look at this :-)
Here is the config file we use. Seems okay to me, but I may be overlooking something.
[global]
port = 8080
SMTP host = localhost
Self register= 0
Display Email recipients = 0
Use Email Subject = [ELOG - $logbook]
Date format = %a %d-%b-%Y %H:%M
Default encoding = 1
Allowed encoding = 1
[MYLOGBOOK]
Theme = default
Comment = My logbook
Password file = passw_mylogbook.pwd
Admin user = admin,user1,user2,user3
Self register= 3
Menu commands = List, New, Edit, Reply, Duplicate, Find, Config, Logout, Help
Attributes = Author, Type, Category, Subject, ServerNaam
Preset Author = $long_name
Options Type = Opt01, Opt02, Opt03, Opt04, Opt05
Options Category = Cat01, Cat02, Cat03, Cat04, Cat05, Cat06, Cat07
MOptions ServerNaam = Server01
Preset ServerNaam = Server01
Required Attributes = Author, Type, ServerNaam
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type, ServerNaam |
67264
|
Mon May 7 13:41:38 2012 |
| Roland Gsell | roland.gsell@oeaw.ac.at | Info | Linux | 2.9.1-2435 | Access rights | Hi,
the manual says:
"
There are four ways through which access to a logbook may be controlled:
it may be open for all to read ;
it may require a common "read" password for all users ;
it may require each user to have an individual user account (login name) and password ;
finally, access may be granted or not depending on the address of the workstation you are using.
"
But it doesn't say how to do so or at least I didn't find it.
If I have each user have to log in with an individual accout, can I define which logbooks he can read and/or modify?
If yes, how to do that?
Also, please accept my vote for user groups. We can use that, too.
TIA,
Roland. |
67284
|
Mon May 21 14:41:25 2012 |
| Roland Gsell | roland.gsell@oeaw.ac.at | Question | Linux | 2.9.1-2435 | Periodic backup doesn't work .. | Hi,
I installed ELOG on other machine for making automatic backups. I copied the .cfg file to the slave and edited the .cfg file on the original machine (mirror server entries).
(automatic configuration with -C didn't work somehow - maybe a firewall problem)
Then I tried to synchronize manually, which works great.
I set the mirror cron = 0 7-18 * * 1-5, as written as example in the documents, but nothing happens at full hours.
There's something else strange: I can't access "https://lx0.mydomain.org/" or "http://lx1.mydomain.org:8082/" directly. The browser just keeps loading - showing an empty page (and an error message after a long while). I have to add the name of the logbook to the link. Why is that?
If I set different paths in the [global HBAR] and [global SMI] areas (like URL = https://lx0.mydomain.org/hbar/), I can access the links above (giving me the overview page as expected), but I can't access the logbooks itself anymore.
However, that's not a big problem (I can access the logbooks via direct link and see all the others in the same group and switch to them), but the backup thing is.
So, main machine is lx0.mydomain.org and the backup machine is lx1...
Attached are my config files.
I deleted many of the logbook specific entries, since they aren't important and just look like the first one.
Hope anyone can help,
Roland. |
Attachment 1: lx0_elogd.cfg.txt
|
[global]
SSL = 1
Mirror server = http://lx1.mydomain.org:8082
Mirror config = 1
Mirror cron = 0 7-18 * * 1-5
Mirror user = gsell
Mirror simulate = 0
Mirror exclude = 0
SMTP host = smtp.mydomain.org
Group HBAR-HFS = Detektor, Simulation, Cavity, Shielding_and_Helmholtz_coils, Sextupole, DAQ
Group non-ERC = SIDDHARTA, VIP, FAIR, HP3_Leannis, HP3_Joint_GEM, HP3_SiPM, HP3_Future_Jet
Top group HBAR = HBAR-HFS
Top group SMI = non-ERC
Theme = default
; attributes
Attributes = Author, Type, Category, Subject
Options Type = Logbook, Configuration, Other
Options Category = Routine entry, Shift summary, Problem, Fix, Question, Info, Other
Extendable Options = Category
Required Attributes = Author, Category, Subject
Thread display = $Subject, entered by $author on $Entry date
; Title shown in the browser
Page Title = HBAR-HFS - $subject
Reverse sort = 1
Quick Filter = Date, Category
Preset Author = $long_name
Locked Attributes = Author, Author Email
; only author can change its own entry
Restrict edit = 1
; options for reply
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email
[global HBAR]
URL = https://lx0.mydomain.org/
Password file = elogpass_hbar
Admin user = gsell, malbrunot
[global SMI]
URL = https://lx0.mydomain.org/
Password file = elogpass_smi
Admin user = gsell
[Detektor]
;User
Login user = gsell, widmann, diermaier, federmann, malbrunot, massiczek, sauerzopf, wuenschek, zmeskal, suzuki
|
Attachment 2: lx1_elogd.cfg.txt
|
[global]
SSL = 0
Port = 8082
SMTP host = smtp.mydomain.org
Group HBAR-HFS = Detektor, Simulation, Cavity, Shielding_and_Helmholtz_coils, Sextupole, DAQ
Group non-ERC = SIDDHARTA, VIP, FAIR, HP3_Leannis, HP3_Joint_GEM, HP3_SiPM, HP3_Future_Jet
Top group HBAR = HBAR-HFS
Top group SMI = non-ERC
Theme = default
; attributes
Attributes = Author, Type, Category, Subject
Options Type = Logbook, Configuration, Other
Options Category = Routine entry, Shift summary, Problem, Fix, Question, Info, Other
Extendable Options = Category
Required Attributes = Author, Category, Subject
Thread display = $Subject, entered by $author on $Entry date
; Title shown in the browser
Page Title = HBAR-HFS - $subject
Reverse sort = 1
Quick Filter = Date, Category
Preset Author = $long_name
Locked Attributes = Author, Author Email
; only author can change its own entry
Restrict edit = 1
; options for reply
Subst on reply subject = Re: $Configuration Name
Remove on reply = Author, Author Email
[global HBAR]
URL = http://lx1.mydomain.org:8082/
Password file = elogpass_hbar
Admin user = gsell, malbrunot
[global SMI]
URL = http://lx1.mydomain.org:8082/
Password file = elogpass_smi
Admin user = gsell
[Detektor]
;User
Login user = gsell, widmann, diermaier, federmann, malbrunot, massiczek, sauerzopf, wuenschek, zmeskal, suzuki
|
67287
|
Tue Jun 12 10:38:34 2012 |
| Roland Gsell | roland.gsell@oeaw.ac.at | Question | Linux | 2.9.1-2435 | Re: Periodic backup doesn't work .. | The synchronize feature is totally worthless to me.
First of all the automatic backup doesn't work - and nobody seems to know why - and pressing the synchronize button by hand from time to time also doesn't work if the entry is too big:
Error sending local entry: Error transmitting message
So, copying the files manually helps, but for this I don't need a "fancy" synchronize feature. |
68846
|
Thu Oct 11 10:51:17 2018 |
| Roland Beyer | roland.beyer@hzdr.de | Question | Linux | V3.1.1-0767eb0 | Buttons missing in ckeditor | Hello everybody,
we had to setup a new server for our elog some time ago because the old one crashed. We are now running version ELOG V3.1.1-0767eb0.
In the previous installation we had these nice buttons for file upload, time stamp and equation editor, which are also available here in the online version.
I already found that in the installation directory ("/usr/local/elog/") there exists a directory "scripts" containing a file "ckeditor-config.js", which also contains the lines:
"config.extraPlugins = 'timestamp,dndfiles,eqneditor,fileupload';" and "{ name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'FileUpload', 'Timestamp', 'EqnEditor' ] },"
These plugins seem to be available in the subdirectory "scripts/ckeditor/plugins/". But why are they not loaded? Is it just a version issue? Or something else?
It would be nice to get a hint.
Best regards,
Roland |
68848
|
Fri Oct 12 11:56:26 2018 |
| Roland Beyer | roland.beyer@hzdr.de | Question | Linux | V3.1.1-0767eb0 | Re: Buttons missing in ckeditor | Dear Stefan,
thanks for your hints. Meanwhile we already solved the problem. I think it was caused by the recovery from a backup version after the server crash ... and the retirement of the person who did the previous installation.
We found the following things to be faulty:
- Somebody linked the "elog/scripts/ckeditor"-directory to "../../javascript/ckeditor" (maybe an independent installation of ckeditor). Due to this the relative path in "ckeditor/config.js" to "../ckeditor-config.js" could not be correctly resolved to be "elog/scripts/ckeditor-config.js". Now we put the absolute path.
- Furthermore the owner of all files in the elog directory was set to root:root with read access only for root. We changed them now to root:elog and gave read acess for everybody.
Now everything works as expected.
I'm sorry for inconvenience,
Thanks and best regards,
Roland
Stefan Ritt wrote: |
Have you selected "HTML" encoding (below the main message box). The HTML editor is not activated if you have "plain" text encoding. Did you try the default elogd.cfg file? If you modified the config file and did a mistake there, the program can for example not properly find all directories. Also makse sure you did a full install with "make install", not just update the executable.
Stefan
Roland Beyer wrote: |
Hello everybody,
we had to setup a new server for our elog some time ago because the old one crashed. We are now running version ELOG V3.1.1-0767eb0.
In the previous installation we had these nice buttons for file upload, time stamp and equation editor, which are also available here in the online version.
I already found that in the installation directory ("/usr/local/elog/") there exists a directory "scripts" containing a file "ckeditor-config.js", which also contains the lines:
"config.extraPlugins = 'timestamp,dndfiles,eqneditor,fileupload';" and "{ name: 'insert', items: [ 'Image', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'FileUpload', 'Timestamp', 'EqnEditor' ] },"
These plugins seem to be available in the subdirectory "scripts/ckeditor/plugins/". But why are they not loaded? Is it just a version issue? Or something else?
It would be nice to get a hint.
Best regards,
Roland
|
|
|
69060
|
Mon Nov 18 16:58:21 2019 |
| Roger Kalt | roger.kalt@psi.ch | Info | Linux | 3.1.4 | Example scripts how to migrate or combine logbooks | Attached the shell scripts using awk and sed how I have migrated two separated logbooks into one single and how I re-adjusted certain attributes. |
Attachment 1: run_modif.sh
|
#!/bin/bash
# KR84, 28.10.2019
# the input files are the exported XML files from ELOG -> Finden
# search in XML for sring between <DATE> and </DATE>
# and replace with: <DATE> and </DATE><When> and </When>
echo "converting export_rf.xml ..."
cat ./export_rf.xml |
sed 's/<Personnel\(.*\)Personnel>/<Author\1Author>/g' |
sed 's/<DATE\(.*\)DATE>/<DATE\1DATE>\n\t\t<When\1When>/g' |
sed 's/<Subject>\(.*\)<\/Subject>/<Title>\1<\/Title><Entry_Type><\/Entry_Type>/g' |
sed '/<Machine>SwissFEL<\/Machine>/ {N;N; s/<Machine>SwissFEL<\/Machine>.*<Domain>OBLA<\/Domain>.*<Section>TRFCB/<Machine>OBLA<\/Machine>\n\t\t<Domain>All<\/Domain>\n\t\t<Section>TRFCB/g}' |
sed 's/<When>Mon, /<When>/g' |
sed 's/<When>Tue, /<When>/g' |
sed 's/<When>Wed, /<When>/g' |
sed 's/<When>Thu, /<When>/g' |
sed 's/<When>Fri, /<When>/g' |
sed 's/<When>Sat, /<When>/g' |
sed 's/<When>Sun, /<When>/g' |
sed '/<When>.*<\/When>/{s/ Jan 20/.01./g}' |
sed '/<When>.*<\/When>/{s/ Feb 20/.02./g}' |
sed '/<When>.*<\/When>/{s/ Mar 20/.03./g}' |
sed '/<When>.*<\/When>/{s/ Apr 20/.04./g}' |
sed '/<When>.*<\/When>/{s/ May 20/.05./g}' |
sed '/<When>.*<\/When>/{s/ Jun 20/.06./g}' |
sed '/<When>.*<\/When>/{s/ Jul 20/.07./g}' |
sed '/<When>.*<\/When>/{s/ Aug 20/.08./g}' |
sed '/<When>.*<\/When>/{s/ Sep 20/.09./g}' |
sed '/<When>.*<\/When>/{s/ Oct 20/.10./g}' |
sed '/<When>.*<\/When>/{s/ Nov 20/.11./g}' |
sed '/<When>.*<\/When>/{s/ Dec 20/.12./g}' |
sed 's/ +0100<\/When>/<\/When>/g' |
sed 's/ +0200<\/When>/<\/When>/g' > export_rf_modified.xml
# sed 's/ Jan 20/.01./g' |
# sed 's/ Feb 20/.02./g' |
# sed 's/ Mar 20/.03./g' |
# sed 's/ Apr 20/.04./g' |
# sed 's/ May 20/.05./g' |
# sed 's/ Jun 20/.06./g' |
# sed 's/ Jul 20/.07./g' |
# sed 's/ Aug 20/.08./g' |
# sed 's/ Sep 20/.09./g' |
# sed 's/ Oct 20/.10./g' |
# sed 's/ Nov 20/.11./g' |
# sed 's/ Dec 20/.12./g' |
# search in XML and add offset to all IDs because they shall not overlap when merged.
echo "converting export_llrf.xml ..."
cat ./export_llrf.xml | sed 's/<Subject>\(.*\)<\/Subject>/<Entry_Type><\/Entry_Type>\n\t\t<Status><\/Status>\n\t\t<Title>\1<\/Title>\n\t\t<Inv_ID><\/Inv_ID>/g' > export_llrf_modified1.xml
cat ./export_llrf_modified1.xml | awk -F'\t\t<MID>|</MID>||' '{ if ($2!="") {print "\t\t<MID>"$2+2016"</MID>"} else { print $1} }' > export_llrf_modified2.xml
cat ./export_llrf_modified2.xml | awk -F'\t\t<REPLY_TO>|</REPLY_TO>||' '{ if ($2!="") {print "\t\t<REPLY_TO>"$2+2016"</REPLY_TO>"} else { print $1} }' > export_llrf_modified3.xml
cat ./export_llrf_modified3.xml | awk -F'\t\t<IN_REPLY_TO>|</IN_REPLY_TO>||' '{ if ($2!="") {print "\t\t<IN_REPLY_TO>"$2+2016"</IN_REPLY_TO>"} else { print $1} }' > export_llrf_modified.xml
rm -rf ./export_llrf_modified1.xml ./export_llrf_modified2.xml ./export_llrf_modified3.xml
cat ./export_llrf_modified.xml |
sed '/<Machine>SwissFEL<\/Machine>/ {N;N; s/<Machine>SwissFEL<\/Machine>.*<Domain>Test Systems<\/Domain>.*<Section>TRFCB/<Machine>OBLA<\/Machine>\n\t\t<Domain>All<\/Domain>\n\t\t<Section>TRFCB/g}' |
sed 's/<When>Mon /<When>/g' |
sed 's/<When>Tue /<When>/g' |
sed 's/<When>Wed /<When>/g' |
sed 's/<When>Thu /<When>/g' |
sed 's/<When>Fri /<When>/g' |
sed 's/<When>Sat /<When>/g' |
sed 's/<When>Sun /<When>/g' |
sed 's/-Jan-/.01./g' |
sed 's/-Feb-/.02./g' |
sed 's/-Mar-/.03./g' |
sed 's/-Apr-/.04./g' |
sed 's/-May-/.05./g' |
sed 's/-Jun-/.06./g' |
sed 's/-Jul-/.07./g' |
sed 's/-Aug-/.08./g' |
sed 's/-Sep-/.09./g' |
sed 's/-Oct-/.10./g' |
sed 's/-Nov-/.11./g' |
sed 's/-Dec-/.12./g' |
sed 's/ +0100<\/When>//g' |
sed 's/ +0200<\/When>//g' |
sed 's/<\/When>/:00<\/When>/g' |
sed 's/<When>-:00<\/When>/<When><\/When>/g' > export_llrf_modified_datetime.xml
echo "export_llrf_modified_datetime.xml need manual edit for empty <When></When>"
|
Attachment 2: generate_import_llrf_fwd.sh
|
#!/bin/bash
# KR84, 28.10.2019
# generate emtpy auto-fwd text for LLRF for 3100 entries and offset of 2000
echo "generated import_llrf_fwd.xml"
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > import_llrf_fwd.xml
echo "<ELOG_LIST>" >> import_llrf_fwd.xml
declare -i ID
declare -i IDNEW
for ID in {1..3013}
do
IDNEW=$ID+2016
echo -e "\t<ENTRY>" >> import_llrf_fwd.xml
echo -e "\t\t<MID>${ID}</MID>" >> import_llrf_fwd.xml
echo -e "\t\t<DATE>Mon, 28 Oct 2019 20:00:00 +0200</DATE>" >> import_llrf_fwd.xml
# echo -e "\t\t<DATE>28.10.2019 20:00:00</DATE>" >> import_llrf_fwd.xml
echo -e "\t\t<ATTACHMENT></ATTACHMENT>" >> import_llrf_fwd.xml
echo -e "\t\t<ENCODING>HTML</ENCODING>" >> import_llrf_fwd.xml
echo -e "\t\t<When>28.10.2019 20:00:00</When>" >> import_llrf_fwd.xml
# echo -e "\t\t<When>1572289200</When>" >> import_llrf_fwd.xml
echo -e "\t\t<Author>Kalt Roger (KR84)</Author>" >> import_llrf_fwd.xml
echo -e "\t\t<Machine>SwissFEL</Machine>" >> import_llrf_fwd.xml
echo -e "\t\t<Domain></Domain>" >> import_llrf_fwd.xml
echo -e "\t\t<Section></Section>" >> import_llrf_fwd.xml
echo -e "\t\t<System></System>" >> import_llrf_fwd.xml
echo -e "\t\t<Subsystem></Subsystem>" >> import_llrf_fwd.xml
echo -e "\t\t<Subject>Automatic forward</Subject>" >> import_llrf_fwd.xml
echo -e "\t\t<TEXT><meta http-equiv="refresh" content="0; URL='https://elog-gfa.psi.ch/SwissFEL+RF/${IDNEW}'" /></TEXT>" >> import_llrf_fwd.xml
echo -e "\t</ENTRY>" >> import_llrf_fwd.xml
done
echo "</ELOG_LIST>" >> import_llrf_fwd.xml
|
|