Koozali.org: home of the SME Server

HELP! EMERGENCY - I DELETED SAMBA

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #15 on: July 03, 2007, 07:59:11 PM »
Well, I did an upgrade from CD-ROM.

It works quite okay, I can use signal-event again, the booting takes longer (it is starting all the services, i guess e-smith.d is back again.

But it still doesnt work. That is: all my users are gone, I cannot reach the mailserver or the server from outside, the server manager (internally connected) doesn't work (it does when I use the browser in the console) and lots of other things are gone, yet the files /home/e-smith/files/users/John are all still there, as well as the Mailbox files.

I did backup all of the above folders. What can I do? I am scared that when I create a new user John, the old ones files are deleted. Please help! Thank you again!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: HELP! EMERGENCY - I DELETED SAMBA
« Reply #16 on: July 03, 2007, 08:04:02 PM »
Quote from: "piedie"

Sleepy as I sometimes am, and trying to fix a printer error, i wanted to reinstall cups.


cups is not installed as part of SME server. Your server is obviously customised, so your post is off-topic in this forum.

Offline pfloor

  • ****
  • 889
  • +1/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #17 on: July 03, 2007, 10:37:55 PM »
Quote from: "CharlieBrady"
Quote from: "piedie"
/sbin/e-smith/signal-event post-upgrade works fine (so thanks)

But when i try /sbin/e-smith/signal-event reboot this error comes up: Can't open directory /etc/e-smith/events/reboot


In that case, you have more missing that samba rpms. You are missing e-smith-base (or at least some of the files from it).

You can say that again!

FYI:
# yum remove samba samba-common samba-client
Removes an additional 40 packages due to dependencies (mostly "e-smith-xxx and 3 smeserver-xxx packages).

I would assume that the manager panel will do the same without the "Is this ok [y/N]:" prompt.

I think this is a bit dangerous, I'll open a bug report.
In life, you must either "Push, Pull or Get out of the way!"

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #18 on: July 04, 2007, 12:51:20 AM »
Probably that was what went wrong, then.

Any idea how to fix my users and other stuff again?

And sorry for posting it here, feel free to move the topic, I was just in panic.... And still am, a little bit.

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #19 on: July 04, 2007, 01:25:12 AM »
piedie

Here is the new wiki, go and read everything there.
http://wiki.contribs.org/Main_Page

See this post re the correct repositories to have enabled.
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Which_repositories_should_be_enabled

Go to server manager and disable any additional repositories and ensure that ONLY those mentioned above are enabled ie
CentOS - os
CentOS - updates
SME Server - addons
SME Server - os
SME Server - updates

Then run
yum update
(either in server manager or at command prompt)
& ensure you run the Reconfigure option after that
or manually do
signal-event post-upgrade
reboot

Then test your machine again, is it still problematic.

Also what history does your machine have, ie is it a clean install of sme 7.1, was it a sme7.0 install that has been upgraded, was it a sme 6.x upgraded.

What other add ons have you installed, what other tweaks or modification or customization (eg custom-templates) have you done.

Importantly, was this machine working in all respects prior to your attempted cups install ?
What was the printing problem you were having ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #20 on: July 04, 2007, 03:50:12 PM »
Quote
Then run
yum update
(either in server manager or at command prompt)
& ensure you run the Reconfigure option after that
or manually do
signal-event post-upgrade
reboot


No improvement. I still can't access the server-manager, still no users etcetera.

This server was a clean 7.1 install, about four months old. I did add some things, like Vacation messages, eGroupware, DAR2 and some other stuff. It is in server-only mode and acts as fileserver and mail server. A Linksys router is the gateway.

I did backup the folders as advised, and I guess that there must be something in there, for instance a user-list. See, the user folders and files are still there, but they do not exist when i access the manager trough the panel. Any ideas would be highly appreciated.

The machine was working great, before i removed samba, except for the printing problem. I don't know what it was, but i deleted the printer in de Manager and connected the printer to another PC. Works also fine.

Pieter

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #21 on: July 04, 2007, 04:09:27 PM »
Now, when I try to access the console (by logging in as 'admin') it doesn't come up any more. I see a screen full of text, but before I can read anything the page cleares to show the prompt again. I CAN login as root, however.

???

Also, when booting up, irqbalace says [FAILED]

Maybe this helps...

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #22 on: July 04, 2007, 04:21:38 PM »
piedie

pfloor has given you a good clue re what (probably) needs fixing.

Here is the list of rpms that my 7.1.3 system is going to remove when I run
yum remove samba samba-common samba-client
from the command prompt.
Check to see if those rpms are installed on your live server.
eg
rpm -qa e-smith-base
etc etc
Install them again if necessary.
Do a signal-event post-upgrade
reboot
after installing any missing rpms


Removing:
 samba                   i386       3.0.10-1.4E.12.2  installed          24 M
 samba-client            i386       3.0.10-1.4E.12.2  installed         6.2 M
 samba-common            i386       3.0.10-1.4E.12.2  installed          13 M
Removing for dependencies:
 e-smith-LPRng           noarch     1.14.0-4.el4.sme  installed          50 k
 e-smith-apache          noarch     1.2.0-8.el4.sme  installed          45 k
 e-smith-backup          noarch     1.14.0-12.el4.sme  installed         107 k
 e-smith-base            noarch     4.18.0-25.el4.sme  installed         596 k
 e-smith-domains         noarch     1.4.0-5.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-18.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-19.el4.sme  installed          84 k
 e-smith-hosts           noarch     1.14.0-6.el4.sme  installed          74 k
 e-smith-ibays           noarch     1.2.0-4.el4.sme  installed          69 k
 e-smith-imp             noarch     1.13.0-8.el4.sme  installed          64 k
 e-smith-ingo            noarch     1.1-5.el4.sme    installed          31 k
 e-smith-ldap            noarch     4.12.0-5.el4.sme  installed          46 k
 e-smith-mysql           noarch     1.12.0-11.el4.sme  installed          29 k
 e-smith-netatalk        noarch     1.14.0-3.el4.sme  installed          23 k
 e-smith-ntp             noarch     1.16.0-9.el4.sme  installed          57 k
 e-smith-oidentd         noarch     1.2.0-3.el4.sme  installed          20 k
 e-smith-packetfilter    noarch     1.18.0-2.el4.sme  installed          45 k
 e-smith-php             noarch     1.12.0-3.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-2.el4.sme  installed          31 k
 e-smith-pptpd           noarch     1.12.0-6.el4.sme  installed          28 k
 e-smith-proftpd         noarch     1.12.0-6.el4.sme  installed          31 k
 e-smith-proxy           noarch     4.14.0-4.el4.sme  installed          32 k
 e-smith-qmail           noarch     1.10.0-11.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-5.el4.sme  installed          77 k
 e-smith-radiusd         noarch     1.0.0-12.el4.sme  installed          67 k
 e-smith-samba           noarch     1.14.0-26.el4.sme  installed          61 k
 e-smith-starterwebsite  noarch     1.0.0-2.el4.sme  installed          30 k
 e-smith-tinydns         noarch     1.0.0-6.el4.sme  installed          40 k
 e-smith-turba           noarch     1.7.0-12.el4.sme  installed          39 k
 e-smith-viewlogfiles    noarch     1.8.0-2.el4.sme  installed          17 k
 smeserver-dar2          noarch     0.0.1-1dmay      installed          76 k
 smeserver-ezmlm-web     noarch     1.1.2-11         installed          49 k
 smeserver-proxypass     noarch     0.0.3-1          installed          28 k
 smeserver-qpsmtpd       noarch     1.2.1-32.el4.sme  installed          36 k
 smeserver-saco-qmHandle  noarch     1.3.1-1          installed          50 k
 smeserver-spamassassin  noarch     1.4.0-11.el4.sme  installed         6.5 k
 smeserver-support       noarch     1.6.0-32.el4.sme  installed          73 k
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #23 on: July 04, 2007, 04:56:27 PM »
I am missing over 22, like apache and php. I just installed it. Lets see....

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #24 on: July 04, 2007, 05:00:58 PM »
This is GREAT!

I can now access the server manager
eGroupware, including the settings is BACK!
I can e-mail using egroupware, but mail sent to the server is being bouced

Still, no users. Although they can log in at the server. Also, an (important ibay is gone, but the files and the folder is still there)

WORKING:

Manager, eGroupware (users can login, appointments still there), apache (webserver reachable)

NOT WORKING:

Users, email (using eGroupware i can see my mail, read it, but not send any), webmail (Horde, /webmail)

Offline pfloor

  • ****
  • 889
  • +1/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #25 on: July 05, 2007, 01:17:30 AM »
Did some testing.

"yum remove samba*" (or selecting the samba packages from the software installer) removes 43 packages however trying to recover by updating with the CD only restores 22 packages back.  You can try the following to re-install any missing packages:

Code: [Select]
# yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
NOTE: the above command is all on one line.
In life, you must either "Push, Pull or Get out of the way!"

Offline raem

  • *
  • 3,972
  • +4/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #26 on: July 05, 2007, 02:06:33 AM »
piedie

>...mail sent to the server is being bounced
> ....email (using eGroupware i can see my mail, read it, but not send any), webmail (Horde, /webmail)

What error message(s) are received ?
Also check the various log files to see what is happening.
Was email working correctly before you stuffed things up ?
Can you connect to your email accounts using a email client, can you send & receive using an email client ?


> ...no users. Although they can log in at the server.

Please be specific and provide details, what does "no users" really mean?
Do you mean you cannot see any Users in the server manager panel, but your users can in fact login with their original user names & passwords ?
What do you mean by "login at the server" ?
Can they login to attached workstations & webmail etc ?


> ...an (important ibay is gone, but the files and the folder is still there)

Again please be specific, ie what do you mean by "gone" ?
Do you mean the ibay name does not appear in the server manager panel, but in fact you can see the folder & files using the Linux command prompt ?

Can you access that ibay (& other ibays too) using Windows file sharing eg Windows Explorer ?
...

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #27 on: July 05, 2007, 02:09:22 PM »
You guys are the best, thanks for helping me!

Mail is now working again. I can connect using Thunderbird, or using eGroupware, mail sent to all of the users is being delivered okay. I can also send mail from inside the network or outside. It had to do with some mail-relay and security-settings.

Webmail (Horde) does not work. When booting the server I see some MySQL errors, when surfing to server/webmail i get this error: DB Error: connect failed

Quote
Do you mean you cannot see any Users in the server manager panel, but your users can in fact login with their original user names & passwords ?


That is exactely what I mean. When they do login (and I meant using one of the connected workstations) they can see their files. No files are missing.

Quote

Do you mean the ibay name does not appear in the server manager panel, but in fact you can see the folder & files using the Linux command prompt ?


You're good! That is exactely what i mean. But for one ibay (?). On a workstation surfing to \\Servername\basis it does not work. The files in /..../ibays/basis are still there though. I did create a new ibay, called New, and created a symbolic link to basis. This works, people can access New from their workstations, but this is a Duct-tape solution.

Also, all of my pseudonyms and groups are gone; i cannot see them in the manager, but they also do not work.

pfloor: I will try this. Thank you

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #28 on: July 05, 2007, 02:20:02 PM »
Quote from: "pfloor"
Did some testing.

"yum remove samba*" (or selecting the samba packages from the software installer) removes 43 packages however trying to recover by updating with the CD only restores 22 packages back.  You can try the following to re-install any missing packages:

Code: [Select]
# yum --disablerepo=* --enablerepo=smeos --enablerepo=smeupdates install e-smith* smeserver*
NOTE: the above command is all on one line.


This was what i was missing after the 22 or so missing packages yesterday.

Code: [Select]
Installing: aspell-sv                  
  Installing: e-smith-dynamicdns-yi      
  Installing: e-smith-dynamicdns-dyndns.or
  Installing: smeserver-locale-sv        
  Installing: e-smith-dynamicdns-tzo

Offline piedie

  • **
  • 58
  • +0/-0
HELP! EMERGENCY - I DELETED SAMBA
« Reply #29 on: July 05, 2007, 02:52:57 PM »
And antoher funny thing: i tried to send a mail to somebody who left for holiday a week or two ago. His vacation-message did work! Though, in Vacations in the Manager it says: 'There are no users in your system'.

Thanks! Sorry for the three posts after each other, btw.

P