Display Attribute no longer works in Beta 5?, posted by Ulrich Trüssel on Fri Oct 7 08:53:00 2005
|
Just changed from Beta 2 to Beta 5:
I'm using Display Attribut = [elog:$logbook/$message id] as a reference link for other entries (ex.: Display Referenz = [elog:$logbook/$message id]). also see the attached elogd.cfg file.
With Beta 2 (not testet with Beta 3 or 4!) this worked very well -> see attached Display Attribute with 260-b2.jpg file.
With Beta 5 is seems no longer to work -> see attached Display Attribute with 260-b5.jpg file.
ANy ideee what's wrong in my elogd.cfg??? Thanks! |
Re: Display Attribute no longer works in Beta 5?, posted by Stefan Ritt on Mon Oct 10 13:57:20 2005
|
This option has been changed on July 25th from "Display <attribute>" to "Change <attribute>" which is a more appropriate expression. The documentation has also been updated. |
The Chinese Language,Demo Configuration and Help Files, posted by Exaos Lee on Sun Oct 9 20:18:23 2005
|
Hi, Stefan,
The days from Oct.1~7 are our Nation Day's vacation, so I delayed the translation to Chinese. I just finished these files today:
- eloglang.zh_CN-GB2312 : This is for simplified Chinese using GB2312 encoding.
- eloglang.zh_CN-UTF-8 : This is for simplified Chinese using UTF-8 encoding.
- eloghelp.zh-CN.html : Help file for elog in simplified Chinese.
- elcode_zh-CN.html : The help file for ELCode in simplified Chinese.
- elogd-zh_CN-GB2312.cfg : Demo configuration file for simplified Chinese with GB2312 encoding.
- elogd-zh_CN-UTF-8.cfg : Demo configuration file for simplified Chinese with UTF-8 encoding.
I have to provide the language files in different encodings because the elogd cannot creat new logbook file named in Chinese with GB2312 encoding under MacOS X. The default charset under MacOS X is UTF-16, and elogd works with UTF-8 while processing Chinese contents and logbooks named in Chinese.
I want to make elogd display the date in Chinese format. Please tell me howto.
Thanks. |
Re: The Chinese Language,Demo Configuration and Help Files, posted by Stefan Ritt on Mon Oct 10 12:53:46 2005
|
Exaos Lee wrote: | I want to make elogd display the date in Chinese format. Please tell me howto. |
Thank you for the files.
If you specify
Language = zh_CN
Then elogd looks for a file "eloglang.zh_CN" for the translation, for a file "eloghelp_zh.html"
for the help, and does a
setlocale("zh_CN");
to switch to Chinese date format. To retrieve the date, elogd calls strftime("%x"); |
"Error: Cannot find hostname", posted by Exaos Lee on Sun Oct 9 20:39:50 2005
|
I usually access hosts in LAN with their IPs. But elogd seems to prefer hostnames to IPs. I cannot ask each one to add the hostname to their system config file while they visit my host. I encounter several problems which seems to be related to the hostname resolution:
- I can visit remote elog service through IP and port, but cannot submit entry and cannot open the config page remotely. For example, my powerbook's name is "exaos-pb-12" and its IP is 10.10.2.96. I run elogd on my PB and try to access it through URL http://10.10.2.96:8080/ on host 10.10.2.99. While I submit a new entry or open the config page, my firefox alway blames: "exaos-pb-12.local could not be found. Please check the name and try again."
- Sometimes, all the images, colors are missing. It looks like that my firefox cannot find the correct URL of these images or CSS files. It might be the same problem of "cannot find hostname".
|
Re: "Error: Cannot find hostname", posted by Stefan Ritt on Mon Oct 10 08:03:57 2005
|
Exaos Lee wrote: | I usually access hosts in LAN with their IPs. But elogd seems to prefer hostnames to IPs. I cannot ask each one to add the hostname to their system config file while they visit my host. I encounter several problems which seems to be related to the hostname resolution:
- I can visit remote elog service through IP and port, but cannot submit entry and cannot open the config page remotely. For example, my powerbook's name is "exaos-pb-12" and its IP is 10.10.2.96. I run elogd on my PB and try to access it through URL http://10.10.2.96:8080/ on host 10.10.2.99. While I submit a new entry or open the config page, my firefox alway blames: "exaos-pb-12.local could not be found. Please check the name and try again."
- Sometimes, all the images, colors are missing. It looks like that my firefox cannot find the correct URL of these images or CSS files. It might be the same problem of "cannot find hostname".
|
In such a situation you describe it might help to use
URL = http://10.10.2.96:8080/
in the configuration file. This way elogd uses also IP numbers for redirection. Please let me know if that works. |
Re: "Error: Cannot find hostname", posted by Exaos Lee on Mon Oct 10 10:52:02 2005
|
Yes, the "URL" works. Thanks! |
ELOG repository moved from CVS to Subversion, posted by Stefan Ritt on Fri Oct 7 17:18:32 2005
|
The elog repository has been moved from CVS to Subversion for various reasons. Those people who accessed the CVS repository in the past now have to do it in one of two different ways:
- Use the new ViewCVS gateway. This gateway now can also directly produce tarballs for the current repository snapshot
- Use anonymous Subversion access:
svn checkout svn+ssh://svn@savannah.psi.ch/afs/psi.ch/project/meg/svn/elog/trunk elog
svn@midas.psi.ch's password: svn
(you might have to enter the password several times...)
svn checkout svn+ssh://svn@savannah.psi.ch/afs/psi.ch/project/meg/svn/mxml/trunk mxml
svn@midas.psi.ch's password: svn
(you might have to enter the password several times...)
If there is any problem accessing the new repository, please let me know. |
Re: ELOG repository moved from CVS to Subversion, posted by Exaos Lee on Sat Oct 8 05:08:40 2005
|
Hi, Stefan,
I cannot checkout due to the following error:
------------
$ svn checkout svn+ssh://svn@savannah.psi.ch:/afs/psi.ch/project/meg/svn/elog/trunk elog
ssh: savannah.psi.ch:: Name or service not known
svn: Connection closed unexpectedly
------------
It seems that my PC cannot find the host savannah.psi.ch within CIAE. Maybe it's the problem of our DNS server. Anyway, what is the IP of savannah? |
Re: ELOG repository moved from CVS to Subversion, posted by Stefan Ritt on Sat Oct 8 08:44:22 2005
|
Exaos Lee wrote: | Hi, Stefan,
I cannot checkout due to the following error:
------------
$ svn checkout svn+ssh://svn@savannah.psi.ch:/afs/psi.ch/project/meg/svn/elog/trunk elog
ssh: savannah.psi.ch:: Name or service not known
svn: Connection closed unexpectedly
------------
It seems that my PC cannot find the host savannah.psi.ch within CIAE. Maybe it's the problem of our DNS server. Anyway, what is the IP of savannah? |
Sorry, was my mistake. In the command you have to use savannah.psi.ch, not savannah.psi.ch: (with the colon). So the full command is
$ svn checkout svn+ssh://svn@savannah.psi.ch/afs/psi.ch/project/meg/svn/elog/trunk elog |
error when searching for POST, posted by Guenter Nowak on Mon Sep 26 11:03:52 2005
|
is this an elog bug?
calling
http://midas.psi.ch/elogs/Linux%20Demo/?cmd=Find
(ELOG V2.6.0-beta4)
and typing
POST
in uppercase-letters
I get the error
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /elogs/Linux Demo/.
Reason: Error reading from remote server
--------------------------------------------------------------------------------
Apache/2.0.46 (Red Hat) Server at midas.psi.ch Port 80
doing the same thing on my elog installation (ELOG V2.5.9-2) gives the error
Die Seite kann nicht angezeigt werden.
Die gewünschte Seite ist zurzeit nicht verfügbar. Möglicherweise sind technische Schwierigkeiten aufgetreten oder Sie sollten die Browsereinstellungen überprüfen.
--------------------------------------------------------------------------------
Versuchen Sie Folgendes:
... (some text skipped, guenter)
Fehler: Server oder DNS kann nicht gefunden werden
Internet Explorer
if if dont type all letters in uppercase no problem occurs
thanks
guneter |
Re: error when searching for POST, posted by Stefan Ritt on Wed Oct 5 13:07:51 2005
|
This bug has been fixed in the current CVS version. |
Can't use the command-line client, posted by Pieter Edelman on Wed Mar 16 20:04:32 2005
|
Hi all,
I'm trying to use the command-line client from linux, but I can't make it
work and that's driving me nuts...
What I want is to reply to a selected message in the logbook, but I
stumble onto two problems:
- There is a read password ("Read Password=..." entry in elogd.cfg)on
the logbook which I cannot bypass from the client. Specifying the switch
-u "" password on the command line has no effect, and neither does
-w password. The error message I get is included at the bottom of this message. If I disable the
read password, I get past the authentication.
- There is a required attribute called "Publiek", and it's defined as
MOptions. Whenever I try to upload, I keep getting the message that it misses this attribute. I
tried the switch -a Publiek=Anders, -a "Publiek=Anders", -a
Publiek_0=Anders, -a "Publiek_0=Anders" -a "Publiek_1=Onbekend,
-a Publiek=1 on the beginning, end, and middle of the command, but
the results are the same. Both "Anders" and "Onbekend" are in the MOptions
list (including capitals).
For completeness, here's (one variety) of my command line:
elog -a "Publiek=1" -h localhost -p 8181 -l Artikelen -v -r 80
The obvious question is if anybody knows what I'm doing wrong. Any help
is greatly appreciated.
Pieter
Authentication error:
Successfully connected to host localhost,
port 8181
Request sent to host:
GET /Artikelen/80?cmd=download HTTP/1.0
Host: pde.dyndns.org
User-Agent: ELOG
Cookie: upwd=bWFOZGFyaWpO;
Response received:
HTTP/1.1 401 Authorization Required
Server: ELOG HTTP 2.5.7-1
WWW-Authenticate: Basic realm="Artikelen"
Connection: close
Content-Type: text/html
<HTML><HEAD>
<TITLE>401 Authorization Required</TITLE>
</HEAD><BODY>
<H1>Authorization Required</H1>
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
</BODY></HTML>
Error transmitting message
Missing attribute error
Successfully connected to host localhost, port 8181
Request sent to host:
POST /Artikelen/ HTTP/1.0
Content-Type: multipart/form-data; boundary=---------------------------75ABFDB1E
CB47273B853CE0
Host: pde.dyndns.org
User-Agent: ELOG
Content-Length: 3651
Content sent to host.
Response received:
HTTP/1.1 200 Document follows
Server: ELOG HTTP 2.5.7-1
Content-Type: text/html;charset=ISO-8859-1
Connection: Keep-Alive
Keep-Alive: timeout=60, max=10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>ELOG error</title>
<link rel="stylesheet" type="text/css" href="default.css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" href="favicon.png" type="image/png">
</head>
<body><center>
<table class="dlgframe" width="50%" cellpadding=1 cellspacing=0<tr><td
class="er
rormsg"><i>Error: Attribute <b>Publiek</b> not
supplied.</i><p>
Please go back and enter the <b>Publiek</b> field.
</td></tr>
<tr><td class="errormsg">Please use your browser's back button to go back
</td></tr>
</table>
</center></body></html>
Error: Missing required attribute "Publiek"
|
Re: Can't use the command-line client, posted by Stefan Ritt on Wed Mar 16 22:14:19 2005
|
> There is a read password ("Read Password=..." entry in elogd.cfg) on
> the logbook which I cannot bypass from the client.
This is correct. The elog utility works with write passwords and user level access
(specifying a password file), but not with read passwords, that's not implemented. Use a
password file and you should be fine.
> There is a required attribute called "Publiek", and it's defined as
> MOptions. Whenever I try to upload, I keep getting the message that
> it misses this attribute.
Your problem is that you try to combine a MOptions with a "-r <n>" (reply-to) option. I
have never tried that and found there is a problem. I changed the way MOptions are
submitted. Instead of using <name>_0, <name>_1 etc, you can now do a
-a "<attrib>=<value1> | <value2>"
This also solves the problem with the "-r" option. You have to upgrade elogd.c from CVS. |
Re: Can't use the command-line client, posted by Pieter Edelman on Thu Mar 17 09:56:21 2005
|
This solved the problems, thanks for the fast response!
On a side note, one would expect that when "Fixed Attributes Edit" or "Fixed Attributes
Reply" is set, the attributes in this list shouldn't be supplied with the command line client.
Anyway, my problem is solved. Thanks for the great product.
Pieter. |
Re: Can't use the command-line client, posted by Stefan Ritt on Thu Mar 17 10:02:45 2005
|
> On a side note, one would expect that when "Fixed Attributes Edit" or "Fixed Attributes
> Reply" is set, the attributes in this list shouldn't be supplied with the command line client.
Well, don't shoot yourself in the foot! The communication between elog and elogd is limited. elog
more or less submits "blindly" whatever you give it on the command line. If "Fixed Attributes
Edit/Reply" is set in the configuration, this only affects the web page with the entry form, so
these attributes are not shown as edit boxes. They are not checked during submission by elogd. Now
to get the same functionality with elog, elog whould have to retrieve the full entry form, analyze
the HTML code, find out which attributes have edit boxes and which ones not. So that's a lot of
work. Since most people use elog in scripts, they set it up once and forever correctly. There are
actually a few people which even want the functionality that elog can change attributes which are
normally fixed.
- Stefan |
Re: Can't use the command-line client, posted by Pieter Edelman on Thu Mar 17 23:06:54 2005
|
Okidokie. May I then humbly suggest to mention this in the documentation of the elog command client? |
Re: Can't use the command-line client, posted by Stefan Ritt on Fri Mar 18 08:02:52 2005
|
> Okidokie. May I then humbly suggest to mention this in the documentation of the elog command client?
I did modify it already, see http://midas.psi.ch/elog/userguide.html at the bottom. |
Re: Can't use the command-line client, posted by David Spindler on Tue Oct 4 19:40:27 2005
|
I have a similar problem. I am using Windows version, and whenever I use the elog client to send entry, it will not take with MOptions set. I usually have 2 attributes required (both MOptions), and I get the message that it is missing a required attribute. When I use ROptions, or Options, it works fine. Is there a problem with MOptions, or am I perhaps using a badly formatted commandline?
Commandline as follows: C:\elog>elog -h IP_ADR -p 80 -l gbld -u username password -a Type=Other -a Operator=SCADA -a Category=Controls -a Subject=Alarm "Please ignore."
Type and Category are required and MOptions.
Below is the pertinent part of the config file:
;***** Attribute Section
Attributes = Log Date, Operator, Type, Category, Engine, Work Order #, EPN, Fuel Tank 1 (A&B), Fuel Tank 2 (C&D), Engine Hours Stop, Engine Hours Start, Email To, Subject
Comment EPN = (Equipment Piece Number)
Comment Fuel Tank 1 (A&B) = (West)
Comment Fuel Tank 2 (C&D) = (East)
MOptions Type = Alarm, Trouble, ESP, Haz. Wx.,Problem, PM, Routine, Load Test, Other
MOptions Category = Engine, Generator, Controls, Fuel, Oil, HV Switchgear, MLG&W, Other
Options Engine = All, 1A, 2A, 3A, 4A, 5A, 1B, 2B, 3B, 4B, 5B, 1C, 2C, 3C, 4C, 5C, 1D, 2D, 3D, 4D, 5D, A Bus, B Bus, C Bus, D Bus, A&B Busses, C&D Busses, West Gen (001), East Gen (002)
Required Attributes = Type, Category, Subject
If time permits, I would appreciate any help possible.
BTW, I like the additional elcode. |
Re: Can't use the command-line client, posted by David Spindler on Tue Oct 4 20:24:26 2005
|
I just noticed in the changelog that my apparent problem with MOptions may have been fixed. I will try a newer version and see if it works. |
Re: Can't use the command-line client, posted by David Spindler on Tue Oct 4 20:33:05 2005
|
David Spindler wrote: | I just noticed in the changelog that my apparent problem with MOptions may have been fixed. I will try a newer version and see if it works. |
It did.
Keep up the good work. |
Can I turn off emoticons?, posted by Dan Chitwood on Wed Sep 21 04:24:43 2005
|
Is there a way to not use the emoticons, but at the same time use the ELCode?
An example would be to add a slash before the emoticon code like this: /:)
Thanks,
Dan |
Re: Can I turn off emoticons?, posted by Stefan Ritt on Wed Sep 21 09:06:03 2005
|
Dan Chitwood wrote: | Is there a way to not use the emoticons, but at the same time use the ELCode?
An example would be to add a slash before the emoticon code like this: /:)
Thanks,
Dan |
There are two ways:
a) put a "\" in front of the emoticon like this: \:) -> :)
b) put a [code] tag around your text. Any text inside the [code] tag is not interpretet like:
[code]Hello ;) [I]italics[/i] [/code]
note that the trick with the "\" only works in the current CVS version of elog. |
Email Notification and Icons, posted by Mario Apodaca on Mon Sep 19 19:48:07 2005
|
I have two questions:
1) When sending out email notifications, is there a way to surpress the entries that have been left on the logbook? I want to be notified that someone has posted, but not receive the posting in the email.
2) Is there a way to set icons to users, so that each user has a defined icon? I set up a new attribute called: Author Icon and then tried using conditional attributes to have an icon set to a specific user. When I tested by posting, in the Author Icon section I didn't have an icon, instead a text box appeared with the name of the icon.
Thanks in advance for your help. |
Re: Email Notification and Icons, posted by Stefan Ritt on Mon Sep 19 20:39:17 2005
|
Mario Apodaca wrote: | 1) When sending out email notifications, is there a way to surpress the entries that have been left on the logbook? I want to be notified that someone has posted, but not receive the posting in the email. |
You specify what is sent by email notification with the Email format = <n> option. Adding the right numbers there, you can send only the notification, but not the contents or attachments. An alternative is to use the RSS functionality in Elog. With an RSS reader, you only see the subject, and can download the whole body upon request.
Mario Apodaca wrote: | 2) Is there a way to set icons to users, so that each user has a defined icon? I set up a new attribute called: Author Icon and then tried using conditional attributes to have an icon set to a specific user. When I tested by posting, in the Author Icon section I didn't have an icon, instead a text box appeared with the name of the icon. |
No, this is not possible without modification of elog. In principle you can tell elog that a certain attribute is an icon by using the "Ioptions author icon = icon1.gif, icon2.gif"), but then you get a list if possible icons each time from which you have to select. Not very convenient. The concept of an Avatar is not preent in elog, you bette choose a bulletin board system for that. |
|