Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescan/Rebuild file index not possible without SSH #12435

Closed
BierGitte opened this issue Nov 13, 2018 · 5 comments
Closed

Rescan/Rebuild file index not possible without SSH #12435

BierGitte opened this issue Nov 13, 2018 · 5 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement Nice to have

Comments

@BierGitte
Copy link

Issue:
It doesn't seem to be possible to rebuild the file index without using ssh / occ files:scan command

Problem:
Because of an (unknown) error when trying to delete a file, I deleted it manually with an FTP client. The file stayed in the Nextcloud index on the server, I can neither remove it via the client nor the web frontend, even re-uploading it via FTP doesn't help.
Because my web hoster doesn't give SSH access, I don't see a way to clean up the file index. I have a red Nextcloud icon in the info area, and constantly get notifications that the file couldn't be synced.

Possible solution:
Add some kind of maintenance mode, either accessible from the client or web frontend, or provide an option via right click on the item in the Activity/Not Synced list of the client.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #1371 (No file-uploading possible at all), #10926 (Possible DB indexes), #545 (OCR all images without changing image files), #9196 (Decrypt Files Without Server), and #1071 (Not possible to view files inside of Deleted Files).

@BierGitte
Copy link
Author

Possible workarounds:
If you are allowed to on a shared hosting server you could:
Execute the command via cron job
Execute the command via php script etc., i.e. with shell_exec or similar

Unfortunately, that's not possible on my webspace. I could solve the problem as follows:
In phpMyAdmin, go to _file_locks table. If there is an entry for the problematic file, set "lock" from 1 to 0. Then delete the file via web interface.

I still think there should be maintenance options built into Nextcloud for non-privileged people on shared hosting platforms.

@tylla
Copy link

tylla commented Mar 3, 2019

With the possible risk of hopping on the "+1" bandwagon, this problem affects me as well.
I only have FTP access to the hosted area and this is the umpteenth time when the lack of this feature bites me. There are some file/directory operations which are simply way easier/faster through FTP then on the web GUI.
I understand that there may be technical considerations running the files:scan command from the web UI (like timeout), but I don't think this could not be solved. An option could be added to the '...' menu which would set a flag for the given directory for the cron service which could run the command. It can even take longer than one would expect as long as it would solve our (and others') problem.
Thank you for considering this enhancement (and for making this really nice program in the first place).

@skjnldsv skjnldsv added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Aug 20, 2020
@szaimen
Copy link
Contributor

szaimen commented Jun 9, 2021

Hi 👋

We are currently cleaning up our issue tracker. The feature described in this issues sounds like a good idea for a dedicated app. Feel free to post it in our "App ideas" section in the forum, to find a developer that wants to work on it:
https://help.nextcloud.com/c/apps/app-ideas/21

We are closing this issue here now, so the "issue tracker" of the server repository can be used better to track issues instead.

Cheers

@szaimen szaimen closed this as completed Jun 9, 2021
@tylla
Copy link

tylla commented Jun 10, 2021

I must disagree with the idea of "provide this feature as a dedicated app".
I think the possibility to rebuild the file index is a base functionality which is a must. If there is a possibility to change the files outside of NC then there should be the possibility to clean up the possible mess.
If there is already the corresponding functionality available on the command line, then this functionality should be available from the GUI as well.
Please reconsider the closure of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement Nice to have
Projects
None yet
Development

No branches or pull requests

5 participants