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

Missing-index #11463

Closed
TinTinMar515 opened this issue Sep 29, 2018 · 6 comments
Closed

Missing-index #11463

TinTinMar515 opened this issue Sep 29, 2018 · 6 comments

Comments

@TinTinMar515
Copy link

Hi,
I recently upgrade my server from Nextcloud 13 to 14 and the warning security configuration told me to run : occ db: add-missing-index
but the command appears to be not the good one.
I ran :
sudo -u www-data php occ db:add-missing-indices
After it was done, everything seems to be ok.
Sorry for my English and thank you for your work,

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #11167 (occ db:add-missing-indices - Exact steps to resolve?), #10926 (Possible DB indexes), #4820 (Asturian language is missing), #866 (Calendar Share Functionality missing), and #10656 (Configuration check - Minor typo: occ db:add-missing-indices).

@Gabuzomeuh
Copy link

Gabuzomeuh commented Sep 30, 2018

I ran into the same issue when updating from 13.0.6 to 14.0.1

Used phpmyadmin to add the missing index with :

ALTER TABLE oc_filecache ADD INDEX fs_mtime (mtime) USING BTREE;

@MorrisJobke
Copy link
Member

but the command appears to be not the good one.
I ran :
sudo -u www-data php occ db:add-missing-indices
After it was done, everything seems to be ok.
Sorry for my English and thank you for your work,

Thanks for this feedback. The command then gives you more hints, because depending on your setup the user you need to run this under could be named differently. So I would leave this as it is, because the occ command gives you further and more correct hints what to do.

@TinTinMar515
Copy link
Author

Yes but the errors is the proposal :
occ db: add-missing-index
instead of :
occ db:add-missing-indices

There is a space betwen bd: and add
and its index instead of indices.
Sorry to insist.

@kesselb
Copy link
Contributor

kesselb commented Sep 30, 2018

When you report issues with translations it might be good to report the language you use for nextcloud. I did grep -R "add-missing-index" but could not find any place. I guess this has been solved but not released yet. Thank you for reporting 👍

@MorrisJobke
Copy link
Member

When you report issues with translations it might be good to report the language you use for nextcloud. I did grep -R "add-missing-index" but could not find any place. I guess this has been solved but not released yet. Thank you for reporting 👍

Same here - I could not find it in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants