From: Martin M. <mar...@de...> - 2003-09-24 11:40:05
|
Howdy folks, I am just on another VirtualMin-Session and am trying to activate some Webalizer-Statistics. When it goes to enhance a report to use "Custom options" Webmin hangs on this ... >/usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf >\_ /usr/libexec/webmin/webalizer/save_log.cgi > \_ sh -c crontab -u root -e >/dev/null 2>/dev/null > \_ crontab -u root -e Nothing happens ... Webmin does not freeze but it seems there is nothing coming back from the system. I restarted Webmin and killed the lost processes for root. >sh -c crontab -u root -e >/dev/null 2>/dev/null > \_ crontab -u root -e Then I logged back to Webmin and reinstalled the Webalizer-Module. No success ... >/usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf >\_ /usr/libexec/webmin/webalizer/save_log.cgi > \_ sh -c crontab -u root -e >/dev/null 2>/dev/null > \_ crontab -u root -e What I actually did was using the line "Run on selected schedule .." as well which is new because it looks "english" in a "german" environment ;-) I reached out to insert the values "manually" in webmin, which works fine and in addition to this I could make "Custom options" work as well. So actually I think there is something wron in the save_log.cgi when it comes to "Run on selected schedule ..". If there is anything I could try again for a more debugging output, please let me know. kind regards Martin Mewes --=20 Novacote Flexpack - Division of COIM Deutschland GmbH c/o IT/IS-Department - Hamburg - Germany |
From: Hugo C. <hug...@ya...> - 2003-09-24 13:08:27
|
--- Martin Mewes <mar...@de...> wrote: > If there is anything I could try again for a more > debugging output, > please let me know. > I don't know anything about the webalizer module, so perhaps my answer is a bit naive : what I always do if a process seems to hang, is to use strace to attach to the process. e.g. if index.cgi (PID==12) seems to hang, strace -p 12. Perhaps using the '-s' option can be usefull to read pending error messages in a process buffer. Of course this works only if you own the processes ie. if you are root in this case. Hugo __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Martin M. <mm...@ag...> - 2003-09-24 18:05:27
|
Howdy, Am Mittwoch, 24. September 2003 15:08 schrieb Hugo Cornelis: > > If there is anything I could try again for a more > > debugging output, > > please let me know. > > I don't know anything about the webalizer module, so > perhaps my answer is a bit naive : what I always do if > a process seems to hang, is to use strace to attach to > the process. > > e.g. if index.cgi (PID==12) seems to hang, strace -p > 12. Perhaps using the '-s' option can be usefull to > read pending error messages in a process buffer. Of > course this works only if you own the processes ie. if > you are root in this case. Thanks for this ... Well, here are the results from the "strace"-jury, to whom it may concern: I initiated Webalizer-Stats with "Run on selected schedule .." and "strace -p 28911" as root gives ... write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 write(1, "Do you want to retry the same ed"..., 36) = 36 read(0, "", 4096) = 0 write(2, "Enter Y or N\n", 13) = 13 and so forth ... kind regards Martin -- http://webmin.mamemu.de/ WebMin-Mirror http://webmin.mamemu.de/download.html WebMin Translations Official Webmin/Usermin Translation Co-Ordinator 2003/2004 http://www.webmin.com/mailing-trans.html |
From: Jamie C. <jca...@we...> - 2003-09-24 23:30:54
|
Martin Mewes wrote: > Howdy, > > Am Mittwoch, 24. September 2003 15:08 schrieb Hugo Cornelis: > > >>>If there is anything I could try again for a more >>>debugging output, >>>please let me know. >> >>I don't know anything about the webalizer module, so >>perhaps my answer is a bit naive : what I always do if >>a process seems to hang, is to use strace to attach to >>the process. >> >>e.g. if index.cgi (PID==12) seems to hang, strace -p >>12. Perhaps using the '-s' option can be usefull to >>read pending error messages in a process buffer. Of >>course this works only if you own the processes ie. if >>you are root in this case. > > > Thanks for this ... > > Well, here are the results from the "strace"-jury, to whom it may > concern: > > I initiated Webalizer-Stats with "Run on selected schedule .." > > and "strace -p 28911" as root gives ... > > write(1, "Do you want to retry the same ed"..., 36) = 36 > read(0, "", 4096) = 0 > write(2, "Enter Y or N\n", 13) = 13 > write(1, "Do you want to retry the same ed"..., 36) = 36 > read(0, "", 4096) = 0 > write(2, "Enter Y or N\n", 13) = 13 > write(1, "Do you want to retry the same ed"..., 36) = 36 > read(0, "", 4096) = 0 That does explain quite a lot actually.. When you select the new 'Run on selected schedule' option, Webmin uses a special schedule format in the crontab file like @hourly or @monthly, which is only supported by Vixie-cron. However, your system doesn't seem to be using Vixie-cron, and so is choking on that schedule format .. And clearly the module needs to handle this kind of failure better, instead of letting cron go into an infinite loop! Which Linux distribution are you running there? I had assumed that all Linux variants came with Vixie-cron, except Trustix. - Jamie |
From: Martin M. <mar...@de...> - 2003-09-25 05:31:41
|
Hi Jamie, Jamie Cameron <jca...@we...> wrote: >> write(1, "Do you want to retry the same ed"..., 36) =3D 36 >> read(0, "", 4096) =3D 0 >> write(2, "Enter Y or N\n", 13) =3D 13 >> write(1, "Do you want to retry the same ed"..., 36) =3D 36 >> read(0, "", 4096) =3D 0 >> write(2, "Enter Y or N\n", 13) =3D 13 >> write(1, "Do you want to retry the same ed"..., 36) =3D 36 >> read(0, "", 4096) =3D 0 > >That does explain quite a lot actually.. When you select the new 'Run=20 >on selected schedule' option, Webmin uses a special schedule format in=20 > the crontab file like @hourly or @monthly, which is only supported=20 >by Vixie-cron. However, your system doesn't seem to be using=20 >Vixie-cron, and so is choking on that schedule format .. And clearly=20 >the module needs to handle this kind of failure better, instead of=20 >letting cron go into an infinite loop! > >Which Linux distribution are you running there? I had assumed that all=20 > Linux variants came with Vixie-cron, except Trustix. To be verbose ... webmin/software -> Search for cron --> anacron 2.3-17 --> crontabs 1.10-1 --> vixie-cron 3.0.1-63 webmin/webmin/edit_os.cgi -> Redhat Linux 7.2 webmin/config.cgi?cron -> Supports Vixie-Cron extensions? - Yes -> Path to Vixie-Cron system crontab file - /etc/crontab I will send you other details via feedback if necessary ... kind regards Martin Mewes --=20 Novacote Flexpack - Division of COIM Deutschland GmbH c/o IT/IS-Department - Hamburg - Germany |
From: Jamie C. <jca...@we...> - 2003-09-25 06:08:28
|
Martin Mewes wrote: > Hi Jamie, > > Jamie Cameron <jca...@we...> wrote: > > >>>write(1, "Do you want to retry the same ed"..., 36) = 36 >>>read(0, "", 4096) = 0 >>>write(2, "Enter Y or N\n", 13) = 13 >>>write(1, "Do you want to retry the same ed"..., 36) = 36 >>>read(0, "", 4096) = 0 >>>write(2, "Enter Y or N\n", 13) = 13 >>>write(1, "Do you want to retry the same ed"..., 36) = 36 >>>read(0, "", 4096) = 0 >> >>That does explain quite a lot actually.. When you select the new 'Run >>on selected schedule' option, Webmin uses a special schedule format in >> the crontab file like @hourly or @monthly, which is only supported >>by Vixie-cron. However, your system doesn't seem to be using >>Vixie-cron, and so is choking on that schedule format .. And clearly >>the module needs to handle this kind of failure better, instead of >>letting cron go into an infinite loop! >> >>Which Linux distribution are you running there? I had assumed that all >> Linux variants came with Vixie-cron, except Trustix. > > > To be verbose ... > > webmin/software > -> Search for cron > --> anacron 2.3-17 > --> crontabs 1.10-1 > --> vixie-cron 3.0.1-63 > > webmin/webmin/edit_os.cgi > -> Redhat Linux 7.2 > > webmin/config.cgi?cron > > -> Supports Vixie-Cron extensions? - Yes > -> Path to Vixie-Cron system crontab file - /etc/crontab > > I will send you other details via feedback if necessary ... What happens if you run crontab -e at some user and add a cron job like : @hourly ls -l >/dev/null Does it accept the cron job, or complain that the new line is not valid? - Jamie |
From: Martin M. <mar...@de...> - 2003-09-25 07:34:03
|
Hi Jamie, Jamie Cameron <jca...@we...> wrote: >> I will send you other details via feedback if necessary ... > >What happens if you run crontab -e at some user and add a cron job=20 >like : > >@hourly ls -l >/dev/null > >Does it accept the cron job, or complain that the new line is not valid? ###################################################################### Test as "macmewes": $ crontab -e @hourly ls -l >/dev/null =46ile /tmp/crontab.3500 saved. crontab: installing new crontab $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.3500 installed on Thu Sep 25 09:28:56 2003) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) @hourly ls -l >/dev/null ###################################################################### Test as "root" for "macmewes" which webmin would do .. # crontab -u macmewes -e @hourly ls -l >/dev/null =46ile /tmp/crontab.3670 saved. crontab: installing new crontab # crontab -u macmewes -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.3670 installed on Thu Sep 25 09:32:08 2003) # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $) @hourly ls -l >/dev/null ###################################################################### Works fine ... kind regards Martin Mewes --=20 Novacote Flexpack - Division of COIM Deutschland GmbH c/o IT/IS-Department - Hamburg - Germany |
From: Hugo C. <hug...@ya...> - 2003-09-25 13:38:08
|
Hi, I have two questions : 1. In /usr/libexec/webmin, many subdirectories have a file called 'defaultacl'. The purpose is (superficially) clear. What is not fully clear to me, is how miniserv.pl deals with them. I have added a few modules in a new directory. Should this directory have a 'defaultacl' file and what should be its contents ? 2. I have a system, with name 'sems' (in /etc/hosts). This name is not public, the public name is nfshco3. So I log into webmin on another machine via the URL 'http://nfshco3/webmin/'. Browsing the webmin hierarchy is ok. I go to network->host addresses->edit host address. Do some changes, apply. Now webmin tries to identify the host sems' and fails, allthough I logged in via the name 'nfshco3'. The changes are correctly applied to /etc/hosts. Is it possible to change this ? Hugo __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Jamie C. <jca...@we...> - 2003-09-25 22:43:20
|
On Thu, 2003-09-25 at 23:38, Hugo Cornelis wrote: > Hi, > > > I have two questions : > > 1. In /usr/libexec/webmin, many subdirectories have a > file called 'defaultacl'. The purpose is > (superficially) clear. What is not fully clear to me, > is how miniserv.pl deals with them. I have added a > few modules in a new directory. Should this directory > have a 'defaultacl' file and what should be its > contents ? A module only needs a defaultacl file if it allows webmin users to be given different levels of access to the module. This is covered in http://www.webmin.com/modules.html#acls . The defaultacl file defines the default full permissions for users who haven't had any explicitly set. > 2. I have a system, with name 'sems' (in /etc/hosts). > This name is not public, the public name is nfshco3. > So I log into webmin on another machine via the URL > 'http://nfshco3/webmin/'. Browsing the webmin > hierarchy is ok. I go to network->host > addresses->edit host address. Do some changes, apply. > Now webmin tries to identify the host sems' and > fails, allthough I logged in via the name 'nfshco3'. > The changes are correctly applied to /etc/hosts. Is > it possible to change this ? Do you mean your browser is trying to access the host 'sems', because webmin has re-directed it to that host? - Jamie |
From: Hugo C. <hug...@ya...> - 2003-09-26 08:52:55
|
Yes, indeed. The redirect uses the ENV variables to construct a redirect. But for me it is a surprise that the values of these variables are set by apache, not by webmin (I am using apache as proxy to webmin). Still have to figure out a solution. Hugo --- Jamie Cameron <jca...@we...> wrote: > On Thu, 2003-09-25 at 23:38, Hugo Cornelis wrote: > > 2. I have a system, with name 'sems' (in > /etc/hosts). > > This name is not public, the public name is > nfshco3. > > So I log into webmin on another machine via the > URL > > 'http://nfshco3/webmin/'. Browsing the webmin > > hierarchy is ok. I go to network->host > > addresses->edit host address. Do some changes, > apply. > > Now webmin tries to identify the host sems' and > > fails, allthough I logged in via the name > 'nfshco3'. > > The changes are correctly applied to /etc/hosts. > Is > > it possible to change this ? > > Do you mean your browser is trying to access the > host 'sems', because > webmin has re-directed it to that host? > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: Jamie C. <jca...@we...> - 2003-09-26 12:01:36
|
On Thu, 2003-09-25 at 17:34, Martin Mewes wrote: > Hi Jamie, > > Jamie Cameron <jca...@we...> wrote: > > >> I will send you other details via feedback if necessary ... > > > >What happens if you run crontab -e at some user and add a cron job > >like : > > > >@hourly ls -l >/dev/null > > > >Does it accept the cron job, or complain that the new line is not valid? > > ###################################################################### > > Test as "macmewes": > > $ crontab -e > @hourly ls -l >/dev/null > > File /tmp/crontab.3500 saved. > crontab: installing new crontab > > $ crontab -l > > # DO NOT EDIT THIS FILE - edit the master and reinstall. > # (/tmp/crontab.3500 installed on Thu Sep 25 09:28:56 2003) > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp > $) > @hourly ls -l >/dev/null > > ###################################################################### > > Test as "root" for "macmewes" which webmin would do .. > > # crontab -u macmewes -e > @hourly ls -l >/dev/null > > File /tmp/crontab.3670 saved. > crontab: installing new crontab > > # crontab -u macmewes -l > # DO NOT EDIT THIS FILE - edit the master and reinstall. > # (/tmp/crontab.3670 installed on Thu Sep 25 09:32:08 2003) > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp > $) > @hourly ls -l >/dev/null > > ###################################################################### > After doing some more testing, I have found the cause of this problem - it is not in the Cron module itself (as I first thought), but in the way the Webalizer module interfaces with it. Updates to fix the problem have been posted at http://www.webmin.com/updates.html . Thanks for pointing this out! - Jamie |