Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 61 of 238  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
icon5.gif   Can I host elog in the web under windows platform without Apache Web Server?, posted by Dawang on Fri Jan 15 00:20:42 2016 
Hi All,

Can I host elog in the web (internet) under windows platform (elogd.exe only) without Apache Web Server? If possible, what syntax should I add
in the configuration file? Appreciate feedback. Thanks.
    icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Stefan Ritt on Fri Jan 15 08:04:09 2016 
When you install elog under windows, an example config file gets installed which lets you do already what you want. Then you can extend the config file
according to the documentation https://midas.psi.ch/elog/config.html




Dawang
    icon5.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Andreas Luedeke on Fri Jan 15 15:31:54 2016 
I admit that I'm not sure if I understood the question. It is quite some work to do the opposite, to run elog behind an Apache Web Server.

But
if you just install ELOG out of the box it will always run without an Apache Web Server. You don't need to add anything in the config file for that.




Dawang wrote:


       icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Dawang on Fri Jan 29 05:38:03 2016 
Thanks Andreas and Stefan,

Since I'm not good in setting up webserver, do you know a web hosting company that can I use to integrate elog so that i can access
my elog publicly same as you are using here? Thanks.
          icon2.gif   Re: Can I host elog in the web under windows platform without Apache Web Server?, posted by Andreas Luedeke on Fri Jan 29 06:35:05 2016 
Can't help you with that, and I think it is the wrong forum to ask that question.

You'll need a web service provider that will
allow you to run your own services.

And then it'll either require some skills in host administration or a full host service by the provider.

Cheers,
Andreas




Dawang
icon4.gif   attachments created using "Image" button can not be clicked-on and do not appear in the attachment table., posted by Devin Bougie on Wed Jan 27 21:33:53 2016 
This has been confirmed usign the Demo forum on this server.  For example, please see https://midas.psi.ch/elogs/Linux+Demo/8

When an image is attached using the "Image" button in the CKEditor, that image does not appear in the attachment table for that
entry.  In addition, the image can not be clicked on to view the full image.
    icon2.gif   Re: attachments created using "Image" button can not be clicked-on and do not appear in the attachment table., posted by Devin Bougie on Thu Jan 28 20:02:06 2016 
As there appears to be some inconsistencies, I thought I'd document the behaviour of each of the attachment options.

------

1. Click on the "Image" button in the CKEditor, click on "Choose File" and browse to the file, click on "Send it to
icon5.gif   entry does not appear in list while it is being edited, posted by Devin Bougie on Wed Jan 20 20:38:17 2016 
When an entry is being edited, it does not appear in the list once it's been autosaved or the editor manually clicks on "Save."  This
has been reproduced in the "Linux Demo" forum on this site, as well as on a clean installation of the 3.1.1 binary on EL6.

It would be great if there was a configuraiton option to control this, but I haven't found it yet.  To reproduce:
    icon2.gif   Re: entry does not appear in list while it is being edited, posted by Andreas Luedeke on Thu Jan 21 11:39:18 2016 elog-pending-draft.png
Hi Devin,

this is the intended bevaviour, there is nothing wrong with that.

Only a submitted entry should be visible to
the world.

If you would have played a little bit longer, you would have found out yourself how you'll get access again to this so-called
"draft" entry after closing the browser window:

as soon as you attempt to create - as the same user - an new entry, you'll
       icon2.gif   Re: entry does not appear in list while it is being edited, posted by Devin Bougie on Thu Jan 21 16:00:30 2016 
Thanks, Andreas.  I was aware of the "pending draft" menu, and I am aware that you can manually browse to an entry even if it doesn't
appear in the list.  However, for our operations group it is a requirement that any saved entry appears in the list, even if it's in the process
of being edited.  We won't be able to upgrade until this is possible.  
          icon2.gif   Re: entry does not appear in list while it is being edited, posted by Stefan Ritt on Fri Jan 22 10:12:33 2016 
I have a question here. You say "previsous releases didn't have this problems". Well, they did not have the auto-save feature. You can
turn this off if you like with "autosave = 0". This also removes the "Save" button so elog behaves exactly as before.

I decided NOT to show draft entries in the list, because these are entries currently under editing, and maybe the editor does not want others
             icon2.gif   Re: entry does not appear in list while it is being edited, posted by Devin Bougie on Fri Jan 22 18:02:44 2016 
Thanks, Stefan!  Yes, the old behavior is an acceptable workaround.  Although you need to use "Save drafts = 0" for this instead
of "autosave = 0".

Ideally, our machine studies group would like to have the ability to save / autosave an entry *and* have it remain in the list.  We'd
icon5.gif   drag and drop attachments not working with web server authentication, posted by Devin Bougie on Tue Jan 12 17:38:52 2016 
Hello,

The "Drop attachments here..." section does not work when using Webserver authentication.  Both elog 3.1.1 (the binary RPM) and apache are running
on EL6.6 and are configured according to the docs.  Authentication works fine and the normal "Choose File - Upload" attachment table works fine.  However,
when dragging an attachment to the "Drop attachments here..." section the dashes on the border turn green but when dropping the attachment nothing happens.
    icon2.gif   Re: drag and drop attachments not working with web server authentication, posted by Stefan Ritt on Tue Jan 12 21:07:59 2016 
Have a look here: elog:68014




Devin
Bougie wrote:


Hello, The "Drop attachments here..." section does not work when
       icon2.gif   Re: drag and drop attachments not working with web server authentication, posted by Devin Bougie on Tue Jan 12 21:13:54 2016 
Thanks, Stefan.  I read that before asking my question, but didn't see a resolution in that thread.  I am already at 3.1.1, and I am testing
on a clean installation.  Are you saying that the solution is in the development branch after the release of 3.1.1?

 
          icon2.gif   Re: drag and drop attachments not working with web server authentication, posted by Stefan Ritt on Tue Jan 12 21:19:25 2016 
No. What the thread says is first try this forum, see if you can drag and drop here. If not, you have a problem on your browser. If yes, you have somewhere
some old JavaScript file around. Might be in the cache of your browser.




Devin
             icon2.gif   Re: drag and drop attachments not working with web server authentication, posted by Devin Bougie on Tue Jan 12 21:31:42 2016 

Yeah, I had tried that and it did work in your demo forum.  It just didn't work in mine with authentication = webserver, even with a clean
browser profile.  
                icon5.gif   drag and drop attachments only working for admins if "restrict edit = 1", posted by Devin Bougie on Tue Jan 19 22:03:36 2016 
I'm finally able to reproduce this, and my initial description was incorrect.  If we have "restrict edit = 1", only an "Admin
user" can use the "Dop attachments here..." or the "Image" button in the CKEditor.  The old "Choose File,"
"Upload" buttons, however, works just fine for anyone.
icon3.gif   Monitoring a logbook for changes, posted by Johan Forsberg on Tue Jan 12 15:06:42 2016 
Hi again!

I've another need that you probably already thought of :)

I'd like to be able to efficiently monitor a logbook for changes (new or edited posts) somehow. The most reasonable way I've found so
    icon2.gif   Re: Monitoring a logbook for changes, posted by Stefan Ritt on Tue Jan 12 16:10:34 2016 
Use automatic email notifications or RSS feeds. Read the manual for that.

Stefan




Johan
    icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 08:37:42 2016 
I recommend monitoring directly on the server. Here is an example of a very simply Python script (https://github.com/tamasgal/elog-slack)
which monitors the files very efficiently and immediately pushes notifications to Slack (slack.com). Just look at the code,
it's pretty straight forward and very easy to adapt it to other (web) services.
       icon2.gif   Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 10:29:54 2016 
Yeah, I suppose something like that would be both faster and more efficient than polling ELOG itself. Fortunately the ELOG disk format looks easily parsed.

Thanks for the pointer!




Tamas
          icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 17:04:34 2016 
I just noticed that there are multiple messages per file, so I have to adapt the parser. I'll update this thread when I'm done!




Johan
Forsberg wrote:



Yeah, I suppose something like that would be both faster and more
             icon2.gif   Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 17:21:56 2016 
You guys know that there is the possibility to execute an arbitrary script on each submission of a new messge? Just use "Execute new = <script>".
In the script you have access to all parameters of the message. That's maybe simple than to watch the file set.




Tamas
                icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 18:37:32 2016 
Where is this feature documented?




Stefan
Ritt wrote:



You guys know that there is the possibility to execute an arbitrary
                   icon2.gif   Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 19:08:09 2016 
In the documentation of course :-)




Tamas
Gal wrote:



Where is this feature documented?
                      icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 19:13:47 2016 
I'm probably too tired or I don't know, but of course I looked at the user's guide and the admin's guide but did not found anything about
this ;-) Is there another documention which I missed somehow?




Stefan
                         icon2.gif   Re: Monitoring a logbook for changes, posted by Stefan Ritt on Wed Jan 13 19:22:35 2016 
You look here: http://midas.psi.ch/elog/config.html and scroll down to "Execute New". I wonder how you ever could run elog without looking
at that page.




Tamas
                            icon2.gif   Re: Monitoring a logbook for changes, posted by Tamas Gal on Wed Jan 13 19:26:35 2016 
OK thanks I'll check that out. I did not configure ELOG by myself, I only use it and wrote the Slack plugin ;-)




Stefan
Ritt wrote:



You look here: http://midas.psi.ch/elog/config.html and scroll
                icon2.gif   Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 20:08:04 2016 
Aha, that's interesting too! I'll have to look more carefully through the documentation... :)




Stefan
Ritt wrote:



You guys know that there is the possibility to execute an arbitrary
    icon2.gif   Re: Monitoring a logbook for changes, posted by Johan Forsberg on Wed Jan 13 10:27:21 2016 
Yeah, I found the RSS feed feature, but I could not get ETags/Last-Modified header fields which meant that I'd have to read and parse the entire
feed every time. Maybe I made a mistake and they do work, but if not, I think it would make sense to implement as it should save work for both the server
and the client.
icon3.gif   Slackbot for ELOG, posted by Tamas Gal on Wed Jan 13 08:25:50 2016 elog-slack.png
Dear all,

I just wanted to share a small script which I wrote to integrate our ELOG in Slack. This allows us to be notified immediately if there is a new
logbook entry directly within the appropriate Slack channels. We're using ELOG V2.9.2-245 but if the log-file format has "Subject,
icon3.gif   Prefill attributes for new post, posted by Johan Forsberg on Tue Jan 12 11:35:55 2016 
Hi all,

I have a use case for ELOG where I need to be able to "prefill" some attributes in the "cmd=new" form, based on the URL.

To illustrate, imagine a link that takes the user directly to the form for creating a new post, with the "Subsystem" attribute already
    icon3.gif   Re: Prefill attributes for new post, posted by Andreas Luedeke on Tue Jan 12 11:48:57 2016 
Hi Johan,

yes, it is possible. And you were actually very close :-)

In order to pass preset-parameters within a URL, you
just need to prefix the fieldname with a "p". In your example, you would write "...&pSubsystems=Vacuum".

Here is
an example for the Linux Demo logbook:

https://midas.psi.ch/elogs/Linux+Demo/?cmd=New&pAuthor=Santa+Claus&pSubject=Christmas+Presents&pType=Problem+Fixed&pCategory=Hardware

 

This
    icon2.gif   Re: Prefill attributes for new post, posted by Stefan Ritt on Tue Jan 12 11:50:22 2016 
Put a "p" in front of the attribute, like "&pSubsystem=Vacuum". This is kind of an undocumented feature just for the experts
;-)




Johan
       icon2.gif   Re: Prefill attributes for new post, posted by Johan Forsberg on Tue Jan 12 14:05:55 2016 
Wow, than you both for the quick response! I agree it's quite a hidden gem, but the most important thing is that it works, thanks!




Stefan
Ritt wrote:



Put a "p" in front of the attribute, like "&pSubsystem=Vacuum".
icon5.gif   If a Required Attribute starts with a number – No CKEditor, posted by David Dunne on Fri Nov 27 06:53:54 2015 
Hello,

Is the below an issue or am I doing something incorrectly?

Creating an attribute starting with a number and then including that attribute in
the Required Attribute list prevents access to the CKEditior.

This appears to be the case at least with FreeBSD (10.2 Rel) using Elog V3.1.0 and Windows
7 with Elog V3.1.1-3f311c5.

The problem can be recreated using the Elog supplied sample config and adding the necessary attribute, sample config showing
    icon4.gif   Re: If a Required Attribute starts with a number – No CKEditor, posted by Andreas Luedeke on Fri Dec 11 14:30:10 2015 
Hi David,

I can confirm a bug: changing the encoding does not work if you have a required attribute starting with a digit. The following
minimal config reproduces the bug:

[global]

Default
encoding = 1
ELOG V3.1.5-3fb85fa6