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 indices after activating Mail in NC-AIO #9810

Open
ferdiga opened this issue Jul 7, 2024 · 9 comments
Open

missing indices after activating Mail in NC-AIO #9810

ferdiga opened this issue Jul 7, 2024 · 9 comments

Comments

@ferdiga
Copy link

ferdiga commented Jul 7, 2024

Steps to reproduce

  1. install NC AIO
  2. activate Mail app
  3. got to system admin page
    message displayed:
    The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing optional index "mail_messages_strucanalyz_idx" in table "mail_messages". Missing optional index "mail_class_creat_idx" in table "mail_classifiers". Missing optional index "mail_acc_prov_idx" in table "mail_accounts". Missing optional index "mail_alias_accid_idx" in table "mail_aliases". Missing optional index "mail_messages_mb_id_uid_uidx" in table "mail_messages". Missing optional index "mail_smime_certs_uid_email_idx" in table "mail_smime_certificates". Missing optional index "mail_trusted_senders_idx" in table "mail_trusted_senders". Missing optional index "mail_coll_idx" in table "mail_coll_addresses".

Expected behavior

all indices should be created

Actual behavior

missing indices

Mail app version

3.7.2

Mailserver or service

No response

Operating system

AWS ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database

PostgreSQL

Additional info

No response

@ChristophWurst
Copy link
Member

Is this a new or upgraded Installation?

@ferdiga
Copy link
Author

ferdiga commented Jul 7, 2024

new AIO - it comes without enabled mail - and I enabled it

@acetousk

This comment was marked as duplicate.

@ChristophWurst

This comment was marked as resolved.

@Lxeon
Copy link

Lxeon commented Jul 11, 2024

the same problem, but i delete table oc_mail_messages all index(except primary key);
then try occ db:add-missing-indices,
图片

no error but still get the info "Missing optional index "mail_messages_mb_id_uid_uidx" in table "mail_messages"."

and i try to find out added index, but nothing

@scebbers
Copy link

scebbers commented Jul 29, 2024

I have the same issue on a bare metal install of Nextcloud on a TrueNAS Core/FreeBSD jail using version 29.0.4. Nextcloud shows the message 'Missing optional index "mail_messages_mb_id_uid_uidx" in table "mail_messages"', which persists even after executing occ db:add-missing-indices.

@katerasrael

This comment was marked as duplicate.

@joshtrichards
Copy link
Member

nextcloud/server#48148 looks similar.

@heyvaldemar

This comment has been minimized.

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

No branches or pull requests

8 participants