Closed emreokay closed 4 years ago
"MySQL server has gone away" is typically an error that happens when the MySQL server times out and closes a connection. I'm not sure how I can help with that. You'll need to probably do a big more digging on your local machine to see what's going on. For instance, look at the stack trace (which you didn't include here, for some reason). Where's the error occurring at?
php artisan scribe:generate --force
I got exactly this error after running the command
[2020-10-19 16:29:00] local.ERROR: SQLSTATE[HY000] [2006] MySQL server has gone away {"exception":"[object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 2006): SQLSTATE[HY000] [2006] MySQL server has gone away at /home/vagrant/Vagrant/laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18)
[stacktrace]
#0 /home/vagrant/Vagrant/laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(41): Doctrine\\DBAL\\Driver\\PDO\\Exception::new(Object(PDOException))
#1 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(67): Doctrine\\DBAL\\Driver\\PDOConnection->__construct('mysql:host=192....', 'homestead', 'secret', Array)
#2 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=192....', 'homestead', 'secret', Array)
#3 /home/vagrant/Vagrant/laravel/app/Library/Overrides/MySqlConnector.php(42): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(Doctrine\\DBAL\\Driver\\PDO\\Exception), 'mysql:host=192....', 'homestead', 'secret', Array)
#4 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): App\\Library\\Overrides\\MySqlConnector->createConnection('mysql:host=192....', Array, Array)
#5 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#6 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#7 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func(Object(Closure))
#8 /home/vagrant/Vagrant/laravel/app/Providers/CustomDatabaseServiceProvider.php(64): Illuminate\\Database\\Connection->getPdo()
#9 [internal function]: App\\Providers\\CustomDatabaseServiceProvider->App\\Providers\\{closure}(Array, 'mysql')
#10 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(121): call_user_func(Object(Closure), Array, 'mysql')
#11 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(86): Illuminate\\Database\\DatabaseManager->makeConnection('mysql')
#12 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(367): Illuminate\\Database\\DatabaseManager->connection()
#13 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Illuminate\\Database\\DatabaseManager->__call('disableQueryLog', Array)
#14 /home/vagrant/Vagrant/laravel/app/Providers/DevHelpersProvider.php(26): Illuminate\\Support\\Facades\\Facade::__callStatic('disableQueryLog', Array)
#15 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(627): App\\Providers\\DevHelpersProvider->register()
#16 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register(Object(App\\Providers\\DevHelpersProvider))
#17 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(604): Illuminate\\Foundation\\ProviderRepository->load(Array)
#18 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#19 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(230): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#20 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#21 /home/vagrant/Vagrant/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#22 /home/vagrant/Vagrant/laravel/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#23 {main}
knuckleswtf/scribe isn't mentioned in the stacktrace at all. Closing this issue because it doesn't appear to have anything to do with this package. It looks like your DevHelpersProvider is the problem, and will probably happen with a different artisan command as well.
I also tried it on a different empty Laravel project. The result is the same.
[previous exception] [object] (PDOException(code: 2006): SQLSTATE[HY000] [2006] MySQL server has gone away at /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70)
[stacktrace]
#0 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(70): PDO->__construct('mysql:host=192....', 'homestead', 'secret', Array)
#1 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=192....', 'homestead', 'secret', Array)
#2 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(50): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=192....', 'homestead', 'secret', Array)
#3 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=192....', Array, Array)
#4 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func(Object(Closure))
#7 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\\Database\\Connection->getPdo()
#8 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(331): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from i...', Array)
#11 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(745): Illuminate\\Database\\Connection->runQueryCallback('select * from i...', Array, Object(Closure))
#12 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(725): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from i...', Array, Object(Closure))
#13 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(634): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from i...', Array, Object(Closure))
#14 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\\Database\\Connection->run('select * from i...', Array, Object(Closure))
#15 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select('select * from i...', Array)
#16 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable('migrations')
#17 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(608): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#18 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php(62): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#19 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(541): Illuminate\\Database\\Console\\Migrations\\ResetCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#20 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php(69): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#21 [internal function]: Illuminate\\Database\\Console\\Migrations\\ResetCommand->handle()
#22 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): call_user_func_array(Array, Array)
#23 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#24 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#25 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#26 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#27 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call(Array)
#28 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#29 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#30 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(56): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#31 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand('migrate:reset', Array, Object(Illuminate\\Console\\OutputStyle))
#32 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php(102): Illuminate\\Console\\Command->call('migrate:reset', Array)
#33 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php(53): Illuminate\\Database\\Console\\Migrations\\RefreshCommand->runReset(NULL, Array)
#34 [internal function]: Illuminate\\Database\\Console\\Migrations\\RefreshCommand->handle()
#35 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): call_user_func_array(Array, Array)
#36 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#37 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#38 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#39 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#40 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call(Array)
#41 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#42 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#43 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(920): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#44 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(266): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\RefreshCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#45 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(142): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#46 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#47 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#48 /home/vagrant/Vagrant/scribe/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#49 {main}
[previous exception] [object] (PDOException(code: 0): Packets out of order. Expected 0 received 1. Packet size=110 at /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70)
[stacktrace]
#0 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(70): PDO->__construct('mysql:host=192....', 'homestead', 'secret', Array)
#1 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(100): Illuminate\\Database\\Connectors\\Connector->createPdoConnection('mysql:host=192....', 'homestead', 'secret', Array)
#2 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(50): Illuminate\\Database\\Connectors\\Connector->tryAgainIfCausedByLostConnection(Object(PDOException), 'mysql:host=192....', 'homestead', 'secret', Array)
#3 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\\Database\\Connectors\\Connector->createConnection('mysql:host=192....', Array, Array)
#4 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(184): Illuminate\\Database\\Connectors\\MySqlConnector->connect(Array)
#5 [internal function]: Illuminate\\Database\\Connectors\\ConnectionFactory->Illuminate\\Database\\Connectors\\{closure}()
#6 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(926): call_user_func(Object(Closure))
#7 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(961): Illuminate\\Database\\Connection->getPdo()
#8 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(405): Illuminate\\Database\\Connection->getReadPdo()
#9 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(331): Illuminate\\Database\\Connection->getPdoForSelect(true)
#10 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('select * from i...', Array)
#11 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(745): Illuminate\\Database\\Connection->runQueryCallback('select * from i...', Array, Object(Closure))
#12 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(725): Illuminate\\Database\\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\\Database\\QueryException), 'select * from i...', Array, Object(Closure))
#13 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(634): Illuminate\\Database\\Connection->handleQueryException(Object(Illuminate\\Database\\QueryException), 'select * from i...', Array, Object(Closure))
#14 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\\Database\\Connection->run('select * from i...', Array, Object(Closure))
#15 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php(18): Illuminate\\Database\\Connection->select('select * from i...', Array)
#16 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php(169): Illuminate\\Database\\Schema\\MySqlBuilder->hasTable('migrations')
#17 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(608): Illuminate\\Database\\Migrations\\DatabaseMigrationRepository->repositoryExists()
#18 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php(62): Illuminate\\Database\\Migrations\\Migrator->repositoryExists()
#19 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(541): Illuminate\\Database\\Console\\Migrations\\ResetCommand->Illuminate\\Database\\Console\\Migrations\\{closure}()
#20 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/ResetCommand.php(69): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#21 [internal function]: Illuminate\\Database\\Console\\Migrations\\ResetCommand->handle()
#22 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): call_user_func_array(Array, Array)
#23 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#24 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#25 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#26 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#27 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call(Array)
#28 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#29 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#30 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(56): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArrayInput), Object(Illuminate\\Console\\OutputStyle))
#31 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Concerns/CallsCommands.php(28): Illuminate\\Console\\Command->runCommand('migrate:reset', Array, Object(Illuminate\\Console\\OutputStyle))
#32 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php(102): Illuminate\\Console\\Command->call('migrate:reset', Array)
#33 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/RefreshCommand.php(53): Illuminate\\Database\\Console\\Migrations\\RefreshCommand->runReset(NULL, Array)
#34 [internal function]: Illuminate\\Database\\Console\\Migrations\\RefreshCommand->handle()
#35 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): call_user_func_array(Array, Array)
#36 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#37 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#38 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(39): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#39 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#40 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call(Array)
#41 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Command/Command.php(258): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#42 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#43 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(920): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#44 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(266): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\RefreshCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#45 /home/vagrant/Vagrant/scribe/vendor/symfony/console/Application.php(142): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#46 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#47 /home/vagrant/Vagrant/scribe/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#48 /home/vagrant/Vagrant/scribe/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#49 {main}
"}
Sorry bub. Can't help you. Look at your own stack trace. This package isn't mentioned anywhere. In fact, it looks like you're trying to run the migration refresh command.
What happened?
php artisan scribe:generate --force
. The documentation was created successfully.instead of...
Screenshots and stack traces:
My environment:
php -v
): 7.3composer show laravel/framework
orcomposer show lumen/framework
): 8.10.0composer show knuckleswtf/scribe
): 1.9.0My Scribe config (minus the comments):