ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67027
|
Tue Mar 15 21:38:01 2011 |
| Louis de Leseleuc | louis.deleseleuc@nrc-cnrc.gc.ca | Bug report | Linux | 2.9.0 | Cleaning up attachments |
I noticed a behavior that might be irritating.
After attaching/uploading files to an entry and before submitting it, one might press 'Back' or close the browser window.
This in effect cancels the entry and sends into oblivion. HOWEVER the attachments and their thumbnail files remain on the server forever.
Would there be a way to either delete attachments after some time if they don't show up in an entry? Or some other magic trick with the browser? My logbook directories are already full of orphan files that I need to seek and destroy.
Also, any thoughts on automatically cleaning up a logbook directory when the damage is done?
Louis |
67031
|
Mon Mar 21 17:42:15 2011 |
| Louis de Leseleuc | louis.deleseleuc@nrc-cnrc.gc.ca | Bug report | Linux | 2.9.0 | Re: Cleaning up attachments |
Stefan Ritt wrote: |
Louis de Leseleuc wrote: |
I noticed a behavior that might be irritating.
After attaching/uploading files to an entry and before submitting it, one might press 'Back' or close the browser window.
This in effect cancels the entry and sends into oblivion. HOWEVER the attachments and their thumbnail files remain on the server forever.
Would there be a way to either delete attachments after some time if they don't show up in an entry? Or some other magic trick with the browser? My logbook directories are already full of orphan files that I need to seek and destroy.
Also, any thoughts on automatically cleaning up a logbook directory when the damage is done?
Louis
|
Well, this is not so easy. When you leave the browser (via 'Back' or just by closing), it has no way to communicate with the elog server. I could put in some JavaScript, but if people switch off JavaScript there is no way. On the other hand it might be simple to write just a little shell script, which goes through all files on the server and checks if the file name occurs in some elog entry. This can probably be done with some combination of "find" and "grep", but I'm not a shell script expert.
|
How about this:
Whenever a new file is uploaded, it would first be stored in a temporary directory. When the entry gets submitted, the files would be moved to the logbook directory and the entry edited accordingly.
Any wrongfully stored file would remain in that temp dir. Starting/restarting the daemon would cleanup that directory. Seems like a simpler approach and does not involve scripting the browser. |
67075
|
Wed Jun 1 18:17:36 2011 |
| Louis de Leseleuc | louis.deleseleuc@nrc-cnrc.gc.ca | Bug report | Linux | 2.7 | Re: HELP - URGENT - odd ELOG behaviour |
Sara Vanini wrote: |
PS: maybe this dump could give a clue..... what's the directory of size
12288
.
created on Jun 1 14:08 ... ? has it screwed up elog?
Sara
[vanini@nbvanini ~]$ ls -latr /usr/local/elog/logbooks/work/
-rw-r--r-- 1 elog elog 3443 May 30 12:31 110530a.log
-rw-r--r-- 1 elog elog 38956 May 30 14:17 110322a.log
-rw-r--r-- 1 elog elog 48804 May 31 10:05 110302a.log
-rw-r--r-- 1 elog elog 75644 May 31 17:09 110427a.log
-rw-r--r-- 1 elog elog 4079 May 31 18:58 110531a.log
-rw-r--r-- 1 elog elog 77316 Jun 1 10:43 110113a.log
drwxr-xr-x 2 elog elog 12288 Jun 1 14:08 .
-rw-r--r-- 1 elog elog 2904 Jun 1 14:20 110601a.log
|
Since you used the -a switch for ls, the current directory '.' i.e. work/ is included in the list. I have the same kind of output. No worries.
Are you experiencing problems with ELOG? |
67335
|
Fri Sep 14 17:59:44 2012 |
| Louis de Leseleuc | louis.deleseleuc@nrc-cnrc.gc.ca | Bug report | Linux | 2.9.2-2455 | ELOG crashes when editing threads |
Hi,
I am experiencing repeated crashing of the elog daemon.
If I go into select mode while in threaded view, I can select an entire thread by selecting the top entry.
When I do so then press the Edit button, the server crashes.
I have to manually restart it. Syslog shows no error.
This does not happen under Summary or Full view.
Running Ubuntu 12.04, ELOG 2.9.2-2455
I can provide my elog.cfg if necessary.
Cheers!
Louis
P.S. i just crashed the forums ELOG following those same steps!! Sorry!! At least it was restarted in no time. |
67377
|
Wed Nov 7 20:48:03 2012 |
| Louis de Leseleuc | louis.deleseleuc@nrc-cnrc.gc.ca | Request | Linux | 2.9.2 | Re: Support for modern Linux |
Vinícius Ferrão wrote: |
Hello folks,
Can we have a better support under modern Linux distributions?
I'm trying to install elog in our webserver and it's becoming a boring task. First of all theres only RPM packages. And we really don't like the Red Hat method, so we use Debian Servers. More package mainteners would be nice.
The software appears to be working correctly, but there are some bugs (or perhaps missing dependencies?); the init script put in /etc/rc.d/init.d is broken under Debian:
First of all because it's in /etc/rc.d.
The second problem is in this line:
# Source function library.
#. /etc/rc.d/init.d/functions
The file doesn't even exists.
|
The Debian init script contributed here has been working quite well for me for the last few Ubuntu versions. Unless you edit it, it sets the elog base directory to /etc so that's where you have to put your themes dir, resources, .conf file, scripts, logbooks, etc. I use symlinks to actually store my logbooks elsewhere.
I would also vote for a sane deb package. Right now, when I upgrade ELOG, I don't even run make install , I just copy the compiled binaries to their respective directories (/usr/bin or /usr/sbin). The rest stays the same. |
69394
|
Wed Oct 13 02:38:34 2021 |
| Lin Wang | wanglin@ihep.ac.cn | Question | Linux | Unknown | How to access PSI Elog data from other web clients |
We want to develop separate mobile web pages for the web applications deployed at CSNS accelerator, including the PSI Elog.
In Elog, is there RESTful API or HTTP/JSON or HTTP/XML interface for other web clients to access?
Or is there any workaround? |
69847
|
Sun Dec 8 22:00:32 2024 |
| Liam Gaffney | liam.gaffney@liverpool.ac.uk | Request | Linux | commit 6ee1005 | Reuqest to extract X-Forwarded-Name and X-Forwarded-Email when using webserver |
When using the Webserver authentication in combination with "File" and "Self register = 3", it is possible to keep track of registrations and control access still. This is very useful, and upon clicking on the logbook for the first time, the user is asked to register by typing their username, full name and email address.
First issue here is that they can still edit the box with their username, which might cause confusion if somebody decides to choose a different username and is then surprised about why they cannot automatically login again. Is it possible to lock this field from being edited?
The second issue is more minor, but the user has to manually type their name and email address, even though the webserver may already be able to provide this information in the headers. Specifically, it would be useful to read the name from the X-Forwarded-Name header and email address from the X-Forwarded-Email header.
My config file snippet is below:
Authentication = Webserver, File
allow password change = 0
Password file = webserver.passwords
Self register = 3
|
69871
|
Wed Apr 2 13:01:34 2025 |
| Liam Gaffney | liam.gaffney@liverpool.ac.uk | Bug report | Linux | commit 30ada1df | New elog from template should update the subdir |
Hello. We are using explicity subdir names on our elog server to manage a large number of "Top groups" and sub "groups". When we create a new logbook from a template in the same group, it would be beneficial to automatically give a new subdir based on the previous one. At the very least, it should not reuse the same parameter as the template (see below).
At the moment, it copies the subdir parameter from the template logbook, which results in the new logbook writing to the same location as the template. That is very confusing and has the potential to be harmful as people can (and recently did) decide to delete these "duplicate" entries. But they are not duplicates, they are the exact same entries as the template logbook and deleting them removes them forever!
The way around this at the moment is to manually update the subdir after copying, but then the logbooks need to be re-indexed before the new logbook will display correctly. That requires a manual restart of the elogd process, which is less than ideal. |