Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: SoftDux on February 03, 2008, 06:55:13 AM
-
Hi all
I don't know why, but after I remove (or tried) to the nut-client from my server-manager (http://sme/server-manager) > Software > Remove software, it's asif my whole sme has died.
server-manager isn't available anymore, and I can't seem to find it. Unfortunatelly there's a lot of data on this machine that I want to recover before I just reinstall it, and risk loosing everything.
But I now have a problem that all emails are being "porxy'd" trough sme, which gives me errrors, and I don't know how to get SSH back again. So, I have some questions, please.
1. How do I get server-manager back up and running?
2. If that's not possible, how to I tell sme not to proxy emails, asin, were in the system do I disable this, from the shell?
3. How do I enable SSH access for the lan from the shell again?
Basically, I'm looking for the files that needs to be edited, which I presume is in /etc/e-smith, to disable email proxy & enabld SSH. Just so that all is working well untill I've been able to rescue all my data from it.
-
Hmmm,
=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
nut-client i386 2.2.0-3.3.el4 installed 146 k
Removing for dependencies:
e-smith-LPRng noarch 1.14.0-5.el4.sme installed 50 k
e-smith-apache noarch 1.2.0-16.el4.sme installed 44 k
e-smith-backup noarch 1.14.0-16.el4.sme installed 107 k
e-smith-base i386 4.18.0-81.el4.sme installed 603 k
e-smith-domains noarch 1.4.0-8.el4.sme installed 42 k
e-smith-dynamicdns-dyndns noarch 1.4.0-3.el4.sme installed 19 k
e-smith-dynamicdns-dyndns.org noarch 1.4.0-4.el4.sme installed 19 k
e-smith-dynamicdns-tzo noarch 1.4.0-3.el4.sme installed 18 k
e-smith-dynamicdns-yi noarch 1.4.0-3.el4.sme installed 18 k
e-smith-email noarch 4.16.0-22.el4.sme installed 214 k
e-smith-flexbackup noarch 1.10.0-3.el4.sme installed 31 k
e-smith-horde noarch 1.13.0-22.el4.sme installed 86 k
e-smith-hosts noarch 1.14.0-10.el4.sme installed 72 k
e-smith-ibays noarch 1.2.0-5.el4.sme installed 69 k
e-smith-imp noarch 1.13.0-11.el4.sme installed 64 k
e-smith-ingo noarch 1.1-6.el4.sme installed 31 k
e-smith-ldap noarch 4.12.0-7.el4.sme installed 46 k
e-smith-mysql noarch 1.12.0-14.el4.sme installed 29 k
e-smith-netatalk noarch 1.14.0-6.el4.sme installed 23 k
e-smith-ntp noarch 1.16.0-13.el4.sme installed 57 k
e-smith-nutUPS noarch 1.2.0-17.el4.sme installed 2.5 k
e-smith-oidentd noarch 1.2.0-3.el4.sme installed 20 k
e-smith-packetfilter noarch 1.18.0-6.el4.sme installed 46 k
e-smith-php noarch 1.12.0-4.el4.sme installed 24 k
e-smith-pop3 noarch 1.2.0-3.el4.sme installed 23 k
e-smith-portforwarding noarch 1.2.0-6.el4.sme installed 30 k
e-smith-pptpd noarch 1.12.0-10.el4.sme installed 28 k
e-smith-proftpd noarch 1.12.0-10.el4.sme installed 32 k
e-smith-proxy noarch 4.14.0-10.el4.sme installed 33 k
e-smith-qmail noarch 1.10.0-14.el4.sme installed 44 k
e-smith-qmailanalog noarch 1.12.0-2.el4.sme installed 27 k
e-smith-quota noarch 1.10.0-7.el4.sme installed 77 k
e-smith-radiusd noarch 1.0.0-16.el4.sme installed 67 k
e-smith-starterwebsite noarch 1.0.0-2.el4.sme installed 30 k
e-smith-tinydns noarch 1.0.0-7.el4.sme installed 40 k
e-smith-turba noarch 1.7.0-16.el4.sme installed 38 k
e-smith-viewlogfiles noarch 1.8.0-7.el4.sme installed 17 k
nut i386 2.2.0-3.3.el4 installed 2.4 M
smeserver-fetchmail noarch 1.3.5-01 installed 171 k
smeserver-qpsmtpd noarch 1.2.1-47.el4.sme installed 51 k
smeserver-remoteuseraccess noarch 1.2-12.el4.sme installed 56 k
smeserver-spamassassin noarch 1.4.0-17.el4.sme installed 7.2 k
smeserver-support noarch 1.6.0-43.el4.sme installed 73 k
Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 44 Package(s)
Thats what you would loose with 7.3 in server-only mode.
Looks like just a lot of what makes SME SME. A basic linux would still be there.
Can you still yum?
-
This is a known bug (see http://bugs.contribs.org/show_bug.cgi?id=3133). The only known way to recover is to:
1-Pop in the cd, reboot and choose the "update" option.
This will re-install most of the packages. There is also a known bug with that proceedure (http://bugs.contribs.org/show_bug.cgi?id=3134) so you need to do the following to install any remaining base packages.
yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
-
Yes, the basic linux is still there, and it's almost working as expected.
I can configure it via the console, and it does routing & DHCP as it used to. I can also yum from the console. At this stage I have borrowed a KVM to make it easier to work on.
So, what can I do to fix it?
-
So, what can I do to fix it?
Follow Pauls advice.
If it was me, I would go straight to yum.
After a reboot, I would do a yum update to ensure everything was in sync.
-
I have read through the following bug: http://bugs.contribs.org/show_bug.cgi?id=3133#c0 and it explains exactly what happend to my machine
So, what can I safely do, without being able to backup anything, to get it working?
-
Since you still have yum you should do the following:
First look at the yum logs and see EXACTLY what was removed and then reinstall everything that was removed. I would start with:
yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
This will reinstall any missing core packages and should be the majority of the packages that were inadvertently removed. Then I would reinstall anything else that was removed one by one.
Then for good measure run:
yum update
P.S. Why did you try/need to remove nut-client in the first place?
-
Follow Pauls advice.
If it was me, I would go straight to yum.
After a reboot, I would do a yum update to ensure everything was in sync.
I'm busy doing that right now, will see what hapens ....
-
Since you still have yum you should do the following:
First look at the yum logs and see EXACTLY what was removed and then reinstall everything that was removed. I would start with:
Where do I get this log? Remember I don't have SSH access right now, so I need to switch between 2 PC's via KVM, and type what I read here :)
yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
I'm busy with this rigth now.....
This will reinstall any missing core packages and should be the majority of the packages that were inadvertently removed. Then I would reinstall anything else that was removed one by one.
Then for good measure run:
yum update
P.S. Why did you try/need to remove nut-client in the first place?
I couldn't get my MGE Nova 1000 USB UPS working, nut kept on telling me the driver isn't installed or something, so I tried to upgrade nut, with no success, thus I wanted to uninstall it, and then just reinstall it.
-
/var/log/yum/yum.log
Look at the entries at the end where they were "Erased" at the time you removed nut-client. Most of them will be e-smith-.... and smeserver-.... and those will get reinstalled by the command in my last post. Then just reinstall anything else that was erased.
-
Use this to narrow it down to the particular day. Just change the date.
[root@tiger ~]# cat /var/log/yum/yum.log |grep 'Jan 14' |grep Erased: |more
Jan 14 21:54:03 Erased: libupnp
Jan 14 22:59:11 Erased: pine
[root@tiger ~]#
-
It works!!!! Thanx for your help :)
This is the list of Erased software, how do I confirm if everything is installed again?
Feb 01 10:18:37 Erased: smeserver-spamassassin
Feb 01 10:18:38 Erased: e-smith-starterwebsite
Feb 01 10:18:39 Erased: smeserver-diskusage
Feb 01 10:18:39 Erased: e-smith-imp
Feb 01 10:18:41 Erased: e-smith-pptpd
Feb 01 10:18:42 Erased: e-smith-LPRng
Feb 01 10:18:43 Erased: e-smith-qmailanalog
Feb 01 10:18:43 Erased: e-smith-dynamicdns-dyndns.org
Feb 01 10:18:43 Erased: e-smith-dynamicdns-tzo
Feb 01 10:18:44 Erased: e-smith-dynamicdns-yi
Feb 01 10:18:44 Erased: smeserver-support
Feb 01 10:18:45 Erased: e-smith-proftpd
Feb 01 10:18:46 Erased: e-smith-horde
Feb 01 10:18:48 Erased: nut
Feb 01 10:18:49 Erased: e-smith-ntp
Feb 01 10:18:50 Erased: e-smith-email
Feb 01 10:18:51 Erased: e-smith-ibays
Feb 01 10:18:52 Erased: e-smith-domains
Feb 01 10:18:52 Erased: e-smith-dynamicdns-dyndns
Feb 01 10:18:53 Erased: smeserver-egroupware
Feb 01 10:18:56 Erased: e-smith-ldap
Feb 01 10:18:57 Erased: e-smith-oidentd
Feb 01 10:18:58 Erased: nut-client
Feb 01 10:18:58 Erased: e-smith-php
Feb 01 10:18:59 Erased: e-smith-tinydns
Feb 01 10:18:59 Erased: e-smith-packetfilter
Feb 01 10:19:00 Erased: e-smith-ipmasq
Feb 01 10:19:00 Erased: e-smith-hosts
Feb 01 10:19:01 Erased: e-smith-apache
Feb 01 10:19:02 Erased: e-smith-mysql
Feb 01 10:19:03 Erased: smeserver-inventory-tools
Feb 01 10:19:05 Erased: smeserver-dar2
Feb 01 10:19:06 Erased: e-smith-quota
Feb 01 10:19:07 Erased: smeserver-qpsmtpd-tnef2mime
Feb 01 10:19:07 Erased: e-smith-netatalk
Feb 01 10:19:08 Erased: e-smith-viewlogfiles
Feb 01 10:19:09 Erased: smeserver-phpmyadmin
Feb 01 10:19:23 Erased: e-smith-base
Feb 01 10:19:24 Erased: e-smith-ingo
Feb 01 19:20:54 Erased: kernel-module-slip
Feb 01 19:21:00 Erased: kernel-smp-module-slip
Feb 01 19:23:51 Erased: kernel-module-appletalk
Feb 01 19:23:52 Erased: kernel-smp-module-appletalk
Feb 01 19:23:53 Erased: kernel-module-ppp
Feb 01 19:23:54 Erased: kernel-smp-module-ppp
-
What version did you have and did you update it.
Feb 01 19:20:54 Erased: kernel-module-slip
Feb 01 19:21:00 Erased: kernel-smp-module-slip
Feb 01 19:23:51 Erased: kernel-module-appletalk
Feb 01 19:23:52 Erased: kernel-smp-module-appletalk
Feb 01 19:23:53 Erased: kernel-module-ppp
Feb 01 19:23:54 Erased: kernel-smp-module-ppp
You wont find those in the latest version. Do rpm -qa | grep kmod to find their equivalents.
You could try the following. Just cut and paste the whole thing into a putty console.
/sbin/e-smith/yum \
--disablerepo=* \
--enablerepo=base \
--enablerepo=smeupdates \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeaddons \
list \
smeserver-spamassassin \
e-smith-starterwebsite \
smeserver-diskusage \
e-smith-imp \
e-smith-pptpd \
e-smith-LPRng \
e-smith-qmailanalog \
e-smith-dynamicdns-dyndns.org \
e-smith-dynamicdns-tzo \
e-smith-dynamicdns-yi \
smeserver-support \
e-smith-proftpd \
e-smith-horde \
nut \
e-smith-ntp \
e-smith-email \
e-smith-ibays \
e-smith-domains \
e-smith-dynamicdns-dyndns \
smeserver-egroupware \
e-smith-ldap \
e-smith-oidentd \
nut-client \
e-smith-php \
e-smith-tinydns \
e-smith-packetfilter \
e-smith-ipmasq \
e-smith-hosts \
e-smith-apache \
e-smith-mysql \
smeserver-inventory-tools \
smeserver-dar2 \
e-smith-quota \
smeserver-qpsmtpd-tnef2mime \
e-smith-netatalk \
e-smith-viewlogfiles \
smeserver-phpmyadmin \
e-smith-base \
e-smith-ingo \
kernel-module-slip \
kernel-smp-module-slip \
kernel-module-appletalk \
kernel-smp-module-appletalk \
kernel-module-ppp \
kernel-smp-module-ppp
-
mmm, I should have thought about it......
It seems all is well, thank you :)
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up repositories
smeaddons 100% |=========================| 951 B 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
smeos 100% |=========================| 951 B 00:00
smeupdates 100% |=========================| 951 B 00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - updates
Finished
Excluding Packages from CentOS - os
Finished
Installed Packages
e-smith-LPRng.noarch 1.14.0-6.el4.sme installed
e-smith-apache.noarch 1.2.0-16.el4.sme installed
e-smith-base.i386 4.18.0-88.el4.sme installed
e-smith-domains.noarch 1.4.0-8.el4.sme installed
e-smith-dynamicdns-dyndns.noarch 1.4.0-3.el4.sme installed
e-smith-dynamicdns-dyndns.org.noarch 1.4.0-4.el4.sme installed
e-smith-dynamicdns-tzo.noarch 1.4.0-3.el4.sme installed
e-smith-dynamicdns-yi.noarch 1.4.0-3.el4.sme installed
e-smith-email.noarch 4.16.0-23.el4.sme installed
e-smith-horde.noarch 1.13.0-22.el4.sme installed
e-smith-hosts.noarch 1.14.0-10.el4.sme installed
e-smith-ibays.noarch 1.2.0-5.el4.sme installed
e-smith-imp.noarch 1.13.0-11.el4.sme installed
e-smith-ingo.noarch 1.1-6.el4.sme installed
e-smith-ldap.noarch 4.12.0-7.el4.sme installed
e-smith-mysql.noarch 1.12.0-15.el4.sme installed
e-smith-netatalk.noarch 1.14.0-6.el4.sme installed
e-smith-ntp.noarch 1.16.0-13.el4.sme installed
e-smith-oidentd.noarch 1.2.0-3.el4.sme installed
e-smith-packetfilter.noarch 1.18.0-6.el4.sme installed
e-smith-php.noarch 1.12.0-4.el4.sme installed
e-smith-pptpd.noarch 1.12.0-10.el4.sme installed
e-smith-proftpd.noarch 1.12.0-11.el4.sme installed
e-smith-qmailanalog.noarch 1.12.0-2.el4.sme installed
e-smith-quota.noarch 1.10.0-7.el4.sme installed
e-smith-starterwebsite.noarch 1.0.0-2.el4.sme installed
e-smith-tinydns.noarch 1.0.0-7.el4.sme installed
e-smith-viewlogfiles.noarch 1.8.0-7.el4.sme installed
nut.i386 2.2.0-3.3.el4 installed
nut-client.i386 2.2.0-3.3.el4 installed
smeserver-spamassassin.noarch 1.4.0-17.el4.sme installed
smeserver-support.noarch 1.6.0-43.el4.sme installed
================================================================
No new rpms were installed. No additional commands are required.
================================================================
-
I just noticed you have some contribs erased.
You might want to add the line
--enablerepo=smecontribs \
to what I posted before.
You still have to manually go through it and tick them off.
-
What do you mean "go manually through and tick them off" ?
-
Compare the installed list with the erased list.
If they're not installed they wont say that, they just don't show up.