Page 1 of 1

[DONE] webmin fails to run

PostPosted: Jul 1st, '14, 18:21
by ceppe1968
Hi,

Tried to install the package webmin in a new Mageia 4.1 installation. Package installs as expected and no messages for dependencies etc, nor package failure.

Upon trying to start the service it fails, following the instructions and as such logged messages are :
Code: Select all
[root@visionary webmin]# systemctl status webmin.service -l
webmin.service - LSB: Webmin is a remote administration tool using web-browser
   Loaded: loaded (/etc/rc.d/init.d/webmin)
   Active: failed (Result: exit-code) since di 2014-07-01 18:16:09 CEST; 51s ago
  Process: 4352 ExecStart=/etc/rc.d/init.d/webmin start (code=exited, status=127)

jul 01 18:16:09 visionary systemd[1]: Starting LSB: Webmin is a remote administration tool using web-browser...
jul 01 18:16:09 visionary webmin[4352]: Webmin installation failed, I can't go further.
jul 01 18:16:09 visionary webmin[4352]: Starting Webmin/etc/rc.d/init.d/webmin: regel 36: /etc/webmin/start: Bestand of map bestaat niet
jul 01 18:16:09 visionary systemd[1]: webmin.service: control process exited, code=exited status=127
jul 01 18:16:09 visionary systemd[1]: Failed to start LSB: Webmin is a remote administration tool using web-browser.
jul 01 18:16:09 visionary systemd[1]: Unit webmin.service entered failed state.


Running the setup.sh from the /usr/share/webmin directory (as root), gives me a message to run it as root...
How to resolve?

Re: webmin fails to run

PostPosted: Jul 2nd, '14, 20:11
by doktor5000
Maybe one of the issues from https://bugs.mageia.org/show_bug.cgi?id=3444 came back ...

But please do the following, as root run
Code: Select all
LC_ALL=C systemctl restart webmin.service; LC_ALL=C systemctl status webmin.service -l
LC_ALL=C rpm -V webmin

as the error message is not english it's hard to tell what is wrong.

Re: webmin fails to run

PostPosted: Jul 3rd, '14, 18:21
by ceppe1968
Tnx.
Basically the error indicates /etc/webmin/start "file or directory does not exist"
...
Code: Select all
[root@visionary ~]# LC_ALL=C systemctl restart webmin.service; LC_ALL=C systemctl status webmin.service -l
Job for webmin.service failed. See 'systemctl status webmin.service' and 'journalctl -xn' for details.
webmin.service - LSB: Webmin is a remote administration tool using web-browser
   Loaded: loaded (/etc/rc.d/init.d/webmin)
   Active: failed (Result: exit-code) since Thu 2014-07-03 18:18:12 CEST; 8ms ago
  Process: 4271 ExecStart=/etc/rc.d/init.d/webmin start (code=exited, status=127)

Jul 03 18:18:12 visionary webmin[4271]: Webmin installation failed, I can't go further.
Jul 03 18:18:12 visionary webmin[4271]: Starting Webmin/etc/rc.d/init.d/webmin: regel 36: /etc/webmin/start: Bestand of map bestaat niet
Jul 03 18:18:12 visionary systemd[1]: webmin.service: control process exited, code=exited status=127
Jul 03 18:18:12 visionary systemd[1]: Failed to start LSB: Webmin is a remote administration tool using web-browser.
Jul 03 18:18:12 visionary systemd[1]: Unit webmin.service entered failed state.

Re: webmin fails to run

PostPosted: Jul 3rd, '14, 18:23
by ceppe1968
Returns nothing...

Code: Select all
[root@visionary ~]# LC_ALL=C rpm -V webmin
[root@visionary ~]#


Then did a "urpme webmin" then an "urpmi webmin"...
Code: Select all
[root@visionary ~]# urpmi webmin


    $MIRRORLIST: media/core/updates/webmin-1.690-1.mga4.noarch.rpm
installeren van webmin-1.690-1.mga4.noarch.rpm vanaf /var/cache/urpmi/rpms                                   
Voorbereiden...                  ############################################################################
      1/1: webmin                ############################################################################
webmin.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig --no-reload --no-redirect webmin on
[root@visionary ~]#

Re: webmin fails to run

PostPosted: Jul 3rd, '14, 19:23
by ceppe1968
Found it...

Edit /usr/share/webmin/os_list.txt and add (respect tabbing):
Code: Select all
Mageia Linux         $2   mandrake-linux   $2   $etc_issue =~ /Mageia\s+Linux\s+release\s+4\s+\(Official\)\s+for\s+(i586|x86_64)/i


Edit /usr/share/webmin/setup.sh and change following line:
Code: Select all
id | grep "uid=0(" >/dev/null

to
Code: Select all
id | grep "UID=0(" >/dev/null


Then do:
Code: Select all
systemctl stop webmin.service
rm -rf /etc/webmin
/usr/share/webmin/postinstall.sh
systemctl --system daemon-reload
systemctl start webmin.service


:lol:

Re: webmin fails to run

PostPosted: Jul 3rd, '14, 20:37
by doktor5000
Well Mageia is already contained in the list:
Code: Select all
[doktor5000@Mageia4 ~]$ grep -i mageia /usr/share/webmin/os_list.txt
Mageia Linux                    $1      mandrake-linux  2011    `cat /etc/mageia-release 2>/dev/null` =~ /Mageia\s+release\s+(\d+)/i


And apart from that, what did you do to your system that id returns uppercase output?

IMHO it's not webmin that's broken.

Anyway, please mark the thread accordingly by editing the topic of the first post and prefix it by [DONE], thanks

Re: [DONE] webmin fails to run

PostPosted: Jul 3rd, '14, 20:42
by ceppe1968
Well, as I mentioned a fresh install from 4.1 iso... so nothing special.
;)

In any case the test would be more strict when issuing a : id -u -r command.