Project

General

Profile

Actions

Bug #32952

closed

Retrieve/update the repository don't work with FastCGI (Extension Manager)

Added by Daniel Schulz over 12 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2012-01-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi there,

I didn't found the project page of the em and no same issue on google. If I posted this in the wrong thread please excuse me and move this or delete if it's a duplicate.

If I run Typo3 with FastCGI, the Extension Manager don't work correctly. If I try to retrieve or update the Repository I get the message "No update needed! Repository is up to date.". After this message I cant find any Extensions anymore.

If I disable FastCGI everything works fine.

This works:
  1. Disable FastCGI
  2. Update Repository
  3. Enable FastCGI
  4. Search for Extension
  5. Install Extension
This don't works:
  1. Enable FastCGI
  2. Update Repository
  3. Message: "No update needed! Repository is up to date."
  4. Search for Extension (nothing found!)
Additional informations:
  • Extension Manager (4.6.0)
### DEBUG SYSTEM INFORMATION - START ###
HTTP_HOST           : showcms.de
TYPO3_HOST_ONLY     : showcms.de
TYPO3_PORT          : 
PATH_INFO           : 
QUERY_STRING        : TYPO3_INSTALL[type]=phpinfo
REQUEST_URI         : /RSRW/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
HTTP_REFERER        : http://showcms.de/RSRW/typo3/install/index.php?TYPO3_INSTALL[type]=about
TYPO3_REQUEST_HOST  : http://showcms.de
TYPO3_REQUEST_URL   : http://showcms.de/RSRW/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT: http://showcms.de/RSRW/typo3/install/index.php
TYPO3_REQUEST_DIR   : http://showcms.de/RSRW/typo3/install/
TYPO3_SITE_URL      : http://showcms.de/RSRW/
TYPO3_SITE_SCRIPT   : typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_SSL           : 
TYPO3_REV_PROXY     : 
SCRIPT_NAME         : /RSRW/typo3/install/index.php
TYPO3_DOCUMENT_ROOT : /www/htdocs/showcms
SCRIPT_FILENAME     : /www/htdocs/showcms/RSRW/typo3/install/index.php
REMOTE_ADDR         : 95.208.57.148
REMOTE_HOST         : 
HTTP_USER_AGENT     : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
HTTP_ACCEPT_LANGUAGE: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
CONST: PHP_OS       : Linux
CONST: TYPO3_OS     : 
CONST: PATH_thisScri: /www/htdocs/showcms/RSRW/typo3/install/index.php
CONST: php_sapi_name: cgi-fcgi
OTHER: TYPO3_VERSION: 4.6.3
OTHER: PHP_VERSION  : 5.3.8-nmm1
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif()          : 1
imagepng()          : 1
imagejpeg()         : 1
imagettftext()      : 1
OTHER: IMAGE_TYPES  : 31
OTHER: memory_limit : 64M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /RSRW/typo3/install/index.php
SERVER: PATH_TRANSLA: 
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib     : 1
T3CV_GFX: gdlib_png : 1
T3CV_GFX: im        : 1
T3CV_GFX: im_path   : /usr/bin/
T3CV_GFX: im_path_lz: /usr/bin/
T3CV_GFX: im_version: gm
T3CV_GFX: im_negate_: 0
T3CV_GFX: im_imvMask: 0
T3CV_GFX: im_combine: combine
### DEBUG SYSTEM INFORMATION - END ###

Thanks for help ;)

Greetings Daniel

Actions #1

Updated by Steffen Gebert over 12 years ago

  • Status changed from New to Needs Feedback

Hi Daniel,

you're right here :)

TYPO3 definitely works with FastCGI. Could you have a look at the Network tab of your favorite browser (Developer tools in Chrome, then Network or in Firebug the Net tab).

Please post the response of the AJAX call.

Actions #2

Updated by Daniel Schulz over 12 years ago

Hi Steffen,

thanks for the fast answer.
I'm really tempted to help develop. You looks like a nice and professional open source team.

Update response (FastCGI):

[{"tid":9,"action":"ExtDirect","method":"repositoryUpdate","type":"rpc","result":{"success":false,"errormsg":"Repository is up to date.","rep":1},"debug":""}]

Search response (searched for "tt_news") (FastCGI):

[{"tid":10,"action":"ExtDirect","method":"getRemoteExtensionList","type":"rpc","result":{"length":13,"data":[]},"debug":""}]

EDIT 2012-01-04 09:15 (UTC +1): the created 1.extensions.xml.gz are exactly the same with the same rights.

Actions #3

Updated by Kai Blaschke over 12 years ago

I can confirm this bug. I'm using PHP 5.3 with FastCGI via Apache's mod_fcgid on my virtual hosting server for security purposes, thus I can't revert to mod_php.

I get some results from the server, but not all - the length key of the result object tells me 83 results for "tt_news" are available, but only 4 entries are returned in the data array. The pagination on the bottom correctly shows 2 pages, but moving to the second page returns no results in the data array at all, but still insists on 83 extensions being available. This fits the search response Daniel got in his installation.

The problem also affects the installed extension list. I've templavoila v1.3.7 installed, which isn't TYPO3 4.6 compatible, but the available update (I checked it's in the cache_extensions DB table) to 1.6.0 isn't recognized.

Actions #4

Updated by Jan Schreier over 12 years ago

I also get this error with typo3 4.6.3. technically it is a 500 error
Response to the AJAX call is: ===
POST http://domain.de/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.EM 500 (Internal Server Error)
i
Ext.lib.Ajax.k.request
Ext.extend.request
Ext.direct.RemotingProvider.Ext.extend.doSend
Ext.direct.RemotingProvider.Ext.extend.combineAndSend
b ===

hope this helps. if you need more info, I'm happy to help!

Actions #5

Updated by Alexander Reuber almost 12 years ago

Hey Guys,

I'm watching this bug now in some of my TYPO3 Extension. Right now it's 4.6.8 the following stuff happens when updating Extension List:

Anfrage-URL:http://foerderverein.sms-crossmedia.de/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.EM
Anfragemethode:POST
Status-Code:500 Internal Server Error
Anfrage-HeaderQuelltext anzeigen
Content-Type:application/json
Origin:http://foerderverein.sms-crossmedia.de
Referer:http://foerderverein.sms-crossmedia.de/typo3/mod.php?M=tools_em
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
X-Requested-With:XMLHttpRequest
AbfrageparameterURL-Codiert anzeigen
ajaxID:ExtDirect::route
namespace:TYPO3.EM
Anfrage-Payload {"action":"ExtDirect","method":"repositoryUpdate","data":["1","06887e473c475b3c368d464b649b5f04076786f3"],"type":"rpc","tid":3}
Antwort-Header
Cache-Control:no-cache, must-revalidate
Connection:close
Content-Encoding:gzip
Content-Type:text/html
Date:Thu, 31 May 2012 09:52:44 GMT
Expires:0
Last-Modified:Thu, 31 May 2012 09:52:44 GMT
Pragma:no-cache
Server:Apache
Transfer-Encoding:Identity
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.13

Anfrage-URL:http://foerderverein.sms-crossmedia.de/typo3/ajax.php?_dc=1338457988398&ajaxID=BackendLogin%3A%3AisTimedOut&skipSessionUpdate=1
Anfragemethode:GET
Status-Code:200 OK
Anfrage-HeaderQuelltext anzeigen
Referer:http://foerderverein.sms-crossmedia.de/typo3/backend.php
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
X-Requested-With:XMLHttpRequest
AbfrageparameterURL-Codiert anzeigen
_dc:1338457988398
ajaxID:BackendLogin::isTimedOut
skipSessionUpdate:1
Antwort-HeaderQuelltext anzeigen
Cache-Control:no-cache, must-revalidate
Connection:Keep-Alive
Content-Encoding:gzip
Content-Type:application/json; charset=utf-8
Date:Thu, 31 May 2012 09:53:24 GMT
Expires:0
Keep-Alive:timeout=3, max=50
Last-Modified:Thu, 31 May 2012 09:53:24 GMT
Pragma:no-cache
Server:Apache
Transfer-Encoding:Identity
Vary:Accept-Encoding
X-JSON:{"login":{"will_time_out":false}}
X-Powered-By:PHP/5.3.13

Anfrage-URL:http://foerderverein.sms-crossmedia.de/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.EM
Anfragemethode:POST
Status-Code:200 OK
Anfrage-HeaderQuelltext anzeigen
Content-Type:application/json
Origin:http://foerderverein.sms-crossmedia.de
Referer:http://foerderverein.sms-crossmedia.de/typo3/mod.php?M=tools_em
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
X-Requested-With:XMLHttpRequest
AbfrageparameterURL-Codiert anzeigen
ajaxID:ExtDirect::route
namespace:TYPO3.EM
Anfrage-Payload {"action":"ExtDirect","method":"repositoryUpdate","data":["1","06887e473c475b3c368d464b649b5f04076786f3"],"type":"rpc","tid":3}
Antwort-HeaderQuelltext anzeigen
Cache-Control:no-cache, must-revalidate
Connection:Keep-Alive
Content-Encoding:gzip
Content-Type:application/json; charset=utf-8
Date:Thu, 31 May 2012 09:53:44 GMT
Expires:0
Keep-Alive:timeout=3, max=50
Last-Modified:Thu, 31 May 2012 09:53:44 GMT
Pragma:no-cache
Server:Apache
Transfer-Encoding:Identity
Vary:Accept-Encoding
X-JSON:1
X-Powered-By:PHP/5.3.13

It's PHP with FastCGI. And now come the interesting part other installations on same Server with same TYPO3 Version even the same Core-Files working correctly:

Anfrage-URL:http://www.schulte-bauregie.de/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.EM
Anfragemethode:POST
Status-Code:200 OK
Anfrage-HeaderQuelltext anzeigen
Content-Type:application/json
Origin:http://www.schulte-bauregie.de
Referer:http://www.schulte-bauregie.de/typo3/mod.php?M=tools_em
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
X-Requested-With:XMLHttpRequest
AbfrageparameterURL-Codiert anzeigen
ajaxID:ExtDirect::route
namespace:TYPO3.EM
Anfrage-Payload {"action":"ExtDirect","method":"repositoryUpdate","data":[1,"71507ff1fbbe1984a2524b59099cf832940d8a3c"],"type":"rpc","tid":9}
Antwort-Header
Cache-Control:no-cache, must-revalidate
Connection:Keep-Alive
Content-Type:application/json; charset=utf-8
Date:Thu, 31 May 2012 09:58:26 GMT
Expires:0
Keep-Alive:timeout=3, max=50
Last-Modified:Thu, 31 May 2012 09:58:28 GMT
Pragma:no-cache
Server:Apache
Transfer-Encoding:Identity
X-JSON:1
X-Powered-By:PHP/5.3.13

Anfrage-URL:http://www.schulte-bauregie.de/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.EM
Anfragemethode:POST
Status-Code:200 OK
Anfrage-HeaderQuelltext anzeigen
Content-Type:application/json
Origin:http://www.schulte-bauregie.de
Referer:http://www.schulte-bauregie.de/typo3/mod.php?M=tools_em
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
X-Requested-With:XMLHttpRequest
AbfrageparameterURL-Codiert anzeigen
ajaxID:ExtDirect::route
namespace:TYPO3.EM
Anfrage-Payload {"action":"ExtDirect","method":"getRemoteExtensionList","data":[{"start":0,"sort":"title","dir":"ASC","query":"powermail","repository":1,"limit":50,"rep":1,"installedOnly":false},"71507ff1fbbe1984a2524b59099cf832940d8a3c"],"type":"rpc","tid":10}
Antwort-HeaderQuelltext anzeigen
Cache-Control:no-cache, must-revalidate
Connection:Keep-Alive
Content-Type:application/json; charset=utf-8
Date:Thu, 31 May 2012 09:58:55 GMT
Expires:0
Keep-Alive:timeout=3, max=50
Last-Modified:Thu, 31 May 2012 09:58:55 GMT
Pragma:no-cache
Server:Apache
Transfer-Encoding:Identity
X-JSON:1
X-Powered-By:PHP/5.3.13

I also tried to enable/disable curl but there was no change with the TYPO3 Site with the 500 error. Hope this will help you to find the bug or problem.

Actions #6

Updated by Alexander Reuber almost 12 years ago

Ok Guys,

I've an update. I've found possible Problem for this errors. The installation with the error used dbal for database connection. I disabled this. After this I did an Database compare and all cache-tables where updated. Engine was MyISAM now correctly innoDB. Also there where missing keys. Sadly I forgot to do screenshoots. but after that DB update the extension manager correctly updated the extension lists. So it thems its an DB Problem or dbal problem. Hope you can reproduce the error and find the bugs :)

If you need more information please ask.

Actions #7

Updated by Jan Schreier over 11 years ago

I took another go at this issue, but for me Alexander's solution did not solve the issue. What I found out is that the issue must be related to libXML somehow. If I ensure that not the pull but the pushparser is used to process the 1.extensions.xml.gz file it works flawlessly (if someone wants to check this, just set the variable $this->requiredPHPExt in class.tx_em_parser_extensionxmlpullparser.php to a random value, and re-run the import (maybe you have to delete the 1.extensions.xml.gz before and flush the cached files).

within the pullparser I could not point down the exact point where the program halts as it seem to be rather randomly. If I comment out the $GLOBALS['TYPO3_DB']->exec_INSERTmultipleRows row in the loadIntoDB function in class.tx_em_import_extensionlistimporter.php everything else runs fine. If i don't comment it out the program halts but definetly not at this function but somewhere in the XML parser.

I'm still on php 5.3.8 and libxml 2.7.8 but try to get both updated by my server-admin.

another thing that I noted is that the function updateExtList in /typo3_src-4.7.2/typo3/sysext/em/classes/repository/class.tx_em_repository_utility.php
is evoked by twice by Ajax - this seem also an odd behaviour.

hope this helps. I'll give up for now but will be happy to provide more info if omeone needs it or has suggestions.

UPDATE: Even after updating to PHP 5.3.15 and libxml 2.8.0 the problem still is the same

Actions #8

Updated by Thomas Luzat over 11 years ago

I seem to be able to reproduce this with the 4.6.9 introduction package, PHP 5.3.18, php-fpm and nginx. I will try to verify and step through the code once I find some time.

Actions #9

Updated by Alexander Opitz almost 11 years ago

Hi,

this issue is very old, does it still exists with newer versions of TYPO3 CMS (6.1)?

Actions #10

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Is Regression set to No

No feedback for over 90 days.

If you think, that this is the wrong decision, then please write to the mailinglist typo3.teams.bugs with issue number and an explanation.

Actions

Also available in: Atom PDF