Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: centos5.4 and BlueOnyx on your RaQ550 or xtr
PostPosted: Mon Oct 26, 2009 12:11 pm 
Offline
Site Admin

Joined: Tue Feb 10, 2009 3:50 pm
Posts: 59
Well i finally got around to trying this and after a few problems I think i have solved this :)
first if you want to try this make sure you have backups and if possible the RaQ restore disks (hopefully you wont need them)
If you are currently running a version of RHEL/CentOS earlier than 4.8 (cat /etc/redhat-release) then please do a proper ‘yum update’ and get yourself on 4.8. Although this is intended for CentOS it “should” (read: at own risk) work on RHEL systems as well, in the unfortunate situation that something does blow up please contact me and I will try to assist.
PLEASE DO THIS FIRST
This upgrade and the installation of BlueOnyx is easier to do with a fresh install on your server ! So I reinstalled Strongbolt1 without BlueQuartz to start with and then did a yum update to get me to Centos4.8 and went on to to this !!
You MUST yum update from the basic strongbolt 1 install.


The first thing we must do is make sure none of our core binaries, libraries or other content is set immutable as this will cause a package to fail on installation. If you are running an earlier version of LES or you use immutable bits on system paths (sbin/bin/share/include/libexec/etc) then you should run the following:
Code:
wget http://www.mr-webcam.com/RaQ-stuff/disable.les.rpmpkg
sh disable.les.rpmpkg
Once that is done we should go ahead and have a quick run through of cleaning up yum cache, double check that any pending updates are installed and rebuild the rpmdb:
Code:
rpm --rebuilddb
yum clean all
yum update
If the rpm rebuild hangs for more than a few minutes then you may need to manually clear the rpmdb files:
Code:
rm -f /var/lib/rpm/__db.00*
rpm --rebuilddb

If you run into any minor dependency issues for packages that are not essential, such as syslinux and lftp then you can either exclude them or better yet remove them. If you are not sure what a package does, then you should query it for description details and make an educated choice (rpm -q PACKAGE):
At this point you should be able to run a ‘yum update’ command with optional exclude and receive no errors (again, I recommend you remove conflicts items instead of using exclusions).
Next you you should get this small package that contains the needed packages for this upgrade in addition to a few that you might require to resolve dependency conflicts:
Code:
wget http://www.mr-webcam.com/RaQ-stuff/CentOS-5up.tar.gz
tar xvfz CentOS-5up.tar.gz
cd CentOS-5up
We need to go ahead and setup the centos-release package as follows:
Code:
rpm -Uhv centos-release-*
The CentOS-Base.repo was created as /etc/yum.repos.d/CentOS-Base.repo.rpmnew then go ahead and move it into the proper place:
Code:
mv /etc/yum.repos.d/CentOS-Base.repo.rpmnew /etc/yum.repos.d/CentOS-Base.repo
we are ready to go with kernel changes, this is an important part so pay attention. The key to successful upgrade is that you remove ALL OLD KERNELS as many packages will fail to install during the upgrade if they detect a release 4.x kernel due to minimum kernel version dependency checks. We will start with first installing the new kernel
Code:
rpm -ivh kernel-2.6.18-164.el5.i686.rpm kernel-devel-2.6.18-164.el5.i686.rpm --nodeps
NOTE: release 5.x has smp support integrated into the standard kernel, so no -smp version is required for mp systems

If you are running an older system the chances are you have got older kernel packages installed so make sure you get them all out of the way:
Code:
rpm -e $(rpm -qa | grep kernel | grep -v 2.6.18 | tr '\n' ' ')
you should now only have 2 kernel packages installed which are the 2.6.18 release 5.x kernels, DO NOT under any circumstance continue if you still got 2.6.9 release 4.x kernels packages still installed, remove them!

cleanup of /etc/grub.conf may be required, though if all went as planned then the rpm command should have done this up for us but review it anyways for good measure. You should find that 2.6.18-164.el5 is the only kernel in the file, if it is not go ahead and clean it by removing all older entries for 2.6.9 kernels.

There is a known bug with python-elementtree package versions which cause yum/rpm to think the release 4.x version is newer than the 5.x version, to get around this without blowing up the entire python installation we need to remove the package from just the rpmdb as follows:
Code:
rpm -e --justdb python-elementtree --nodeps

We can now go ahead and use yum to start the upgrade process, this is a dry run and will take a few minutes to compile list of available packages and associated dependency checks. You should carry the exclude options, if any, that you used during the ‘yum update’ process as so to avoid unresolvable dependencies:

You may end up with a small list of dependency errors, these should be resolved by again evaluating a packages need as a critical system component and either removing it with ‘rpm -e’ or excluding it with ‘–exclude’ (remember to query description with ‘rpm -q PACKAGE’ if you are unsure what something does).
You should now end up with a summary of actions that yum needs to perform, … this will take a bit to complete
Code:
yum upgrade


Once yum has completed (hopefully without major errors) we need to fix a few things, the first is the rpmdb needs a rebuild due to version changes that will cause any rpm commands to fail:
# rpm -qa
rpmdb: Program version 4.3 doesn’t match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 – (-30974)
error: cannot open Packages database in /var/lib/rpm

The above can be fixed by running this
Code:
rm -f /var/lib/rpm/__db.00*
rpm --rebuilddb
yum clean all
The next issue on the list is python-elementtree and python-sqlite, one or both of these may have ended up in a broken state that will cause all yum commands to break, so we will go ahead and reinstall both of these for good measure:
Code:
rpm -e --justdb python-elementtree --nodeps
rpm -ivh python-elementtree-1.2.6-5.el5.i386.rpm
rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm --nodeps --force
The yum command should now work, go ahead and run it with no options, if you do not get any errors you are all sorted.
so finally reboot your RaQ
Code:
shutdown -rf now

When your RaQ reboots it will just display your IP address.
you can now see you have CentOS 5.4 installed
by typing in
cat /etc/redhat-release
the result should be CentOS release 5.4 (Final)

now shall we install BlueOnyx


open up ssh
and run this
Code:
yum install quota wget

Run the following commands to enable quotas and build the quota file.
Code:
/bin/mount -o remount /home
/sbin/quotacheck -cuga
/sbin/quotaon -au

It is important that you check your file /etc/fstab
and that you have an entry like this
/dev/hda6 /home ext3 defaults,usrquota,grpquota 1 2
PLEASE edit the file manually if you need to !
It is also a good idea to reboot now
Next run this
Code:
mkdir /install
cd /install

and then
Code:
wget http://devel.blueonyx.it/pub/BlueOnyx/TAR/BlueOnyx-5106R-CentOS5-i386-20090402.tar.gz
Extract the TAR-ball:
Code:
tar zxvf BlueOnyx-5106R-CentOS5-i386-20090402.tar.gz
Change into the extracted subdirectory:
Code:
cd BlueOnyx-5106R-CentOS5-i386-20090402
Run the provided installation script:
Code:
./install.sh
This script will perform the required steps to install BlueOnyx. For this it installs a few selected RPMs that it brought aboard (mainly the YUM repository files for BlueOnyx). Then it will "yum update" your CentOS5 install and will (through YUM) fetch all required RPMs from the YUM repositories to install BlueOnyx.

At the end of the install it will perform some post-install actions to enable all required services and to set up BlueOnyx in a fashion that it is useable right away.

When the install has finished, it shows you this message:
Quote:
The installation has finished!
Some installations may show an error here "cannot create admin"dont worry about this just reboot and login to your server and you should see the blueonyx setup pages.

Please point your browser to http://xxx.xxx.xxx.xxx/login and login with
username 'admin' and password 'blueonyx'

** Your root password is same as admin password. **
** SSH root logins are disabled by default now! **
At that point connect to the IP address of your server with a web browser and finish the initial web based setup.

Once the web based initial setup has finished, your new BlueOnyx server is ready for use

many thanks to Ryan from R-fx Networks and all others that kept me working on this


Top
 Profile  
 
 Post subject: Re: centos5.4 and BlueOnyx on your RaQ
PostPosted: Wed Jan 13, 2010 9:06 pm 
Offline

Joined: Wed Jan 13, 2010 8:24 pm
Posts: 33
I tried to reinstall my raq550 under blueonyx again but since last month I had that at each installation :
Code:
[Phase 5 : turn unneeded daemons off ...]


[Phase 6 : restart daemons...]

Shutting down kernel logger:                               [  OK  ]
Shutting down system logger:                               [  OK  ]
Starting system logger:                                    [  OK  ]
Starting kernel logger:                                    [  OK  ]
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 5 of /etc/httpd/conf.d/ssl_perl.conf:
connect: No such file or directory\t(in cleanup) Could not connect to /usr/sausalito/cced.socket: No such file or directory\n
                                                           [FAILED]
Shutting down cced: done
Starting cced:                                             [  OK  ]
Running CCE constructors:
Stopping admin web server:  httpd.admsrv                   [  OK  ]
tarting admin web server:                                 [  OK  ]
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
Preparing...                ########################################### [100%]
   1:blueonyx-cd-installer  ########################################### [100%]

[Phase 7 : Cleaning up ...]


[Phase 8 : Running post install scripts ...]

Failed to add admin user. Sorry, something went wrong!
Please try to run this script again ...
You have mail in /var/spool/mail/root
[root@localhost BlueOnyx-5106R-CentOS5-i386-20090402]#



I had send to Michael Stauber the error and he reply by :

Code:
Whenever CCEd.init starts, it runs a couple of "constructors". One of them is this one:

/usr/sausalito/constructor/base/user/50_addAdmin.pl

It checks if user "admin" already exists. If not, that account is created.

Now if user "admin" isn't there yet, then this means that one thing or other hasn't worked. Maybe cced.init didn't start, maybe the script /usr/sausalito/constructor/base/user/50_addAdmin.pl did run into an error, because of a misconfiguration, or maybe an RPM that's needed isn't installed.

So check if cced.init is running or even better: Restart it:

/etc/init.d/cced.init restart

If that doesn't help, run /usr/sausalito/constructor/base/user/50_addAdmin.pl manually as "root" and see if it produces an error.


But there is no error at all when I launch the deamon or the script ... do you have any idea of why the admin account isn't created ??? (tested at least 15 times)

Thks

Achel Jay
Open Skill


Top
 Profile  
 
 Post subject: Re: centos5.4 and BlueOnyx on your RaQ
PostPosted: Fri Jan 15, 2010 9:20 am 
Offline
Site Admin

Joined: Tue Feb 10, 2009 3:50 pm
Posts: 59
the install dosent add an admin user, at this point can you log into your server from the gui
if so you will get the gui setup pages and create your own admin user and then go on to set up time date etc.
I do mention this in my original post
Quote:
The installation has finished!
Some installations may show an error here "cannot create admin"dont worry about this just reboot and login to your server and you should see the blueonyx setup pages.

Please point your browser to http://xxx.xxx.xxx.xxx/login and login with
username 'admin' and password 'blueonyx'



Top
 Profile  
 
 Post subject: Re: centos5.4 and BlueOnyx on your RaQ550 or xtr
PostPosted: Wed Mar 10, 2010 2:26 am 
Offline

Joined: Mon Mar 08, 2010 1:18 am
Posts: 1
I'm trying to do this install on an XTR, and running into issues. I got this second hand, and it had Blueonyx on it already. I did some playing with different OSes, and decided to go back to BO. I've not been able to get the install to work. I'm pretty new to Linux command line, so this has been an experience for me, to say the least.

The first time I tried it, I did it over a full install of CentOS/BQ. Out of habit, I pressed yes when it asked me if I wanted to install BQ. So, after the install completed, BQ was still there. Weird. I didn't think, or even know how, to check and see if CentOS 5 was installed.

The second, third, fourth, etc., times I tried it without BQ, it still didn't work for me. The first time, it seemed to go alright, but when I went to the web site, it was the default Apache site. So, I tried to log in via SSH, and root was locked out, and I couldn't get in using admin/blueonyx.

I can tell you that cced.init isn't running, and doesn't appear to be installed at all. I did the install again, and I seem to still have CentOS 4 installed. I did an rpm -qa command, and the packages that it lists all seem to end with CentOS 4. Is this the right command to check for installed rpms?

Scott


Top
 Profile  
 
 Post subject: Re: centos5.4 and BlueOnyx on your RaQ550 or xtr
PostPosted: Wed Mar 10, 2010 10:01 am 
Offline
Site Admin

Joined: Tue Feb 10, 2009 3:50 pm
Posts: 59
Hi Scott
two things that you should note here, firstly ssh root login is disabled when you install BlueOnyx You should login to your gui http://your-ip-address:444/ and turn on root access in the shell section of network services.
secondly if you already have BlueQuartz installed the BlueOnyx will not install correctly.
My advice to you in this instance would be to start over and intall just strongbolt 1 Without BlueQuartz and then follow line for line my post here, if you are unsure or have concerns about the upgrade attempt then contact by me by email.
If you can get your XTR online running just strongbolt 1 and nothing else I would log in using ssh and attempt the upgrade for you ( i havent done this with the XTR before but have done 3 RAQ 550 s this way)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
This style based on FI Subice by phpBBservice.nl
and it has been heavily modified by George Hall
The website is running on a cobalt RAQ550 with 2x 240 gig drives (Raid1) and 2 gig of ram and is running strongbolt2 from osoffice
It is part of my 8 computer network running both Linux and Windows machines from my home on dedicated a broadband business line from Demon Internet


If you have found our website to be useful or you can help with soaring costs of keeping our birds happy and safe then maybe you would consider making a donation
any amount is appreciated no matter how small it may seem
We are always looking for parrot cages / stands or toys if you have unwanted equipment and live within a reasonable traveling distance we can collect anything donated, please contact george by email
Top