LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-03-2015, 11:55 PM   #1
preetham.66666
Member
 
Registered: Jan 2015
Posts: 33

Rep: Reputation: Disabled
Upgrading Bugzilla error


I have running Bugzilla 3.6.1 in Debian and i want to upgarde to 4.4.x

So installed new OS redhat and and copied all the contents and import database from oldserver its working for 3.6.1 and so tried to upgarde to bugzilla 4.4.x below is steps i used

Downloaded the latest bugzilla 4.4.8 and extracted in /var/www/html directory
Moved old bugzilla directory to bugzilla.old
copied from old bugzilla localconfig* to new
Copied data directory from old bugzilla to new
And started to run ./checksetup.pl but i am getting below error

DBD::mysql::db do failed: Can't create table 'bugs.#sql-7a3e_2e' (errno: 121) [for Statement "ALTER TABLE attach_data ADD CONSTRAINT fk_attach_data_id_attachments_attach_id FOREIGN KEY (id) REFERENCES attachments(attach_id) ON UPDATE CASCADE ON DELETE CASCADE"] at Bugzilla/DB.pm line 638. Bugzilla:B::bz_add_fks(Bugzilla:B::Mysql=HASH(0x5068ec8), "attach_data", HASH(0x49cab88), HASH(0x9578680)) called at Bugzilla/DB.pm line 542 Bugzilla:B::bz_setup_foreign_keys(Bugzilla:B::Mysql=HASH(0x5068ec8)) called at Bugzilla/Install/DB.pm line 722 Bugzilla::Install:B::update_table_definitions(HASH(0x2290570)) called at ./checksetup.pl line 170

Last edited by preetham.66666; 03-04-2015 at 02:38 AM.
 
Old 03-06-2015, 04:49 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
You're mysql installation looks like it's...
1: Not installed
2: Not configured <- Although it's equally possible that the DB is properly configured but the new bugzilla install is not.
3: Not compliant

Checking to see if it's installed is normally pretty straight forward, post back if you need assistance.
Checking to see if it's configured correctly is pretty easy as well, assuming you have the original configuration file from your debian instance. (If the old bugzilla has cfg files then validating the bugzilla config should be relatively trivial as well)
Checking to see if it's compliant can be accomplished by discerning the mysql version ("mysql -V" will give you that in Slackware-Current).
Hope that helps
 
Old 03-09-2015, 12:03 AM   #3
preetham.66666
Member
 
Registered: Jan 2015
Posts: 33

Original Poster
Rep: Reputation: Disabled
1: Not installed

Its installed

Mysql -v

Server version: 5.1.61 Source distribution

service mysqld status
mysqld (pid 31294) is running...

2: Not configured <- Although it's equally possible that the DB is properly configured but the new bugzilla install is not.

Created a database and user 'bugs' and given full access to bugs user

and also imported old data like below

mysql -u bugs -p bugs < /root/backup-02-23-2015-19-00.sql (This import is worked when installed it on redhat os and bugzilla 3.6.1 )

3: Not compliant

I did't understand
 
Old 03-09-2015, 01:20 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
3: Not compliant
I'm sorry, I didn't mean to be obtuse. I was referring to dependencies. I singled out the Mysql install because that's the error log you showed me but any failed dependency could cause similar errors in the database.

From the buzilla release notes for upgrades from version 3.x to version 4.x...
Quote:
Perl

Perl v5.8.1

IMPORTANT: This is the last major release to support Perl 5.8.x! The next major release, Bugzilla 5.0, will require Perl 5.10.1 as a minimum.
For MySQL Users

MySQL v5.0.15
perl module: DBD::mysql v4.001

For PostgreSQL Users

PostgreSQL v8.03.0000
perl module: DBD::Pg v2.7.0

For Oracle Users

Oracle v10.02.0
perl module: DBD::Oracle v1.19

For SQLite Users

SQLite v3.6.22
perl module: DBD::SQLite v1.29

Required Perl Modules
Module Version
CGI 3.51
Digest::SHA (Any)
Date::Format 2.23
DateTime 0.28
DateTime::TimeZone 0.71
DBI 1.54
Template 2.22
Email::Send 2.04
Email::MIME 1.904
URI 1.37
List::MoreUtils 0.32
Math::Random::ISAAC 1.0.1
There's lots and lots of dependencies for bugzilla, that's just a sampling. Reference the page I'm linking to.
When I upgrade stuff, I try to do it 1 or 2 point versions at a time and insure the dependencies are satisfied and I have critical functionality on each step before moving on to the next. Full version upgrades like you're doing (3.x -> 4.x) are particularly problematic.

Last edited by dijetlo; 03-09-2015 at 01:24 AM.
 
  


Reply

Tags
bugzilla, database, linux, mysql



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bugzilla http.conf file error eswar425 Linux - Newbie 4 06-20-2013 02:36 AM
After installation of Bugzilla on linux machine, cannot see Bugzilla page on UI manasi_chitre@yahoo.com Linux - Software 0 03-15-2012 04:00 AM
bugzilla permission error call_krushna Linux - Server 1 01-04-2011 09:32 AM
error in bugzilla installation neophyte_linux Linux - Newbie 1 06-10-2005 09:43 AM
BugZilla Internal Server Error pnh73 Linux - Software 0 01-29-2005 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration