Help - Search - Members - Calendar
Full Version: How-to Move Urchin from one Server to Another
The Planet Forums > Control Panels > Urchin
zorafex
1. Download and install Urchin on your NEW server. Go ahead and activate it with the "new" key you got from rackshack. Once you have activated it with your new key, do NOT do anything else.

2. Copy over your old Urchin data to your new server.

a. Do this on your OLD server:
ncftpput -u admin -p password -R newserver.com /usr/local/urchin/ /usr/local/urchin/data/*
b. Once it has transfered over, then:
cd /usr/local/urchin/
(on the new server) and then run:
chown nobody:nobody -R data
(on the new server)

3. On the OLD server do:
cd /usr/local/urchin/util
./uconf-export -f config.txt
vi config.txt
and DELETE everything under "Global Settings" and everything under "Process Settings". They will look something like this:
#---------------------
# Global Settings
#---------------------

ct_name=Access Settings
cr_remoteadmin=on
cr_remoteaccess=on
ct_port=9999
ct_schedulers=|server.12408|
ct_license=3PCGTZ1GGTGXP4E1Y4RASPEFLF1EARD7DLPTP7FE9GMTT4ZB8GP6PFRC1A77RM4X3XA2U
A19
ct_serial=BL2GAU5S31DR1CLEOALWZXWA
cr_setupwizard=off
cr_dcmode=off


#---------------------
# Process Settings
#---------------------

ct_name=Process Settings
cr_processdns=off



Make sure to delete all of that.
Save the file.

ncftpput -u admin -p password -R newserver.com /usr/local/urchin/util /usr/local/urchin/util/config.txt

4. Now on the NEW server do:
cd /usr/local/urchin/util
uconf-import -o -f config.txt

5. All Done! Launch Urchin and make sure it worked.
Glen
Hi

Iam transfering urchin from one server to another.

All works fine except . When i try to import.


config.txt u3importer uconf-import unzip utm
initialdb.config uconf-driver uconf-schedule urchin4_daemons zip
inspector uconf-export udb-sanitizer urchin4_daemons.template


[root@srv01 util]# uconf-import -o -f config.txt
bash: uconf-import: command not found


I have config.txt in dir.
But commnd not found.

Any Idea why?

Glen
Equ1n0x
QUOTE
Originally posted by Glen

[root@srv01 util]# uconf-import -o -f config.txt
bash: uconf-import: command not found


Try ./uconf-import

[root@srv01 util]# ./uconf-import -o -f config.txt

-- Eq
Glen
yes thanks that worked.

Glen
deweller
WARNING: This does NOT work for urchin 5.6. If you attempt the above with urchin 5.6 you will invalidate your license.

Has anyone figured out how to do this with urchin 5.6?
deweller
To transfer Urchin v5.6 data, I had success only doing the following:

1. Download and install Urchin on your NEW server. DO NOT activate it with the new key you got from rackshack.

2. On the OLD server:

ncftpput -u admin -p password -R newserver.com /usr/local/urchin/ /usr/local/urchin/data/*

3. Still on the OLD server do:
cd /usr/local/urchin/util
./uconf-export -f config.txt
pico config.txt

Find the area that looks something like the following. It should be near the top:

#---------------------
# Global Settings
#---------------------

ct_name=Access Settings
cr_remoteadmin=on
cr_remoteaccess=on
ct_port=9999
ct_schedulers=|server.12408|
ct_license=3PCGTZ1GGTGXP4E1Y4RASPEFLF1EARD7DLPTP7F
E9GMTT4ZB8GP6PFRC1A77RM4X3XA2UA19
ct_serial=BL2GAU5S31DR1CLEOALWZXWA
cr_setupwizard=off
cr_dcmode=off


make the ct_license and ct_serial fields blank, so it looks like this:

#---------------------
# Global Settings
#---------------------

ct_name=Access Settings
cr_remoteadmin=on
cr_remoteaccess=on
ct_port=9999
ct_schedulers=|server.12408|
ct_license=
ct_serial=
cr_setupwizard=off
cr_dcmode=off


save the file

ncftpput -u admin -p password -R newserver.com /usr/local/urchin/util /usr/local/urchin/util/config.txt

4. Now on the NEW server do:

cd /usr/local/urchin/
chown nobody:nobody -R data

cd /usr/local/urchin/util
./uconf-import -o -f config.txt

5. Launch Urchin and install the new server key.
ClayGP
One major note to this How-To:

**Make sure you stop Urchin before doing this on the old server.

service urchin stop

.. or else it will mess up. Some of the files could be in use (locked).
ClayGP
Another major note:

Urchin will NOT reactivate your license anymore for any Ev1servers clients. You have to make a ticket with Ev1 to get a new license key:

QUOTE
EV1 Servers (Formerly RackShack) leases and manages all of the Urchin serial codes for their customers. Urchin Software Corporation has no authority to reset or otherwise manage these Urchin serial codes. As a result, all license resets must be handled by the EV1 Servers organization directly. Please contact your EV1 Servers support department to request a license reset or re-issue.
ClayGP
Well .. after all that work .. it doesn't appear to have worked. mad.gif

My configuration and sites work... but none of the historical data is showing up on the reports. All the log files are there (in the /usr/local/urchin/data/history directory) .. and ownership is set correctly.

Anyone have any suggestions?
ClayGP
OK ... I've got it working now.

Turns out .. the history directory is not what is seen on the Urchin reports. It was the reports directory that had missing files.

So .. now that they are all there .. it works.
edasx
I've suceeded with Urchin migration from Redhat 7.3 to RHEL 5 with CPanel. I see the history as well as profiles. I had to ask for a new key on Support.

Also i had to clear the license information (dunno how it went in)

[/usr/local/urchin/util]# ./uconf-driver action=set_parameter recnum=1 ct_serial=0
[/usr/local/urchin/util]# ./uconf-driver action=set_parameter recnum=1 ct_license=0

i will have to change the location of logfiles in the urchin configuration as the previous system was oldskool ensim server with different directory structure

i had a trouble accessing the logfiles, i followed the

http://www.google.com/support/urchin45/bin...&topic=7411

cPanel log file permissions

By default, the Urchin process that reads the web server log files does not have sufficient permissions to read cPanel log files. So, you will have to edit the log file permissions before running Urchin. The following instructions will allow you to change the permissions on existing logs as well as set a new permission default for logs that are created in the future.

Editing the default permissions for new logs:
# Open the WebHost Manager (WHM) and click on the Tweak Settings link.
# locate: Chmod value for raw apache log files (0640 is the default)
# This value must be changed to 0644

Editing the permissions of the existing logs:
# Login as root and type:
cd /usr/local/apache/domlogs/
chmod 644 ./*
All existing logs should now include the new permissions.


it appears that the cpanel is somewhat linked to the urchin as the subdomains you add automaticaly appears in the urchin... the subdomains however are not working for me right now. will post updates as i move on in the migration.

also the /usr/local/urchin/data directory before migration is 7GB which is quite big on cpanel /dev/sda3 which is only 10G big in my config. i created the /home/urchindata and symlinked the /usr/local/urchin/data there... hope this won't ruin the config...
Will Wagner
Urchin 6 performs this operation in quite a different way. The uconf-driver program is nowhere to be found. The ugetlicense program is what should be used now.

# /usr/local/urchin/util/ugetlicense -s <your_license_string> -a -V
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.