[DONE] webmin fails to run

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[DONE] webmin fails to run

Postby ceppe1968 » Jul 1st, '14, 18:21

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?
Last edited by ceppe1968 on Jul 3rd, '14, 20:40, edited 2 times in total.
ceppe1968
 
Posts: 9
Joined: Jul 24th, '11, 20:30

Re: webmin fails to run

Postby doktor5000 » Jul 2nd, '14, 20:11

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: webmin fails to run

Postby ceppe1968 » Jul 3rd, '14, 18:21

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.
ceppe1968
 
Posts: 9
Joined: Jul 24th, '11, 20:30

Re: webmin fails to run

Postby ceppe1968 » Jul 3rd, '14, 18:23

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 ~]#
ceppe1968
 
Posts: 9
Joined: Jul 24th, '11, 20:30

Re: webmin fails to run

Postby ceppe1968 » Jul 3rd, '14, 19:23

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:
Last edited by ceppe1968 on Jul 3rd, '14, 20:39, edited 2 times in total.
ceppe1968
 
Posts: 9
Joined: Jul 24th, '11, 20:30

Re: webmin fails to run

Postby doktor5000 » Jul 3rd, '14, 20:37

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [DONE] webmin fails to run

Postby ceppe1968 » Jul 3rd, '14, 20:42

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.
ceppe1968
 
Posts: 9
Joined: Jul 24th, '11, 20:30


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest