Can't update from 10.0.0.2.1 to 10.0.0.3

okay, try this

sudo -u www-data php occ maintenance:mode --off

then do

sudo -u www-data php occ upgrade

It did something. After I rebooted I had a button to press on the home page to update again (instead of the login fields)

I clicked it and got other errors.

Then I can login and in the server settings I see that I am at ver.: 10.0.3.3

At the top of the page there is a yellow warning:
"There were problems with the code integrity check"
And in red:
Some files have not passed the integrity check. Further information on how to resolve this issue can be found in our documentation. (List of invalid files… / Rescan…)

okay, thats good. well that's better than that what we had before.

Can you give me the list of the invalid files? You should get them by clicking on the error message

Results

  • core
    • FILE_MISSING
      • CHANGELOG.md
    • INVALID_HASH
      • updater/app/config/container.php
      • updater/pub/js/main.js
      • updater/src/Command/ExecuteCoreUpgradeScriptsCommand.php
      • updater/src/Command/StartCommand.php
      • updater/src/Utils/AppManager.php
      • updater/src/Utils/Locator.php
      • updater/src/Utils/OccRunner.php
      • updater/vendor/autoload.php
      • updater/vendor/composer/autoload_real.php
      • updater/vendor/composer/autoload_static.php
    • EXTRA_FILE
      • updater/src/Command/EnableNotShippedAppsCommand.php
      • updater/src/Command/DisableNotShippedAppsCommand.php

Can you try running my 2 commands from above again and see if it helps?

Also, regarding the missing file - here is how to get it:

When I run both I get this: Could not open input file: occ

you have to run it in /var/www/owncloud or your owncloud dir

Ok I just did it and I get: owncloud is already latest version

alright, you can trick owncloud to do an upgrade.

just edit the config.php to an older version.

like now there is a version like 10.0.3.something

just change the 3 to a 2 and do the 2 commands from above and see if you still get code integrity errors

I clicked the link but I really don't understand what I'm supposed to do from what I read. I'm too ignorant.

first do what I suggested in the commend above, then we will deal with the changelog.md file

Remind me where I find config.php please

/var/www/owncloud/config/

Ok here is the output:

An unhandled exception has been thrown:
Exception: DateTimeZone::__construct(): Unknown or bad timezone (Toronto/Canada) in /var/www/owncloud/lib/private/Console/TimestampFormatter.php:100
Stack trace:

0 /var/www/owncloud/lib/private/Console/TimestampFormatter.php(100): DateTimeZone->__construct('Toronto/Canada')

1 /var/www/owncloud/lib/composer/symfony/console/Output/Output.php(157): OC\Console\TimestampFormatter->format('')

2 /var/www/owncloud/lib/composer/symfony/console/Output/Output.php(134): Symfony\Component\Console\Output\Output->write(Array, true, 16)

3 /var/www/owncloud/lib/composer/symfony/console/Application.php(621): Symfony\Component\Console\Output\Output->writeln('', 16)

4 /var/www/owncloud/lib/composer/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException(Object(Exception), Object(Symfony\Component\Console\Output\StreamOutput))

5 /var/www/owncloud/lib/private/Console/Application.php(160): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

6 /var/www/owncloud/console.php(106): OC\Console\Application->run()

7 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')

8 {main}root@cloud:/var/www/owncloud

this should correct your time

timedatectl set-ntp true

I did that but I had the same output when entered sudo -u www-data php occ upgrade

So I rebooted the server re-did it and I still get the timezone error

what exactly did you change in the config.php?

can you show me your config.php ?

I changed 10.0.3.3 to 10.0.2.0

can you show me your config.php or the php.ini file ( thats in your php folder)