Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error CORE on update to 7.0.0 from 6.0.4 #9903

Closed
jimbo1 opened this issue Jul 25, 2014 · 2 comments
Closed

Fatal error CORE on update to 7.0.0 from 6.0.4 #9903

jimbo1 opened this issue Jul 25, 2014 · 2 comments
Labels

Comments

@jimbo1
Copy link

jimbo1 commented Jul 25, 2014

This is an error message copypasted from the admin panel marked "Fatal - Core":

Failed to update database structure (exception 'PDOException' with message 'SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'oc_share_external' already exists' in hosted-server-path/www_cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:742 Stack trace: #0 [internal function]: PDO->query('CREATE TABLE o...') #1 hosted-server-path/www_cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(742): call_user_func_array(Array, Array) #2 hosted-server-path/www_cloud/lib/private/db/migrator.php(179): Doctrine\DBAL\Connection->query('CREATE TABLEo...') #3 hosted-server-path/www_cloud/lib/private/db/migrator.php(35): OC\DB\Migrator->applySchema(Object(Doctrine\DBAL\Schema\Schema)) #4 hosted-server-path/www_cloud/lib/private/db/mdb2schemamanager.php(98): OC\DB\Migrator->migrate(Object(Doctrine\DBAL\Schema\Schema)) #5 hosted-server-path/www_cloud/lib/private/db.php(320): OC\DB\MDB2SchemaManager->updateDbFromStructure('/is/htdocs/wp10...') #6 hosted-server-path/www_cloud/lib/private/app.php(1172): OC_DB::updateDbFromStructure('/is/htdocs/wp10...') #7 hosted-server-path/www_cloud/lib/private/app.php(980): OC_App::updateApp('files_sharing') #8 hosted-server-path/www_cloud/lib/private/app.php(87): OC_App::checkUpgrade('files_sharing') #9 hosted-server-path/www_cloud/lib/private/app.php(72): OC_App::loadApp('files_sharing') #10 hosted-server-path/www_cloud/lib/private/updater.php(222): OC_App::loadApps() #11 hosted-server-path/www_cloud/lib/private/updater.php(137): OC\Updater->doUpgrade('7.0.0.8', '6.0.4.1') #12 hosted-server-path/www_cloud/core/ajax/update.php(35): OC\Updater->upgrade() #13 {main} Next exception 'Doctrine\DBAL\DBALException' with message 'An exception occurred while executing 'CREATE TABLE oc_share_external (id INT AUTO_INCREMENT NOT NULL, remote VARCHAR(512) NOT NULL COMMENT 'Url of the remove owncloud instance', share_token VARCHAR(64) NOT NULL COMMENT 'Public share token', password VARCHAR(64) NOT NULL COMMENT 'Optional password for the public share', name VARCHAR(64) NOT NULL COMMENT 'Original name on the remote server', owner VARCHAR(64) NOT NULL COMMENT 'User that owns the public share on the remote server', user VARCHAR(64) NOT NULL COMMENT 'Local user which added the external share', mountpoint VARCHAR(4000) NOT NULL COMMENT 'Full path where the share is mounted', mountpoint_hash VARCHAR(32) NOT NULL COMMENT 'md5 hash of the mountpoint', INDEX sh_external_user (user), UNIQUE INDEX sh_external_mp (user, mountpoint_hash), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_bin ENGINE = InnoDB': SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'oc_share_external' already exists' in hosted-server-path/www_cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:47 Stack trace: #0 hosted-server-path/www_cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(744): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'CREATE TABLE o...') #1 hosted-server-path/www_cloud/lib/private/db/migrator.php(179): Doctrine\DBAL\Connection->query('CREATE TABLEo...') #2 hosted-server-path/www_cloud/lib/private/db/migrator.php(35): OC\DB\Migrator->applySchema(Object(Doctrine\DBAL\Schema\Schema)) #3 hosted-server-path/www_cloud/lib/private/db/mdb2schemamanager.php(98): OC\DB\Migrator->migrate(Object(Doctrine\DBAL\Schema\Schema)) #4 hosted-server-path/www_cloud/lib/private/db.php(320): OC\DB\MDB2SchemaManager->updateDbFromStructure('/is/htdocs/wp10...') #5 hosted-server-path/www_cloud/lib/private/app.php(1172): OC_DB::updateDbFromStructure('/is/htdocs/wp10...') #6 hosted-server-path/www_cloud/lib/private/app.php(980): OC_App::updateApp('files_sharing') #7 hosted-server-path/www_cloud/lib/private/app.php(87): OC_App::checkUpgrade('files_sharing') #8 hosted-server-path/www_cloud/lib/private/app.php(72): OC_App::loadApp('files_sharing') #9 hosted-server-path/www_cloud/lib/private/updater.php(222): OC_App::loadApps() #10 hosted-server-path/www_cloud/lib/private/updater.php(137): OC\Updater->doUpgrade('7.0.0.8', '6.0.4.1') #11 hosted-server-path/www_cloud/core/ajax/update.php(35): OC\Updater->upgrade() #12 {main})

@DeepDiver1975
Copy link
Member

Thanks a lot for reporting issues back to us!

We need some more information to properly support you with your issue!

Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

Thanks a lot!

@VicDeo
Copy link
Member

VicDeo commented Jul 29, 2014

Table 'oc_share_external' already exists' is reported in #9921 too
Closing as a duplicate

@VicDeo VicDeo closed this as completed Jul 29, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants