Loading...
 
Skip to main content

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
(0)
Description

On a Tiki 16.3 I did :

Copy to clipboard
svn switch https://svn.code.sf.net/p/tikiwiki/code/branches/17.x .


Then I did:

Copy to clipboard
sh setup.sh

Option c to update composer.

ErrorException
rename(/root/.composer/cache/composer-temp.phar,temp/composer.phar): No such file or directory

I 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 directory

In /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/minifyjs

I 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.patch

I 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): TikiInit
getContainer() #3 /var/www/virtual/xn8dbcma7a7ale.com/installer/tiki-installer.php(741): TikiLib
lib('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 170



I check on tiki install side after entering credentials, same :

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): TikiInit
getContainer() #3 /var/www/virtual/xn8dbcma7a7ale.com/installer/tiki-installer.php(741): TikiLib
lib('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 170
Solution

Hopefully done without causing other trouble in r62412 (added rm temp/cache/container.php to setup.sh)

Workaround
do rm temp/cache/container.php
Importance
8
Easy to solve?
10 easy
Priority
80
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages