Presense of /var/www/html/data after install to another data folder
Open
Nobody has claimed this yet.
1. to develop
enhancement
feature: install and update
good first issue
needs review
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
[root@nextcloud-test nextcloud]# ls -l /var/www/html/nextcloud/data/
total 8
drwxr-xr-x. 2 apache apache 62 Feb 23 09:41 .
drwxr-xr-x. 15 apache apache 4096 Feb 23 09:38 ..
-rw-r--r--. 1 apache apache 284 Feb 23 09:41 .htaccess
-rw-r--r--. 1 apache apache 0 Feb 23 09:41 index.html
-rw-r--r--. 1 apache apache 0 Feb 23 09:40 nextcloud.log
[root@nextcloud-test nextcloud]# grep data /var/www/html/nextcloud/config/config.php
'datadirectory' => '/nextcloud_btrfs',
[root@nextcloud-test nextcloud]# ls -l /nextcloud_btrfs/
total 20
drwxrwx---. 1 apache apache 156 Feb 23 09:44 .
dr-xr-xr-x. 18 root root 247 Feb 22 13:34 ..
drwxr-xr-x. 1 apache apache 40 Feb 23 14:46 admin
drwxr-xr-x. 1 apache apache 56 Feb 23 09:45 appdata_ocgajahh0ong
drwxr-xr-x. 1 apache apache 26 Feb 23 09:44 files_external
-rw-r--r--. 1 apache apache 284 Feb 23 09:41 .htaccess
-rw-r--r--. 1 apache apache 0 Feb 23 09:41 index.html
-rw-r--r--. 1 apache apache 0 Feb 23 09:42 nextcloud.log
-rw-r--r--. 1 apache apache 0 Feb 23 09:41 .ocdata
[root@nextcloud-test nextcloud]#
I suppose the cause was failure at the first installation when the apache user didn't get the RW permissions to /nextcloud_btrfs/.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the installation with the data directory configured as /nextcloud_btrfs, then inspect config/config.php and the creation of /var/www/html/nextcloud/data/. Check how Apache permissions are handled after an installation failure. Done should be defined as whether the default data directory is intentionally created or removed when another data folder is configured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100