View Issue Details

IDProjectCategoryView StatusLast Update
0013516Tine 2.0Setuppublic2017-10-05 10:24
ReporterapvitAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformOSDebianOS Version8
Product Version 
Target VersionFixed in Version 
Summary0013516: update from 2017.02.2 to 2017.08.6 fails
DescriptionSystem: Debian 8; php 5.6, postgresql;
Update from 2017.02.2 to 2017.08.6 (package repository) fails with "PHP Fatal error" at "Tinebase - update_43"
Steps To ReproduceCLI input/output:
php /usr/share/tine20/setup.php --config /etc/tine20/config.inc.php --update
PHP Fatal error: Uncaught exception 'Zend_Db_Statement_Exception' with message 'index name does not exist' in /usr/share/tine20/Setup/Backend/Pgsql.php:579
Stack trace:
#0 /usr/share/tine20/Tinebase/Setup/Update/Release10.php(2075): Setup_Backend_Pgsql->dropIndex('groups', 'name')
#1 /usr/share/tine20/Setup/Controller.php(576): Tinebase_Setup_Update_Release10->update_43()
0000002 /usr/share/tine20/Setup/Controller.php(461): Setup_Controller->updateApplication(Object(Tinebase_Model_Application), '10')
#3 /usr/share/tine20/Setup/Frontend/Cli.php(302): Setup_Controller->updateApplications(Object(Tinebase_Record_RecordSet))
0000004 /usr/share/tine20/Setup/Frontend/Cli.php(258): Setup_Frontend_Cli->_updateApplications()
#5 /usr/share/tine20/Setup/Frontend/Cli.php(66): Setup_Frontend_Cli->_update(Object(Zend_Console_Getopt))
#6 /usr/share/tine20/Setup/Server/Cli.php(119): Setup_Frontend_Cli->handle(Object(Zend_Console_Getopt))
#7 /usr/share/tine20/Setup/Core.php(115): Setup_Server_Cli->handle()
0000008 /usr/share/tine20/setup.php(14): Setup_Core: in /usr/share/tine20/Setup/Backend/Pgsql.php on line 579
Additional InformationLOG output:
...
29a02 setupuser - 2017-10-03T12:53:12+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_38
29a02 setupuser - 2017-10-03T12:53:12+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_39
29a02 setupuser - 2017-10-03T12:53:12+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_40
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_41
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Tinebase_Scheduler_Task::addAccountSyncTask::332 Saved task Tinebase_User/Group::syncUsers/Groups in scheduler.
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_42
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Setup_Backend_Pgsql::addAddCol::278 Add new column to table accounts
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Setup_Controller::updateApplication::572 Updating Tinebase - update_43
29a02 setupuser - 2017-10-03T12:53:48+00:00 ERR (3): Setup_Controller::updateApplication::582 index name does not exist
29a02 setupuser - 2017-10-03T12:53:48+00:00 ERR (3): Setup_Controller::updateApplication::583 #0 /usr/share/tine20/Tinebase/Setup/Update/Release10.php(2075): Setup_Backend_Pgsql->dropIndex('groups', 'name')
#1 /usr/share/tine20/Setup/Controller.php(576): Tinebase_Setup_Update_Release10->update_43()
0000002 /usr/share/tine20/Setup/Controller.php(461): Setup_Controller->updateApplication(Object(Tinebase_Model_Application), '10')
#3 /usr/share/tine20/Setup/Frontend/Cli.php(302): Setup_Controller->updateApplications(Object(Tinebase_Record_RecordSet))
0000004 /usr/share/tine20/Setup/Frontend/Cli.php(258): Setup_Frontend_Cli->_updateApplications()
#5 /usr/share/tine20/Setup/Frontend/Cli.php(66): Setup_Frontend_Cli->_update(Object(Zend_Console_Getopt))
#6 /usr/share/tine20/Setup/Server/Cli.php(119): Setup_Frontend_Cli->handle(Object(Zend_Console_Getopt))
#7 /usr/share/tine20/Setup/Core.php(115): Setup_Server_Cli->handle()
0000008 /usr/share/tine20/setup.php(14): Setup_Core::dispatchRequest()
#9 {main}
29a02 setupuser - 2017-10-03T12:53:48+00:00 INFO (6): Tinebase_Controller_Record_Abstract::delete::1486 Deleting 1 of Tinebase_Model_Role records ...
Tagssetup
mwticket

Relationships

related to 0013508 resolvedpmehrer Update from 2017.02.05 to 2017.08.06 

Activities

lukasz

lukasz

2017-10-04 11:14

reporter   ~0020870

The issue with update persists after restoring db from the latest backup.

634c8 setupuser - 2017-10-04T09:08:41+00:00 ERR (3): Tinebase_Exception::log::104 Zend_Db_Statement_Exception -> SQLSTATE[42S02]: Base table or view not found: 1146 Table 'noboCrmdb.noboCrm_config_customfields' doesn't exist, query was: ALTER TABLE `noboCrm_config_customfields` RENAME TO `noboCrm_customfield_config`

Issue History

Date Modified Username Field Change
2017-10-03 15:37 apvit New Issue
2017-10-03 15:37 apvit Tag Attached: setup
2017-10-04 11:14 lukasz Note Added: 0020870
2017-10-05 10:24 pschuele Relationship added related to 0013508