Upgrading Database stuck at 75%
Upgrading Database stuck at 75%
I am upgrading from version 2.04 to 2.1.1 and everything seems to have gone ok but It is stuck at "Upgrading database, please wait.." at 75%.
Any smooth way I should terminate this process and start over? It said it could take up to 10 minutes but it's been about 25.
Thanks!
Any smooth way I should terminate this process and start over? It said it could take up to 10 minutes but it's been about 25.
Thanks!
I'm sorry about that,
I am using Fedora 7 with mysql 5.0.45. (We are evaluating the open source version right now, but will probably move to a CentOS machine if we move to using it a production envronment).
I backed up my timetrex database before I started so I have cancelled the upgrade, I went ahead and restored the old database and tried again with the same result. I can successfully test the connection before the upgrade starts and I can log into mysql as the timetrex user successfully. Apache is the owner of the /var/www/html/TimeTrex directory and all files/folders withing where my installation resides.
On this upgrade it has also asked me install php-gd which I did via yum before proceeding.
Just a thought, would the maintenace cronjob be affecting anything?
I am unable to open the system I am testing timetrex on to a public port right now so I cannot grant remote access, however I am somewhat familiar with things so if there is anything specific you are looking for I will be happy to get the info for you.
I am using Fedora 7 with mysql 5.0.45. (We are evaluating the open source version right now, but will probably move to a CentOS machine if we move to using it a production envronment).
I backed up my timetrex database before I started so I have cancelled the upgrade, I went ahead and restored the old database and tried again with the same result. I can successfully test the connection before the upgrade starts and I can log into mysql as the timetrex user successfully. Apache is the owner of the /var/www/html/TimeTrex directory and all files/folders withing where my installation resides.
On this upgrade it has also asked me install php-gd which I did via yum before proceeding.
Just a thought, would the maintenace cronjob be affecting anything?
I am unable to open the system I am testing timetrex on to a public port right now so I cannot grant remote access, however I am somewhat familiar with things so if there is anything specific you are looking for I will be happy to get the info for you.
Good to hear that you made a backup, especially since you are using MySQL which lacks table change rollback functionality, so backups are essential.
If you edit:
interface/install/DatabaseSchema.php
Then uncomment the //Debug::setVerbosity(11); line.
Once you have done that, restore from your backup and proceed to run the installer again. This time you should see a whole bunch of debug output where the graph should be. (some of it may be hidden due to the iframe)
Simply click on the text, press CTRL+A to select it all, then paste here for us to take a look at.
If you edit:
interface/install/DatabaseSchema.php
Then uncomment the //Debug::setVerbosity(11); line.
Code: Select all
case 'install_schema':
//Need to create the tables after the database
//exists and Database.inc.php has made a connection.
//Otherwise we can't use objects yet.
Debug::setVerbosity(11);
Simply click on the text, press CTRL+A to select it all, then paste here for us to take a look at.
(mysqlt): SHOW TABLES
Is all I get from the installer after about 10 -12 mins.
Just to verify, this is what I get in mysql as the timetrex user, so it looks like the databse and tables are there ok.
mysql> show tables from timetrex;
+--------------------------------------------+
| Tables_in_timetrex |
+--------------------------------------------+
| absence_policy |
| absence_policy_id_seq |
| accrual |
| accrual_balance |
| accrual_policy |
| accrual_policy_milestone |
| authentication |
| authorizations |
| bank_account |
| branch |
| branch_id_seq |
| bread_crumb |
| company |
| company_deduction |
| company_deduction_pay_stub_entry_account |
| company_id_seq |
| company_user_count |
| company_user_count_id_seq |
| cron |
| cron_id_seq |
| currency |
| currency_id_seq |
| department |
| department_branch |
| department_branch_user |
| department_id_seq |
| exception |
| exception_policy |
| exception_policy_control |
| help |
| help_group |
| help_group_control |
| hierarchy_control |
| hierarchy_object_type |
| hierarchy_share |
| hierarchy_tree |
| holiday_policy |
| holiday_policy_recurring_holiday |
| holidays |
| income_tax_rate |
| income_tax_rate_us |
| meal_policy |
| message |
| message_id_seq |
| other_field |
| over_time_policy |
| over_time_policy_id_seq |
| pay_period |
| pay_period_id_seq |
| pay_period_schedule |
| pay_period_schedule_id_seq |
| pay_period_schedule_user |
| pay_period_schedule_user_id_seq |
| pay_period_time_sheet_verify |
| pay_stub |
| pay_stub_amendment |
| pay_stub_entry |
| pay_stub_entry_account |
| pay_stub_entry_account_id_seq |
| pay_stub_entry_account_link |
| pay_stub_entry_account_link_id_seq |
| permission |
| permission_control |
| permission_control_id_seq |
| permission_id_seq |
| permission_old |
| permission_user |
| permission_user_id_seq |
| policy_group |
| policy_group_accrual_policy |
| policy_group_id_seq |
| policy_group_over_time_policy |
| policy_group_premium_policy |
| policy_group_round_interval_policy |
| policy_group_user |
| policy_group_user_id_seq |
| premium_policy |
| premium_policy_branch |
| premium_policy_department |
| punch |
| punch_control |
| punch_control_id_seq |
| punch_id_seq |
| recurring_holiday |
| recurring_holiday_id_seq |
| recurring_ps_amendment |
| recurring_ps_amendment_user |
| recurring_schedule_control |
| recurring_schedule_control_id_seq |
| recurring_schedule_template |
| recurring_schedule_template_control |
| recurring_schedule_template_control_id_seq |
| recurring_schedule_template_id_seq |
| recurring_schedule_user |
| recurring_schedule_user_id_seq |
| request |
| roe |
| round_interval_policy |
| schedule |
| schedule_id_seq |
| schedule_policy |
| schedule_policy_id_seq |
| station |
| station_branch |
| station_department |
| station_exclude_user |
| station_id_seq |
| station_include_user |
| station_user |
| station_user_group |
| station_user_id_seq |
| system_log |
| system_log_id_seq |
| system_setting |
| system_setting_id_seq |
| user_date |
| user_date_id_seq |
| user_date_total |
| user_date_total_id_seq |
| user_deduction |
| user_default |
| user_default_company_deduction |
| user_generic_data |
| user_generic_data_id_seq |
| user_generic_status |
| user_generic_status_batch_id_seq |
| user_generic_status_id_seq |
| user_group |
| user_group_id_seq |
| user_group_tree |
| user_pay_period_total |
| user_preference |
| user_preference_id_seq |
| user_tax |
| user_title |
| user_title_id_seq |
| user_wage |
| users |
| users_id_seq |
+--------------------------------------------+
139 rows in set (0.00 sec)
Is all I get from the installer after about 10 -12 mins.
Just to verify, this is what I get in mysql as the timetrex user, so it looks like the databse and tables are there ok.
mysql> show tables from timetrex;
+--------------------------------------------+
| Tables_in_timetrex |
+--------------------------------------------+
| absence_policy |
| absence_policy_id_seq |
| accrual |
| accrual_balance |
| accrual_policy |
| accrual_policy_milestone |
| authentication |
| authorizations |
| bank_account |
| branch |
| branch_id_seq |
| bread_crumb |
| company |
| company_deduction |
| company_deduction_pay_stub_entry_account |
| company_id_seq |
| company_user_count |
| company_user_count_id_seq |
| cron |
| cron_id_seq |
| currency |
| currency_id_seq |
| department |
| department_branch |
| department_branch_user |
| department_id_seq |
| exception |
| exception_policy |
| exception_policy_control |
| help |
| help_group |
| help_group_control |
| hierarchy_control |
| hierarchy_object_type |
| hierarchy_share |
| hierarchy_tree |
| holiday_policy |
| holiday_policy_recurring_holiday |
| holidays |
| income_tax_rate |
| income_tax_rate_us |
| meal_policy |
| message |
| message_id_seq |
| other_field |
| over_time_policy |
| over_time_policy_id_seq |
| pay_period |
| pay_period_id_seq |
| pay_period_schedule |
| pay_period_schedule_id_seq |
| pay_period_schedule_user |
| pay_period_schedule_user_id_seq |
| pay_period_time_sheet_verify |
| pay_stub |
| pay_stub_amendment |
| pay_stub_entry |
| pay_stub_entry_account |
| pay_stub_entry_account_id_seq |
| pay_stub_entry_account_link |
| pay_stub_entry_account_link_id_seq |
| permission |
| permission_control |
| permission_control_id_seq |
| permission_id_seq |
| permission_old |
| permission_user |
| permission_user_id_seq |
| policy_group |
| policy_group_accrual_policy |
| policy_group_id_seq |
| policy_group_over_time_policy |
| policy_group_premium_policy |
| policy_group_round_interval_policy |
| policy_group_user |
| policy_group_user_id_seq |
| premium_policy |
| premium_policy_branch |
| premium_policy_department |
| punch |
| punch_control |
| punch_control_id_seq |
| punch_id_seq |
| recurring_holiday |
| recurring_holiday_id_seq |
| recurring_ps_amendment |
| recurring_ps_amendment_user |
| recurring_schedule_control |
| recurring_schedule_control_id_seq |
| recurring_schedule_template |
| recurring_schedule_template_control |
| recurring_schedule_template_control_id_seq |
| recurring_schedule_template_id_seq |
| recurring_schedule_user |
| recurring_schedule_user_id_seq |
| request |
| roe |
| round_interval_policy |
| schedule |
| schedule_id_seq |
| schedule_policy |
| schedule_policy_id_seq |
| station |
| station_branch |
| station_department |
| station_exclude_user |
| station_id_seq |
| station_include_user |
| station_user |
| station_user_group |
| station_user_id_seq |
| system_log |
| system_log_id_seq |
| system_setting |
| system_setting_id_seq |
| user_date |
| user_date_id_seq |
| user_date_total |
| user_date_total_id_seq |
| user_deduction |
| user_default |
| user_default_company_deduction |
| user_generic_data |
| user_generic_data_id_seq |
| user_generic_status |
| user_generic_status_batch_id_seq |
| user_generic_status_id_seq |
| user_group |
| user_group_id_seq |
| user_group_tree |
| user_pay_period_total |
| user_preference |
| user_preference_id_seq |
| user_tax |
| user_title |
| user_title_id_seq |
| user_wage |
| users |
| users_id_seq |
+--------------------------------------------+
139 rows in set (0.00 sec)
The tables would all be there from the first time you installed TimeTrex. However the upgrade process would modify some of those tables, so that is probably where the issue is arising.
Please follow my last post so we can get the debug output from the upgrade process and figure out exactly what is going on.
Please follow my last post so we can get the debug output from the upgrade process and figure out exactly what is going on.
Is that all the text it shows, or is that all it can fit in the frame?
Just so you understand, there is a HTML frame that just fits the graph, so even though with debugging enable, it might output several pages of text, you may only see the first line, or first part of the line.
You need to click on the text, the press CTRL+A to select all the text, then you can copy and paste it into notepad, does it show more text then?
Just so you understand, there is a HTML frame that just fits the graph, so even though with debugging enable, it might output several pages of text, you may only see the first line, or first part of the line.
You need to click on the text, the press CTRL+A to select all the text, then you can copy and paste it into notepad, does it show more text then?
Gotcha, I was not looking in the graph and text appeared as white so I did not see it at first. What I posted is what appears in the upper left hand corner of the browser, I suspect this is the output that makes more sense.
I removed several line breaks after <(mysqlt): SHOW TABLES > for space.
(mysqlt): SHOW TABLES
75 %
(mysqlt): SET AUTOCOMMIT=0 (mysqlt): BEGIN (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): select company_id,user_id,section,name,value from permission where deleted = 0 order by company_id, user_id, section, name (mysqlt): CREATE TABLE permission_control ( id serial NOT NULL, company_id integer NOT NULL, name varchar(250) NOT NULL, description varchar(250) NOT NULL, created_date integer, created_by integer, updated_date integer, updated_by integer, deleted_date integer, deleted_by integer, deleted smallint DEFAULT 0 NOT NULL, PRIMARY KEY(id) ) Engine=InnoDB 1050: Table 'permission_control' already exists
ADOConnection._Execute(CREATE TABLE permission_control (
id serial NOT NULL,
company_id integer NOT NULL,
name varchar(250) NOT NULL,
descrip..., false) % line 861, file: adodb.inc.php
ADOConnection.Execute(CREATE TABLE permission_control (
id serial NOT NULL,
company_id integer NOT NULL,
name varchar(250) NOT NULL,
descrip...) % line 108, file: InstallSchema_Base.class.php
InstallSchema_Base._InstallSchema() % line 152, file: InstallSchema_Base.class.php
InstallSchema_Base.InstallSchema() % line 0, file:
call_user_func_array(Array[2], Array[0]) % line 94, file: InstallSchema.class.php
I removed several line breaks after <(mysqlt): SHOW TABLES > for space.
(mysqlt): SHOW TABLES
75 %
(mysqlt): SET AUTOCOMMIT=0 (mysqlt): BEGIN (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_T' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): SHOW TABLES (mysqlt): select * from system_setting where name = 'schema_version_group_A' (mysqlt): select company_id,user_id,section,name,value from permission where deleted = 0 order by company_id, user_id, section, name (mysqlt): CREATE TABLE permission_control ( id serial NOT NULL, company_id integer NOT NULL, name varchar(250) NOT NULL, description varchar(250) NOT NULL, created_date integer, created_by integer, updated_date integer, updated_by integer, deleted_date integer, deleted_by integer, deleted smallint DEFAULT 0 NOT NULL, PRIMARY KEY(id) ) Engine=InnoDB 1050: Table 'permission_control' already exists
ADOConnection._Execute(CREATE TABLE permission_control (
id serial NOT NULL,
company_id integer NOT NULL,
name varchar(250) NOT NULL,
descrip..., false) % line 861, file: adodb.inc.php
ADOConnection.Execute(CREATE TABLE permission_control (
id serial NOT NULL,
company_id integer NOT NULL,
name varchar(250) NOT NULL,
descrip...) % line 108, file: InstallSchema_Base.class.php
InstallSchema_Base._InstallSchema() % line 152, file: InstallSchema_Base.class.php
InstallSchema_Base.InstallSchema() % line 0, file:
call_user_func_array(Array[2], Array[0]) % line 94, file: InstallSchema.class.php
Yes, like so:
Code: Select all
mysql -u timetrex -ptimetrex timetrex < /home/zackf/Desktop/timetrex.sql
Fixed
I dropped the timetrex database completely, re-added it, reset the permissions, then restored the backup - ran the installer and we're good to go.
Seems like the maintenace jobs are running more frequently than they used to, is this correct with the new version?
Apache's crontab still has the following entry:
* * * * * php /var/www/html/TimeTrex/maint/cron.php > /dev/null 2>&1
Seems like the maintenace jobs are running more frequently than they used to, is this correct with the new version?
Apache's crontab still has the following entry:
* * * * * php /var/www/html/TimeTrex/maint/cron.php > /dev/null 2>&1