Hello. I have mounted my HD in a different mounting point for may samba share without moving any data of my database.
I just changed the path in config.php and any entry in mysql in accordance with tutorial.
Now everithing works but I cannot anymore write in the database.
If I run
sudo -u www-data php occ files:scan --all
I get
Scanning files for 1 users
Starting scan for user 1 out of 1 (xxx)
Home storage for user xxx not writable
Make sure you're running the scan command only as the user the web server runs as
+---------+-------+--------------+------------------+
| Folders | Files | Elapsed time | Items per second |
+---------+-------+--------------+------------------+
| 0 | 0 | 00:00:00 | 0 |
+---------+-------+--------------+------------------+
but after few seconds data are not anymore accessable.
If I try to access the data from samba share I do not have the rights.
From terminal I can see everything at the right place.
What can I try ?
I am also ready to loose all my data and restart from the beginning if it is the case but I really do not know where to start from.
I was yhinking to DROP DATABASE from mysql and create a new one but I do not know what would happend to owncloud.
I have now tried to move the data to an external USB pen drive but the result is the sameā¦
Please help ā¦
otherwise how can I create a new database and starting from the beginning ?
Iām truly sorry to say this: Complaining here about the lack of community support is IMHO not very fair.
I assume you decided to install ownCloud in a non-standard way, what IMHO is very discouraged for a beginner with limited Linux experience. And you decided not to fill the issue template, so willing helpers donāt know anything about your system.
The various installation processes described in the docs should and do work without any problem on any system that fulfill the requirements.
Maybe you should start over, following all the recommendations. In case you still end up with problems, feel free to come back and ask again, preferably with a filled issue template.
Sorry alfreddb ⦠it was nothing personal.
Iām a noob, yes of course.
I installed owncloud following the Debian recommended way and everything was well working.
When I changed the data path I started to have problems and after two days (and nights) spent on that data folder I finally found the way alone (but I needed to create a new db and start from new).
At the end I discovered what was the issue just comparing the new and the old and the solution was to use the chmod and chown in the right way on the data folder (easy to see now comparing the two).
Itās not a matter of fearness ⦠itās more related to the fact that the solution was not very difficult to be found and on other linux forums the community is may be larger and more effective.
You pointed me on the right way but finally my skill was not sufficient.
Anyhow I like owncloud and ⦠hopefully I will not need again to move my data folder.
Again, it was not a complain because nothing is due here
Thanks again for your help that anyhow brought me to study alot on the available docs thay is well done and very clear.
IIRC, the whole ownCloud tree must be owned by www-data:www-data. (user and group)
Your files and directories have ACLs set (access control lists). You can see this by the ā+ā character appended to the permission list. I donāt know from where this comes and why this was done. I assume, this causes your permission trouble.
Out of curiosity: What filesystem has your data disk, and how exactly is it mounted?
Well, the HD used for this samba share is coming from differnt NAS and never re-formatted.
It is Ext4
It was first mounted as samba on my NSA325 with original stock firware
it has been mounted as samba on my NSA325 after having flashed Debian over the stok fw (firs owncloud install)
now it is mounted as samba on my NSA325 Debian Flashed via Openmediavault that uses ACL but I did not touch it (after this I had the problem with my database without moving any file just changing the path in config.php etcā¦)
In OMV the ACL is set as:
Owner= www-data ā Read/Write/Exe
Group = user ā Read/Write/Exe
Others ā Read/Write/Exe
Then there is a nice flag (that I did not see before) on āreplace all existing permissionā.
The flag āApply permissions to files and subfoldersā is not flagged.
Anyhow now it seems to work even with the +.
This ACL is a nightmare and I wonder if now it is secure or notā¦
No.
I use the same disk but the owncloud data will remain as not accessible from samba.
Iām not looking for other troubles
Now I have a stable situation and I hav done a clone of my Debian rootfs ⦠just in case .