mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #1300] SQLSTATE[HY000] [14] unable to open database file #748
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#748
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 @edition89 on GitHub (Apr 1, 2021).
Original GitHub issue: https://github.com/koel/koel/issues/1300
When I try to sync the list of songs, I get an error:
php artisan koel:sync
Syncing media from /var/koel/music
1/508 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
PDOException
SQLSTATE[HY000] [14] unable to open database file
at vendor/teamtnt/tntsearch/src/Indexer/TNTIndexer.php:178
174▕ if (file_exists($this->config['storage'].$indexName)) {
175▕ unlink($this->config['storage'].$indexName);
176▕ }
177▕
➜ 178▕ $this->index = new PDO('sqlite:'.$this->config['storage'].$indexName);
179▕ $this->index->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
180▕
181▕ if($this->config['wal']) {
182▕ $this->index->exec("PRAGMA journal_mode=wal;");
21 app/Services/FileSynchronizer.php:209
Illuminate\Database\Eloquent\Model::__callStatic("updateOrCreate")
22 app/Services/MediaSyncService.php:112
App\Services\FileSynchronizer::sync()
But if you enter the command every time, then the songs will be added.
I gave 777 permissions to all files.
What could be the reason?
@kartikcool15 commented on GitHub (Apr 2, 2021):
Same error here
@phcco commented on GitHub (Apr 3, 2021):
Was able to sync after
cd your-koel-folder; mkdir storage/search-indexes@edition89 commented on GitHub (Apr 5, 2021):
Thanks! Your suggestion helped.