Skip to content

Enable fails with Migration step Version30000Date20240417075405 is unknown #3351

@doctorlard

Description

@doctorlard

Describe the bug

When enabling the photos app, the following error occurs:

/var/www/nextcloud/occ app:enable photos
Database error when running migration 30000Date20240417075405 for app photos
Migration step 'OCA\Photos\Migration\Version30000Date20240417075405' is unknown

Migration file exists:

find apps/photos |grep Version30000Date20240417075405
apps/photos/tests/Migration/Version30000Date20240417075405Test.php
apps/photos/lib/Migration/Version30000Date20240417075405.php

To Reproduce

Steps to reproduce the behavior:

Download and enable the photos app, when a previous version has been installed and removed.

Expected behavior

A working photos app

Server

  • OS: Ubuntu 24.04 LTS
  • Database: postgresql-14 version 14.17-0ubuntu0.22.04.1
  • Webserver: apache2 2.4.58-1ubuntu8.8
  • PHP: 8.2.29-1+ubuntu24.04.1+deb.sury.org+1

Additional context

Is there a way to just skip or mark this migration as done somewhere in the database?

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions