Loading...
 

Error with composer switching branch from 16x to 17x

Status
Closed
Subject
Error with composer switching branch from 16x to 17x
Resolution status
Fixed
Submitted by
Bernard Sfez / Tiki Specialist
Volunteered to solve
Jonny Bradley
Lastmod by
Bernard Sfez / Tiki Specialist, Jonny Bradley
Rating
(0)
Ticket ID
6330
Category
Bug::Error
Release Blocker
Version
17.x
Feature
Installer (profiles, upgrades and server-related issues)
Description

On a Tiki 16.3 I did :

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


Then I did:

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
Workaround
do rm temp/cache/container.php
Priority
80
Importance
8
Easy to solve?
10 easy
Solution

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

Created
Monday 01 May, 2017 06:37:46 UTC
LastModif
Wednesday 03 May, 2017 13:49:15 UTC

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Payment 5.x
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Share
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests 2.x
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC




Useful Tools