Nextcloud version: 18.0.5 and 19.0.0
Operating system and version: Linux 3.10.0-1062.18.1.el7.x86_64 x86_64
Apache or nginx version : ??
PHP version: 7.3.18
The issue you are facing:
My web hoster recently moved me to a dedicated VM from a shared one so Iām guessing there is a config error but Iām not sure as:
OK : Creating, deleting, downloading files is fine from my Win10 PC using the Win10 Nextcloud App
OK: Creating Folders, deleting & downloading files is fine from my phone using the Nexcloud App
Fail: Uploading Files using the Nextcloud App. The file upload itself works fine, but a few seconds after 100% uploaded I get āYou are not permitted to upload to this folderā and the upload items shows as failed and āPermission Deniedā.
Iām not sure why it would be fine from my PC but not from my phone. Iāve had a look at some logs and do find some entries like:
Thu Jun 04 23:02:28.952824 2020] [core:crit] [pid 597] (13)Permission denied: [client xxx.xxx.xxx.xxx:12345] AH00529: /home/me/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/me/public_html/' is executable
@jmone as @Andy is Android app dev I think that his request for filing a GH-Issue would mark a solution regarding the forum. Meaning thereās nothing that could be done here.
Please donāt forget to re-link your issue as an answer to this threadā¦
Commenting to add what helped me since there was little online about this.
Files I added to Nextcloud/data somehow had the wrong owner, not www-data but my main Linux user name. chown the whole folder to be sure and could upload from the Android client
I had some TWRP files (Android backup utility) I couldnāt delete from the Android client but that seemed to be specific to those files, no idea why because I could delete other files. Removed the from terminal in Linux and good to go.
Thanks - I donāt even have a www-data user or group on this system. The service provider had migrated my Nextcloud instances from a shared to dedicated VM, so Iām guessing the ownership changed at that point.
Before I go back to tech support, can I confirm what folders need to have the ownership modified on them, as everything currently works except for Android Uploads, and is the ownership to be āwww-dataā or is it dependant on the OS or the ownership of the webservice?
I can confirm, using Nextcloud on Unraid and the ownership of my files was not set correctly.
After running chown -R nobody:users and restarting Nextcloud, the issue is now resolved.
nobody:users being the user and group of all the other Nextcloud files.
FYI: I was using the Android client and having these issues