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

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

Open
nmiyazaki-chapleau opened this issue Dec 13, 2024 · 1 comment
Milestone

Comments

@nmiyazaki-chapleau
Copy link

nmiyazaki-chapleau commented Dec 13, 2024

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.

@nmiyazaki-chapleau nmiyazaki-chapleau changed the title winter:version hangs and floods logs when the database is not initialised winter:version hangs and floods logs when the database isempty Dec 13, 2024
@nmiyazaki-chapleau nmiyazaki-chapleau changed the title winter:version hangs and floods logs when the database isempty winter:version hangs and floods logs when the database is not initialized Dec 13, 2024
@bennothommo
Copy link
Member

@nmiyazaki-chapleau until we can investigate, you can always add the --no-scripts flag to composer install to skip the scripts.

@LukeTowers LukeTowers added this to the 1.2.8 milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants