Unable to add user, posted by Uwe Vollbracht on Sat Aug 6 18:38:50 2022
|
Hi,
we're using elog to handle various logbooks. It's a great tool by the way.
While replacing the Win32 2.7.8 Release with Release 3.1.4-2, we ran into the
following problem.
Since elog is for internal usage only, we allow users to self-register if they
are new. Therefore "Self register = 1" is set in the [global]-area.
Using the Win32-Release of elog, it worked fine while using Release 2.7.8 or
2.8.0. Starting with Release 3.x everytime you try do add a user, the following
error occurs:
Error: Command "config" is not allowed for user ""
No matter if the user self-registers or is added by an elog-admin-user. We
tried various 3.x Releases from 3.1.0-1 up to the latest 3.1.4-2.
The error-message remains the same. Curious, although an error-message occurs,
the user is added and able to use all logbooks. We also ran elogd in
Debug-Mode (-v3), but the output didn't give a clue.
By the way using the same configuration on a linux-based installation (Debian
and RaspiOS) self-registration works smooth. No error-message occurs.
So what could be the problem? Any suggestion is greatly appreciated.
Thanks in advance. |
Re: Unable to add user, posted by Stefan Ritt on Mon Aug 8 08:26:11 2022
|
I recommend to clear all your browser cookies for the elog server. Sometimes an old cookie confuses the
access mechanism.
Stefan |
Re: Unable to add user, posted by Uwe Vollbracht on Mon Aug 8 14:06:28 2022
|
Thanks for answering. Just tried your suggestion with different browsers
(firefox, chrome, brave) but the error message still appears when adding a
new user.
By the way, i justed noticed that if you click "back" followed by "cancel" you
enter the logbook as the user you just added. It seems that although elogd
throws an error, the user is added. Weird.
Since most of our users don't trust open source software, the error message
will only confuse them. So, is there any way to avoid this message from
appearing?
Perhaps a few words about our use case:
We are a german non profit organisation in disaster control. Since 2007 we use
elog as mobile mission journal in our unit. We adapted elog to run from
usb-stick, so all our first-responders have to do is to plug it into a laptop
and they are ready to go.
We also hand the adapted installation to other organisations like local fire
department or red cross units and offer them a short (2 hour) course on how to
use it. Since the windows-release is the most requested, it would be confusing
for them if an error message appears every time a new user is added.
So if you have any further ideas, I would appreciate that.
Uwe |
Re: Unable to add user, posted by Konstantin Olchanski on Mon Aug 8 20:52:17 2022
|
> Error: Command "config" is not allowed for user ""
Could it be related to the error messages thrown by "activate user"? see
https://elog.psi.ch/elogs/Forum/69479
K.O. |
OSX Issues, posted by Florian Heigl on Tue Jul 5 19:10:48 2022
|
Hi, I have an issue with my local elog setup. it's usable but one function is just not working.
Problem
I'm getting weird error messages when trying to write or read entries from the CLI client.
I have googled a lot and most elog client examples are not giving the actual output, more like elog -h <host> -p <myport> -a ... -x -m "myfile" but I hope I got the options right.
Upgrading did not change the behaviour.
Question?
- anyone see problems in the commands I tried below
- with OSX in general
- have a recent setup on OSX that just works
Env
I'm running elog on my OSX laptop for tracking issues / improvements on client's IT systems. It's proven really good for storing my notes.
One "kink" is I kinda need both of them on the laptop since I cannot assume to have working network connectivity, i.e. when documenting network outages or datacenter maintenance where everything is off.
One thing I couldn't get to work was the CLI. Today I upgraded to the latest build, and tried again.
Env: OSX 12.4 (x86_64)
elog Client compiled from latest source tree (bcd7b50edd3d687425e6c5b0906dc02c8690a24e)
with minimal adjustments (turn off SSL since I can't get it right on OSX, rename two .c files in mxml to .cxx)
Outputs
$ echo "blah" | ./elog -h 127.0.0.1 -p 8080 -l intern -r 2 -x
Cannot retrieve host name: Undefined error: 0
$ echo "blah" | ./elog -h 127.0.0.1 -p 8080 -l intern -r 2 -x
Cannot retrieve host name: Undefined error: 0
$ host 127.0.0.1
1.0.0.127.in-addr.arpa domain name pointer localhost.
$ elog -?
elogd 3.1.4 built Oct 8 2020, 03:14:21 revision 7c3fd00b
$ elog -?
elogd 3.1.4 built Jul 5 2022, 18:23:30 revision bcd7b50e
As per the messages, I'm not entirely sure if it's an issue with the client or the server. upgrading both components made no difference.
Config
Theme = default
Comment = Logbuch Findings etc
Attributes = Context, Type, Category, Subject, ObjectPath
Options Context = global, intern, [redacted]
Options Type = Anpassung, Finding, Problem, Update, Auftrag, Planung
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Required Attributes = Context, Type, ObjectPath
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Context, Type
make output
$ gmake
c++ -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml -I/opt/local/include -o elog src/elog.cxx mxml.o crypt.o -L/opt/local/lib
ld: warning: directory not found for option '-L/opt/local/lib'
c++ -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml -I/opt/local/include -w -c -o auth.o src/auth.cxx
c++ -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml -I/opt/local/include -o elogd src/elogd.cxx auth.o mxml.o crypt.o -L/opt/local/lib
ld: warning: directory not found for option '-L/opt/local/lib'
c++ -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml -I/opt/local/include -o elconv src/elconv.cxx -L/opt/local/lib
ld: warning: directory not found for option '-L/opt/local/lib'
$ ls -ltr
[...]
-rw-r--r-- 1 floh staff 4811 5 Jul 17:58 CMakeLists.txt
drwxr-xr-x 25 floh staff 800 5 Jul 17:58 doc
drwxr-xr-x 10 floh staff 320 5 Jul 17:58 scripts
drwxr-xr-x 13 floh staff 416 5 Jul 17:58 src
drwxr-xr-x 10 floh staff 320 5 Jul 18:15 mxml
-rw-r--r-- 1 floh staff 36424 5 Jul 18:15 mxml.o
-rw-r--r-- 1 floh staff 8784 5 Jul 18:15 crypt.o
-rw-r--r-- 1 floh staff 5886 5 Jul 18:23 Makefile
-rwxr-xr-x 1 floh staff 90840 5 Jul 18:23 elog
-rw-r--r-- 1 floh staff 2976 5 Jul 18:23 auth.o
-rwxr-xr-x 1 floh staff 1390664 5 Jul 18:23 elogd
-rwxr-xr-x 1 floh staff 52112 5 Jul 18:23 elconv
$ sudo gmake install
Password:
install: elog -> /usr/local/bin/elog
install: elconv -> /usr/local/bin/elconv
install: elogd -> /usr/local/sbin/elogd
install: man/elog.1 -> /usr/local/man/man1//elog.1
install: man/elconv.1 -> /usr/local/man/man1//elconv.1
install: man/elogd.8 -> /usr/local/man/man8//elogd.8
install: scripts/ckeditor-config.js -> /usr/local/elog/scripts//ckeditor-config.js
install: scripts/dnd.js -> /usr/local/elog/scripts//dnd.js
install: scripts/elcode.js -> /usr/local/elog/scripts//elcode.js
install: scripts/im.js -> /usr/local/elog/scripts//im.js
install: scripts/jquery-1.11.1.min.js -> /usr/local/elog/scripts//jquery-1.11.1.min.js
install: scripts/load-ckeditor.js -> /usr/local/elog/scripts//load-ckeditor.js
Installing CKeditor to /usr/local/elog/scripts/ckeditor
Installing resources to /usr/local/elog/resources
Installing themes to /usr/local/elog/themes
Installing example logbook to /usr/local/elog/logbooks/demo
install: logbooks/demo/2001/011108a.log -> /usr/local/elog/logbooks/demo/2001/011108a.log
install: elogd.plist -> /Library/LaunchDaemons/ch.psi.elogd.plist
The elogd service can now be started with
sudo launchctl load /Library/LaunchDaemons/ch.psi.elogd.plist
|
Re: OSX Issues, posted by Stefan Ritt on Fri Jul 29 14:22:00 2022
|
I just tried the same on my latpop (MacOSX 12.4) and it worked flawlessly:
ritt@MBP14 build % echo "blah" | ./elog -h 127.0.0.1 -p 8080 -l demo -r 2 -x
Message successfully transmitted, ID=3
ritt@MBP14 build % host 127.0.0.1
Host 1.0.0.127.in-addr.arpa. not found: 3(NXDOMAIN)
ritt@MBP14 build % echo "blah" | ./elog -h localhost -p 8080 -l demo -r 2 -x
Message successfully transmitted, ID=4
ritt@MBP14 build %
So have you tried with the "-v" flag? Maybe your network is not correctly configured. You can also try the "curl" utility (see elog:68597), maybe you see some different error there. You get that via MacPorts.
Stefan
|
Paid version , posted by Vasio on Mon Jul 4 12:34:13 2022
|
Good day all ,
does Elog has a paid version that is not open soureced
regards
William Vasio
|
Re: Paid version , posted by Stefan Ritt on Thu Jul 7 10:56:39 2022
|
There is only an open source version.
Vasio wrote: |
Good day all ,
does Elog has a paid version that is not open soureced
regards
William Vasio
|
|
Paid version , posted by Vasio on Mon Jul 4 12:32:01 2022
|
Good day all ,
does Elog has a paid version that is not open soureced
regards
William Vasio
|
Slow performance, posted by Alan Grant on Tue Jun 28 18:53:50 2022
|
We're up to 30 logbooks, 3.2GB data total and Elog damen has now become slow. Performance stats show 100%CPU on startup then reduces. Searches and general UI activity is slow. It runs on a VM with 4GB memory allocated. Up to 15 concurrent users.
Trimming and archiving some data files may help but I gather overall this is underpowered hardware in this instance so what is recommended system requirements for a config like this? |
Re: Slow performance, posted by Andreas Luedeke on Sat Jul 2 14:39:41 2022
|
We have 68 logbooks and currently 60 GB data total. We run it as well on a VM, in our case with 8GB RAM.
The speed of ELOG is mostly given by the filesystem: when we had AFS it was very slow. With NFS it was better. But we now use a local disk on the VM: that is much better.
If you want to have the best performance (upload of large files can still slow down all users) then I would recomment local SSD for the file system of elogd.
You might talk to your system administrator: they can likely provide a local SSD on the VM server host.
Alan Grant wrote: |
We're up to 30 logbooks, 3.2GB data total and Elog damen has now become slow. Performance stats show 100%CPU on startup then reduces. Searches and general UI activity is slow. It runs on a VM with 4GB memory allocated. Up to 15 concurrent users.
Trimming and archiving some data files may help but I gather overall this is underpowered hardware in this instance so what is recommended system requirements for a config like this?
|
|
Edit entry from command line and appending attachment, posted by Andrea Capra on Sun Jun 26 01:47:02 2022
|
I would like to edit an existing entry by adding new attachments at each call of elog from the command line.
If I issue
elog -h localhost -p 8XXX -l test -f /path/to/file_0.pdf -e N -x
and then
elog -h localhost -p 8XXX -l test -f /path/to/file_1.pdf -e N -x
file_1.pdf replaces file_0.pdf, while I'd like entry N to have both pdfs.
Is there a workaround?
|
ladp Invalid user name or password!, posted by Fred Nerks on Wed May 11 09:54:17 2022
|
Hi I am running elog on windows 2022 server and trying to use ldap for Auth.
No matter what i do I cannot get it to authenticate against the DC.
Invalid user name or password!
11-May-2022 17:09:15 [xxx.xxx.xxx.xxx] {TrainingHouse1} LOGIN user "xxxxx" (attempt)
Using an LDAP browser I can connect to the DC without issue so not firewall.
Not sure what I am doing wrong.
[global]
port = 5050
Page title = Elog Training
Entries per page = 25
Password file = password.pwd
List page title = Elog Training
Login page title = Elog Training
Show top groups = 0
Logbook tabs = 0
Menu commands = Back, New, Find, Download, Logout
List Menu commands = New, Find, Logout
Self register = 0
Max content length = 100000
Allow password change = 0
Enable attachments = 0
Show attachments = 0
Hide attachments = 1
List after submit = 1
Logout to main = 0
Allowed encoding = 5
Default encoding = 1
Welcome title = Elog Training LogBook.
## Welcome title = <font size=5 color=white>Elog Training LogBook </font><img src="elog.png">
Summary lines = 5
Summary line length = 100
Search all logbooks = 0
Refresh = 300
Login expiration = 0
Reply string =
Suppress default = 2
Thread display = $category entered by $author on $Entry time
Thread icon = Icon
Preset on reply author = $long_name
All display limit = 300
Start page = ?last=31
Bottom text =
Bottom text login = <font size=5 color=Red><center></br>ELOG Training web site</center></font>
[ADTrainingHouse1]
Hidden = 0
Authentication = LDAP, File
LDAP server = ldap://xxxxxx.xxxxx.xxxx.xxxx.xxxx.au:389
LDAP userbase = OU=Users,OU=CP,DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx,DC=au
LDAP login attribute = uid
LDAP register = 0
Theme = default
Comment =Training House 1 LogBook
Preset Author = $long_name
Locked Attributes = Author
Attributes = Category, Codes, Residents Involved, Medical, Synopsis, Event Date, Author
Options Synopsis = Yes, No
MOptions Medical = Yes
MOptions Residents Involved = Pleaseadd, Test User
Extendable options = Residents Involved
Style Synopsis Yes = background-color:yellow
Style Medical Yes = background-color:green
Type Event Date = datetime
Preset Event Date = $datetime
Date format %A %B %d %Y %H:%M
List Display = ID, Event Date, Category, Medical, Codes, Residents Involved, Synopsis, Date, Author
MOptions Category = Assault, Death, Fire, Illness, Inappropriate Sexualised Behaviour, Injury To Child, Injury To Staff, Property Damage, Self-Harm, Substance Misuse, Theft/Loss, Threat
MOptions Codes = MED, ACH, LEGAL, MPR, P/C, PSYCH, MFP, BEH, INC, CM, FAM, INFO, MVT, OBS, POLICE, PROG, ROU, VIS, S/O
Required Attributes = Author, Event Date, Codes
Style Codes MED = background-color:green
Page Title = DCP Elog Training
Reverse sort = 1
Quick filter = Date, Category, Codes, Medical,
Sort Attributes = Event Date
Logfile = traininghouse1.log
Logging level = 3
Bottom text = |
Re: ladp Invalid user name or password!, posted by Fred Nerks on Mon May 23 07:48:40 2022
|
Fred Nerks wrote: |
Hi I am running elog on windows 2022 server and trying to use ldap for Auth.
No matter what i do I cannot get it to authenticate against the DC.
Invalid user name or password!
11-May-2022 17:09:15 [xxx.xxx.xxx.xxx] {TrainingHouse1} LOGIN user "xxxxx" (attempt)
Using an LDAP browser I can connect to the DC without issue so not firewall.
Not sure what I am doing wrong.
[global]
port = 5050
Page title = Elog Training
Entries per page = 25
Password file = password.pwd
List page title = Elog Training
Login page title = Elog Training
Show top groups = 0
Logbook tabs = 0
Menu commands = Back, New, Find, Download, Logout
List Menu commands = New, Find, Logout
Self register = 0
Max content length = 100000
Allow password change = 0
Enable attachments = 0
Show attachments = 0
Hide attachments = 1
List after submit = 1
Logout to main = 0
Allowed encoding = 5
Default encoding = 1
Welcome title = Elog Training LogBook.
## Welcome title = <font size=5 color=white>Elog Training LogBook </font><img src="elog.png">
Summary lines = 5
Summary line length = 100
Search all logbooks = 0
Refresh = 300
Login expiration = 0
Reply string =
Suppress default = 2
Thread display = $category entered by $author on $Entry time
Thread icon = Icon
Preset on reply author = $long_name
All display limit = 300
Start page = ?last=31
Bottom text =
Bottom text login = <font size=5 color=Red><center></br>ELOG Training web site</center></font>
[ADTrainingHouse1]
Hidden = 0
Authentication = LDAP, File
LDAP server = ldap://xxxxxx.xxxxx.xxxx.xxxx.xxxx.au:389
LDAP userbase = OU=Users,OU=CP,DC=xxxx,DC=xxxx,DC=xxxx,DC=xxxx,DC=au
LDAP login attribute = uid
LDAP register = 0
Theme = default
Comment =Training House 1 LogBook
Preset Author = $long_name
Locked Attributes = Author
Attributes = Category, Codes, Residents Involved, Medical, Synopsis, Event Date, Author
Options Synopsis = Yes, No
MOptions Medical = Yes
MOptions Residents Involved = Pleaseadd, Test User
Extendable options = Residents Involved
Style Synopsis Yes = background-color:yellow
Style Medical Yes = background-color:green
Type Event Date = datetime
Preset Event Date = $datetime
Date format %A %B %d %Y %H:%M
List Display = ID, Event Date, Category, Medical, Codes, Residents Involved, Synopsis, Date, Author
MOptions Category = Assault, Death, Fire, Illness, Inappropriate Sexualised Behaviour, Injury To Child, Injury To Staff, Property Damage, Self-Harm, Substance Misuse, Theft/Loss, Threat
MOptions Codes = MED, ACH, LEGAL, MPR, P/C, PSYCH, MFP, BEH, INC, CM, FAM, INFO, MVT, OBS, POLICE, PROG, ROU, VIS, S/O
Required Attributes = Author, Event Date, Codes
Style Codes MED = background-color:green
Page Title = DCP Elog Training
Reverse sort = 1
Quick filter = Date, Category, Codes, Medical,
Sort Attributes = Event Date
Logfile = traininghouse1.log
Logging level = 3
Bottom text =
|
Is anyone able to assist with what I am doing wrong is anyone successful used LDAP in windows elog |
PDF preview special steps to enable, posted by Konstantin Olchanski on Fri May 6 21:12:11 2022
|
Ubuntu LTS 20.04 and others have elog PDF preview disabled by default. To enable,
please follow these steps, see https://daq00.triumf.ca/DaqWiki/index.php/Ubuntu#Enable_elog_PDF_preview
Enable elog PDF preview
see https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
xemacs -nw /etc/ImageMagick-6/policy.xml
remove this section at the end:
<!-- disable ghostscript format types -->
<policy domain="coder" rights="none" pattern="PS" />
<policy domain="coder" rights="none" pattern="PS2" />
<policy domain="coder" rights="none" pattern="PS3" />
<policy domain="coder" rights="none" pattern="EPS" />
<policy domain="coder" rights="none" pattern="PDF" />
<policy domain="coder" rights="none" pattern="XPS" />
K.O. |
Re: PDF preview special steps to enable, posted by Stefan Ritt on Tue May 10 22:40:26 2022
|
I have a PDF file created by root which ImageMagic cannot convert to a .png file. If I do
convert img.pdf img.png
it works on my mac, but under RH7.4 the program goes into an infinite loop eating 100% CPU.
I attached the img.pdf, but compressed it to img.pdf.gz, otherwise I cannot post here.
Can anyone figure out why ImageMagick won't convert that file? |
|