Getting timeout error while publishing
-
I’m still getting errors while publishing although set Publication Task Timeout = 1000
Maybe I should set more or there is another reason?12.09.2024 в 14:00 - Publication failed during initiate_deployment task
Task failed due to a timeout or fatal error; consider increasing "Publication Task Timeout" under Staatic > Settings > Advanced.RuntimeException: Task failed due to a timeout or fatal error; consider increasing "Publication Task Timeout" under Staatic > Settings > Advanced. in /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php:232
Stack trace: 0 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(235): Staatic\WordPress\Publication\BackgroundPublisher->task() 1 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php(148): Staatic\Vendor\WP_Background_Process->handle() 2 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(151): Staatic\WordPress\Publication\BackgroundPublisher->handle() 3 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(324): Staatic\Vendor\WP_Background_Process->maybe_handle() 4 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /home/blogger/web/blogger.com.ua/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /home/blogger/web/blogger.com.ua/public_html/wp-admin/admin-ajax.php(207): do_action() 7 {main}-
This topic was modified 1 year, 3 months ago by
slawa19.
-
This topic was modified 1 year, 3 months ago by
-
Hi @slawa19, sorry to hear you’re running into a timeout issue during the deployment of your static site. To help us better understand the issue, could you please provide some additional details:
- Which deployment method are you using (e.g., Local Directory, S3, etc.)?
- Can you give us an idea of the size of your site? Specifically, how many resources does the publication encompass? You can find this information from the publication detail page’s summary view, as well as the resources tab list view.
Additionally, it might be helpful to check your site’s health information. You can do this by going to WP-Admin > Tools > Site Health > Info (tab) and clicking “Copy site info to clipboard.”. You may email this information to [email protected] if you prefer.
Looking forward to your feedback.
Hi @slawa19, just checking in to see if you were able to resolve the timeout issue you were experiencing during the deployment of your static site. If you’re still having trouble, please let us know so we can assist you further. Thanks!
Set Publication Task Timeout to 10000
But still unable to get site deployed.
RuntimeException: Task failed due to a timeout or fatal error; consider increasing “Publication Task Timeout” under Staatic > Settings > Advanced. in /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php:232
Stack trace:
#0 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(235): Staatic\WordPress\Publication\BackgroundPublisher->task()
#1 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/src/Publication/BackgroundPublisher.php(148): Staatic\Vendor\WP_Background_Process->handle()
#2 /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/staatic/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.php(151): Staatic\WordPress\Publication\BackgroundPublisher->handle()
#3 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(324): Staatic\Vendor\WP_Background_Process->maybe_handle()
#4 /home/blogger/web/blogger.com.ua/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /home/blogger/web/blogger.com.ua/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/blogger/web/blogger.com.ua/public_html/wp-admin/admin-ajax.php(207): do_action()
#7 {main}Site has 122 746 elements. I’m trying to deploy on Netlify.
` wp-core
version: 6.6.2
site_language: ru_RU
user_language: ru_RU
timezone: +02:00
permalink: /%year%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 15
dotorg_communication: true wp-paths-sizes
wordpress_path: /home/blogger/web/blogger.com.ua/public_html
wordpress_size: loading…
uploads_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/uploads
uploads_size: loading…
themes_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/themes
themes_size: loading…
plugins_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins
plugins_size: loading…
fonts_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/uploads/fonts
fonts_size: loading…
database_size: loading…
total_size: loading… wp-active-theme
name: Newspaper Child theme (Newspaper-child)
version: 9.0c
author: tagDiv
author_website: http://themeforest.net/user/tagDiv/portfolio
parent_theme: Newspaper (Newspaper)
theme_features: core-block-patterns, post-formats, post-thumbnails, automatic-feed-links, html5, woocommerce, bbpress, align-wide, align-full, editor-font-sizes, widgets-block-editor, editor-style, menus, widgets
theme_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/themes/Newspaper-child
auto_update: Выключено wp-parent-theme
name: Newspaper (Newspaper)
version: 12.6 (latest version: 12.6.7)
author: tagDiv
author_website: http://themeforest.net/user/tagDiv/portfolio
theme_path: /home/blogger/web/blogger.com.ua/public_html/wp-content/themes/Newspaper
auto_update: Выключено wp-plugins-active (19)
AI Engine: version: 2.6.2, author: Jordy Meow, Автоматические обновления отключены
Akismet Anti-spam: Spam Protection: version: 5.3.3, author: Automattic - Anti-spam Team, Автоматические обновления включены
Classic Editor: version: 1.6.4, author: WordPress Contributors, Автоматические обновления включены
Contact Form 7: version: 5.9.8, author: Takayuki Miyoshi, Автоматические обновления включены
Elfsight YouTube Gallery CC: version: 3.4.1, author: Elfsight, Автоматические обновления отключены
Entry Views: version: 1.0.0, author: Justin Tadlock, Автоматические обновления включены
Free Assets Library: version: 2.2.1, author: Surror, Автоматические обновления включены
Jetpack: version: 13.8.1, author: Automattic, Автоматические обновления включены
juxtapose: version: 1.0.0, author: Jordi Giménez, Автоматические обновления включены
Newsmag Theme Fixer: version: 0.1, author: IOIX, Samokish Pavel (samokspv), Автоматические обновления отключены
QNAP NAS Backup: version: 1.0.5, author: QNAP, Автоматические обновления включены
Shortlinks for Jetpack sharing buttons: version: 1.0, author: Jeremy Herve, Автоматические обновления отключены
Staatic - Static Site Generator: version: 1.10.5, author: Team Staatic, Автоматические обновления отключены
tagDiv Cloud Library: version: 2.9 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
tagDiv Composer: version: 4.3 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
tagDiv Social Counter: version: 5.4 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
tagDiv Standard Pack: version: 2.0 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
Webpushr Push Notifications: version: 4.36.0, author: Webpushr Web Push Notifications, Автоматические обновления включены
WP VR: version: 8.5.5, author: Rextheme, Автоматические обновления включены wp-plugins-inactive (8)
AMP: version: 2.5.4, author: AMP Project Contributors, Автоматические обновления включены
Jetpack Boost: version: 3.5.0, author: Automattic - Jetpack Site Speed team, Автоматические обновления включены
tagDiv Mobile Theme: version: 2.4 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
tagDiv Newsletter: version: 1.9 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
tagDiv Opt-In Builder: version: 1.4.4 | built on 25.07.2023 12:54, author: tagDiv, Автоматические обновления отключены
tagDiv Shop: version: 1.9 | built on 15.09.2023 12:29, author: tagDiv, Автоматические обновления отключены
UpdraftPlus - Backup/Restore: version: 2.22.12.25, author: UpdraftPlus.Com, DavidAnderson, Автоматические обновления включены
WP Telegram: version: 4.1.14, author: WP Socio, Автоматические обновления отключены wp-media
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1687
imagemagick_version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
imagick_version: 3.4.4
file_uploads: 1
post_max_size: 20M
upload_max_filesize: 20M
max_effective_size: 20 МБ
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 МБ
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 6144
imagick::RESOURCETYPE_MAP: 512 МБ
imagick::RESOURCETYPE_MEMORY: 256 МБ
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 1.844674407371E+19
imagemagick_file_formats: 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.3.0
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.26 wp-server
server_architecture: Linux 4.15.0-54-generic x86_64
httpd_software: Apache/2.4.39 (Ubuntu) OpenSSL/1.1.1d mod_fcgid/2.3.9
php_version: 7.4.11 64bit
php_sapi: apache2handler
max_input_variables: 10000
time_limit: 600
memory_limit: 512M
max_input_time: 60
upload_max_filesize: 20M
php_post_max_size: 20M
curl_version: 7.58.0 OpenSSL/1.1.1d
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true
current: 2024-09-26T12:11:55+00:00
utc-time: Thursday, 26-Sep-24 12:11:55 UTC
server-time: 2024-09-26T14:11:53+02:00 wp-database
extension: mysqli
server_version: 5.7.42-0ubuntu0.18.04.1
client_version: mysqlnd 7.4.11
max_allowed_packet: 67108864
max_connections: 200 wp-constants
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/blogger/web/blogger.com.ua/public_html/wp-content
WP_PLUGIN_DIR: /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 128M
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Не определено
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: utf8_general_ci wp-filesystem
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: not writable jetpack
site_id: 5210388
ssl_cert: No
time_diff: undefined
version_option: 13.8.1:1726007778
old_version: 13.8:1725489363
public: Public
master_user: #1 admin
is_offline_mode: off
is_offline_mode_constant: off
current_user: #1 admin
tokens_set: Blog User
blog_token: EV3mKUgwhiD1f&p!zmp3Y3kum(Iy5ZVM
user_token: ^STijcnv5eih4ZjwIWMF9ZlKeK0UvWAM
version: 13.8.1
jp_plugin_dir: /home/blogger/web/blogger.com.ua/public_html/wp-content/plugins/jetpack/
plan: free
protect_header: {"trusted_header":"HTTP_X_REAL_IP","segments":0,"reverse":false}
full_sync: {"started":"Thu, 01 Jan 1970 00:00:00 +0000","finished":"Thu, 01 Jan 1970 00:00:00 +0000","progress":[],"config":[]}
sync_size: undefined
sync_lag: 0 seconds
full_sync_size: undefined
full_sync_lag: 0 seconds
idc_urls: {"home":"https:\/\/blogger.com.ua","siteurl":"https:\/\/blogger.com.ua","WP_HOME":"","WP_SITEURL":""}
idc_error_option: false
idc_optin: true
cxn_tests: All Pass. staatic
version: 1.10.5
site_url: https://blogger.com.ua/
wordpress_url: https://blogger.com.ua
destination_url: /
deployment_method: Netlify
process_not_found: Disabled
lowercase_urls: Disabled
http_auth_username: Undefined
http_concurrency: 4
http_https_to_http: Undefined
http_timeout: 10
ssl_verify_behavior: enabled
ssl_verify_path: Undefined
html_dom_parser: PHP DOM Wrapper
publication_task_timeout: 10000
test_request_status: 1727332274_1727334076_doneThanks for providing the additional information. It appears that the high number of resources is causing a timeout during the Netlify deployment initialization step. By default, an additional path is configured under Staatic > Settings > Build to include everything in your
wp-content/uploadsdirectory, which might be including too many files.You can try disabling this additional path temporarily so that the Staatic crawler only includes the directly referenced assets and see if this helps. If this doesn’t resolve the issue, we recommend using the WP-CLI publish command for large deployments, as it bypasses the resource limits that the web publisher encounters.
For more details on the WP-CLI publish command, please refer to the documentation here.
Please let us know if this helps.
Since we haven’t heard back from you, we’ll consider this issue resolved for now. If you’re still experiencing any problems, please feel free to reopen the topic or start a new thread. Thank you!
The topic ‘Getting timeout error while publishing’ is closed to new replies.