What happened?
Description
getting errors when upgrading from 5.9.x to 5.10.x
Steps to reproduce
- Run composer update to upgarde Carft cms to v5.10.5. have also tried all other 5.10.x versions.
- Run craft migrate/all command. ! migration to apply (m260401_155236_min_authors_setting)
Expected behavior
Migration to be applied
Actual behavior
Error. Same error on all 5.10.x versions
*** applying m260401_155236_min_authors_setting > add column minAuthors smallint UNSIGNED NOT NULL DEFAULT 1 AFTER enableVersioning to table {{%sections}} ... done (time: 0.012s) Exception: The directory does not exist: (/app/vendor/yiisoft/yii2/web/AssetManager.php:247) #0 /app/vendor/yiisoft/yii2/web/AssetManager.php(564): yii\web\AssetManager->checkBasePathPermission() #1 /app/vendor/craftcms/cms/src/web/AssetManager.php(133): yii\web\AssetManager->publishDirectory('/app/vendor/nys...', Array) #2 /app/vendor/yiisoft/yii2/web/AssetManager.php(496): craft\web\AssetManager->publishDirectory('/app/vendor/nys...', Array) #3 /app/vendor/craftcms/cms/src/web/AssetManager.php(45): yii\web\AssetManager->publish('/app/vendor/nys...', Array) #4 /app/vendor/craftcms/cms/src/web/AssetManager.php(59): craft\web\AssetManager->publish('/app/vendor/nys...') #5 /app/vendor/nystudio107/craft-plugin-vite/src/services/VitePluginService.php(89): craft\web\AssetManager->getPublishedUrl('/app/vendor/nys...', true) #6 /app/vendor/yiisoft/yii2/base/BaseObject.php(109): nystudio107\pluginvite\services\VitePluginService->init() #7 /app/vendor/craftcms/cms/src/base/Model.php(85): yii\base\BaseObject->__construct() #8 [internal function]: craft\base\Model->__construct(Array) #9 /app/vendor/yiisoft/yii2/di/Container.php(426): ReflectionClass->newInstanceArgs(Array) #10 /app/vendor/yiisoft/yii2/di/Container.php(174): yii\di\Container->build('nystudio107\\plu...', Array, Array) #11 /app/vendor/yiisoft/yii2/BaseYii.php(370): yii\di\Container->get('nystudio107\\plu...', Array, Array) #12 /app/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array) #13 /app/vendor/yiisoft/yii2/base/Module.php(776): yii\di\ServiceLocator->get('vite', false) #14 /app/vendor/nystudio107/craft-seomatic/src/services/ServicesTrait.php(227): yii\base\Module->get('vite') #15 /app/vendor/nystudio107/craft-seomatic/src/variables/SeomaticVariable.php(101): nystudio107\seomatic\Seomatic->getVite() #16 /app/vendor/nystudio107/craft-seomatic/src/models/MetaBundle.php(191): nystudio107\seomatic\variables\SeomaticVariable->__construct() #17 /app/vendor/nystudio107/craft-seomatic/src/models/MetaBundle.php(143): nystudio107\seomatic\models\MetaBundle->normalizeMetaBundleData(true) #18 /app/vendor/nystudio107/craft-seomatic/src/services/MetaBundles.php(635): nystudio107\seomatic\models\MetaBundle::create(Array) #19 /app/vendor/nystudio107/craft-seomatic/src/seoelements/SeoEntry.php(113): nystudio107\seomatic\services\MetaBundles->resaveMetaBundles('section') #20 [internal function]: nystudio107\seomatic\seoelements\SeoEntry::nystudio107\seomatic\seoelements\{closure}(Object(craft\events\SectionEvent)) #21 /app/vendor/yiisoft/yii2/base/Event.php(312): call_user_func(Object(Closure), Object(craft\events\SectionEvent)) #22 /app/vendor/yiisoft/yii2/base/Component.php(657): yii\base\Event::trigger('craft\\services\\...', 'afterSaveSectio...', Object(craft\events\SectionEvent)) #23 /app/vendor/craftcms/cms/src/services/Entries.php(896): yii\base\Component->trigger('afterSaveSectio...', Object(craft\events\SectionEvent)) #24 /app/vendor/craftcms/cms/src/base/ApplicationTrait.php(1868): craft\services\Entries->handleChangedSection(Object(craft\events\ConfigEvent)) #25 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(1184): craft\console\Application->craft\base\{closure}(Object(craft\events\ConfigEvent)) #26 [internal function]: craft\services\ProjectConfig->handleChangeEvent(Object(craft\events\ConfigEvent)) #27 /app/vendor/yiisoft/yii2/base/Component.php(648): call_user_func(Array, Object(craft\events\ConfigEvent)) #28 /app/vendor/craftcms/cms/src/models/ProjectConfigData.php(85): yii\base\Component->trigger('updateItem', Object(craft\events\ConfigEvent)) #29 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(568): craft\models\ProjectConfigData->commitChanges(Array, Array, 'sections.e34749...', true, 'Save section \xE2\x80...', true) #30 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(528): craft\services\ProjectConfig->_setInternal('sections.e34749...', Array, 'Save section \xE2\x80...', true, false) #31 /app/vendor/craftcms/cms/src/services/Entries.php(608): craft\services\ProjectConfig->set('sections.e34749...', Array, 'Save section \xE2\x80...') #32 /app/vendor/craftcms/cms/src/migrations/m260401_155236_min_authors_setting.php(29): craft\services\Entries->saveSection(Object(craft\models\Section)) #33 /app/vendor/craftcms/cms/src/db/Migration.php(50): craft\migrations\m260401_155236_min_authors_setting->safeUp() #34 /app/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(765): craft\db\Migration->up() #35 /app/vendor/craftcms/cms/src/console/controllers/MigrateController.php(365): yii\console\controllers\BaseMigrateController->migrateUp('m260401_155236_...') #36 [internal function]: craft\console\controllers\MigrateController->actionAll() #37 /app/vendor/yiisoft/yii2/base/InlineAction.php(60): call_user_func_array(Array, Array) #38 /app/vendor/yiisoft/yii2/base/Controller.php(182): yii\base\InlineAction->runWithParams(Array) #39 /app/vendor/yiisoft/yii2/console/Controller.php(187): yii\base\Controller->runAction('all', Array) #40 /app/vendor/craftcms/cms/src/console/controllers/MigrateController.php(190): yii\console\Controller->runAction('all', Array) #41 /app/vendor/yiisoft/yii2/base/Module.php(547): craft\console\controllers\MigrateController->runAction('all', Array) #42 /app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate/all', Array) #43 /app/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('migrate/all', Array) #44 /app/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('migrate/all', Array) #45 /app/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest(Object(craft\console\Request)) #46 /app/vendor/yiisoft/yii2/base/Application.php(382): craft\console\Application->handleRequest(Object(craft\console\Request)) #47 /app/craft(23): yii\base\Application->run() #48 {main} *** failed to apply m260401_155236_min_authors_setting (time: 0.081s)
Appears to be simialr issue as #19016 where it says v5.10.5 should have fixes for the issue but in our case that version does not resolve the issue.
Craft CMS version
5,10.5
PHP version
8.2.30
Operating system and version
No response
Database type and version
mysql
Image driver and version
No response
Installed plugins and versions
What happened?
Description
getting errors when upgrading from 5.9.x to 5.10.x
Steps to reproduce
Expected behavior
Migration to be applied
Actual behavior
Error. Same error on all 5.10.x versions
*** applying m260401_155236_min_authors_setting > add column minAuthors smallint UNSIGNED NOT NULL DEFAULT 1 AFTERenableVersioningto table {{%sections}} ... done (time: 0.012s) Exception: The directory does not exist: (/app/vendor/yiisoft/yii2/web/AssetManager.php:247) #0 /app/vendor/yiisoft/yii2/web/AssetManager.php(564): yii\web\AssetManager->checkBasePathPermission() #1 /app/vendor/craftcms/cms/src/web/AssetManager.php(133): yii\web\AssetManager->publishDirectory('/app/vendor/nys...', Array) #2 /app/vendor/yiisoft/yii2/web/AssetManager.php(496): craft\web\AssetManager->publishDirectory('/app/vendor/nys...', Array) #3 /app/vendor/craftcms/cms/src/web/AssetManager.php(45): yii\web\AssetManager->publish('/app/vendor/nys...', Array) #4 /app/vendor/craftcms/cms/src/web/AssetManager.php(59): craft\web\AssetManager->publish('/app/vendor/nys...') #5 /app/vendor/nystudio107/craft-plugin-vite/src/services/VitePluginService.php(89): craft\web\AssetManager->getPublishedUrl('/app/vendor/nys...', true) #6 /app/vendor/yiisoft/yii2/base/BaseObject.php(109): nystudio107\pluginvite\services\VitePluginService->init() #7 /app/vendor/craftcms/cms/src/base/Model.php(85): yii\base\BaseObject->__construct() #8 [internal function]: craft\base\Model->__construct(Array) #9 /app/vendor/yiisoft/yii2/di/Container.php(426): ReflectionClass->newInstanceArgs(Array) #10 /app/vendor/yiisoft/yii2/di/Container.php(174): yii\di\Container->build('nystudio107\\plu...', Array, Array) #11 /app/vendor/yiisoft/yii2/BaseYii.php(370): yii\di\Container->get('nystudio107\\plu...', Array, Array) #12 /app/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array) #13 /app/vendor/yiisoft/yii2/base/Module.php(776): yii\di\ServiceLocator->get('vite', false) #14 /app/vendor/nystudio107/craft-seomatic/src/services/ServicesTrait.php(227): yii\base\Module->get('vite') #15 /app/vendor/nystudio107/craft-seomatic/src/variables/SeomaticVariable.php(101): nystudio107\seomatic\Seomatic->getVite() #16 /app/vendor/nystudio107/craft-seomatic/src/models/MetaBundle.php(191): nystudio107\seomatic\variables\SeomaticVariable->__construct() #17 /app/vendor/nystudio107/craft-seomatic/src/models/MetaBundle.php(143): nystudio107\seomatic\models\MetaBundle->normalizeMetaBundleData(true) #18 /app/vendor/nystudio107/craft-seomatic/src/services/MetaBundles.php(635): nystudio107\seomatic\models\MetaBundle::create(Array) #19 /app/vendor/nystudio107/craft-seomatic/src/seoelements/SeoEntry.php(113): nystudio107\seomatic\services\MetaBundles->resaveMetaBundles('section') #20 [internal function]: nystudio107\seomatic\seoelements\SeoEntry::nystudio107\seomatic\seoelements\{closure}(Object(craft\events\SectionEvent)) #21 /app/vendor/yiisoft/yii2/base/Event.php(312): call_user_func(Object(Closure), Object(craft\events\SectionEvent)) #22 /app/vendor/yiisoft/yii2/base/Component.php(657): yii\base\Event::trigger('craft\\services\\...', 'afterSaveSectio...', Object(craft\events\SectionEvent)) #23 /app/vendor/craftcms/cms/src/services/Entries.php(896): yii\base\Component->trigger('afterSaveSectio...', Object(craft\events\SectionEvent)) #24 /app/vendor/craftcms/cms/src/base/ApplicationTrait.php(1868): craft\services\Entries->handleChangedSection(Object(craft\events\ConfigEvent)) #25 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(1184): craft\console\Application->craft\base\{closure}(Object(craft\events\ConfigEvent)) #26 [internal function]: craft\services\ProjectConfig->handleChangeEvent(Object(craft\events\ConfigEvent)) #27 /app/vendor/yiisoft/yii2/base/Component.php(648): call_user_func(Array, Object(craft\events\ConfigEvent)) #28 /app/vendor/craftcms/cms/src/models/ProjectConfigData.php(85): yii\base\Component->trigger('updateItem', Object(craft\events\ConfigEvent)) #29 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(568): craft\models\ProjectConfigData->commitChanges(Array, Array, 'sections.e34749...', true, 'Save section \xE2\x80...', true) #30 /app/vendor/craftcms/cms/src/services/ProjectConfig.php(528): craft\services\ProjectConfig->_setInternal('sections.e34749...', Array, 'Save section \xE2\x80...', true, false) #31 /app/vendor/craftcms/cms/src/services/Entries.php(608): craft\services\ProjectConfig->set('sections.e34749...', Array, 'Save section \xE2\x80...') #32 /app/vendor/craftcms/cms/src/migrations/m260401_155236_min_authors_setting.php(29): craft\services\Entries->saveSection(Object(craft\models\Section)) #33 /app/vendor/craftcms/cms/src/db/Migration.php(50): craft\migrations\m260401_155236_min_authors_setting->safeUp() #34 /app/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(765): craft\db\Migration->up() #35 /app/vendor/craftcms/cms/src/console/controllers/MigrateController.php(365): yii\console\controllers\BaseMigrateController->migrateUp('m260401_155236_...') #36 [internal function]: craft\console\controllers\MigrateController->actionAll() #37 /app/vendor/yiisoft/yii2/base/InlineAction.php(60): call_user_func_array(Array, Array) #38 /app/vendor/yiisoft/yii2/base/Controller.php(182): yii\base\InlineAction->runWithParams(Array) #39 /app/vendor/yiisoft/yii2/console/Controller.php(187): yii\base\Controller->runAction('all', Array) #40 /app/vendor/craftcms/cms/src/console/controllers/MigrateController.php(190): yii\console\Controller->runAction('all', Array) #41 /app/vendor/yiisoft/yii2/base/Module.php(547): craft\console\controllers\MigrateController->runAction('all', Array) #42 /app/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate/all', Array) #43 /app/vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('migrate/all', Array) #44 /app/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('migrate/all', Array) #45 /app/vendor/craftcms/cms/src/console/Application.php(122): yii\console\Application->handleRequest(Object(craft\console\Request)) #46 /app/vendor/yiisoft/yii2/base/Application.php(382): craft\console\Application->handleRequest(Object(craft\console\Request)) #47 /app/craft(23): yii\base\Application->run() #48 {main} *** failed to apply m260401_155236_min_authors_setting (time: 0.081s)Appears to be simialr issue as #19016 where it says v5.10.5 should have fixes for the issue but in our case that version does not resolve the issue.
Craft CMS version
5,10.5
PHP version
8.2.30
Operating system and version
No response
Database type and version
mysql
Image driver and version
No response
Installed plugins and versions