[SOLVED] Error While Upgrading over Major Versions

Ask all your questions regarding OC 7.x Please read the Support Forum Rules
Forum rules
ownCloud 7.x will be end of life soon. See maintenance and release schedule for more details.

Time to upgrade!

Before you post; make sure you are using at least PHP Version 5.3.x - Also read Support Forum - Read this before posting
own315
Beginner
Posts: 12
Joined: Thu Mar 10, 2016 9:25 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.31

[SOLVED] Error While Upgrading over Major Versions

Postby own315 » Thu Mar 10, 2016 10:03 pm

Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 7.x -> 8.x
PHP-Version: 5.5.31

Hello, I had an old Version 7.x installed on my Synology NAS. I got an update message on top of the server, to upgrade to 8.x.
So I did an backup of the folder and MySQL Database.

I started the update process with the integrated updater under the admin pane.
It downloaded the new version automatically and at the point of the Database upgrade an error message appeared, something like:
Unsuccessful, its not possible to upgrade major versions.

So I tried to get my old version back. Renamed the new folder. Renamed the Backup folder to owncloud.
Due to no (?) change to the database, I didn't do a restore of the database.
When I opened OwnCloud, I got a message that there is no access to the config folder.
I had to chown to http again.
After this - at the moment - I get the installation pane, where I have to create the admin account and input the information about the database.

The questions:
How do I find out what was my old version? Is this important?
How can I get my OwnCloud running again with the existing database?
How to upgrate to the newest free version?

Thank you guys for support!!
Last edited by own315 on Sat Mar 12, 2016 4:44 pm, edited 2 times in total.
Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 9.0.0.19
PHP-Version: 5.5.31

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Error While Upgrading over Major Versions

Postby tflidd » Fri Mar 11, 2016 10:50 am

If you are on OC 7.0.x, your upgrade path would be:
7.0.x -> 7.0.13 -> 8.0.11 -> 8.1.6. -> 8.2.3 (I would wait for the next release of OC 9.0.1)

The updater app is not very reliable, especially when it comes to do a series of upgrades. So you should do this manually:
  • Remove all files except the data/ and config/-folder
  • Download the new version from https://owncloud.org/changelog/
  • Extract the zip archive to your webserver folder
  • Run the upgrade (perhaps check the forum here of some other guys with synology, if you can directly use the occ command)

To get the current version you've used, check your config/config.php, it should contain a 'version' variable.

own315
Beginner
Posts: 12
Joined: Thu Mar 10, 2016 9:25 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.31

Re: Error While Upgrading over Major Versions

Postby own315 » Fri Mar 11, 2016 11:22 pm

First of all, thanks a lot! Sounds like a doable plan. :)

tflidd wrote:To get the current version you've used, check your config/config.php, it should contain a 'version' variable.

Old version was: 7.0.3.4

tflidd wrote:7.0.x -> 7.0.13 -> 8.0.11 -> 8.1.6. -> 8.2.3 (I would wait for the next release of OC 9.0.1)

Did I still need to start with 7.0.3.4 -> 7.0.13 or can I start with 7.0.3.4 -> 8.0.11?
And your recommendation for the last step is 8.1.6 -> 9.0.1 insteed of 8.1.6 -> 8.2.3 or do I have to get all the way 8.1.6 -> 8.2.3 -> 9.0.1?
Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 9.0.0.19
PHP-Version: 5.5.31

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Error While Upgrading over Major Versions

Postby RealRancor » Fri Mar 11, 2016 11:27 pm

Hi,

you need to go:

7.0.3 -> 7.0.13 -> 8.0.11 -> 8.1.6. -> 8.2.3 -> 9.0.0

A step like 8.1.6 -> 9.0.0 would skip one major version (8.2.3) causing a failed upgrade.
*gone*

own315
Beginner
Posts: 12
Joined: Thu Mar 10, 2016 9:25 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.31

Re: Error While Upgrading over Major Versions

Postby own315 » Sat Mar 12, 2016 2:49 am

RealRancor wrote:7.0.3 -> 7.0.13 -> 8.0.11 -> 8.1.6. -> 8.2.3 -> 9.0.0

Ok, I did this! Untill 8.2.3 no errors or warnings.
At Version 9.0.0 I get a message about code integrity problems. Have to check this the next days.
While the installation I gave all files chmod -R 755. Should I change this now, if yes, how?

Additional problems:
PHP no read right on /dev/urandom.
Using HTTP.
Contact pictures have a broken symbol. Have can I get the pictures back in my contacts? iPhone Client still have the pictures...

Thanks for the process till here!
Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 9.0.0.19
PHP-Version: 5.5.31

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Error While Upgrading over Major Versions

Postby RealRancor » Sat Mar 12, 2016 10:33 am

Most of the stuff is described in the documentation:

own315 wrote:At Version 9.0.0 I get a message about code integrity problems. Have to check this the next days.


https://doc.owncloud.org/server/9.0/adm ... y-messages

own315 wrote:While the installation I gave all files chmod -R 755. Should I change this now, if yes, how?


https://doc.owncloud.org/server/9.0/adm ... ermissions

own315 wrote:PHP no read right on /dev/urandom.


https://doc.owncloud.org/server/9.0/adm ... ble-by-php

own315 wrote:Using HTTP.


https://doc.owncloud.org/server/9.0/adm ... e-via-http

own315 wrote:Contact pictures have a broken symbol. Have can I get the pictures back in my contacts? iPhone Client still have the pictures...


Please check https://github.com/owncloud/contacts/issues or report an issue there.
*gone*

own315
Beginner
Posts: 12
Joined: Thu Mar 10, 2016 9:25 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.31

Re: Error While Upgrading over Major Versions

Postby own315 » Sat Mar 12, 2016 2:39 pm

Code integrity problems - I get this:

Code: Select all

Results
=======
- core
   - INVALID_HASH
      - core/doc/admin/_sources/configuration_files/collaborative_documents_configuration.txt
      - core/doc/admin/_static/style.css
      - core/fonts/LICENSE.txt
- files_external
   - INVALID_HASH
      - 3rdparty/Dropbox/API.php

I uploaded the files again yesterday, did a recheck, no message anymore. Today: Same files with same error message. :?:

Code: Select all

There were problems with the code integrity check.


RealRancor wrote:https://doc.owncloud.org/server/9.0/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions

I used the script on the site. There were no errors, but can I check the result anyway somehow?

RealRancor wrote:https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/security_setup_warnings.html#dev-urandom-is-not-readable-by-php

I added these lines to my config.php, also because of the contact pictures some other settings:

Code: Select all

  'default_language' => 'de',
  'defaultapp' => 'contacts',
  'memcache.local' => '\OC\Memcache\APCu',
  'enable_avatars' => true,

But still getting the message:

Code: Select all

dev/urandom is not readable by PHP which is highly discouraged for security reasons.

Error Logs:

Code: Select all

is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/var/services/tmp:/etc.defaults:/usr/bin/php:/usr/syno/synoman:/etc:/var/run:/volume1/@tmp/php:/var/services/web:/var/services/photo:/var/services/blog:/var/services/homes) at /volume1/web/owncloud/3rdparty/paragonie/random_compat/lib/random.php#66


Thanks a lot!
Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 9.0.0.19
PHP-Version: 5.5.31

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Error While Upgrading over Major Versions

Postby RealRancor » Sat Mar 12, 2016 3:03 pm

Please create a new thread about each of your questions as they are now unrelated to the upgrade to 9.0
*gone*

own315
Beginner
Posts: 12
Joined: Thu Mar 10, 2016 9:25 pm
ownCloud version: 9.0.0
Webserver: Apache
Database: MySQL
OS: Linux Embedded
PHP version: 5.5.31

Re: Error While Upgrading over Major Versions

Postby own315 » Sun Mar 13, 2016 2:11 am

RealRancor wrote:Please create a new thread about each of your questions as they are now unrelated to the upgrade to 9.0


Hello Rancor, thanks for helping in the other threads!
If someone is searching for, here are the topics:

[SOLVED] Problems with the code integrity check after update:
viewtopic.php?f=38&t=34284

[SOLVED] dev/urandom is not readable by PHP on Synology:
viewtopic.php?f=38&t=34286

Broken contact pictures:
viewtopic.php?f=38&t=34287

Now, I have:

Code: Select all

All checks passed.
Environment: Synology NAS 412+/Linux 3.10.35
Server: Apache/2.2.31 (Unix)
Database: MySQL/MariaDB 5.5.44-0034
Client: Firefox on Windows 7/CardDAV on iOS 9.2.1
OC-Version: 9.0.0.19
PHP-Version: 5.5.31


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 7.x”

Who is online

Users browsing this forum: No registered users and 1 guest