Hello,
I’m a newbie
I have webmin 1.550 and virtualmin instaled on ubuntu server 10.04.2.
Today all clients were logged out and didn’t log in anymore. So I 've opened webmin and found the folowing message:
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.550 Date: Thu, 21 Jul 2011 15:53:05 GMT Content-type: text/html Connection: close
Error - Perl execution failed
postfix::is_postfix_running failed : Echec de la requête sur la configuration postfix pour obtenir la valeur actuelle du paramètre queue_directory: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory at /usr/share/webmin/web-lib-funcs.pl line 1360.
Hmm, it looks like your Postfix configuration file is missing. That’s an unusual issue
Is it possible someone could have accidentally removed it?
Anyhow, to get that back, you’d need to restore it from a backup. You may also want to verify that in /etc/postfix, a master.cf file exists there as well – that’s also needed for Postfix to function.
Hello Eric,
it’s possible that someone have removed it accidentally, but I really don’t know how.
And I also really don’t know how to restore it. Is there a topic anywhere how to do this?
Thanks
Vincent
I usually make backups with partimage of windows installations, but I didn’t for a linux. I didn’t have any problems like this before with a linux installation…
Is there another way, or will I have to make a complete reinstall?
Well, it’s pretty unusual for files to go missing – however, anything is capable of happening (including disk failure!), so it’s always good to have a full backup, no matter what operating system you’re working with.
Let’s start here though, so that we know the extent of the problem… what is the output of this command:
By the way, I’ve shutted down the server with webmin, but at home I can’t access to the server with webmin??? IP address for eth0 didn’t change.
Under System information, I’ve noticed:
=> There are 2 zombie processes.
Okay, so it just looks like you’re missing the main.cf file.
The following is what a default main.cf looks like on Ubuntu 10.04. What you could do is, as root, take the following lines, and put them into /etc/postfix/main.cf, and then restart Postfix using “/etc/init.d/postfix restart”.
Also, on the line beginning with “mydestination”, you’ll want to make sure your system’s hostname is listed at the end there in place of where it says “hostname.domain.tld”.
Well, you need to create a new file containing the above contents.
You could use a text editor on your server such as nano, and copy and paste the contents in there… or you could create the file locally, and copy it up to your server using SFTP, FTP, or the like.
Personally, I’d use a text editor on the server, but there’s other ways to do it
So what do I have to do now?
By the way, I still can’t access to webmin: in my browser I put the right address : https://192.168.0.88:10000 and receive the answer : the server at the address 192.168.0.88 takes too long time to answer!
Hmm, so what output do you receive if you type this command:
ls -ld /etc/ssl
Also, what output do you receive if you type this:
dmesg | tail -10
The first command will show if there’s a directory named “/etc/ssl” – if not, that’s really odd, as it appears to be missing too!
The second command will show recent kernel output… if files just start missing, it’s possible someone deleted them. But it’s also possible that there’s a problem with the hard disk. If there’s hard disk issues, those might show up in the kernel output.
Webmin is here working very well. It seems the server works as DHCP server too (I didn’t know that before, so my collegues were without internet this week-end!) When I’m looking into status of the server, there aren’t any failings anymore. Just notice that the NFS server isn’t working.
On the command ls -ld /etc/ssl I’ve got the answer:
Hmm, it sounds like you’re having a few problems there!
I don’t see any unusual messages in your dmesg output.
Webmin doesn’t act as a DHCP server… so Webmin being down shouldn’t prevent anyone from getting an IP address. If DHCP isn’t working, that means that the DHCP daemon isn’t running, or is otherwise malfunctioning.
Samba isn’t setup automatically, that’s something you would need to configure. Was that once working?
However, Samba isn’t needed if your users are just using FTP to access your server.
In webmin, I see that the DHCP server is activated. So when the server was down, no-one could get a IP addess.
Samba was configured earlier. Windows clients (xp-pro) were connected to the domain and so had access to the files. Some Windows clients (xp-home) used an executive called “kix” to connect to the server.
From ubuntu clients, I was connecting using “connect to server, partage windows share, username, domain” connect, and then password.
If you’re looking at Webmin -> Servers -> DHCP, that’s Webmin’s way of configuring the system DHCP daemon that exists on your server.
I don’t believe Webmin contains a built-in DHCP server – it wouldn’t need one since all major distributions include a DHCP service in their software. That said, if you’re seeing something I’m not – I’ve been wrong on more than one occasion about what features Webmin comes with
It sounds like a number of things all stopped working all at the same time though… Postfix, Samba, NFS… do you know of anything else that happened around the same time that might have affected all of that? It’s rare that any one of those problems would come up, so having 3 services all stop functioning at the same time suggests a problem of some sort
I really don’t know what happened. I’ve heard a few minutes ago from a colleague that one other knows the password and was creating an account for himself and then delete it. Meanwhile, i already have changed the password. So at this time I’m sure I am the only one to access Webmin.
About DHCP and webmin, I really don’t know myself. I have to recognize that it is a relative who came to program us the server. And as he is a professor, he went on holiday to the end of August. So I can’t ask him any help for still one month.