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

Updater problem with permissions trying to update from 10.0.1 to 10.0.2 #2604

Closed
jmartin17 opened this issue Dec 10, 2016 · 6 comments
Closed

Comments

@jmartin17
Copy link

Steps to reproduce

Expected behaviour

Tell us what should happen
should have run update to Nextcloud 10.0.2

Actual behaviour

Tell us what happens instead
Got the following permission errors and don't know the command to change the permissions?

Check for write permissions
The following places can not be written to /snap/nextcloud/173/htdocs/updater/../.
/snap/nextcloud/173/htdocs/updater/../.htaccess
/snap/nextcloud/173/htdocs/updater/../.user.ini
/snap/nextcloud/173/htdocs/updater/../3rdparty/.
/snap/nextcloud/173/htdocs/updater/../3rdparty/.gitignore
/snap/nextcloud/173/htdocs/updater/../3rdparty/LICENSE INFO
/snap/nextcloud/173/htdocs/updater/../3rdparty/README.md
/snap/nextcloud/173/htdocs/updater/../3rdparty/autoload.php
/snap/nextcloud/173/htdocs/updater/../3rdparty/bantu/.
/snap/nextcloud/173/htdocs/updater/../3rdparty/bantu/ini-get-wrapper/.
.
. too many to list....
.

/snap/nextcloud/173/htdocs/updater/../updater/.
/snap/nextcloud/173/htdocs/updater/../updater/index.php
/snap/nextcloud/173/htdocs/updater/../version.php

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

The content of config/config.php:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ```

Browser log

Browser log ``` Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

</details>
@kdo-razer
Copy link

kdo-razer commented Dec 10, 2016

same here... running Nextcloudbox out of the box...

@ghost
Copy link

ghost commented Dec 10, 2016

I'm experiencing the same issure while trying to go 10.0.1 -> 10.0.2 through the web updater. I remember setting the permissions according to the NC10 admin manual, so everything should be in working order.

@ghost
Copy link

ghost commented Dec 11, 2016

I was able to circumvent the problem.
Before upgrading, I did a chown -R www-data: /var/www/nextcloud
(only chowning the necessary files would probably be enough, but whatever)
Then I let it upgrade, and after that I ran the script for strong directory permissions again:
https://docs.nextcloud.com/server/10/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions
That way you don't keep possibly insecure permissions after the upgrade.

@jmartin17
Copy link
Author

I don't know what changed but when I sign on the my NextCloudBox I see Version 11.0 stable installed completely unattended.

@nickvergessen
Copy link
Member

So the problem is gone now?

@jmartin17
Copy link
Author

Yes, for me it is gone.

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

3 participants