Skip to content

winter:version hangs and floods logs when the database is not initialized #1273

@nmiyazaki-chapleau

Description

@nmiyazaki-chapleau

Winter CMS Build

1.2

PHP Version

8.1

Database engine

MySQL/MariaDB

Plugins installed

Winter.Blocks, Winter.DriverAWS, Winter.DriverMailgun, Winter.Redirect, Winter.SEO, Winter.Sitemap, Winter.Translate, Winter.Pages

Issue description

Have been trying to deploy a Winter 1.2.6 website from dev to prod, but has been failing. I noticed the composer.json includes the post-update-cmd @php artisan winter:version. However, since the DB exists but is empty (no tables), the command just hangs and floods the logs with 23k line stack traces.
I can't start by doing a php artisan migrate since I can have relations to some Laravel package models which would not work if Laravel isn't installed, which means I have to start with composer install which, well, hangs and floods logs because of winter:version.

Steps to replicate

  1. Git clone an already-configured website in WinterCMS 1.2.6
  2. Configure your .env with valid db credentials
  3. Run composer install

Workaround

Removing the winter:version command from the post-update-cmd section of the composer.json works.

Metadata

Metadata

Assignees

Labels

high priorityIssues that need to be more critically actioned

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions