Koozali.org: home of the SME Server

Problem upgrading from 5.6 to 6.0

pvines

Problem upgrading from 5.6 to 6.0
« on: February 25, 2004, 06:25:39 PM »
Hi
I'm trying to upgrade a 5.6 server to 6.0 final and get problems when I reboot after the upgrade.
Followed the following process:

Used backup2ws to do a 911 backup to a Windows share
Put a new drive in server and installed 6.0
Installed the latest 6.0 beta of backup2ws
Restored 911 backup using back2ws, seemed to run without a problem.
In a terminal ran /sbin/e-smith/signal-event post-upgrade which ran with out a problem.
Rebooted.

When the machine restarts get stream of errors on the console with messages of the form:
setuidgid: fatal: unknown account smelog
setuidgid: fatal: unknown account cvmlog
etc
Let it run for a while but can't ssh into the box or get access to server manager.

Any suggestions, have looked through other postings and have not seen anything like this.

Many thanks.

Offline satovey

  • ****
  • 75
  • +0/-0
    • Yevotas Ministry Network
Problem upgrading from 5.6 to 6.0
« Reply #1 on: March 14, 2004, 11:44:16 PM »
HI,

I haven't tried upgrading to 6.0, but I have read in previouse posts that the primary ibay is moved from
/home/e-smith/files/primary to /home/e-smith/files/ibays/primary. What you may be experiencing is a conflict with a script that needs to be moved from the old primary to the new primary. I would also check to make sure that when you restored the files, the restore did not inadvertently put a primary directory in the old place. While this should not happen, if it did, you would have some odd errors. In your case the system is asking you to set the user id and the group id.

>>setuidgid: fatal: unknown account smelog
>>setuidgid: fatal: unknown account cvmlog

Check the user id and group id of the smelog and the cvmlog. Also, do a search to see if there are not more than two log files of each in different directories. If so, check the user id and group id of both copies of the log files and see if they match. I think if I am not mistaken, they should be set to root ownership.
Scott A Tovey

upgrade

upgrade from 5.6 to 6.0
« Reply #2 on: May 07, 2004, 03:35:46 AM »
I just did a 6.0 install and a restore.
and encountered the same errors.
It required adding the users
smelog
cvmlog
dnslog
imaplog
to /etc/passwd, /etc/group and /etc/shadow.
It also required removal of the restored
directory /home/e-smith/files/primary
and creating the link from there to
/home/e-smith/files/ibays/Primary

Anthony

Offline torrestech

  • **
  • 28
  • +0/-0
    • http://www.torrestech.com.au
upgrade from 5.6 to 6.0
« Reply #3 on: December 23, 2004, 09:07:31 AM »
I too have the same problem however i am not sure what you mean when you say to create the link from there to
/home/e-smith/files/ibays/Primary

Please elaborate for me. I know i am slow.


Adam
...

Offline torrestech

  • **
  • 28
  • +0/-0
    • http://www.torrestech.com.au
One more thing
« Reply #4 on: December 23, 2004, 09:13:37 AM »
Also sshd failed to start on boot.

Any ideas?
I backed up /home,/etc/e-smith/templates-custom,/etc/e-smith/templates-user-custom,/etc/group,/etc/gshadow,/etc/passwd,/etc/shadow,/etc/smbpasswd,/etc/ssh,/opt,/root,/var/lib/mysql to a second hard drive with tar cvf - directories listed above | split -b 1000m - backup.tar.

It all worked well and restored without errors. with the exception of those listed above.

Thanks.

Adam
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: upgrade from 5.6 to 6.0
« Reply #5 on: December 27, 2004, 03:35:54 AM »
Quote from: "upgrade"
I just did a 6.0 install and a restore.
and encountered the same errors.
It required adding the users
smelog
cvmlog
dnslog
imaplog
to /etc/passwd, /etc/group and /etc/shadow.
It also required removal of the restored
directory /home/e-smith/files/primary
and creating the link from there to
/home/e-smith/files/ibays/Primary

Anthony


How did you do the restore? The 6.0 built-in restore procedure is careful to merge existing and restored passwd and groups files so that no users are lost. If you used some other backup/restore software, it may not be so careful.

If you used the built-in backup/restore software, then you should report a bug, via the Bug Tracker on this site.

ephraims

Same Problem
« Reply #6 on: December 03, 2005, 09:37:18 AM »
Just wanted to know how you got on with this problem. I too have done the same did a full 911 backup with b2ws and then installed 6 all my rpms and then did the restore and same problem. Do you have a detailed step on how you solved this problem or the program that was resposible for creating these users. Any help would be great.

Thanks

Offline MSmith

  • *
  • 675
  • +0/-0
Problem upgrading from 5.6 to 6.0
« Reply #7 on: December 03, 2005, 01:17:45 PM »
Assuming your 5.6 is not too heavily customized, did you try simply copying your existing 5.6 setup to a new drive (try Norton Ghost or the free g4u) then running an *upgrade* install to 6.0?
...

ephraims

Ghost
« Reply #8 on: December 03, 2005, 11:09:44 PM »
Yes i did try a ghost and the ghosted system did boot up ok but then i tried to do the upgrade and no go. The first strange thing was that there was no sme contribs logo on bootup. Instead there was just a heap of c(number errors) then the os would load and it would have some error about swap file not ext3 compatable (not supported by os) and then would boot ok but would then not detect network cards. I even took out the nics and replaced them with some that i knew worked with sme 6 but no go. Would anybody happen to know the module that is causing my invalid users so that i can remove it b4 i do the backup. Also am i better doing a fresh 5.6 install installing no rpm but doing the restore then upgrading to 6 and then installing rpms? Which is the better way

Offline MSmith

  • *
  • 675
  • +0/-0
Problem upgrading from 5.6 to 6.0
« Reply #9 on: December 04, 2005, 04:31:38 AM »
That fresh 5.6 with the restore applied is a clever technique!  Let us know if it works; you've nothing to lose but a bit of time trying it out.
...