Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Noticed this on my status page today
How do I begin to debug this?
Thanks
jQuery UI CSS should be coming from a CDN.
Error Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting though.
Error Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for css files are not getting though.
Adv JS CDN
jQUery & jQuery UI JS should be coming from a CDN.
Comment | File | Size | Author |
---|---|---|---|
#26 | advagg-1951180-25-fuzzy-code-search.patch | 1.94 KB | mikeytown2 |
#20 | advagg-1951180-20-more-nginx-doc.patch | 595 bytes | mikeytown2 |
#14 | advagg-1951180-14-add-space-to-404-test.patch | 582 bytes | mikeytown2 |
#3 | advagg-1951180-1-longer-http-timeout.patch | 992 bytes | mikeytown2 |
#1 | advagg-1951180-1-output-more-on-error.patch | 530 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedI've committed this patch which will output more info when this error happens. Could you copy the Raw request info as a reply to this issue?
Comment #2
jwaxman CreditAttribution: jwaxman commentedThanks.
Here's the output on the status page.
Any other information needed?
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedLooks like your server is taking longer than 3 seconds to respond to the http request. I've upped the limit to 10 seconds now. This patch has been committed.
Comment #4
jwaxman CreditAttribution: jwaxman commentedThanks.
Anything I can do about that short of moving to a different host?
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedSee what needs to happen in order to reduce your bootstrap time. The advagg 404 code path is pretty short so I would look at profiling your site and seeing whats causing the 3+ second bootstrap times.
Comment #6
jwaxman CreditAttribution: jwaxman commentedOnce again, thanks.
I know that this next question is outside the scope of advagg but ..
When I googled around using combinations of "drupal" "bootstrap" "profile" and "performance" and didn't come up with anything useful.
Can you point me toward a resource that would let me see what's slowing the bootstrap down?
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedxdebug or xhprof
xdebug - http://www.chapterthree.com/blog/steve_rude/profiling_your_drupal_site_x...
xhprof - http://groups.drupal.org/node/82889
Searching on http://drupal.stackexchange.com/ should give answers as well.
Comment #9
rinku_talukdar CreditAttribution: rinku_talukdar commentedI am using ngnix and advagg. And also added in nginx cong
###
### advagg_css and advagg_js support
###
location ~* files/advagg_(?:css|js)/ {
access_log off;
expires max;
add_header ETag "";
add_header Cache-Control "max-age=290304000, no-transform, public";
add_header Last-Modified "Wed, 20 Jan 1988 04:20:42 GMT";
try_files $uri @drupal;
}
Still getting the following error in status report issue-
Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting through.
Raw request info:
stdClass Object
(
[request] => GET /sites/localtest.org/files/advagg_js/js1371201780.js HTTP/1.0
User-Agent: Drupal (+http://drupal.org/)
Host: d7local.artofliving.org
[data] =>
404 Not Found
404 Not Found
nginx/1.1.19
[protocol] => HTTP/1.1
[status_message] => Not Found
[headers] => Array
(
[server] => nginx/1.1.19
[date] => Fri, 14 Jun 2013 09:23:01 GMT
[content-type] => text/html
[content-length] => 169
[connection] => close
)
[code] => 404
[error] => Not Found
)
Error
Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for css files are not getting through.
Raw request info:
stdClass Object
(
[request] => GET /sites/localtest.org/files/advagg_css/css1371201780.css HTTP/1.0
User-Agent: Drupal (+http://drupal.org/)
Host: d7local.artofliving.org
[data] =>
404 Not Found
404 Not Found
nginx/1.1.19
[protocol] => HTTP/1.1
[status_message] => Not Found
[headers] => Array
(
[server] => nginx/1.1.19
[date] => Fri, 14 Jun 2013 09:23:01 GMT
[content-type] => text/html
[content-length] => 169
[connection] => close
)
[code] => 404
[error] => Not Found
)
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commented@rinku_talukdar
According to the log you just posted, nginx is handling the 404 instead of drupal. I would check the nginx configuration; it appears that the advagg dir is located in
sites/localtest.org/files/
but in nginx you have it configured forfiles/
. Address this issue and it should work.Comment #11
mikeytown2 CreditAttribution: mikeytown2 commentedGoing to mark this as fixed. Assuming that rinku_talukdar got this working as I haven't received any feedback.
Comment #12
ArtActivator.com CreditAttribution: ArtActivator.com commentedThe problem is in underscore. Status report page asking for css1212121.css and js1231231231.js
but in nginx config it is:
location ~* /sites/default/files/advagg_js/js_*[[:alnum:]]+.js$ {
so the fix is:
location ~* /sites/default/files/advagg_js/js[_]*[[:alnum:]]+.js$ {
location ~* /sites/default/files/advagg_css/css[_]*[[:alnum:]]+.css$ {
For nginx I would recommend to use this nginx config
https://github.com/perusio/drupal-with-nginx
but it also need to be edited to fix this issue.
-------------------------
www.ArtActivator.com - Order your success!
Comment #13
mikeytown2 CreditAttribution: mikeytown2 commentedI'll add in the underscores to the test file & document this better. Thanks for investigating this :)
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedFollowing patch has been committed.
Comment #16
sibiru CreditAttribution: sibiru commentedHi, I solved the problem on nginx perusio conf change _ to __ on these lines (78 & 90 )
to
Comment #17
RaulMuroc CreditAttribution: RaulMuroc commentedThe same kind of error raises with latest stable version due to a configuration of .htaccess + .htpassword restriction. Then it returns [error] => authentication required.
Just extra information for those who could face the same problem.
Comment #18
uhlvuhlv CreditAttribution: uhlvuhlv commentedIn my case as I'm working locally, I fix it by changing the baseurl in the settings file:
to:
Comment #19
Bandy CreditAttribution: Bandy commentedI also had such a problem in the interaction with nginx. The solution for me:
### advagg_css and advagg_js support
location ~* files/advagg_(?:css|js)/ {
access_log off;
expires max;
add_header ETag "";
add_header Cache-Control "max-age=2628000, no-transform, public";
try_files $uri $uri/ @rewrites;
#try_files $uri @drupal;
}
Since everything is fine. Maybe it will help others as well.
Comment #20
mikeytown2 CreditAttribution: mikeytown2 commentedFollowing patch has been committed based off of #19
Comment #21
jason.fisher CreditAttribution: jason.fisher commentedFYI, for those of you that are using this rule, it is still not quite complete:
There are hyphens and underscores that appear in the filename also. Try:
.. or use the committed rule that was provided in #19.
Comment #22
labboy0276 CreditAttribution: labboy0276 commentedSide note on this closed issue (sorry to comment on it), but I had a similar issue with Pantheon and Fast 404 being enabled. Since we can't edit the nginx config, the best way to handle this is to remove css|js from $conf['404_fast_paths']. This fixes the error on Pantheon with fast 404s enabled.
Sample $conf['404_fast_paths'] for those who just like to copy and paste:
Comment #23
mikeytown2 CreditAttribution: mikeytown2 commentedInstead of changing the 404_fast_paths variable, change the 404_fast_paths_exclude variable from
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
to
$conf['404_fast_paths_exclude'] = '/\/(?:styles|advagg_(cs|j)s)\//';
The status report should highlight this.
Comment #24
mikeytown2 CreditAttribution: mikeytown2 commentedLooks like I need to give a better code example based off of feedback from http://drupal.stackexchange.com/questions/180735/error-adv-css-js-agg-fa...
I referenced this in the last comment but it never happened. Reopening to make sure this happens.
Comment #26
mikeytown2 CreditAttribution: mikeytown2 commentedCode now handles non default 404_fast_paths_exclude variable setting.
Comment #29
gopisathya CreditAttribution: gopisathya commentedI also get the same issue. Well, there are some suggestions to resolve this but what does it really mean? What advagg is trying to do and what is wrong?
Comment #30
webservant316 CreditAttribution: webservant316 commentedI woke up to this error this morning. Running Drupal 7.56 and AdvAgg 7.x-2.25 and also using Cloudflare.
What are my steps to debug and fix this?
Also I did this
In some cases this can sometimes be a false report; go here: ..../files/advagg_css/css__1499945620.css and check if the source (press ctrl+u on your keyboard) has an html comment that says "advagg_missing_fast404"; if it does, this is a false report, add this $conf['advagg_skip_404_check'] = TRUE; to your settings.php file.
I did this and the string "advagg_missing_fast404" is NOT present.
Also my current configuration had been running successfully for weeks, so perhaps something changed at Cloudflare?
Opened a new issue at https://www.drupal.org/node/2894536.