Welcome to the Linux Foundation Forum!

Chapter 10 Launching a Multi-Service Application with Docker Compose, Grafana fails to start

Posts: 12
edited March 2024 in LFS261 Class Forum

Hi all,

I'm in chapter 10 Launching a Multi-Service Application with Docker Compose and try to launch the stack defined in prometheus/docker-compose.yml unfortunately I keep getting an error with grafana, it's unable to perform a migration:

  1. logger=settings t=2024-03-28T05:31:29.442497719Z level=info msg="App mode production"
  2. logger=sqlstore t=2024-03-28T05:31:29.44300826Z level=info msg="Connecting to DB" dbtype=sqlite3
  3. logger=migrator t=2024-03-28T05:31:29.443679232Z level=info msg="Starting DB migrations"
  4. logger=migrator t=2024-03-28T05:31:29.444728427Z level=info msg="Executing migration" id="create migration_log table"
  5. logger=migrator t=2024-03-28T05:31:29.448246435Z level=error msg="Executing migration failed" id="create migration_log table" error="database or disk is full" duration=3.511123ms
  6. logger=migrator t=2024-03-28T05:31:29.448347313Z level=error msg="Exec failed" error="database or disk is full" sql="CREATE TABLE IF NOT EXISTS `migration_log` (\n`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n, `migration_id` TEXT NOT NULL\n, `sql` TEXT NOT NULL\n, `success` INTEGER NOT NULL\n, `error` TEXT NOT NULL\n, `timestamp` DATETIME NOT NULL\n);"
  7. Error: migration failed (id = create migration_log table): no such table: migration_log

Did anyone face similar issue?

My setup:

  1. jacqueminv@sre-lab:~/prometheus$ uname -a
  2. Linux sre-lab 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  3. jacqueminv@sre-lab:~/prometheus$ sudo docker version
  4. Client: Docker Engine - Community
  5. Version: 25.0.3
  6. API version: 1.44
  7. Go version: go1.21.6
  8. Git commit: 4debf41
  9. Built: Tue Feb 6 21:14:17 2024
  10. OS/Arch: linux/amd64
  11. Context: default
  12.  
  13. Server: Docker Engine - Community
  14. Engine:
  15. Version: 25.0.3
  16. API version: 1.44 (minimum version 1.24)
  17. Go version: go1.21.6
  18. Git commit: f417435
  19. Built: Tue Feb 6 21:14:17 2024
  20. OS/Arch: linux/amd64
  21. Experimental: false
  22. containerd:
  23. Version: 1.6.28
  24. GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
  25. runc:
  26. Version: 1.1.12
  27. GitCommit: v1.1.12-0-g51d5e94
  28. docker-init:
  29. Version: 0.19.0
  30. GitCommit: de40ad0

Best Answer

Answers

  • Posts: 1,265

    Hi @jacqueminv,

    I haven't seen that error, and I'm glad you were able to solve it.

    Fortunately the error was clear:

    error="database or disk is full"

    So, it was a bit difficult to fix it as you had LVM, but production systems are known for having it.

    Regards,
    Luis.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training