Skip to content

Clean install via docker run with existing mysql does not populate all tables in database and fails. #2314

@Meridiumus

Description

@Meridiumus

Pre-work

  • I have read the docs.
  • I have searched open and closed issues.
  • I agree to follow this project's Code of Conduct.

Description

During a clean install and first initialization of the mysql database, the process ends in errors.

[2025-08-18 16:09:14] production.ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracker.cache' doesn't exist (Connection: mariadb, SQL: select * from cachewherekeyin (laravel_cache_illuminate:queue:restart)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracker.cache' doesn't exist (Connection: mariadb, SQL: select * fromcachewherekey in (laravel_cache_illuminate:queue:restart)) at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:824)

Seems not to be a database connection issue, as during initialization some tables are created. The following tables are created: migrations, password_reset, telescope_entries and users.
Also the config folder created for the container is populated.

I have used the app_debug, but does not seem to give any additional info.

Speedtest Tracker.pdf

Expected Behavior

A working speedtest tracker connected to the mariadb database.

Steps to Reproduce

  1. Prepared the MySQL database: created database, created user/pw with sufficient permissions.
  2. Created folders for Config
  3. Modified the docker run found here in the following:

docker run -d --name speedtest-tracker --restart unless-stopped \ -p 8282:80 \ -p 9443:443 \ -e PUID=1005 \ -e PGID=1002 \ -e APP_KEY=base64:+xgdWNGm63O5G+pI0jRdTVRXjv2+rvo/hGTIIAm2lzw= \ -e DB_CONNECTION=mariadb \ -e DB_HOST=192.168.202.5 \ -e DB_PORT=3307 \ -e DB_DATABASE=speedtest_tracker \ -e DB_USERNAME=speedtest_tracker \ -e DB_PASSWORD=st_tracker \ -v /share/ContainerSF/SpeedtestTracker/Config:/config \ lscr.io/linuxserver/speedtest-tracker:latest

  1. After start container, the error is displayed as mentioned in the description,

Deployment Environment

Docker Run

Application Information

Creating the container on a QNAP NAS. mariadb is installed as app locally on the NAS. So not as a container. I have both mariadb 5 as mariadb 10 installed on the NAS and therefore the port is set to 3307 for mariadb 10.

What browser(s) are you seeing the problem on?

Both Chrome and Firefox

Logs

[2025-08-18 16:20:22] production.ERROR: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracker.cache' doesn't exist (Connection: mariadb, SQL: select * from `cache` where `key` in (laravel_cache_illuminate:queue:restart)) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracker.cache' doesn't exist (Connection: mariadb, SQL: select * from `cache` where `key` in (laravel_cache_illuminate:queue:restart)) at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:824)
�      
[stacktrace]
#0 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(778): Illuminate\\Database\\Connection->runQueryCallback()
#1 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(397): Illuminate\\Database\\Connection->run()
#2 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3188): Illuminate\\Database\\Connection->select()
#3 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3173): Illuminate\\Database\\Query\\Builder->runSelect()
#4 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3763): Illuminate\\Database\\Query\\Builder->{closure:Illuminate\\Database\\Query\\Builder::get():3172}()
#5 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3172): Illuminate\\Database\\Query\\Builder->onceWithColumns()
#6 /app/www/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(130): Illuminate\\Database\\Query\\Builder->get()
#7 /app/www/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(105): Illuminate\\Cache\\DatabaseStore->many()
#8 /app/www/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(119): Illuminate\\Cache\\DatabaseStore->get()
#9 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(729): Illuminate\\Cache\\Repository->get()
#10 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(139): Illuminate\\Queue\\Worker->getTimestampOfLastQueueRestart()
#11 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(148): Illuminate\\Queue\\Worker->daemon()
#12 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(131): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
#13 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#14 /app/www/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#15 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure()
#16 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#17 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(780): Illuminate\\Container\\BoundMethod::call()
#18 /app/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#19 /app/www/vendor/symfony/console/Command/Command.php(318): Illuminate\\Console\\Command->execute()
#20 /app/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run()
#21 /app/www/vendor/symfony/console/Application.php(1092): Illuminate\\Console\\Command->run()
#22 /app/www/vendor/symfony/console/Application.php(341): Symfony\\Component\\Console\\Application->doRunCommand()
#23 /app/www/vendor/symfony/console/Application.php(192): Symfony\\Component\\Console\\Application->doRun()
#24 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run()
#25 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1234): Illuminate\\Foundation\\Console\\Kernel->handle()
#26 /app/www/artisan(16): Illuminate\\Foundation\\Application->handleCommand()
#27 {main}
[previous exception] [object] (PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracker.cache' doesn't exist at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:406)

[stacktrace]
#0 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(406): PDO->prepare()
#1 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(811): Illuminate\\Database\\Connection->{closure:Illuminate\\Database\\Connection::select():397}()
#2 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(778): Illuminate\\Database\\Connection->runQueryCallback()
#3 /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php(397): Illuminate\\Database\\Connection->run()
#4 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3188): Illuminate\\Database\\Connection->select()
#5 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3173): Illuminate\\Database\\Query\\Builder->runSelect()
#6 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3763): Illuminate\\Database\\Query\\Builder->{closure:Illuminate\\Database\\Query\\Builder::get():3172}()
#7 /app/www/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3172): Illuminate\\Database\\Query\\Builder->onceWithColumns()
#8 /app/www/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(130): Illuminate\\Database\\Query\\Builder->get()
#9 /app/www/vendor/laravel/framework/src/Illuminate/Cache/DatabaseStore.php(105): Illuminate\\Cache\\DatabaseStore->many()
#10 /app/www/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(119): Illuminate\\Cache\\DatabaseStore->get()
#11 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(729): Illuminate\\Cache\\Repository->get()
#12 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(139): Illuminate\\Queue\\Worker->getTimestampOfLastQueueRestart()
#13 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(148): Illuminate\\Queue\\Worker->daemon()
#14 /app/www/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(131): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
#15 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#16 /app/www/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#17 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure()
#18 /app/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#19 /app/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(780): Illuminate\\Container\\BoundMethod::call()
#20 /app/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call()
#21 /app/www/vendor/symfony/console/Command/Command.php(318): Illuminate\\Console\\Command->execute()
#22 /app/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run()
#23 /app/www/vendor/symfony/console/Application.php(1092): Illuminate\\Console\\Command->run()
#24 /app/www/vendor/symfony/console/Application.php(341): Symfony\\Component\\Console\\Application->doRunCommand()
#25 /app/www/vendor/symfony/console/Application.php(192): Symfony\\Component\\Console\\Application->doRun()
#26 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run()
#27 /app/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1234): Illuminate\\Foundation\\Console\\Kernel->handle()
#28 /app/www/artisan(16): Illuminate\\Foundation\\Application->handleCommand()
#29 {main}
"} 
In Connection.php line 824:
                                                                               
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracke  
  r.cache' doesn't exist (Connection: mariadb, SQL: select * from `cache` whe  
  re `key` in (laravel_cache_illuminate:queue:restart))                        
                                                                               
In Connection.php line 406:
                                                                               
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'speedtest_tracke  
  r.cache' doesn't exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions