Problem updating from 10.1.4 to 10.2.1 [solved]

Hi all,
new here, sorry if what i ask is a stupid question, but an update was available, and i click on update… it worked, but i have a series of errors, some of those i had before too…

new error:
[There were problems with the code integrity check. More information…]
I can see a list of file that don’t pass the integrity check… i download and overwrite manually the updater folder (all the list of files are in the updater folder) but same result… what should I do?

old errors:

  • Transactional file locking should be configured to use memory-based locking, not the default slow database-based locking. See the [documentation :arrow_upper_right:]
  • Didn’t understand if I should create a memcache or not, i have 6 mb of file but 20k files (all are txt files, and 7 users)
  • We recommend to enable system cron as any other cron method has possible performance and reliability implications.
  • tried to activate as cron, but an orange ball appear after 20 minutes, telling me something is wrond and not updating in the last 20 mins… so I set it back to Ajax
  • The “Strict-Transport-Security” HTTP header is not configured to at least “15552000” seconds. For enhanced security we recommend enabling HSTS as described in our [security tips]
  • didn’t understand anything about this…

can someone help me or at least guide me to some page where all those problem are explained?

Thank you very much in advance

John.

Hello there :slight_smile:

Well your first problem is the integrity check. I assume you did the update from the web interface ? Could you post a picture of the files mentioned ? Hide everything giving personal information from your screenshot.

How is your ownCloud hosted ? Do you a VPS/dedicated server ? Do you a shell access ?

For the errors they don’t fully matter but they should be fixed if possible, let’s focus on the first problem.

1 Like

i cannot upload attachments, i’m a new user, so I’ll paste.
Yes i update it from web interface (ouch)
I’m hosted in a shared server, and I have shell access but never used before.

here are the errors:

Technical information

The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results

  • core
  • INVALID_HASH
  • .htaccess
  • updater/src/Resources/views/partials/login.php
  • updater/src/Utils/ConfigReader.php
  • updater/src/Utils/Locator.php
  • updater/vendor/autoload.php
  • updater/vendor/composer/autoload_files.php
  • updater/vendor/composer/autoload_namespaces.php
  • updater/vendor/composer/autoload_psr4.php
  • updater/vendor/composer/autoload_real.php
  • updater/vendor/composer/autoload_static.php
  • updater/vendor/composer/installed.json
  • updater/vendor/guzzlehttp/guzzle/.travis.yml
  • updater/vendor/guzzlehttp/guzzle/CHANGELOG.md
  • updater/vendor/guzzlehttp/guzzle/composer.json
  • updater/vendor/guzzlehttp/guzzle/src/Client.php
  • updater/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php
  • updater/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php
  • updater/vendor/guzzlehttp/guzzle/src/Utils.php
  • updater/vendor/guzzlehttp/ringphp/.travis.yml
  • updater/vendor/guzzlehttp/ringphp/CHANGELOG.md
  • updater/vendor/guzzlehttp/ringphp/composer.json
  • updater/vendor/guzzlehttp/ringphp/src/Client/ClientUtils.php
  • updater/vendor/guzzlehttp/ringphp/src/Client/CurlFactory.php
  • updater/vendor/guzzlehttp/ringphp/src/Client/CurlMultiHandler.php
  • updater/vendor/league/plates/README.md
  • updater/vendor/league/plates/composer.json
  • updater/vendor/league/plates/src/Extension/Asset.php
  • updater/vendor/league/plates/src/Extension/URI.php
  • updater/vendor/league/plates/src/Template/Data.php
  • updater/vendor/league/plates/src/Template/Name.php
  • updater/vendor/league/plates/src/Template/Template.php
  • updater/vendor/pimple/pimple/.travis.yml
  • updater/vendor/pimple/pimple/CHANGELOG
  • updater/vendor/pimple/pimple/LICENSE
  • updater/vendor/pimple/pimple/README.rst
  • updater/vendor/pimple/pimple/composer.json
  • updater/vendor/pimple/pimple/ext/pimple/config.m4
  • updater/vendor/pimple/pimple/ext/pimple/php_pimple.h
  • updater/vendor/pimple/pimple/ext/pimple/pimple.c
  • updater/vendor/pimple/pimple/src/Pimple/Container.php
  • updater/vendor/psr/log/Psr/Log/AbstractLogger.php
  • updater/vendor/psr/log/Psr/Log/LogLevel.php
  • updater/vendor/psr/log/Psr/Log/LoggerAwareInterface.php
  • updater/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
  • updater/vendor/psr/log/Psr/Log/LoggerInterface.php
  • updater/vendor/psr/log/Psr/Log/LoggerTrait.php
  • updater/vendor/psr/log/Psr/Log/NullLogger.php
  • updater/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
  • updater/vendor/psr/log/README.md
  • updater/vendor/psr/log/composer.json
  • 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/CancellationQueue.php
  • updater/vendor/react/promise/src/Deferred.php
  • updater/vendor/react/promise/src/ExtendedPromiseInterface.php
  • updater/vendor/react/promise/src/LazyPromise.php
  • updater/vendor/react/promise/src/Promise.php
  • updater/vendor/react/promise/src/PromiseInterface.php
  • updater/vendor/react/promise/src/UnhandledRejectionException.php
  • updater/vendor/react/promise/src/functions.php
  • updater/vendor/react/promise/src/functions_include.php
  • updater/vendor/symfony/console/Application.php
  • 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/ConsoleEvents.php
  • updater/vendor/symfony/console/Descriptor/ApplicationDescription.php
  • updater/vendor/symfony/console/Descriptor/Descriptor.php
  • updater/vendor/symfony/console/Descriptor/DescriptorInterface.php
  • updater/vendor/symfony/console/Descriptor/JsonDescriptor.php
  • updater/vendor/symfony/console/Descriptor/MarkdownDescriptor.php
  • updater/vendor/symfony/console/Descriptor/TextDescriptor.php
  • updater/vendor/symfony/console/Descriptor/XmlDescriptor.php
  • updater/vendor/symfony/console/Event/ConsoleCommandEvent.php
  • updater/vendor/symfony/console/Formatter/OutputFormatter.php
  • updater/vendor/symfony/console/Formatter/OutputFormatterInterface.php
  • updater/vendor/symfony/console/Formatter/OutputFormatterStyle.php
  • updater/vendor/symfony/console/Formatter/OutputFormatterStyleInterface.php
  • updater/vendor/symfony/console/Formatter/OutputFormatterStyleStack.php
  • updater/vendor/symfony/console/Helper/DebugFormatterHelper.php
  • updater/vendor/symfony/console/Helper/DescriptorHelper.php
  • updater/vendor/symfony/console/Helper/DialogHelper.php
  • updater/vendor/symfony/console/Helper/FormatterHelper.php
  • updater/vendor/symfony/console/Helper/Helper.php
  • updater/vendor/symfony/console/Helper/HelperInterface.php
  • updater/vendor/symfony/console/Helper/HelperSet.php
  • updater/vendor/symfony/console/Helper/InputAwareHelper.php
  • updater/vendor/symfony/console/Helper/ProcessHelper.php
  • updater/vendor/symfony/console/Helper/ProgressBar.php
  • updater/vendor/symfony/console/Helper/ProgressHelper.php
  • updater/vendor/symfony/console/Helper/ProgressIndicator.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/InputAwareInterface.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/Logger/ConsoleLogger.php
  • updater/vendor/symfony/console/Output/BufferedOutput.php
  • updater/vendor/symfony/console/Output/ConsoleOutput.php
  • updater/vendor/symfony/console/Output/ConsoleOutputInterface.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/ConfirmationQuestion.php
  • updater/vendor/symfony/console/Question/Question.php
  • updater/vendor/symfony/console/Shell.php
  • updater/vendor/symfony/console/Style/OutputStyle.php
  • updater/vendor/symfony/console/Style/StyleInterface.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/polyfill-mbstring/LICENSE
  • updater/vendor/symfony/polyfill-mbstring/Mbstring.php
  • updater/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
  • updater/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
  • updater/vendor/symfony/polyfill-mbstring/bootstrap.php
  • updater/vendor/symfony/polyfill-mbstring/composer.json
  • updater/vendor/symfony/process/Exception/ProcessTimedOutException.php
  • updater/vendor/symfony/process/ExecutableFinder.php
  • updater/vendor/symfony/process/LICENSE
  • updater/vendor/symfony/process/PhpExecutableFinder.php
  • updater/vendor/symfony/process/PhpProcess.php
  • updater/vendor/symfony/process/Pipes/AbstractPipes.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/phpunit.xml.dist
  • FILE_MISSING
  • README.md
  • updater/CHANGELOG.md
  • updater/vendor/guzzlehttp/ringphp/.editorconfig
  • updater/vendor/league/plates/docs/CNAME
  • updater/vendor/league/plates/docs/_data/images.yml
  • updater/vendor/league/plates/docs/_data/menu.yml
  • updater/vendor/league/plates/docs/_data/project.yml
  • updater/vendor/league/plates/docs/_layouts/default.html
  • updater/vendor/league/plates/docs/apple-touch-icon-precomposed.png
  • updater/vendor/league/plates/docs/changelog.md
  • updater/vendor/league/plates/docs/css/custom.scss
  • updater/vendor/league/plates/docs/engine/extensions.md
  • updater/vendor/league/plates/docs/engine/file-extensions.md
  • updater/vendor/league/plates/docs/engine/folders.md
  • updater/vendor/league/plates/docs/engine/functions.md
  • updater/vendor/league/plates/docs/engine/index.md
  • updater/vendor/league/plates/docs/extensions/asset.md
  • updater/vendor/league/plates/docs/extensions/uri.md
  • updater/vendor/league/plates/docs/favicon.ico
  • updater/vendor/league/plates/docs/index.md
  • updater/vendor/league/plates/docs/installation.md
  • updater/vendor/league/plates/docs/logo.png
  • updater/vendor/league/plates/docs/simple-example.md
  • updater/vendor/league/plates/docs/templates/data.md
  • updater/vendor/league/plates/docs/templates/escaping.md
  • updater/vendor/league/plates/docs/templates/functions.md
  • updater/vendor/league/plates/docs/templates/index.md
  • updater/vendor/league/plates/docs/templates/inheritance.md
  • updater/vendor/league/plates/docs/templates/layouts.md
  • updater/vendor/league/plates/docs/templates/nesting.md
  • updater/vendor/league/plates/docs/templates/sections.md
  • updater/vendor/league/plates/docs/templates/syntax.md
  • updater/vendor/league/plates/example/example.php
  • updater/vendor/league/plates/example/templates/layout.php
  • updater/vendor/league/plates/example/templates/profile.php
  • updater/vendor/league/plates/example/templates/sidebar.php
  • updater/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php
  • updater/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php
  • updater/vendor/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php
  • updater/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php
  • updater/vendor/pimple/pimple/src/Pimple/Psr11/Container.php
  • updater/vendor/pimple/pimple/src/Pimple/Psr11/ServiceLocator.php
  • updater/vendor/pimple/pimple/src/Pimple/ServiceIterator.php
  • updater/vendor/psr/container/LICENSE
  • updater/vendor/psr/container/README.md
  • updater/vendor/psr/container/composer.json
  • updater/vendor/psr/container/src/ContainerExceptionInterface.php
  • updater/vendor/psr/container/src/ContainerInterface.php
  • updater/vendor/psr/container/src/NotFoundExceptionInterface.php
  • updater/vendor/psr/log/Psr/Log/Test/TestLogger.php
  • updater/vendor/symfony/debug/BufferingLogger.php
  • updater/vendor/symfony/debug/CHANGELOG.md
  • updater/vendor/symfony/debug/Debug.php
  • updater/vendor/symfony/debug/DebugClassLoader.php
  • updater/vendor/symfony/debug/ErrorHandler.php
  • updater/vendor/symfony/debug/Exception/ClassNotFoundException.php
  • updater/vendor/symfony/debug/Exception/ContextErrorException.php
  • updater/vendor/symfony/debug/Exception/FatalErrorException.php
  • updater/vendor/symfony/debug/Exception/FatalThrowableError.php
  • updater/vendor/symfony/debug/Exception/FlattenException.php
  • updater/vendor/symfony/debug/Exception/OutOfMemoryException.php
  • updater/vendor/symfony/debug/Exception/UndefinedFunctionException.php
  • updater/vendor/symfony/debug/Exception/UndefinedMethodException.php
  • updater/vendor/symfony/debug/ExceptionHandler.php
  • updater/vendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
  • updater/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php
  • updater/vendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
  • updater/vendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
  • updater/vendor/symfony/debug/LICENSE
  • updater/vendor/symfony/debug/README.md
  • updater/vendor/symfony/debug/Resources/ext/README.md
  • updater/vendor/symfony/debug/Resources/ext/config.m4
  • updater/vendor/symfony/debug/Resources/ext/config.w32
  • updater/vendor/symfony/debug/Resources/ext/php_symfony_debug.h
  • updater/vendor/symfony/debug/Resources/ext/symfony_debug.c
  • updater/vendor/symfony/debug/composer.json
  • updater/vendor/symfony/debug/phpunit.xml.dist
  • updater/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php
  • EXTRA_FILE
  • ocs/error_log
  • privacy.txt
  • soluzione.php
  • updater/vendor/paragonie/random_compat/composer.json
  • updater/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php
  • updater/vendor/paragonie/random_compat/lib/byte_safe_strings.php
  • updater/vendor/paragonie/random_compat/lib/random.php
  • updater/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php
  • updater/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php
  • updater/vendor/paragonie/random_compat/lib/cast_to_int.php
  • updater/vendor/paragonie/random_compat/lib/random_bytes_openssl.php
  • updater/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php
  • updater/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php
  • updater/vendor/paragonie/random_compat/lib/error_polyfill.php
  • updater/vendor/paragonie/random_compat/lib/random_int.php
  • updater/vendor/paragonie/random_compat/ERRATA.md
  • updater/vendor/paragonie/random_compat/SECURITY.md
  • updater/vendor/paragonie/random_compat/LICENSE
  • updater/vendor/paragonie/random_compat/README.md
  • updater/vendor/paragonie/random_compat/other/build_phar.php
  • updater/vendor/paragonie/random_compat/CHANGELOG.md
  • updater/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey
  • updater/vendor/paragonie/random_compat/dist/random_compat.phar.pubkey.asc

Alright, well i’d suggest you replace the updater directory with the content of the 10.2.1 version that you can download here. Do some backup first. Use your SSH access to do so. If you never used a console be careful ! Some documentation to help you through. It’s a bit the downside of ownCloud it looks easy to use from the web but you often have to use the shell :confused:.

I did it the replace via FTP, but nothing changed. I’ll try via SSH.
.htaccess if modified giveme the php version error

should I put the server in maintenance mode first? how to do it?

thank you

Do you have any cache system ? For example PHP OPCache can keep indefinite caching when tuned.

I don’t understand what you mean sorry.

I would but you do as you want, I gave you the doc above. Take the time to read it all first and then proceed, you’ll avoid bad surprises this way.

i don’t think I have the PHP OPCache, but not sure, i never install it.

the first file of the list is the “.htaccess” file, when I replace it and try to login, i got an error on a white page telling me i have the wrong PHP version, and that the 5.6 version is no longer suitable, so I should go in the hoster cpanel to switch it 7.2, and then all ok.

I’ll take the time to read it, thank you again!!!

Well yeah PHP5.6 is outdated and not supported anymore.

i managed to enter via ssh, but it doesn’t take my linux commands, for example:

$ sudo -u www-data php occ maintenance:mode --on
-bash: sudo: command not found

i typed dir
and i got the directory list… is it possible i have a windows server where owncloud runs?

another question, I installed owncloud from the hoster, who has different “app” ready to be installed, i saw they have the new version 10.2.1, should I update from there, will all my settings and files be lost?

Well it seems sudo is not installed, I’m assuming you have a Debian/Ubuntu so you might do

apt update
apt install sudo

I have the feeling you don’t have much knowledge on the command line so be careful.

Hm well it’s not a Windows server that you have there. So yes I suppose you could install ownCloud on a Windows machine but so far it’s not your problem here.

You should ask your hoster.

i got this message :frowning:
$ apt update
-bash: apt: command not found

Oh right I think you mentioned cpanel so you might install it from the web interface but I cannot guide you since I don’t use it. Nevertheless it seems you don’t have the technical knowledge yet to do these actions :confused:

no, I don’t… will do it via cpanel.
Thank you for your help.

No problem but I think it will be complicated to solve this problem without some basic shell knowledge, I hope I’m wrong :slight_smile:
Good luck !

If anyone is interested, I fixed the data integrity errors, i upload the tar file, put on a folder via ftp and extract it via the cpanel File Manager. Once extracted I overwrite the updater folder, and some other files, and now i just have .htacces file hash error, and i’m good with it.
Being on a shared server, i’m not able to do that via ssh.

1 Like

Nicely done !
You can also replace the .htaccess if you don’t want the integrity check :wink:

Hey,

i think it could be possible that the following in the documentation has caused your initial issue:

When using a FTP client to upload those files make sure it is using the Binary transfer mode instead of the ASCII transfer mode.

which was now worked around by uploading the files within an archive and extracting it afterwards.

2 Likes

actually i had binary transfer mode, and the problem I think started because of a web interface update.

1 Like