craftcms / craftcms/aws-s3

Unable to install plugin after previously having installed/uninstalled

Open
#97 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
63
Forks
33
PR merge metrics
No merged PRs in 30d

Description

Description

I came across an issue whereby I tried to reinstall the S3 plugin after having previously installed and uninstalled it, leaving the old migrations in place on the migrations table:

Integrity constraint violation: 1062 Duplicate entry 'plugin:aws-s3-Install' for key 'migrations_track_name_unq_idx'

This is specific to the S3 plugin, but presumably it applies to others?

Steps to reproduce
  1. Install S3 plugin
  2. Unintally S3 plugins
  3. Install S3 plugin
Additional info
  • Craft version: 3.5.8
  • Plugins & versions: S3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the S3 plugin install, uninstall, and reinstall sequence described in the issue, then inspect the migrations table and the plugin installation entry that causes the duplicate-key error. Done means a previously installed and uninstalled S3 plugin can be installed again without the migration conflict.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, php
Domain
backend, cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.