fix for me

khanghyy
TRIAL

a year ago

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'railway.cache' doesn't exist (Connection: mysql, SQL: delete from cache)

15 3.196

15 3.196 at vendor/laravel/framework/src/Illuminate/Database/Connection.php:813

15 3.202 809▕ $this->getName(), $query, $this->prepareBindings($bindings), $e

15 3.202 810▕ );

15 3.202 811▕ }

15 3.202 812▕

15 3.202 ➜ 813▕ throw new QueryException(

15 3.202 814▕ $this->getName(), $query, $this->prepareBindings($bindings), $e

15 3.202 815▕ );

15 3.202 816▕ }

15 3.202 817▕ }

15 3.205

15 3.206 i A table was not found: You might have forgotten to run your database migrations.

15 3.206 https://laravel.com/docs/master/migrations#running-migrations

15 3.206

15 3.206 +39 vendor frames

15 3.206

15 3.206 40 artisan:13

15 3.206 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

15 3.206

15 ERROR: process "/bin/bash -ol pipefail -c composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" did not complete successfully: exit code: 1

[11/12] RUN composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force:

3.202 817▕ }

3.205

3.206 i A table was not found: You might have forgotten to run your database migrations.

3.206 https://laravel.com/docs/master/migrations#running-migrations

3.206

3.206 +39 vendor frames

3.206

3.206 40 artisan:13

3.206 Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

3.206

Dockerfile:25

23 | # build phase

24 | COPY . /app/.

25 | >>> RUN composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force

26 |

27 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

a year ago

A table was not found, you might have forgotten to run your database migrations.


fix for me - Railway Help Station