mirror of
https://github.com/koel/koel.git
synced 2026-04-26 17:25:59 +03:00
[GH-ISSUE #1733] Can't install - SQL errors #952
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#952
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jSML4ThWwBID69YC on GitHub (Dec 28, 2023).
Original GitHub issue: https://github.com/koel/koel/issues/1733
Describe the bug
Run the standard installer script.
php artisan koel:init --no-assetsIt fails during the Mysql migration.
To reproduce
Steps to reproduce the behavior:
composer installphp artisan koel:init --no-assetsSee error message:
Migrating database ..................................................................................................................... 45ms FAIL ERROR Oops! Koel installation or upgrade didn't finish successfully.Database error:
2023-12-28 19:42:22 2 [ERROR] Slave SQL: Error 'Table 'migrations' already exists' on query. Default database: 'CENSORED'. Query: 'create tablemigrations(idint unsigned not null auto_increment primary key,migrationvarchar(191) not null,batchint not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci'', Internal MariaDB error code: 1050 2023-12-28 19:42:22 2 [Warning] WSREP: Ignoring error 'Table 'migrations' already exists' on query. Default database: 'CENSORED'. Query: 'create tablemigrations(idint unsigned not null auto_increment primary key,migrationvarchar(191) not null,batchint not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci'', Error_code: 1050Laravel log
Next Illuminate\Database\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'migrations' already exists (SQL: create tablemigrations(idint unsigned not null auto_increment primary key,migrationvarcha r(191) not null,batchint not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci') in /apps/koel/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760Expected behavior
Migration should succeed.
Environment
Additional context
This is a new SQL error after the fix for https://github.com/koel/koel/issues/1725
@phanan commented on GitHub (Dec 29, 2023):
Try truncating your database first, as I have a hunch this is some leftover from your previous tries.
@jSML4ThWwBID69YC commented on GitHub (Dec 29, 2023):
I believe you're right. Thank you.