Page MenuHomePhabricator

Resource cache
Closed, ResolvedPublic

Description

Hy,

I updated my instance, and the calendar app unable to reteive the following resource:

http://example.com/res/phabricator/6c0e62fa/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadStaticSource.js

When call this url, the following exception will thrown:

Unhandled Exception ("AphrontQueryException")
#1406: Data too long for column 'cacheKey' at row 1

I try to purge cache, regenerate celerity resource maps, but its not helped, i this this is a database schema issue.

Event Timeline

Zolli raised the priority of this task from to Needs Triage.
Zolli updated the task description. (Show Details)
Zolli added projects: Celerity, Aphront.
Zolli added subscribers: Zolli, epriestley.

Do you have a full stack trace in your error log? Usually /var/log/apache2/error_log or something like that, depending on exactly which webserver/OS you're running.

[2015-06-01 08:43:09] EXCEPTION: (AphrontQueryException) #1406: Data too long for column 'cacheKey' at row 1 at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:311]
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: arcanist(head=master, ref.master=0b1acf0dc02a), phabricator(head=master, ref.master=c4bcfc85f160), phutil(head=master, ref.master=ee6d0c3fe26e)
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message:   #0 phlog(AphrontQueryException) called at [<phabricator>/src/aphront/configuration/AphrontDefaultApplicationConfiguration.php:226]
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message:   #1 AphrontDefaultApplicationConfiguration::handleException(AphrontQueryException) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:230]
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message:   #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:140]
FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message:   #3 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:19]

Pretty sure D13095 will fix this.

(T8331 covers improving that trace.)

Applyed this diff to my local install but does not seems to be helped. The trace, and the throwed exception is the same as before.

Probably a silly question, but did you restart Apache or php-fpm after applying the patch?

Oh no, its not a silly question :D Sorry, i justy quickly look this patch and totally forget restarting web-server... It works lik a charm ;) Thanks.

Awesome, thanks for testing! We'll get this upstreamed shortly.