After migration OC>NC a yum update back to OC

Support intro

Sorry to hear you’re facing problems :slight_frown:

If you’re urgently looking for support to keep your business running, consider checking out our paid support options.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Remember, the below information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Please delete everything above when creating your topic, just provide the following:

Nextcloud version (eg, 12.0.2): 12.0.3.3
Operating system and version (eg, Ubuntu 17.04): CentOS Linux release 7.4.1708 (Core)
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6 (CentOS)
PHP version (eg, 7.1): PHP 7.0.25

The issue you are facing:
I had OC, then I migrated to Nextcloud. BUT I left my YUM repo of Owncloud enabled.
Today I just executed a ‘yum update’ and promptly I got the message in the browser:
Downgrading is not supported and is likely to cause unpredictable issues (from 12.0.3.3 to 10.0.4.4)
How do I go back to nextcloud? How do I save the data (the data is still there!) in case I have to reinstall the server?

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install OC using e YUM repo
  2. Migrate to NC
  3. execute yum update

The output of your Nextcloud log in Admin > Logging:

No function is accessible now

The content of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

# cat config/config.php 
<?php
$CONFIG = array (
  'updatechecker' => false,
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
    0 => 'XXX.com',
    1 => 'srv009',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'overwrite.cli.url' => 'http://srv009/owncloud',
  'dbtype' => 'mysql',
  'version' => '12.0.3.3',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_user',
  'dbpassword' => 'XXX',
  'logtimezone' => 'UTC',
  'installed' => true,
  'mail_from_address' => 'cloud',
  'mail_smtpmode' => 'php',
  'mail_domain' => 'XXX.com',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache log in /var/log/httpd/error_log:

[Mon Jan 08 03:49:10.037312 2018] [auth_digest:notice] [pid 21182] AH01757: generating secret for digest authentication ...
[Mon Jan 08 03:49:10.039414 2018] [lbmethod_heartbeat:notice] [pid 21182] AH02282: No slotmem from mod_heartmonitor
[Mon Jan 08 03:49:10.142157 2018] [mpm_prefork:notice] [pid 21182] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.22 configured -- resuming normal operations
[Mon Jan 08 03:49:10.142181 2018] [core:notice] [pid 21182] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Jan 09 14:51:08.701065 2018] [mpm_prefork:notice] [pid 21182] AH00170: caught SIGWINCH, shutting down gracefully
[Tue Jan 09 14:51:45.178975 2018] [core:notice] [pid 1084] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Jan 09 14:51:45.182391 2018] [suexec:notice] [pid 1084] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jan 09 14:51:45.237644 2018] [auth_digest:notice] [pid 1084] AH01757: generating secret for digest authentication ...
[Tue Jan 09 14:51:45.239157 2018] [lbmethod_heartbeat:notice] [pid 1084] AH02282: No slotmem from mod_heartmonitor
[Tue Jan 09 14:51:45.385335 2018] [mpm_prefork:notice] [pid 1084] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.25 configured -- resuming normal operations
[Tue Jan 09 14:51:45.385445 2018] [core:notice] [pid 1084] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@srv009 owncloud]# find -cmin -45
.
./core/img
./core/img/places
./core/img/actions
./core/vendor/jsTimezoneDetect
./core/vendor/snapjs
./core/vendor/base64
./core/vendor/handlebars
./core/vendor/backbone
./core/vendor/select2
./core/vendor/strengthify
./core/vendor/blueimp-md5
./core/vendor/jquery-migrate
./core/vendor/zxcvbn
./core/vendor/moment
./core/vendor/underscore
./core/vendor/jquery
./core/vendor/jcrop
./core/doc/admin
./core/doc/admin/configuration_user
./core/doc/admin/configuration_files
./core/doc/admin/configuration_files/external_storage
./core/doc/admin/configuration_server
./core/doc/admin/_images
./core/doc/admin/_sources
./core/doc/admin/_sources/configuration_user
./core/doc/admin/_sources/maintenance
./core/doc/admin/_sources/configuration_files
./core/doc/admin/_sources/configuration_files/external_storage
./core/doc/admin/_sources/configuration_server
./core/doc/admin/_sources/installation
./core/doc/admin/_sources/issues
./core/doc/admin/_sources/configuration_database
./core/doc/admin/configuration_database
./core/doc/user/_images
./core/doc/user/files
./core/doc/user/_sources
./core/doc/user/_sources/external_storage
./core/doc/user/_sources/files
./core/doc/user/_sources/pim
./settings
./settings/js
./settings/ajax
./settings/Controller
./settings/templates
./updater
./updater/pub/js/vendor
./updater/src
./updater/src/Command
./updater/vendor
./updater/vendor/symfony
./themes
./themes/example
./themes/example/core
./apps/files_external
./apps/files_external/appinfo
./apps/files_external/lib
./apps/files_external/lib/Config
./apps/files_external/lib/Lib
./apps/files_external/lib/Lib/Auth
./apps/files_external/lib/Lib/Auth/Password
./apps/files_external/lib/Lib/Storage
./apps/files_external/lib/Lib/Backend
./apps/files_texteditor
./apps/files_texteditor/img
./apps/files_texteditor/js
./apps/files_texteditor/css/DroidSansMono
./apps/files_texteditor/l10n
./apps/notifications/appinfo
./apps/gallery
./apps/gallery/build
./apps/gallery/build/documentation
./apps/gallery/img
./apps/gallery/js
./apps/gallery/js/vendor
./apps/gallery/js/vendor/jquery-touch-events
./apps/gallery/vendor
./apps/gallery/vendor/symfony/yaml
./apps/gallery/l10n
./apps/user_ldap
./apps/user_ldap/appinfo
./apps/user_ldap/img
./apps/user_ldap/js
./apps/user_ldap/css
./apps/user_ldap/lib
./apps/user_ldap/templates
./apps/user_ldap/l10n
./apps/files_sharing/appinfo
./apps/files_sharing/lib/External
./apps/files_trashbin/appinfo
./apps/files/js
./apps/files/templates
./apps/dav
./apps/dav/appinfo
./apps/dav/lib
./apps/dav/lib/Migration
./apps/dav/lib/Connector/Sabre
./apps/files_pdfviewer
./apps/files_pdfviewer/css
./apps/federatedfilesharing
./apps/federatedfilesharing/appinfo
./apps/activity
./apps/activity/js
./apps/activity/docs
./apps/activity/lib
./apps/activity/lib/BackgroundJob
./apps/activity/lib/Extension
./apps/activity/lib/Controller
./apps/activity/templates
./apps/activity/l10n
./apps/encryption
./apps/encryption/lib/Command
./lib/private/DB
./config
./3rdparty
./3rdparty/doctrine
./3rdparty/doctrine/cache
./3rdparty/doctrine/dbal
./3rdparty/doctrine/dbal/lib/Doctrine/DBAL
./3rdparty/doctrine/inflector
./3rdparty/doctrine/collections
./3rdparty/symfony
./3rdparty/symfony/process
./3rdparty/symfony/polyfill-mbstring
./3rdparty/symfony/console
./3rdparty/react/promise
./3rdparty/icewind/streams
./3rdparty/phpseclib/phpseclib
./3rdparty/phpseclib/phpseclib/phpseclib
./3rdparty/lukasreschke/id3parser
./3rdparty/rackspace/php-opencloud
./3rdparty/rackspace/php-opencloud/lib
./3rdparty/rackspace/php-opencloud/lib/OpenCloud
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Database
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Database/Resource
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Orchestration
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Common
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Common/Exceptions
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/CloudMonitoring
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/CloudMonitoring/Resource
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/DNS
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/DNS/Resource
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/LoadBalancer
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/LoadBalancer/Resource
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/ObjectStore
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/ObjectStore/Exception
./3rdparty/rackspace/php-opencloud/lib/OpenCloud/Queues
./3rdparty/league/flysystem
./3rdparty/league/flysystem/src
./3rdparty/league/flysystem/src/Plugin
./3rdparty/bantu/ini-get-wrapper
./3rdparty/sabre/http
./3rdparty/sabre/vobject
./3rdparty/sabre/vobject/lib
./3rdparty/sabre/vobject/lib/Parser
./3rdparty/sabre/vobject/lib/Recur
./3rdparty/sabre/uri
./3rdparty/sabre/dav
./3rdparty/sabre/dav/lib
./3rdparty/sabre/dav/lib/DAVACL
./3rdparty/sabre/dav/lib/DAVACL/Xml
./3rdparty/sabre/dav/lib/DAVACL/Xml/Request
./3rdparty/sabre/dav/lib/DAV
./3rdparty/sabre/dav/lib/DAV/Xml
./3rdparty/sabre/dav/lib/DAV/Xml/Request
./3rdparty/sabre/dav/lib/DAV/Xml/Property
./3rdparty/sabre/dav/lib/DAV/Xml/Element
./3rdparty/sabre/dav/lib/DAV/Auth
./3rdparty/sabre/dav/lib/DAV/Auth/Backend
./3rdparty/sabre/dav/lib/CalDAV
./3rdparty/sabre/dav/lib/CalDAV/Backend
./3rdparty/sabre/xml
./3rdparty/sabre/event
./3rdparty/sabre/event/lib
./3rdparty/pear
./3rdparty/pear/pear_exception
./3rdparty/pear/archive_tar
./3rdparty/pear/console_getopt
./3rdparty/punic/punic
./3rdparty/punic/punic/code
./3rdparty/punic/punic/code/data
./l10n

Hello

My (=beginner) considerations:

  • no change to the data directory
  • because of the error message (migration not possible) => no change to the database
  • no change to config.php (because the version was still 12.0.3.3)

Thus I downloaded 12.0.4 (the php application was the only changed part of NC) and proceeded as for an update from 12.0.3.3 to 12.0.4. After the first check every thing seems to be very good, up too the following error by integrity check, that I solved by deleting the market app. (Before that I also deleted 3 other app that come with 12.0.4 and caused integrity check 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
=======
- market
	- EXCEPTION
		- OC\IntegrityCheck\Exceptions\InvalidSignatureException
		- Certificate is not valid.

Raw output
==========
Array
(
    [market] => Array
        (
            [EXCEPTION] => Array
                (
                    [class] => OC\IntegrityCheck\Exceptions\InvalidSignatureException
                    [message] => Certificate is not valid.
                )

        )

)

You should deinstall or disable the owncloud package of CentOS. If not, it does run such an upgrade each time there is a new version of owncloud.

In your case it probably replaced all the code files and wasn’t able to run the update script, so your database and data folder weren’t modified and your idea to put back the nextcloud code was good. However, it is better to delete the owncloud code first, so only keep the data and config folder and delete all the code first (if not you risk to have a mixture of Nextcloud and ownCloud code, the integrity checker was exactly build to spot such issues). Then place the Nextcloud code.

To remove the packet, I don’t know CentOS if it is possible to delete a package without deleting user data (therefore do a backup). And check in your webserver configuration if there are specific modifications to run owncloud/Nextcloud.