karlomikus / bar-assistant

Bar assistant is a all-in-one solution for managing your home bar

Home Page:https://barassistant.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when running the migrate command, database file does not exist

joshuaswilcox opened this issue · comments

Describe the bug
running the
docker compose exec app php artisan migrate
command return an error that
Database file at path [/var/www/cocktails/storage/bar-assistant/database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: PRAGMA foreign_keys = ON;)

To Reproduce
run the above command

Versions:
Client:
Cloud integration: v1.0.31
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:35:19 2023
OS/Arch: darwin/amd64
Context: desktop-linux
Experimental: true

Server: Docker Desktop 4.17.0 (99724)
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:32:04 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.18
GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

This is for development environment setup?
This seems like an folder permissions issue. Check your docker logs, the startup script should have created the required files.

$ docker compose logs app