i have a weird issue. I cant access the files in some of the folders anymore. I know that I had access to them a long time ago but now it doesn't show me the files in this folder and it tells me that I dont have permission to add files. However the file direcotry is in my user accounts directory on the server also the file permisson on linux are set to the right owner.
I dont know when I lost access, since the last time I accesed this files, was a long time ago and did multiple server upgrades. The files are there. I can see them if I access my directory via FTP. Also if I click on the folder it tells me that I am (the current logged in user and only user) are the owner of the files.
Integrity status for oC9+
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found
is there a way to trigger this via an url? i uploaded the new files again via owncloud webinterface to have them available.
but my biggest problems is access to folders and files I had access before and now it tells me that I dont have any access anymore. I am even the only user on it. so it can't be assigned to another user by accident. How do I tell owncloud to get access back. The files itself have the same permissions in linux like the files i can still access.
That's not the purpose. You said you've done multiple server upgrades, and you don't know when the issue first arose. This file rescan is something you do after an upgrade, to make sure all the content is available.
As with any technical forum, you're going to have to post output and data if you expect meaningful responses. You say the permissions are "the same" but how do we know how you've determined this? We have no idea what the permissions are set to, or whether they're even correct, or what the selinux labels are set to, or what your system sebools are set to. The more data you provide, the better.
with server upgrade I mean Owncloud server. not my hosting server.
yes i checked the permission with ftp and they are for folders rwxr-xr-x and for files rw-r--r-- and owner and group are correct as well. this is the only user and group which can own files anyway on my setup. I a saying they are correct, because the files and folders i still can access have the same permissions and owner and group.
the problem with your command is, i cant run anything requiering root.
I know i had issues before with utf8 formating and i was able to fix this in the sql database by altering the entries manually. Like owncloud has issues with ö ä u and so on in file and foldernames.
Well this feature doesnt work now anymore, but thats how I got all my files into owncloud. I moved the already existing folder with my files to the ownlcoud directory. Weird. Anyway thats not a problem right now. Right now my problem is that I can't access certain areas of my owncloud installation
RealRancor send you already a link that manually putting files is not supported. With webhosting, this is difficult to handle.
What you can try: Open the existing folder (as close as you can get in the file structure), then create a new textfiles, make little changes. This sometimes triggers to update the file-index of this specific folder. If that doesn't work, there is no other way than upload the files via webinterface, oc-client or webdav.
its not about manually putting files. its about files and folders i have no longer access too but had bevore. this were not manually uploaded.
I had access to all this files and folders before. I dont know exactly when i lost the access because i dont access 20.000 files daily and check if they work. So i cant tell you when that happened. probably with one of the latest OC updates/upgrades.
All the files were in the database and I had access before. now i lost it to certain files. I cant get it back with manually creating the folder, because its already in the database that I (the one and only user of this installation) have no access to it. I think it needs to be fixed in the database rather than the actual filesystem on the server itself.
I had access to ALL my files and folders before and now I got restricted for whatever reason.
I started my owncloud by moving folders from an existing folder outside of OC wiht all my files into the OC data dir and OC created the database for all the files by itself. It worked perfectly and I had access to all the files on my OC. Now i have restrictions on certain files and folders. Well mainly the folder, because all the files are in a directory which I cant access anymore. So basically I just lost permission to see certain folders (including the files located within.)
Is there a manual way to reset the hole file cache or database to tell OC to start from scratch...
Thanks for that clarification. To put files manually via FTP into the data-folder is done by many users and statements like this
ring all alarm bells
Normally, that should not happen at all, default charset of php and mysql should be set to utf8. Could be related to your problem. It is difficult to find out the reason what has happened, perhaps a timeout (php, database)?
Yes with a new setup. The problem is you can't trigger a filescan, but even if you could, this would create a complete new file index, meaning all your sharing settings, file tags, .. are lost and the client needs to download all files again!
thanks for your message. I dont care if I loose share settings, tags and so on. I am using OC as an easy way to access files from everywhere and everything.
Well this is the most suitable enviroment for me, because I have unlimited storage and I wont get that with any vserver or anything else. At least nothing I have found so far. Thats why my current setup is best for me. I dont need the performance for a lot of users. Its a single user system, sometimes I share some files and "delete" the share link again
About your timeout, that could be, but I dont know. But the timeout shouldnt matter, because the folders I can't access are already indexed or were indexed before.
Now my OC installation is kinda useless, if i cant access all the files.
The only way is to figure out, up to which size your webhosting can handle a owncloud installation. If you find any pattern why and when the file-index gets wrong, we can try to track the problem.
You can setup a new installation, only other way to fix it, you could migrate the whole setup to a local machine, run the repair commands, and then migrate it back to your webhoster.