Trouble deleting files

Ask all your questions regarding OC 9.0 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
BeelVanBaer
Newbie
Posts: 4
Joined: Tue Apr 19, 2016 1:44 pm
ownCloud version: 9.0.1
Database: SQLite
OS: Unknown
PHP version: 5.6

Trouble deleting files

Postby BeelVanBaer » Thu Jul 07, 2016 11:14 am

Hi,

after accidentally uploading a huge amount of files to ownCloud I ran out of webspace and thus ownCloud stopped working. I deleted several files by accessing them through a FTP client and I can log back in and all is working just fine.

The problem I am facing now is that the files I deleted, are still listed in the respective folder in ownCloud. When I try to delete them inside ownCloud I get an "Error deleting file" .
Could anyone tell me how to get rid of the entries?

Thanks in advance.

Holger


PS.: I am running ownCloud 9.01 but I don't think it's relevant to my problem.

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Trouble deleting files

Postby RealRancor » Thu Jul 07, 2016 12:01 pm

Hi,

the main issue here is that you're not supposed to manually delete stuff within the datadir because there are metadata about those files stored within the database. You're only chance to fix this is to run the occ command "occ files:scan" via SSH and rescan the datadir:

https://doc.owncloud.org/server/9.0/adm ... ions-label
*gone*

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Trouble deleting files

Postby tflidd » Thu Jul 07, 2016 5:21 pm

If you haven't access via terminal and if you deleted only a few files this way, you can cheat a second time:
Take a textfile, rename it to the filename you want to delete, put this file back via FTP, then you should be able to delete it via web-interface.

You could submit a bug report that if you delete a non-existing file, owncloud will remove the database entry as well.

BeelVanBaer
Newbie
Posts: 4
Joined: Tue Apr 19, 2016 1:44 pm
ownCloud version: 9.0.1
Database: SQLite
OS: Unknown
PHP version: 5.6

Re: Trouble deleting files

Postby BeelVanBaer » Wed Jul 20, 2016 1:05 pm

Sorry for taking so long to reply.

Thank you so much for your help guys.
tflidd, I indeed can't access ownCloud via terminal so your "cheating trick" saved me here.
And yes, I will submit a report. Good idea.

Thanks again, great forum, very helpful !


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 9.0”

Who is online

Users browsing this forum: No registered users and 1 guest