Error with composer switching branch from 16x to 17x
- Status
- Closed
- Subject
- Error with composer switching branch from 16x to 17x
- Version
- 17.x
- Category
- Error
- Release Blocker
- Feature
- Installer (profiles, upgrades and server-related issues)
- Resolution status
- Fixed or Solved
- Submitted by
- Bernard Sfez / Tiki Specialist
- Volunteered to solve
- Jonny Bradley
- Lastmod by
- Bernard Sfez / Tiki Specialist, Jonny Bradley
- Rating
- Description
On a Tiki 16.3 I did :
Copy to clipboardsvn switch https://svn.code.sf.net/p/tikiwiki/code/branches/17.x .
Then I did:Copy to clipboardsh setup.shOption c to update composer.
ErrorException
rename(/root/.composer/cache/composer-temp.phar,temp/composer.phar): No such file or directoryI retried, did another try on a different tiki after I deleted the folder "vendor" before switching. Same.
I deleted manually "composer.phar " and retried.
The error is gone but another came up:
- Installing matthiasmullie/minify (1.3.44): Loading from cache
ErrorException
file_put_contents(/var/www/virtual/xn--8dbcma7a7ale.com/bin/minifycss): failed to open stream: No such file or directoryIn /var/www/virtual/xn--8dbcma7a7ale.com/bin/ I have wrong symlink:
lessc -> ../vendor/oyejorge/less.php/bin/lessc
minifycss -> ../vendor/matthiasmullie/minify/bin/minifycss
minifyjs -> ../vendor/matthiasmullie/minify/bin/minifyjsI corrected minifycss and minifyjs to look into "../vendor_bundled/vendor/matthiasmullie/..."
Run setup.sh again and it complete the instal with 2 last warning:
- Applying patches for adodb/adodb-php
../installer/composer-patches/adodb-php__remove_references_to_adodb_extension.patch (Remove references to ADOdb Extension)
Could not apply patch! Skipping. The error was: Cannot apply patch ../installer/composer-patches/adodb-php__remove_references_to_adodb_extension.patch
../installer/composer-patches/adodb-php__remove-the-check-if-the-adodb-php_ext-is-enabled.patch (Remove the check for ADOdb Extension)
Could not apply patch! Skipping. The error was: Cannot apply patch ../installer/composer-patches/adodb-php__remove-the-check-if-the-adodb-php_ext-is-enabled.patch- Installing jquery/jquery-sheet (3.1): Loading from cache
- Applying patches for jquery/jquery-sheet
../installer/composer-patches/jquery-sheet_fix-visibility-issues.patch (Fix visibility issues)
Could not apply patch! Skipping. The error was: Cannot apply patch ../installer/composer-patches/jquery-sheet_fix-visibility-issues.patchI though it was done but no:
Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'You cannot set service "service_container".' in /var/www/virtual/xn8dbcma7a7ale.com/vendor_bundled/vendor/symfony/dependency-injection/Container.php:170 Stack trace: #0 /var/www/virtual/xn8dbcma7a7ale.com/temp/cache/container.php(33): Symfony\Component\DependencyInjection\Container->set('service_contain...', Object(TikiCachedContainer)) #1 /var/www/virtual/xn8dbcma7a7ale.com/lib/init/initlib.php(84): TikiCachedContainer->__construct() #2 /var/www/virtual/xn8dbcma7a7ale.com/lib/tikilib.php(59): TikiInitgetContainer() #3 /var/www/virtual/xnlib('smarty') #4 /var/www/virtual/xn8dbcma7a7ale.com/tiki-install.php(96): include_once('/var/www/virtua...') #5 {main} thrown in /var/www/virtual/xn--8dbcma7a7ale.com/vendor_bundled/vendor/symfony/dependency-injection/Container.php on line 1708dbcma7a7ale.com/installer/tiki-installer.php(741): TikiLib
Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'You cannot set service "service_container".' in /var/www/virtual/xn
I check on tiki install side after entering credentials, same :8dbcma7a7ale.com/vendor_bundled/vendor/symfony/dependency-injection/Container.php:170 Stack trace: #0 /var/www/virtual/xn8dbcma7a7ale.com/temp/cache/container.php(33): Symfony\Component\DependencyInjection\Container->set('service_contain...', Object(TikiCachedContainer)) #1 /var/www/virtual/xn8dbcma7a7ale.com/lib/init/initlib.php(84): TikiCachedContainer->__construct() #2 /var/www/virtual/xn8dbcma7a7ale.com/lib/tikilib.php(59): TikiInitgetContainer() #3 /var/www/virtual/xnlib('smarty') #4 /var/www/virtual/xn8dbcma7a7ale.com/tiki-install.php(96): include_once('/var/www/virtua...') #5 {main} thrown in /var/www/virtual/xn--8dbcma7a7ale.com/vendor_bundled/vendor/symfony/dependency-injection/Container.php on line 1708dbcma7a7ale.com/installer/tiki-installer.php(741): TikiLib- Solution
Hopefully done without causing other trouble in r62412 (added
rm temp/cache/container.phpto setup.sh)- Workaround
- do
rm temp/cache/container.php - Importance
- 8
- Easy to solve?
- 10 easy
- Priority
- 80
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 6330
- Created
- Monday 01 May, 2017 06:37:46 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Wednesday 03 May, 2017 13:49:15 UTC