Migrate from a server with oc 8 to a server with oc 10


#1

Hi

Right now, we have owncloud 8.2.9 installed in a RHEL server, and were trying to move it to a new server with ubuntu.

Tried installing owncloud in the new server, then copying the DB and data from one to the other, but it doesn’t seem to really work. After running the occ upgrade command to try and have the db in a correct version, we see errors saying "
- INVALID_HASH
- .htaccess "

We tried manually updating signature.json file, but it didn’t work, so that file is back to normal.

In docs, it says to put the original back, how can we know which one is the original one?

Is there any easy way to try and migrate this? (we actually tried first upgrading owncloud client in the 8.2.9 but the tool wouldn’t work there)


#2

Please upgrade to the latest 8.2.x release first. From there you can upgrade directly to 10.0.10 or try with the 10.1 beta and upgrade when its released.
The last one is 8.2.11 https://owncloud.org/download/older-versions/
Otherwise the upgrade process will fail, like you experienced.


#3

Hi, We did as suggested, but after upgrading to 10.0.10, we started receiving message

  • Some files have not passed the integrity check. Further information on how to resolve this issue can be found in our documentation

All listed files are the ones inside the folder ‘updater’

	- INVALID_HASH
		- updater/README.md
		- updater/app/bootstrap.php
		- updater/app/config/container.php
		- updater/pub/js/main.js
		- updater/src/Command/BackupDataCommand.php
		- updater/src/Command/BackupDbCommand.php
		- updater/src/Command/CheckSystemCommand.php
		- updater/src/Command/CheckpointCommand.php
		- updater/src/Command/CleanCacheCommand.php
		- updater/src/Command/Command.php
		- updater/src/Command/DetectCommand.php
		- updater/src/Command/ExecuteCoreUpgradeScriptsCommand.php
		- updater/src/Command/InfoCommand.php
		- updater/src/Command/MaintenanceModeCommand.php
		- updater/src/Command/PostUpgradeCleanupCommand.php
		- updater/src/Command/PostUpgradeRepairCommand.php
		- updater/src/Command/PreUpgradeRepairCommand.php
		- updater/src/Command/RestartWebServerCommand.php
		- updater/src/Command/StartCommand.php
		- updater/src/Command/UpdateConfigCommand.php
		- updater/src/Console/Application.php
		- updater/src/Controller/DownloadController.php
		- updater/src/Controller/IndexController.php
		- updater/src/Formatter/HtmlOutputFormatter.php
		- updater/src/Http/Request.php
		- updater/src/Resources/views/base.php
		- updater/src/Resources/views/partials/inner.php
		- updater/src/Resources/views/partials/login.php
		- updater/src/Utils/AppManager.php
		- updater/src/Utils/Checkpoint.php
		- updater/src/Utils/Collection.php
		- updater/src/Utils/ConfigReader.php
		- updater/src/Utils/DocLink.php
		- updater/src/Utils/Feed.php
		- updater/src/Utils/Fetcher.php
		- updater/src/Utils/FilesystemHelper.php
		- updater/src/Utils/Locator.php
		- updater/src/Utils/OccRunner.php
		- updater/src/Utils/Registry.php
		- updater/src/Utils/ZipExtractor.php
		- updater/vendor/autoload.php
		- updater/vendor/composer/autoload_files.php
		- updater/vendor/composer/autoload_psr4.php
		- updater/vendor/composer/autoload_real.php
		- updater/vendor/composer/installed.json
		- updater/vendor/paragonie/random_compat/CHANGELOG.md
		- updater/vendor/paragonie/random_compat/ERRATA.md
		- updater/vendor/paragonie/random_compat/lib/random.php
		- updater/vendor/react/promise/.travis.yml
		- updater/vendor/react/promise/CHANGELOG.md
		- updater/vendor/react/promise/README.md
		- updater/vendor/react/promise/composer.json
		- updater/vendor/react/promise/src/LazyPromise.php
		- updater/vendor/react/promise/src/Promise.php
		- updater/vendor/react/promise/src/functions.php
		- updater/vendor/symfony/console/Application.php
		- updater/vendor/symfony/console/CHANGELOG.md
		- updater/vendor/symfony/console/Command/Command.php
		- updater/vendor/symfony/console/Command/HelpCommand.php
		- updater/vendor/symfony/console/Command/ListCommand.php
		- updater/vendor/symfony/console/Descriptor/ApplicationDescription.php
		- updater/vendor/symfony/console/Descriptor/Descriptor.php
		- updater/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
		- updater/vendor/symfony/console/Descriptor/TextDescriptor.php
		- updater/vendor/symfony/console/Formatter/OutputFormatter.php
		- updater/vendor/symfony/console/Formatter/OutputFormatterStyle.php
		- updater/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php
		- updater/vendor/symfony/console/Helper/DescriptorHelper.php
		- updater/vendor/symfony/console/Helper/DialogHelper.php
		- updater/vendor/symfony/console/Helper/Helper.php
		- updater/vendor/symfony/console/Helper/HelperSet.php
		- updater/vendor/symfony/console/Helper/ProgressBar.php
		- updater/vendor/symfony/console/Helper/ProgressHelper.php
		- updater/vendor/symfony/console/Helper/QuestionHelper.php
		- updater/vendor/symfony/console/Helper/SymfonyQuestionHelper.php
		- updater/vendor/symfony/console/Helper/Table.php
		- updater/vendor/symfony/console/Helper/TableCell.php
		- updater/vendor/symfony/console/Helper/TableHelper.php
		- updater/vendor/symfony/console/Helper/TableSeparator.php
		- updater/vendor/symfony/console/Helper/TableStyle.php
		- updater/vendor/symfony/console/Input/ArgvInput.php
		- updater/vendor/symfony/console/Input/ArrayInput.php
		- updater/vendor/symfony/console/Input/Input.php
		- updater/vendor/symfony/console/Input/InputArgument.php
		- updater/vendor/symfony/console/Input/InputDefinition.php
		- updater/vendor/symfony/console/Input/InputInterface.php
		- updater/vendor/symfony/console/Input/InputOption.php
		- updater/vendor/symfony/console/Input/StringInput.php
		- updater/vendor/symfony/console/LICENSE
		- updater/vendor/symfony/console/Output/ConsoleOutput.php
		- updater/vendor/symfony/console/Output/Output.php
		- updater/vendor/symfony/console/Output/OutputInterface.php
		- updater/vendor/symfony/console/Output/StreamOutput.php
		- updater/vendor/symfony/console/Question/ChoiceQuestion.php
		- updater/vendor/symfony/console/Question/Question.php
		- updater/vendor/symfony/console/Shell.php
		- updater/vendor/symfony/console/Style/SymfonyStyle.php
		- updater/vendor/symfony/console/Tester/ApplicationTester.php
		- updater/vendor/symfony/console/Tester/CommandTester.php
		- updater/vendor/symfony/console/composer.json
		- updater/vendor/symfony/console/phpunit.xml.dist
		- updater/vendor/symfony/process/ExecutableFinder.php
		- updater/vendor/symfony/process/PhpExecutableFinder.php
		- updater/vendor/symfony/process/PhpProcess.php
		- updater/vendor/symfony/process/Pipes/AbstractPipes.php
		- updater/vendor/symfony/process/Pipes/PipesInterface.php
		- updater/vendor/symfony/process/Pipes/UnixPipes.php
		- updater/vendor/symfony/process/Pipes/WindowsPipes.php
		- updater/vendor/symfony/process/Process.php
		- updater/vendor/symfony/process/ProcessBuilder.php
		- updater/vendor/symfony/process/ProcessUtils.php
		- updater/vendor/symfony/process/composer.json
		- updater/vendor/symfony/process/phpunit.xml.dist
		- updater/vendor/react/promise/phpunit.xml.dist
		- updater/vendor/react/promise/src/UnhandledRejectionException.php
		- updater/vendor/react/promise/src/RejectedPromise.php
		- updater/vendor/react/promise/src/FulfilledPromise.php
		- updater/vendor/react/promise/LICENSE
		- updater/vendor/symfony/console/README.md
		- updater/vendor/symfony/console/Output/NullOutput.php
		- updater/vendor/symfony/process/Exception/ProcessFailedException.php
		- updater/vendor/symfony/process/README.md
		- updater/vendor/composer/LICENSE
		- updater/vendor/composer/ClassLoader.php
	- FILE_MISSING
		- updater/vendor/composer/autoload_static.php
		- updater/vendor/symfony/console/Exception/CommandNotFoundException.php
		- updater/vendor/symfony/console/Helper/ProgressIndicator.php
		- updater/vendor/symfony/polyfill-mbstring/Mbstring.php
		- updater/vendor/symfony/polyfill-mbstring/bootstrap.php
		- updater/vendor/symfony/polyfill-mbstring/composer.json
	- EXTRA_FILE
		- updater/src/Command/DisableNotShippedAppsCommand.php
		- updater/src/Command/EnableNotShippedAppsCommand.php
		- updater/src/Command/DbUpgradeCommand.php
		- updater/src/Tests/phpunit.xml
		- updater/src/Tests/bootstrap.php
		- updater/src/Tests/Http/RequestTest.php
		- updater/src/Tests/Utils/ConfigReaderTest.php
		- updater/src/Tests/Utils/FetcherTest.php
		- updater/src/Tests/Utils/AppManagerTest.php
		- updater/src/Tests/Utils/DocLinkTest.php
		- updater/src/Tests/Utils/RegistryTest.php
		- updater/src/Tests/Utils/CheckpointTest.php
		- updater/src/Tests/Utils/OccRunnerTest.php
		- updater/src/Tests/Utils/FeedTest.php
		- updater/src/Tests/Controller/DownloadControllerTest.php
		- updater/src/Tests/StreamInterface.php
		- updater/.scrutinizer.yml
		- updater/CONTRIBUTING.md
		- updater/.travis.yml
		- updater/nbproject/project.properties
		- updater/nbproject/project.xml
		- updater/composer.json
		- updater/composer.lock
		- updater/vendor/symfony/polyfill-php56/README.md
		- updater/vendor/symfony/polyfill-php56/bootstrap.php
		- updater/vendor/symfony/polyfill-php56/Php56.php
		- updater/vendor/symfony/polyfill-php56/composer.json
		- updater/vendor/symfony/polyfill-util/README.md
		- updater/vendor/symfony/polyfill-util/BinaryOnFuncOverload.php
		- updater/vendor/symfony/polyfill-util/BinaryNoFuncOverload.php
		- updater/vendor/symfony/polyfill-util/Binary.php
		- updater/vendor/symfony/polyfill-util/composer.json
		- updater/vendor/symfony/polyfill-util/TestListener.php
		- updater/vendor/symfony/polyfill-php55/Php55.php
		- updater/vendor/symfony/polyfill-php55/README.md
		- updater/vendor/symfony/polyfill-php55/bootstrap.php
		- updater/vendor/symfony/polyfill-php55/Php55ArrayColumn.php
		- updater/vendor/symfony/polyfill-php55/composer.json
		- updater/vendor/ircmaxell/password-compat/LICENSE.md
		- updater/vendor/ircmaxell/password-compat/lib/password.php
		- updater/vendor/ircmaxell/password-compat/version-test.php
		- updater/vendor/ircmaxell/password-compat/composer.json
		- updater/box.json

According to docs found here:
https://doc.owncloud.org/server/10.0/admin_manual/issues/code_signing.html?to=admin-code-integrity

We understand we should put back these files, but we didn’t touch anything, so not sure where to retrieve them. Is there like a repo or something we can download this folder from?

Is that integrity message important?


#4

Hey,

i think all required ownCloud files should be available in the tar archive available at https://owncloud.org/download/#owncloud-server-tar-ball

Currently it seems your installations has three issues:

  1. INVALID_HASH - Maybe those files got corrupted (during upload) or not correctly updated / replaced?

  2. FILE_MISSING - Those probably needs to be uploaded from the tarball as described in the documentation.

  3. EXTRA_FILE - Those probably where not correctly deleted during the update process and you need to delete them as described in the documentation.

I think fixing the integrity errors are mandatory for a normal operation of ownCloud / the updater app.