Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not start on freshly installed Ubuntu Server (General error: 5 database is locked) #1331

Open
BorisBrock opened this issue May 3, 2024 · 1 comment

Comments

@BorisBrock
Copy link

I just set up a Ubuntu Server with docker. Then I added Heimdall via Portainer:

version: "2.1"
services:
  heimdall:
    image: linuxserver/heimdall
    container_name: heimdall
    volumes:
      - /media/docker/heimdall:/config
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped

But the container does not start up, and the web interface is not reachable. Here's what the container's log says:

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
using keys found in /config/keys
New container detected, installing Heimdall
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Illuminate\Database\QueryException
SQLSTATE[HY000]: General error: 5 database is locked (Connection: sqlite, SQL: create table "migrations" ("id" integer primary key autoincrement not null, "migration" varchar not null, "batch" integer not null))
at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
825▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
826▕ );
827▕ }
828▕
➜ 829▕ throw new QueryException(
830▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
831▕ );
832▕ }
833▕ }
1 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
+41 vendor frames
43 /app/www/app/Providers/AppServiceProvider.php:148
Illuminate\Support\Facades\Facade::__callStatic()

The SQL error then repeats indefinitely. Is there a cure for this?

@825i
Copy link

825i commented May 3, 2024

It's likely a problem with how you are mounting your drives. Use SMB2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Non-Docker Issues
Development

No branches or pull requests

2 participants