Page 1 of 1

[SOLVED] Webmin perl execution fails

PostPosted: Dec 16th, '12, 04:19
by mark9117
Brand new Mageia 2 install. I've got webmin installed and updated, but attempting to access modules like Cron, Scheduled Commands, produces:
Code: Select all
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.610 Date: Sun, 16 Dec 2012 02:16:38 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close
Error - Perl execution failed

Undefined subroutine &proc::list_processes called at /usr/libexec/webmin/cron/index.cgi line 44.



I've also noticed that trying to create a new user with the Users and Groups module yields this:

Code: Select all
Failed to save user : Missing file to open at WebminCore::/usr/libexec/webmin/web-lib-funcs.pl line 3018


I've uninstalled and reinstalled Webmin, updated it, reinstlled the Webmincron module, checked the config of that module.

I'm kind of stumped here. Any suggestions?

Thanks.

Mark

Re: Webmin perl execution fails

PostPosted: Dec 16th, '12, 11:06
by djennings
webmin is broken in mageia 2
As it happens a fixed version is just out for QA testing. If you enable the Core/Updates_Testing repository in MageiaControlCentre you can install the new version. Delete the /etc/webmin directory first to ensure the current configuration is not used.

Do not forget to disable the core/updates_testing repository after you have installed webmin or else you could end up installing all sorts of experimental stuff.

Let us know if you find any bugs in the new version.
https://bugs.mageia.org/show_bug.cgi?id=7803

Re: Webmin perl execution fails

PostPosted: Dec 16th, '12, 20:09
by mark9117
Awesome djennings. Thanks much for the info.


Mark

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 22:16
by doktor5000
So did this solve your problem?

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 22:19
by mark9117
doktor5000 wrote:So did this solve your problem?


Don't know yet. Haven't had the chance to try it.

Mark

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 22:32
by mark9117
doktor5000 wrote:So did this solve your problem?


Nope:

Code: Select all
# webmin
Starting webmin (via systemctl):  Warning: Unit file of created job changed on disk, 'systemctl --system daemon-reload' recommended.
Job failed. See system journal and 'systemctl status' for details.
                                                                                                                        [FAILED]
Installation problem. Please reinstall.


Trying again now.

Mark

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 22:38
by mark9117
Reinstalled. Got this:

Code: Select all
# service webmin restart
Restarting webmin (via systemctl):  Failed to issue method call: Unit webmin.service failed to load: No such file or directory. See system logs and 'systemctl status webmin.service' for details.


Logs don't seem to say anything about it.

Mark

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 23:08
by alf
mark9117 wrote:Reinstalled
Restarting webmin (via systemctl): Failed to issue method call: Unit webmin.service failed to load: No such file or directory.

plz show output of
Code: Select all
updatedb && locate webmin


just installed, works fine here. no probs neither in Cauldron nor MGA2.

ps. i simply used
Code: Select all
webmin
as root in console to start the service.

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 23:20
by mark9117
I tried that too.

Code: Select all
# webmin
Starting webmin (via systemctl):  Failed to issue method call: Unit webmin.service failed to load: No such file or directory. See system logs and 'systemctl status webmin.service' for details.
                                                                                                                        [FAILED]
Installation problem. Please reinstall.


And I did updatedb. Webmin is found at /usr/bin/webmin.

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 23:55
by alf
hum, that's weird, no idea atm. :(

ps. if you start the service via MCC and reboot?

Re: Webmin perl execution fails

PostPosted: Dec 17th, '12, 23:57
by mark9117
On a hunch I did a full service restart (# service -R) and I saw webmin shutdown, which was not happening when I tried cycling it individually. I tried to open it up, opted for the security exception and as I logged in, KDE restarted.

I'm not totally sure what the relationship was because I'm doing several other things at the same time. At any rate, I updated Webmin (again) and it installed with this:

Code: Select all
Webmin install complete. You can now login to https://spike:10000/
as root with your root password.
Re-creating /var/webmin directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or director


I assume this is the breakage mentioned by djennings above.

I logged on and did the same things I've been doing and got the same things I've been getting:

Code: Select all
The Cron jobs directory does not exist. Maybe the module's configuration is incorrect, or Cron is not installed?


I could go in and configure that module, but I'm pretty sure I'll get the same things I've been getting.

I'm going to try installing the version from testing again.

Mark

Re: Webmin perl execution fails

PostPosted: Dec 18th, '12, 00:05
by mark9117
Stand down - issue resolved.

I installed the version of Webmin referenced by djennings above and this time it worked. I was able to get logged in, change the theme to something I can work with and access the Cron module, etc.

We're good here. Thanks for the assist. Well done.

Take $20 out of petty cash and go home early.

Mark

Mark

Re: [SOLVED] Webmin perl execution fails

PostPosted: Dec 18th, '12, 00:21
by djennings
Glad to hear it Mark.
If you could take a moment to update the Bug report at https://bugs.mageia.org/show_bug.cgi?id=7803 with a note of what you tested and the architecture you are using it would save someone else covering the same ground
Thanks