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

ownCloud update problem (via UI) #21722

Closed
mmattel opened this issue Jan 14, 2016 · 3 comments
Closed

ownCloud update problem (via UI) #21722

mmattel opened this issue Jan 14, 2016 · 3 comments

Comments

@mmattel
Copy link
Contributor

mmattel commented Jan 14, 2016

Server: Ubuntu 14.04, PHP 5.5.9, MySQL, Redis
Browser: W7/Opera

One of my productive instances running 8.2.0 reported that there is an update to 8.2.2 available.
image

I went to the admin page to the bottom and tried to update (stable).
I got the following response:
image

The following Files and Directories (a loooong list) has been reported:

The web directory name for owncloud

/var/www/<directory>

Directories

3rdparty
core
lib
l10n
settings
ocs
ocs-provider
resources

Files in Root

.htaccess
.mailmap
.tag
.user.ini
AUTHORS
COPYING-AGPL
console.php
cron.php
db_structure.xml
index.html
index.php
indie.json
occ
ocs-provider
ocs-provider/index.php
ocs-provider/provider.php
public.php
remote.php
robots.txt
status.php
version.php

This is the complete instance!

If I compare the requirement to set proper access rights according the documentation (https://github.com/owncloud/documentation/blob/master/admin_manual/installation/installation_wizard.rst#setting-strong-directory-permissions) and the required rights as listed above to do the update, I see a big difference. Which is also a security issue because some files need root:[HTTP group] and not [HTTP group]:[HTTP group]

Finally it ended after a couple of tries (no more access rights complaints) with:

Update fehlgeschlagen.Unable to move /<directory>/_oc-upgrade/8.2.2.2/core/resources to /<directory>/resources

Following updater backups have been created so far:
image

owncloud.log:

Error   updater Unable to move /<directory>/_oc-upgrade/8.2.2.2/core/resources to /<directory>/resources    2016-01-14T15:03:43+01:00
Error   updater Something went wrong for core. Rolling back.    2016-01-14T15:03:17+01:00
Error   PHP rename(/<directory>/_oc-upgrade/8.2.2.2/core/resources,/<directory>/resources): File exists at <directory>/apps/updater/lib/helper.php#52   

<directory> ... owncloud instance

How to deal with that?

@ghost
Copy link

ghost commented Jan 14, 2016

@mmattel You need to revert the strong permissions as described in the documentation before being able to using the updater app:

https://doc.owncloud.org/server/8.2/admin_manual/maintenance/update.html#setting-strong-permissions

The Unable to move /<directory>/_oc-upgrade/8.2.2.2/core/resources to /<directory>/resources was a bug in the updater previous to 8.2.2: owncloud/updater#189

@nickvergessen
Copy link
Contributor

Closing as duplicate of owncloud/updater#189

@lock
Copy link

lock bot commented Aug 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants