Long wait time when saving blog item

Hi! It’s my first post here and unfortunately I have to write new topic in “Support”.

Anyway - I’ve got some problems with my site. It’s running on latest stable version (1.6.5) on Quark Open Publishing theme, all default plugin (while GitSync is turned off) and some additional ones (like Advanced Cache, YouTube). While saving blog item (especially when it’s published) wait time is very long (like few minutes) and sometimes I’m getting time out error from server side. Below you can find screenshot from such situation:

I’ve checked the Apache’s error logs and I found such thing for similiar situation:

2019-04-16 13:24:21.721569 [INFO] [xxx.xxx.xx.xxx:61436:HTTP2-1] Connection idle time: 301 while in state: 7 stream flag: 8449,close!
2019-04-16 13:24:21.721599 [NOTICE] [xxx.xxx.xx.xxx:61436:HTTP2-1] Content len: 21474, Request line: 'POST /admin/pages/blog/the-way-remastered-nintendo-switch/mode:normal HTTP/1.1'
2019-04-16 13:24:21.721603 [INFO] [xxx.xxx.xx.xxx:61436:HTTP2-1] Cookie len: 274, grav-site-da4b14e-admin=ae67ec280183bfddbb7e8429dd74c51b; grav-site-da4b14e=86d9e64a5378fa32fd6cbfd548af72ed; grav-tabs-state={%22tab-content.options.advanced.blog.seo%22:%22data.seo%22%2C%22tab-googlefields.twitterfields.jsonfield.facebookfields%22:%22data.googlefields%22}
2019-04-16 13:24:21.721606 [NOTICE] [xxx.xxx.xx.xxx:61436:HTTP2-1] Redirect: #1, URL: /index.php
2019-04-16 13:24:21.721610 [INFO] [xxx.xxx.xx.xxx:61436:HTTP2-1] HttpExtConnector state: 8, request body sent: 21474, response body size: -2, response body sent:0, left in buffer: 0, attempts: 0.
2019-04-16 13:24:21.721614 [INFO] [xxx.xxx.xx.xxx:61436:HTTP2-1] Lsapi connection state: 3, watching event: 25, respState: 1, m_iTotalPending:0, m_iPacketLeft:0, m_iCurRespHeader:9, req sent for 301 seconds,Total processing time: 301.
2019-04-16 13:24:21.721670 [INFO] [xxx.xxx.xx.xxx:61436:HTTP2-1] Abort request processing by PID:1167294, kill: 1, begin time: 301, sent time: 301, req processed: 0

Any ideas what can cause such situation and how to solve such question?

Hi @bwanot, I am not sure (Git Sync adds a noticeable delay but if it is disabled it should not be triggered on Page Saves). Perhaps change the theme to the standard “Quark” and see if this behavior is still present?

Hi @paulhibbitts, thanks for the reply. Well, my website is on “My Theme” to be exact and I made some changes in twigs and styles, so I’m affraid that changing theme when site is live is rather a bad idea from my perspective :wink:
Such long wait time is visible especially on long articles and when they are published. Short ones and unpublished don’t behave that way.

1 Like

Hmm… the wait time you describe is not usual - I would either try disabling plugins (esp Advanced Cache) to see if that changes things. If it is your production site it might be worth doing another fresh Grav install on the same server and then try out your theme customizations there etc.

@paulhibbitts Well, I turned off the Advanced cache plugin and still the problem occurs. What’s more - now I’m getting timeout error after 5 minutes of waiting for server. Such situation occurs when I’m trying to save this long article https://geekretro.pl/jak-kupowac-gry-w-japonskim-nintendo-eshop .

By the way, got one question. Why there is a 303 redirect for …/admin/pages/jak-kupowac-gry-w-japonskim-nintendo-eshop which takes 3-5 minutes of waiting (TTFB) or timeout request and after that there is status 200 code for …/admin/pages/blog/jak-kupowac-gry-w-japonskim-nintendo-eshop ? Maybe this 303 is a problem? (Sorry if this question is stupid, but I’m not a developer :wink: )

Below you will find list of all my plugins:
Admin Panel v1.9.3 ON
AdvancedPageCache v1.2.0 OFF
Archives v1.6.0 OFF
Auto Date v1.0.2 ON
Breadcrumbs v1.5.1 OFF
CDN v1.5.0 OFF
Cookie Consent v0.4.0 ON
Customadmin v1.0.0 ON
Dark Admin v1.0.0 OFF
Email v3.0.1 ON
Error v1.6.1 ON
External Links v1.6.1 OFF
Featherlight v1.5.0 ON
Feed v1.7.0 ON
Form v3.0.2 ON
Google Analytics v1.4.0 ON
Git Sync v2.0.4 OFF
Image Captions v2.0.1 ON
JSComments v2.2.1 ON
Login v3.0.1 ON
Markdown Font Awesome v1.0.1 ON
Markdown Notices v1.0.1 ON
Page Inject v1.3.1 ON
Pagination v1.4.1 ON
Presentation v1.6.6 ON
Presentation Deckset v1.2.0 ON
Problems v2.0.2 ON
Related Pages v1.2.2 ON
SEO v2.3.5 ON
Shortcode Core v4.1.1 ON
Shortcode UI v2.3.0 ON
SimpleSearch v1.14.2 OFF
Sitemap v1.9.1 ON
SocialButtons v1.0.3 ON
Taxonomy List v1.3.3 ON
TNT Search v3.0.0 ON
YouTube v3.0.1 ON

And here is my PHP settings from DirectAdmin (maybe there should I turn on/off some options?):

Any ideas?

Making a fresh install is a good idea, but recently don’t have enough free time to do it :confused:

I think I found the source of my problems. Need to test it in 100% but I think that one particular plugin was messing around with my site - TNT Search. I have turned it off (since I’m not using it) and now every save of long article is fast as it should be.

1 Like

Hi @bwanot, glad you might have tracked down the issue! I use the TNTSearch Plugin myself but perhaps there was an issue with the particular config etc?

Re: PHP settings, you can see Grav’s recommended ones at https://learn.getgrav.org/16/basics/requirements#php-requirements

Could be, who knows. Well, the good thing is that CMS is working fine :slight_smile: As for PHP settings I’ve tried to set it as manual says few weeks ago. Hope that everything will be working great. Thanks for your help.

1 Like