cachet: SQLSTATE[HY000]: General error: 17 database schema has changed

Before submitting your issue, please make sure that you’ve checked the checkboxes below.

  • I am running the latest release version of Cachet.
  • I am running at least PHP 5.5.9. You can check this by running php -v.
  • I have ran rm -rf bootstrap/cache/*.

Expected behaviour

The Install script works.

Actual behaviour

The install script fails with these errors:

Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Routes cached successfully!
Copied Directory [/vendor/roumen/feed/src/views] To [/resources/views/vendor/feed]
Publishing complete for tag []!
Migration table created successfully.


  [Illuminate\Database\QueryException]
  SQLSTATE[HY000]: General error: 17 database schema has changed (SQL: insert into "migrations" ("migration", "batch") values (2015_01_05_201324_CreateComponentG
  roupsTable, 1))



  [PDOException]
  SQLSTATE[HY000]: General error: 17 database schema has changed

Steps to reproduce

  1. touch storage/database.sqlite
  2. chmod 777 storage/database.sqlite
  3. run php artisan app:install

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (14 by maintainers)

Most upvoted comments

This is now fixed.

Okay, it seems to be a bug specifically with php artisan app:install. You can run php artisan migrate to get migrations working.

I just ran into the same issue on a vagrant homestead VM I had set up for a previous Laravel project. I was able to get running by:

composer install --no-dev -o
touch ./database/database.sqlite
php artisan key:generate
php artisan app:install
echo "" > database/database.sqlite
php artisan migrate
php artisan app:install

My details:

php -v
PHP 7.0.13-1+deb.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.13-1+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies
    with blackfire v1.14.1~linux-x64-non_zts70, https://blackfire.io, by Blackfireio Inc.

cat VERSION
2.4.0-dev