I am unable to turn on Byobu in Devflarum.
I get a 500 with the following error (beautified, ./
means vendor
):
PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'recipients' already exists in ./illuminate/database/Connection.php:390
Stack trace:
#0 ./illuminate/database/Connection.php(390): PDOStatement->execute(Array)
#1 ./illuminate/database/Connection.php(655): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}(Object(Illuminate\\Database\\MySqlConnection), 'create table `r...', Array)
#2 ./illuminate/database/Connection.php(618): Illuminate\\Database\\Connection->runQueryCallback('create table `r...', Array, Object(Closure))
#3 ./illuminate/database/Connection.php(391): Illuminate\\Database\\Connection->run('create table `r...', Array, Object(Closure))
#4 ./illuminate/database/Schema/Blueprint.php(83): Illuminate\\Database\\Connection->statement('create table `r...')
#5 ./illuminate/database/Schema/Builder.php(191): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#6 ./illuminate/database/Schema/Builder.php(134): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#7 ./flagrow/byobu/migrations/2017_01_20_000000_recipients.php(23): Illuminate\\Database\\Schema\\Builder->create('recipients', Object(Closure))
#8 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))
#9 ./illuminate/container/Container.php(507): call_user_func_array(Object(Closure), Array)
#10 ./flarum/core/src/Database/Migrator.php(202): Illuminate\\Container\\Container->call(Object(Closure))
#11 ./flarum/core/src/Database/Migrator.php(133): Flarum\\Database\\Migrator->runClosureMigration(Array)
#12 ./flarum/core/src/Database/Migrator.php(116): Flarum\\Database\\Migrator->runUp('/www/devflarum/...', '2017_01_20_0000...', Object(Flarum\\Extension\\Extension))
#13 ./flarum/core/src/Database/Migrator.php(90): Flarum\\Database\\Migrator->runMigrationList('/www/devflarum/...', Array, Object(Flarum\\Extension\\Extension))
#14 ./flarum/core/src/Extension/ExtensionManager.php(227): Flarum\\Database\\Migrator->run('/www/devflarum/...', Object(Flarum\\Extension\\Extension))
#15 ./flarum/core/src/Extension/ExtensionManager.php(120): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))
#16 ./flarum/core/src/Api/Controller/UpdateExtensionController.php(47): Flarum\\Extension\\ExtensionManager->enable('flagrow-byobu')
#17 ./flarum/core/src/Http/Handler/ControllerRouteHandler.php(53): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Zend\\Stratigility\\Http\\Request))
#18 ./flarum/core/src/Http/Middleware/DispatchRoute.php(69): Flarum\\Http\\Handler\\ControllerRouteHandler->__invoke(Object(Zend\\Stratigility\\Http\\Request), Array)
#19 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\DispatchRoute->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#20 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#21 ./flarum/core/src/Http/Middleware/SetLocale.php(51): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#22 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\SetLocale->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#23 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#24 ./flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#25 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\AuthenticateWithHeader->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#26 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#27 ./flarum/core/src/Http/Middleware/AuthenticateWithSession.php(36): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#28 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\AuthenticateWithSession->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#29 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#30 ./flarum/core/src/Http/Middleware/RememberFromCookie.php(39): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#31 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\RememberFromCookie->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#32 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#33 ./flarum/core/src/Http/Middleware/StartSession.php(48): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#34 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\StartSession->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#35 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#36 ./flarum/core/src/Api/Middleware/FakeHttpMethods.php(33): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#37 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Api\\Middleware\\FakeHttpMethods->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#38 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#39 ./flarum/core/src/Http/Middleware/ParseJsonBody.php(31): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#40 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\ParseJsonBody->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#41 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#42 ./zendframework/zend-stratigility/src/MiddlewarePipe.php(75): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#43 ./flarum/core/src/Http/AbstractServer.php(54): Zend\\Stratigility\\MiddlewarePipe->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), NULL)
#44 ./zendframework/zend-diactoros/src/Server.php(166): Flarum\\Http\\AbstractServer->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), NULL)
#45 ./flarum/core/src/Http/AbstractServer.php(35): Zend\\Diactoros\\Server->listen()
#46 /www/devflarum/forum/api.php(16): Flarum\\Http\\AbstractServer->listen()
#47 {main}
Next Illuminate\\Database\\QueryException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'recipients' already exists (SQL: create table `recipients` (`id` bigint unsigned not null auto_increment primary key, `discussion_id` int unsigned not null, `user_id` int unsigned not null, `created_at` timestamp default 0 not null, `updated_at` timestamp default 0 not null, `removed_at` timestamp null) default character set utf8mb4 collate utf8mb4_unicode_ci) in ./illuminate/database/Connection.php:662
Stack trace:
#0 ./illuminate/database/Connection.php(618): Illuminate\\Database\\Connection->runQueryCallback('create table `r...', Array, Object(Closure))
#1 ./illuminate/database/Connection.php(391): Illuminate\\Database\\Connection->run('create table `r...', Array, Object(Closure))
#2 ./illuminate/database/Schema/Blueprint.php(83): Illuminate\\Database\\Connection->statement('create table `r...')
#3 ./illuminate/database/Schema/Builder.php(191): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))
#4 ./illuminate/database/Schema/Builder.php(134): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))
#5 ./flagrow/byobu/migrations/2017_01_20_000000_recipients.php(23): Illuminate\\Database\\Schema\\Builder->create('recipients', Object(Closure))
#6 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))
#7 ./illuminate/container/Container.php(507): call_user_func_array(Object(Closure), Array)
#8 ./flarum/core/src/Database/Migrator.php(202): Illuminate\\Container\\Container->call(Object(Closure))
#9 ./flarum/core/src/Database/Migrator.php(133): Flarum\\Database\\Migrator->runClosureMigration(Array)
#10 ./flarum/core/src/Database/Migrator.php(116): Flarum\\Database\\Migrator->runUp('/www/devflarum/...', '2017_01_20_0000...', Object(Flarum\\Extension\\Extension))
#11 ./flarum/core/src/Database/Migrator.php(90): Flarum\\Database\\Migrator->runMigrationList('/www/devflarum/...', Array, Object(Flarum\\Extension\\Extension))
#12 ./flarum/core/src/Extension/ExtensionManager.php(227): Flarum\\Database\\Migrator->run('/www/devflarum/...', Object(Flarum\\Extension\\Extension))
#13 ./flarum/core/src/Extension/ExtensionManager.php(120): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))
#14 ./flarum/core/src/Api/Controller/UpdateExtensionController.php(47): Flarum\\Extension\\ExtensionManager->enable('flagrow-byobu')
#15 ./flarum/core/src/Http/Handler/ControllerRouteHandler.php(53): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Zend\\Stratigility\\Http\\Request))
#16 ./flarum/core/src/Http/Middleware/DispatchRoute.php(69): Flarum\\Http\\Handler\\ControllerRouteHandler->__invoke(Object(Zend\\Stratigility\\Http\\Request), Array)
#17 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\DispatchRoute->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#18 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#19 ./flarum/core/src/Http/Middleware/SetLocale.php(51): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#20 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\SetLocale->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#21 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#22 ./flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#23 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\AuthenticateWithHeader->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#24 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#25 ./flarum/core/src/Http/Middleware/AuthenticateWithSession.php(36): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#26 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\AuthenticateWithSession->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#27 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#28 ./flarum/core/src/Http/Middleware/RememberFromCookie.php(39): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#29 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\RememberFromCookie->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#30 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#31 ./flarum/core/src/Http/Middleware/StartSession.php(48): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#32 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\StartSession->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#33 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#34 ./flarum/core/src/Api/Middleware/FakeHttpMethods.php(33): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#35 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Api\\Middleware\\FakeHttpMethods->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#36 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#37 ./flarum/core/src/Http/Middleware/ParseJsonBody.php(31): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#38 ./zendframework/zend-stratigility/src/Dispatch.php(82): Flarum\\Http\\Middleware\\ParseJsonBody->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#39 ./zendframework/zend-stratigility/src/Next.php(113): Zend\\Stratigility\\Dispatch->__invoke(Object(Zend\\Stratigility\\Route), NULL, Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), Object(Zend\\Stratigility\
ext))
#40 ./zendframework/zend-stratigility/src/MiddlewarePipe.php(75): Zend\\Stratigility\
ext->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response))
#41 ./flarum/core/src/Http/AbstractServer.php(54): Zend\\Stratigility\\MiddlewarePipe->__invoke(Object(Zend\\Stratigility\\Http\\Request), Object(Zend\\Stratigility\\Http\\Response), NULL)
#42 ./zendframework/zend-diactoros/src/Server.php(166): Flarum\\Http\\AbstractServer->__invoke(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Diactoros\\Response), NULL)
#43 ./flarum/core/src/Http/AbstractServer.php(35): Zend\\Diactoros\\Server->listen()
#44 /www/devflarum/forum/api.php(16): Flarum\\Http\\AbstractServer->listen()
#45 {main}
Hope you fix it soon so I can test it in Devflarum ? Keep it up!
PS: it is using the latest dev-master, I checked, but it also occurred yesterday.