Pim-community-dev: 3.0μ—μ„œ 3.1 였λ₯˜λ‘œ μ—…λ°μ΄νŠΈ

에 λ§Œλ“  2019λ…„ 09μ›” 11일  Β·  7μ½”λ©˜νŠΈ  Β·  좜처: akeneo/pim-community-dev

μ•ˆλ…•ν•˜μ„Έμš”, 버전 3.0CEλ₯Ό 3.1CE둜 μ—…λ°μ΄νŠΈ ν•˜λ €κ³  ν•©λ‹ˆλ‹€.

λ‚΄κ°€ λͺ…령을 μ‹€ν–‰ν•  λ•Œ :

php bin/console cache:clear --env=prod

λ‚˜λŠ” λ‹€μŒκ³Ό 같은 였λ₯˜κ°€ μžˆμŠ΅λ‹ˆλ‹€

image

MySQL μ„œλ²„ 버전: 5.7.26
μ•„νŒŒμΉ˜/2.4.25(λ°λΉ„μ•ˆ)
PHP 7.2.22-1
nodejs v10.16.0
μ—˜λΌμŠ€ν‹±μ„œμΉ˜ 6.8.1

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

μ‹€μˆ˜μ˜ 원인을 μ°Ύμ•˜μŠ΅λ‹ˆλ‹€. μΆœμ‹œ μ „

bin / console cache: clear --env = prod

var/cache/_[prod, dev]_ 디렉토리λ₯Ό λΉ„μ›Œμ•Ό ν•©λ‹ˆλ‹€. μΊμ‹œλ₯Ό μ§€μš°λŠ” λͺ…령을 μ‹€ν–‰ν•˜λ €λ©΄ μΊμ‹œλ₯Ό μ‚­μ œν•΄μ•Ό ν•œλ‹€λŠ” 것이 λ†€λžμŠ΅λ‹ˆλ‹€...;)

λͺ¨λ“  7 λŒ“κΈ€

μ•ˆλ…• 필립,

PIM을 μ—…κ·Έλ ˆμ΄λ“œν•˜κΈ° μœ„ν•΄ UPGRADE.md 파일(PIM λ£¨νŠΈμ— 있음)을 λ”°λžμŠ΅λ‹ˆκΉŒ?
https://github.com/akeneo/pim-community-dev/blob/3.1/UPGRADE.md
이 였λ₯˜λ₯Ό λ°œμƒμ‹œν‚€λŠ” λ‹¨κ³„λŠ” λ¬΄μ—‡μž…λ‹ˆκΉŒ?

λ¬Έμ•ˆ 인사,

μ•ˆλ…•ν•˜μ„Έμš” λ‘λ‘μš΄λ‹˜

μ—…λ°μ΄νŠΈ 절차λ₯Ό λ”°λ₯΄κΈ° μœ„ν•΄ 이 읽어보기λ₯Ό 잘 μ‚¬μš©ν–ˆμŠ΅λ‹ˆλ‹€.

이 였λ₯˜λŠ” "μ‚¬μš©μž 지정 μ½”λ“œ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜" λ‹¨λ½μ˜ 4λ‹¨κ³„μ—μ„œ λ°œμƒν•©λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 절차λ₯Ό λ‹€μ‹œ 읽으면 λ‚΄ κ²½μš°κ°€ μ•„λ‹Œ Akeneo μ„€μΉ˜λ₯Ό μ‚¬μš©μž μ •μ˜ν•œ κ²½μš°μž„μ„ κΉ¨λ‹¬μ•˜μŠ΅λ‹ˆλ‹€. μ €λŠ” ν‘œμ€€ μ„€μΉ˜ μ€‘μž…λ‹ˆλ‹€.

κ·ΈλŸ¬λ‚˜ 이 단계λ₯Ό 깨닫지 λͺ»ν•˜κ³  "ν‘œμ€€ ν”„λ‘œμ νŠΈ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜"의 10λ‹¨κ³„μ—μ„œ λ©ˆμΆ”λ©΄ 빈 νŽ˜μ΄μ§€κ°€ 있고 둜그 μ•„νŒŒμΉ˜μ— I:

Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\ClassNotFoundException: Attempted to load class "VoterInitializerListener" from namespace "Knp\\Bundle\\MenuBundle\\EventListener".\nDid you forget a "use" statement for another namespace? in /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php:5602\nStack trace:\n#0 /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php(4668): ContainerJjy8q4b\\appProdProjectContainer->getKnpMenu_Listener_VotersService()\n#1 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(229): ContainerJjy8q4b\\appProdProjectContainer->ContainerJjy8q4b\\{closure}()\n#2 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(61): Symfony\\Component\\EventDispatcher\\EventDispatcher->sortListeners('kernel.request')\n#3 /var/www/html/pim-community-standard/vendor/symf...\n'

μž‘κ³‘κ°€ μ—…λ°μ΄νŠΈλŠ” ν•˜μ…¨λ‚˜μš”? KnpBundle이 μ΅œμ‹  버전이 아닐 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€.

μž‘κ³‘κ°€λ₯Ό 1.9.0으둜 μ—…λ°μ΄νŠΈν–ˆλŠ”λ° λ™μΌν•œ 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€.

Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Debug\\Exception\\ClassNotFoundException: Attempted to load class "VoterInitializerListener" from namespace "Knp\\Bundle\\MenuBundle\\EventListener".\nDid you forget a "use" statement for another namespace? in /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php:5602\nStack trace:\n#0 /var/www/html/pim-community-standard/var/cache/prod/ContainerJjy8q4b/appProdProjectContainer.php(4668): ContainerJjy8q4b\\appProdProjectContainer->getKnpMenu_Listener_VotersService()\n#1 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(229): ContainerJjy8q4b\\appProdProjectContainer->ContainerJjy8q4b\\{closure}()\n#2 /var/www/html/pim-community-standard/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(61): Symfony\\Component\\EventDispatcher\\EventDispatcher->sortListeners('kernel.request')\n#3 /var/www/html/pim-community-standard/vendor/symf...\n'

λ³΄κ³ μ„œ μž‘μ„±κΈ°

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 8 updates, 11 removals
  - Removing symfony/assetic-bundle (v2.8.2)
  - Removing phpoption/phpoption (1.5.0)
  - Removing phpcollection/phpcollection (0.5.0)
  - Removing leafo/lessphp (v0.5.0)
  - Removing kriswallsmith/assetic (v1.4.0)
  - Removing knplabs/knp-menu-bundle (2.1.3)
  - Removing knplabs/knp-menu (2.2.0)
  - Removing jms/serializer-bundle (2.0.0)
  - Removing jms/serializer (1.8.1)
  - Removing jms/parser-lib (1.0.0)
  - Removing jms/metadata (1.7.0)
  - Updating doctrine/cache (v1.6.1 => v1.8.0): Loading from cache
  - Updating doctrine/annotations (v1.3.1 => v1.6.0): Loading from cache
  - Installing doctrine/reflection (v1.0.0): Loading from cache
  - Installing doctrine/event-manager (v1.0.0): Loading from cache
  - Installing doctrine/persistence (v1.1.0): Loading from cache
  - Updating doctrine/common (v2.7.2 => v2.10.0): Loading from cache
  - Updating doctrine/instantiator (1.0.5 => 1.1.0): Loading from cache
  - Updating doctrine/dbal (v2.5.13 => v2.7.2): Loading from cache
  - Updating doctrine/orm (v2.5.14 => v2.6.3): Loading from cache
  - Updating doctrine/doctrine-bundle (1.6.7 => 1.10.2): Loading from cache
  - Updating akeneo/pim-community-dev (v3.0.40 => v3.1.18): Loading from cache
Writing lock file
Generating autoload files

What about running composer thanks now?
This will spread some πŸ’–  by sending a β˜…  to 82 GitHub repositories of your fellow package maintainers.

ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug                       
 // true                                                                        


 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.    


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 --- --------------------------- ------------------ 
      Bundle                      Method / Error    
 --- --------------------------- ------------------ 
  βœ”   FOSJsRoutingBundle          relative symlink  
  βœ”   OroConfigBundle             relative symlink  
  βœ”   PimDataGridBundle           relative symlink  
  βœ”   PimUserBundle               relative symlink  
  βœ”   AkeneoPimEnrichmentBundle   relative symlink  
  βœ”   AkeneoPimStructureBundle    relative symlink  
  βœ”   PimDashboardBundle          relative symlink  
  βœ”   PimAnalyticsBundle          relative symlink  
  βœ”   PimImportExportBundle       relative symlink  
  βœ”   PimNotificationBundle       relative symlink  
  βœ”   PimUIBundle                 relative symlink  
 --- --------------------------- ------------------ 


 [OK] All assets were successfully installed.                                   


> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::removeSymfonyStandardFiles
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
> php bin/console --ansi fos:js-routing:dump --target=web/js/routes.js
Dumping exposed routes.

[file+] web/js/routes.js
> php bin/console --ansi pim:installer:assets
Akeneo PIM assets
Dumping exposed routes.

[file+] /var/www/html/pim-community-standard/app/../web/js/routes.js

 Installing assets as hard copies.

 --- --------------------------- ---------------- 
      Bundle                      Method / Error  
 --- --------------------------- ---------------- 
  βœ”   FOSJsRoutingBundle          copy            
  βœ”   OroConfigBundle             copy            
  βœ”   PimDataGridBundle           copy            
  βœ”   PimUserBundle               copy            
  βœ”   AkeneoPimEnrichmentBundle   copy            
  βœ”   AkeneoPimStructureBundle    copy            
  βœ”   PimDashboardBundle          copy            
  βœ”   PimAnalyticsBundle          copy            
  βœ”   PimImportExportBundle       copy            
  βœ”   PimNotificationBundle       copy            
  βœ”   PimUIBundle                 copy            
 --- --------------------------- ---------------- 

 ! [NOTE] Some assets were installed via copy. If you make changes to these     
 !        assets you have to run this command again.                            


 [OK] All assets were successfully installed.                                   


Generating require.js main config
12:11:45 [file+] en_US.js
12:11:45 [file+] ca_ES.js
12:11:45 [file+] da_DK.js
12:11:45 [file+] de_DE.js
12:11:45 [file+] es_ES.js
12:11:45 [file+] fi_FI.js
12:11:45 [file+] fr_FR.js
12:11:45 [file+] hr_HR.js
12:11:46 [file+] it_IT.js
12:11:46 [file+] ja_JP.js
12:11:46 [file+] nl_NL.js
12:11:46 [file+] pl_PL.js
12:11:46 [file+] pt_BR.js
12:11:46 [file+] pt_PT.js
12:11:46 [file+] ru_RU.js
12:11:46 [file+] sv_SE.js
12:11:46 [file+] tl_PH.js
12:11:46 [file+] zh_CN.js
12:11:46 [file+] sv_SE.js
12:11:46 [file+] en_NZ.js
> Akeneo\Platform\Bundle\InstallerBundle\ComposerScripts::copyUpgradesFiles
Copying migration folder from Akeneo PIM dependency to standard version.
Done.
yarn install v1.17.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 16.88s.

λͺ‡ 번의 μ‹œλ„ 끝에 λ§ˆμΉ¨λ‚΄ μ„±κ³΅ν–ˆμŠ΅λ‹ˆλ‹€.

λ¬Έμ„œμ—μ„œ λͺ…ν™•ν•˜μ§€ μ•Šμ€ 것은 λ‹€μŒ λͺ…령을 μ‹€ν–‰ν•΄μ•Ό ν•œλ‹€λŠ” κ²ƒμž…λ‹ˆλ‹€.

bin/console cache:clear --env=prod
bin/console pim:installer:assets --clean --env=prod
yarn run less
yarn run webpack

μ˜μ‹¬μ˜ 여지없이 μ‹œμž‘ν–ˆμ§€λ§Œ λ¬Έμ œκ°€ λ°œμƒν•˜μ§€ μ•Šμ•˜μœΌλ©° 이제 μ—…λ°μ΄νŠΈλœ μ„€μΉ˜μ— μ•‘μ„ΈμŠ€ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ‹€μˆ˜μ˜ 원인을 μ°Ύμ•˜μŠ΅λ‹ˆλ‹€. μΆœμ‹œ μ „

bin / console cache: clear --env = prod

var/cache/_[prod, dev]_ 디렉토리λ₯Ό λΉ„μ›Œμ•Ό ν•©λ‹ˆλ‹€. μΊμ‹œλ₯Ό μ§€μš°λŠ” λͺ…령을 μ‹€ν–‰ν•˜λ €λ©΄ μΊμ‹œλ₯Ό μ‚­μ œν•΄μ•Ό ν•œλ‹€λŠ” 것이 λ†€λžμŠ΅λ‹ˆλ‹€...;)

문제λ₯Ό ν•΄κ²°ν•˜μ…¨λ‹€λ‹ˆ λ‹€ν–‰μž…λ‹ˆλ‹€.
이 문제λ₯Ό λ‹«μŠ΅λ‹ˆλ‹€. ν•„μš”ν•œ 경우 자유둭게 λ‹€μ‹œ μ—½λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰