Dear All,
I've downloaded the CUPS Printer Administration module
developed by Al Alder today and successfully. I got an error while accessing the module.I'm giving the error message below. I'm using Webmin-1.070.
Please help me out.
Undefined subroutine &main::sched_running called at
/var/www/html/adminpro/cupsadmin/index.cgi line 10.
*****************************************************
I'll be really looking forward for your reply
Thanks in Adv
Praveen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[I received the following response from the author of the module.]
Date: Tue, 8 Jul 2003 07:29:42 -0500 (CDT)
From: Al Alder
To: Tommy Trussell
Subject: Re: CUPS Webmin module -- version supported?
Tommy,
The reason you get the error:
Undefined subroutine &main::sched_running called at
/usr/libexec/webmin/cupsadmin/index.cgi line 10.
is because of the way webmin is designed. When I wrote
cuspadmin, the latest version of RedHat was 7.2. Webmin
expects there to be a config file for whatever version you
are running. Well, when a new versions come out and you try
to load cupsadmin you get the above error. If you look in
the cupsadmin directory you will see that there are files like:
config-mandrake-linux-8.0
and
config-redhat-linux-7.3
etc.
The above files are just copies of the config.info file that
you see in the directory. So as new versions of whatever
distribution you have come out, they do not install properly.
The install process copies the config-distro-linux-version
file to the /etc/webmin/cupsadmin/config file. But since this
file does not exist for the new distro version an empty
file is copied to /etc/webmin/cuspadmin/config.
To solve your problem do the following:
Copy the config.info file to the /etc/webmin/cuspadmin/config
file. Note the name change from config.info to just config.
or
If you are totally anal, you can do the following:
1) copy the config.info file to config-distro-linux-version
for your distro/version.
2) in a temporary directory do:
%cd /tmp/foo
%tar xvf /path/to/cupsadmin.wbm
3) put a copy of your config-distro in the temporary directory
%cp config-distro-linux-version .
4) re-create the cuspadmin.wbm file:
%tar cvf /path/to/cupsadmin.wbm .
5) remove the installation of cupsdadmin from webmin
6) install again using the newly created cuspadmin.wbm
--
Later,
Al
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-09-04
I got the error too and copied the config file as explained.
Now it works... but...
:(
I thought I can admin CUPS and not just stop and start the demon (that's already possible in the System/BootUp).
Or maybe I'm missing something important? the installation went ok.
bibi
Roby
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear All,
I've downloaded the CUPS Printer Administration module
developed by Al Alder today and successfully. I got an error while accessing the module.I'm giving the error message below. I'm using Webmin-1.070.
Please help me out.
ERROR:
*****************************************************
HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Wed, 11
Jun 2003 10:06:38 GMT Content-type: text/html Connection: close
Error - Perl execution failed
Undefined subroutine &main::sched_running called at
/var/www/html/adminpro/cupsadmin/index.cgi line 10.
*****************************************************
I'll be really looking forward for your reply
Thanks in Adv
Praveen
I get the same error (except my CUPS is installed on a different path).
It looks like the module is calling a nonexistent entry point in CUPS, so maybe it was written for a different CUPS version.
I'm writing to the author to see if he can shed any light on it.
[I received the following response from the author of the module.]
Date: Tue, 8 Jul 2003 07:29:42 -0500 (CDT)
From: Al Alder
To: Tommy Trussell
Subject: Re: CUPS Webmin module -- version supported?
Tommy,
The reason you get the error:
Undefined subroutine &main::sched_running called at
/usr/libexec/webmin/cupsadmin/index.cgi line 10.
is because of the way webmin is designed. When I wrote
cuspadmin, the latest version of RedHat was 7.2. Webmin
expects there to be a config file for whatever version you
are running. Well, when a new versions come out and you try
to load cupsadmin you get the above error. If you look in
the cupsadmin directory you will see that there are files like:
config-mandrake-linux-8.0
and
config-redhat-linux-7.3
etc.
The above files are just copies of the config.info file that
you see in the directory. So as new versions of whatever
distribution you have come out, they do not install properly.
The install process copies the config-distro-linux-version
file to the /etc/webmin/cupsadmin/config file. But since this
file does not exist for the new distro version an empty
file is copied to /etc/webmin/cuspadmin/config.
To solve your problem do the following:
Copy the config.info file to the /etc/webmin/cuspadmin/config
file. Note the name change from config.info to just config.
or
If you are totally anal, you can do the following:
1) copy the config.info file to config-distro-linux-version
for your distro/version.
2) in a temporary directory do:
%cd /tmp/foo
%tar xvf /path/to/cupsadmin.wbm
3) put a copy of your config-distro in the temporary directory
%cp config-distro-linux-version .
4) re-create the cuspadmin.wbm file:
%tar cvf /path/to/cupsadmin.wbm .
5) remove the installation of cupsdadmin from webmin
6) install again using the newly created cuspadmin.wbm
--
Later,
Al
I got the error too and copied the config file as explained.
Now it works... but...
:(
I thought I can admin CUPS and not just stop and start the demon (that's already possible in the System/BootUp).
Or maybe I'm missing something important? the installation went ok.
bibi
Roby