Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to 11.0.3 messed up everything #4855

Closed
andre-paulo98 opened this issue May 13, 2017 · 8 comments
Closed

Updating to 11.0.3 messed up everything #4855

andre-paulo98 opened this issue May 13, 2017 · 8 comments

Comments

@andre-paulo98
Copy link

andre-paulo98 commented May 13, 2017

Steps to reproduce

When updating from 11.0.2 to 11.0.3

Actual behaviour

Its stuck on Move new files in place
http://i.imgur.com/VT79ySf.png
files on the folder are really messed up
http://i.imgur.com/BnsSdJ1.png
That is the folder where was the nextcloud site

Server configuration

Operating system: Ubuntu 16

Web server: Apache

Database: MySQL

PHP version: 7.0.15

Nextcloud version: 11.0.2

Updated from an older Nextcloud/ownCloud or fresh install: Updated from ownCloud

Where did you install Nextcloud from: Not sure but most likely from download.nextcloud.com

List of activated apps:

App list Installation is messed up. Can't check

Nextcloud configuration:

Config report Installation is messed up. Can't check

Are you using external storage, if yes which one: No

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Chrome 58.0.3029

Operating system:

Logs

Web server error log

Web server error log
[Sat May 13 19:13:24.120982 2017] [authz_core:error] [pid 14391] [client X:X] AH01630: client denied by server configuration: /var/www/X/public/data/.ocdata

Nextcloud log (data/nextcloud.log)

Nextcloud log
can't access

Browser log

Browser log
http://i.imgur.com/LlCbJC6.png
@MorrisJobke
Copy link
Member

This seems to be an updater problem. Could you provide us with the updater.log in the data directory?

@andre-paulo98
Copy link
Author

@MorrisJobke
Copy link
Member

looks like the updater was stopped in the middle. Have you lost the connection to the server while having the browser page open? (because it looks like that)

Ways to continue updater:

  • go to /var/www/cloud.X/public/updater on the command line and execute php updater.phar as the web server user (typically prefix this with sudo -u www-data for Ubuntu for example)
  • open https://example.org/updater/index.php and follow the instructions there

Then the update process should continue.

@andre-paulo98
Copy link
Author

I dont think that i lost connection during the update.
But your solution did the trick. Thank you very much 😄

@hanzei
Copy link

hanzei commented May 24, 2017

I run into the same problem. But because the updater deleted some old files and the crashed I can't finish the update. php updater.phar prints out:

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Enable maintenance mode
[✔] Create backup
[✔] Downloading
[✔] Extracting
[✔] Replace entry points
[✘] Delete old files failed
core/shipped.json is not available

Update failed. To resume or retry just execute the updater again.

@MorrisJobke
Copy link
Member

Could I ask you to open this as an issue in the updater bug tracker? https://github.com/nextcloud/updater

@hanzei
Copy link

hanzei commented May 27, 2017

@MorrisJobke sure

@PanicDriven
Copy link

PanicDriven commented Sep 23, 2017

I had this same problem from 11.0.4 to 11.0.5.

[✘] Delete old files failed
core/shipped.json is not available

I created a shipped.json file in my nextcloud/core/ and set permissions to 777 for shipped.json. This worked and let me complete the update after rerunning the updater but resulted in this:

[✔] Check for expected files
[✔] Check for write permissions
[✔] Enable maintenance mode
[✔] Create backup
[✔] Downloading
[✔] Extracting
[✔] Replace entry points
[ ] Delete old files ...PHP Warning: Invalid argument supplied for foreach() in phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php on line 592
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Not sure what that means... but nextcloud show i'm on 11.0.5 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants