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

remove Account provisioning #6889

Closed
Tealk opened this issue Jul 15, 2022 · 12 comments · Fixed by #8993
Closed

remove Account provisioning #6889

Tealk opened this issue Jul 15, 2022 · 12 comments · Fixed by #8993
Assignees

Comments

@Tealk
Copy link

Tealk commented Jul 15, 2022

Steps to reproduce

  1. delete a previously created Account provisioning
  2. opening the mail app
  3. no way to delete the mail account

Expected behavior

that the account is automatically removed or a delete button would be available

Actual behavior

a mailbox is displayed which cannot be deleted

Mail app version

1.13.6

Mailserver or service

No response

Operating system

Debian

PHP engine version

PHP 8.1

Web server

Nginx

Database

MariaDB

Additional info

No response

@miaulalala
Copy link
Contributor

Hi, can you elaborate a bit?
Are these the steps you take?

  1. You create an provisioning config
  2. Existing accounts are provisioned.
  3. Then you delete the provisioning via the "Delete & unprovision, but the accounts are not deleted.

Can you have a look at your logs please to see if there are any errors?

@Tealk
Copy link
Author

Tealk commented Jul 20, 2022

Are these the steps you take?

1. You create an provisioning config

2. Existing accounts are provisioned.

3. Then you delete the provisioning via the "Delete & unprovision, but the accounts are not deleted.

yes

because of the log I must look later whether I still find that

@Tealk
Copy link
Author

Tealk commented Aug 3, 2022

Can you have a look at your logs please to see if there are any errors?

I don't have the logs from that time anymore, I set logrotate very short

@miaulalala
Copy link
Contributor

Can you reproduce the error and then look at your logs?

@Tealk
Copy link
Author

Tealk commented Aug 3, 2022

So just create a configuration again and delete it?
What happens to the one that is still displayed?

@ryomahostingph
Copy link

how to fix these? we experiencing this also

@Tealk
Copy link
Author

Tealk commented Oct 1, 2022

I use PostgreSQL and have uninstalled the app and then cleaned the database and then reinstalled the app.

occ app:remove mail

sudo -u postgres psql

\c nextcloud

DROP TABLE
   oc_mail_accounts,
   oc_mail_aliases,
   oc_mail_attachments,
   oc_mail_classifiers,
   oc_mail_coll_addresses,
   oc_mail_local_messages,
   oc_mail_mailboxes,
   oc_mail_message_tags,
   oc_mail_messages,
   oc_mail_provisionings,
   oc_mail_recipients,
   oc_mail_tags,
   oc_mail_trusted_senders
CASCADE;

DELETE FROM oc_migrations WHERE app='mail';

DELETE FROM oc_appconfig WHERE appid = 'mail';

occ app:install mail

@ryomahostingph
Copy link

ryomahostingph commented Oct 1, 2022

im using nextcloud AIO can i delete it here?
nextcloud-aio-database

sudo docker exec -it nextcloud-aio-database php occ app:remove mail?

@Tealk
Copy link
Author

Tealk commented Oct 1, 2022

I don't know enough about docker to give you any tips; don't want to destroy anything.

@pgaufillet
Copy link

I confirm this incorrect behaviour still occur in 25.0.4. No specific message seen in the journal.

@ChristophWurst
Copy link
Member

It happens because of #6325. The provisioning is deleted but kept in cache. Thus the app recreates the accounts. And eventually they are dangling provisioned accounts with no associated config.

@ChristophWurst
Copy link
Member

Fixed by #8993.

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

Successfully merging a pull request may close this issue.

5 participants