Project

General

Profile

Actions

Bug #85547

closed

Extension Manager not working after update to 8.7.17

Added by Alexander Jaschke almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Start date:
2018-07-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Extension manager throws warning and a fatal error.

Warning: Uncaught TYPO3\CMS\Core\Error\Exception: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Libraries/symfony-process.phar/vendor/autoload.php) is not within the allowed path(s): (/var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxxxdomainxxxxx.com/web:/srv/www/xxxxxdomainxxxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom:/var/www/typo3) in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/IO/PharStreamWrapper.php line 474 in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/Error/ErrorHandler.php:107 Stack trace: #0 [internal function]: TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'file_exists(): ...', '/var/www/client...', 474, Array) #1 /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/co in /var/www/clients/client3/web566/web/typo3_src-8.7.17/typo3/sysext/core/Classes/Error/ErrorHandler.php on line 107

Fatal error: TYPO3\CMS\Core\Cache\Backend\SimpleFileBackend::{closure}(): Failed opening required 'phar:///var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/../../../Libraries/symfony-process.phar/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/autoload.php on line 26

After downgrading to 8.7.16 the extension manager is working again.

Actions #1

Updated by Oliver Hader almost 6 years ago

  • Status changed from New to Needs Feedback

How does your open_basedir restriction configuration look like?

Actions #2

Updated by Oliver Hader almost 6 years ago

  • Is Regression set to Yes
Actions #3

Updated by Stephan Großberndt almost 6 years ago

According to the error message its

open_basedir = /var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxxxdomainxxxxx.com/web:/srv/www/xxxxxdomainxxxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom:/var/www/typo3

The question is why

/var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Libraries/symfony-process.phar/vendor/autoload.php

which is the resolved path for

phar:///var/www/clients/client3/web566/web/typo3conf/ext/typo3_console/Resources/Private/ExtensionArtifacts/../../../Libraries/symfony-process.phar/vendor/autoload.php

is not part of

/var/www/clients/client3/web566/web

Actions #4

Updated by Christian Riesche almost 6 years ago

After updating to latest 7.6.30 I experienced those fatals.
phpunit Extension in version 5.3.5 installed.

Warning: Uncaught TYPO3\CMS\Core\IO\PharStreamWrapperException: Executing phar:///var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar/bootstrap.php is denied in /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php:486
Stack trace:
#0 /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php(238): TYPO3\CMS\Core\IO\PharStreamWrapper->assertPath('phar:///var/www...')
#1 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar(12): TYPO3\CMS\Core\IO\PharStreamWrapper->stream_open('phar:///var/www...', 'rb', 129, NULL)
#2 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar(12): require()
#3 /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/ext_localconf.php(5): require_once('/var/www/leipzi...')
#4 /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/Exten in /var/www/xxxxxxx.de/webroot/vendor/typo3/cms/typo3/sysext/core/Classes/IO/PharStreamWrapper.php on line 486

Fatal error: TYPO3\CMS\Core\Utility\ExtensionManagementUtility::main(): Failed opening required 'phar:///var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar/bootstrap.php' (include_path='/var/www/xxxxxxx.de/webroot/vendor/pear/http_request2:/var/www/xxxxxxx.de/webroot/vendor/pear/pear_exception:/var/www/xxxxxxx.de/webroot/vendor/pear/net_url2:.:/usr/share/php') in /var/www/xxxxxxx.de/webroot/htdocs/typo3conf/ext/phpunit/Resources/Private/Libraries/phpunit-library.phar on line 12
Actions #5

Updated by Alexander Jaschke almost 6 years ago

The »System Environment« (Install Tool) shows:
open_basedir = /var/www/clients/client3/web566/web:/var/www/clients/client3/web566/private:/var/www/clients/client3/web566/tmp:/var/www/xxxdomainxxx.com/web:/srv/www/xxxdomainxxx.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom

I have contacted the server administrator first and he wrote:
»"symphony.phar" is a file ... and not a folder... Something else seems to be wrong.«

But I can't really do anything with it.

Actions #6

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57587

Actions #7

Updated by Gerrit Code Review almost 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57587

Actions #8

Updated by Gerrit Code Review almost 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57595

Actions #9

Updated by Gerrit Code Review almost 6 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57596

Actions #10

Updated by Oliver Hader almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Oliver Hader almost 6 years ago

  • Target version set to 7.6.31 & 8.7.18 & 9.3.3
Actions #12

Updated by Gerrit Code Review over 5 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 9.3 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57727

Actions #13

Updated by Oliver Hader over 5 years ago

  • Status changed from Under Review to Resolved
Actions #14

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF