Koozali.org: home of the SME Server

upgrading sme 7.0 to 7.3

Offline farsh

  • *
  • 16
  • +0/-0
upgrading sme 7.0 to 7.3
« on: September 17, 2008, 10:12:40 PM »
I am upgrading from sme 7.0 to 7.3.
have followed the contribs but still getting the following error from repomd.xml


yum update
Setting up Update Process
Setting up repositories
http://mirror.contribs.org/pub/smeserver/releases/7/smeaddons/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: smeaddons
failure: repodata/repomd.xml from smeaddons: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from smeaddons: [Errno 256] No more mirrors to try.


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #1 on: September 18, 2008, 03:36:23 AM »
farsh

Did you follow ALL of the instructions here
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Yum_Updates
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #2 on: September 18, 2008, 05:01:19 AM »
I did yum clean all . , next I found that there are no results for
db yum_repositories show
so , it looks like nothing is enabled,  looking at your link, I could not find the exact repository names for this list
CentOS - os
CentOS - updates
SME Server - addons
SME Server - os
SME Server - updates.

I suppose I should enable each by the following command :
yum --enablerepo=repositoryname



thanks for your help

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #3 on: September 18, 2008, 06:25:06 AM »
farsh

Quote
I suppose I should enable each by the following command :
yum --enablerepo=repositoryname

No that's a one off enabling of the specified repo(s) just for installing the nominated package
See steps below for resetting the default repos.

Quote
I did yum clean all

Did you follow that with
yum update dbus dbus-glib smeserver-support smeserver-yum yum yum-plugin-fastest-mirror python-sqlite
signal-event post-upgrade; signal-event reboot

and then follow these steps
http://wiki.contribs.org/Adding_Software#Restoring_Default_Yum_Repositories

and then this
yum update
signal-event post-upgrade
signal-event reboot


Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #4 on: September 18, 2008, 07:39:59 AM »
mary ,
thanks , I did get as far as yum update , but I ran into the following results:
yum update
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
smeos                     100% |=========================| 1.9 kB    00:00
smeupdates                100% |=========================| 1.9 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files

(process:9388): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL' failed

(process:9388): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL' failed
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 97, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 477, in doCommands
    return self.updatePkgs()
  File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs
    self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "__init__.py", line 260, in doSackSetup
  File "repos.py", line 277, in populateSack
  File "/usr/lib/python2.3/site-packages/sqlitecachec.py", line 40, in getPrimary
    self.repoid))
TypeError: Can not create index on requires table: near "NOT": syntax error
================================================================
No new rpms were installed. No additional commands are required.
================================================================

thanks for your help.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #5 on: September 18, 2008, 08:38:22 AM »
farsh

Did you reinitialise the default databases as per the wiki steps ?

What does this now give ?
db yum_repositories show
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #6 on: September 18, 2008, 04:59:28 PM »
Mary

yes, I did the following steps
yum update dbus dbus-glib smeserver-support smeserver-yum yum yum-plugin-fastest-mirror python-sqlite
signal-event post-upgrade; signal-event reboot

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases


expand-template /etc/yum.conf

and then yum_update returned the errors as I reported.

results of  db yum_repositories show
addons=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    Name=CentOS - addons
    Visible=no
    status=disabled
base=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    Name=CentOS - os
    Visible=yes
    status=enabled
centosplus=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    Name=CentOS - centosplus
    Visible=no
    status=disabled
contrib=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    Name=CentOS - contrib
    Visible=no
    status=disabled
extras=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    Name=CentOS - extras
    Visible=no
    status=disabled
smeaddons=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeaddons
    Name=SME Server - addons
    Visible=yes
    status=enabled
smecontribs=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smecontribs
    Name=SME Server - contribs
    Visible=no
    status=disabled
smedev=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smedev
    Name=SME Server - dev
    Visible=no
    status=disabled
smeos=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeos
    Name=SME Server - os
    Visible=yes
    status=enabled
smetest=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smetest
    Name=SME Server - test
    Visible=no
    status=disabled
smeupdates=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeupdates
    Name=SME Server - updates
    Visible=yes
    status=enabled
smeupdates-testing=repository
    EnableGroups=yes
    GPGCheck=yes
    MirrorList=file:///etc/yum.repos.d/mirrors-smeupdates-testing
    Name=SME Server - updates testing
    Visible=yes
    status=disabled
updates=repository
    EnableGroups=no
    GPGCheck=yes
    MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    Name=CentOS - updates
    Visible=yes
    status=enabled
[root@ims2 ~]#

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #7 on: September 19, 2008, 12:18:12 AM »
I found this
------- Comment #28 From Charlie Brady 2007-10-14 07:09:08 -------
(In reply to comment #25)
> I manually updated sqlite as shown below.  Yum seems to be running again.

Good find.

> wget
> ftp://ibiblio.org/pub/linux/distributions/smeserver/releases/7.2/smeos/i386/SME/RPMS/sqlite-3.3.6-2.i386.rpm
> yum localinstall sqlite-3.3.6-2.i386.rpm


that eliminated the errors I was getting on yum update.

proceeding from here... on.

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #8 on: September 19, 2008, 02:32:23 AM »
It seemed that I had some progress except , there missing dependencies, and did all steps again from scratch, and now I have another problem..

cd /home/e-smith/db/
mv yum_repositories yum_repositories.po
/etc/e-smith/events/actions/initialize-default-databases
expand-template /etc/yum.conf

ERROR: No templates were found for /etc/yum.conf.
 at /sbin/e-smith/expand-template line 45

so , what should I do now,
I am burning a cd for 7.3, could I upgrade using cd without loosing any data on the hard drive ?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #9 on: September 19, 2008, 06:00:23 AM »
farsh

Quote
I am burning a cd for 7.3, could I upgrade using cd without loosing any data on the hard drive ?

Yes, just make sure you select upgrade rather than new install.
CD upgrade may be the quickest/easiest way to resolve your problems.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline farsh

  • *
  • 16
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #10 on: September 20, 2008, 01:16:53 AM »
mary,

thanks , that worked, and got me out of the mess .

looking at the server manager, and software installer, it shows me that there are software to be installed, however I think this is perhaps due to the left overs from the yum update that was unsuccessful before upgrade with CD.

what do you suggest to make sure that the installer will operate clean installs from the fresh 7.3 upgrade.

thanks again..
farsh

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: upgrading sme 7.0 to 7.3
« Reply #11 on: September 20, 2008, 03:23:17 AM »
farsh

There have been many updates released since the sme7.3CD was released.

You should run the updates from either the server manager panel or command prompt ie
yum update

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.