• Resolved ArtemisDraco

    (@veivneorul)


    Hi there!

    Since I migrated my sites to a new infrastructure (new servers all behind a NGINX proxy on separate servers) I’ve been having problems with the Rest API and cron.

    The first site is characters.neodraco.fr. (Beware, this site can be NSFW)

    In fact, I get these errors in the health status of the site:

    1. The REST API encountered an unexpected result
      REST API endpoint: https://characters.neodraco.fr/wp-json/wp/v2/types/post?context=edit
      REST API response: (403) Forbidden
    2. Your site could not complete a loopback request
      The loopback request returned an unexpected http status code, 403, it was not possible to determine if this will prevent features from working as expected.
    3. Unable to detect the presence of page cache
      Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: Forbidden (Code: http_403)

    Also, on another wordpress site (noaledet.fr) which is hosted on the same server under the same conditions, I get this kind of error with wp-cron.php: Unexpected HTTP response code: 404 (provided by the WP Crontrol plugin)

    Information about characters.neodraco.fr :

    ` wp-core<br><br>version: 6.6.1<br>site_language: fr_FR<br>user_language: en_US<br>timezone: +02:00<br>permalink: /%postname%/<br>https_status: true<br>multisite: false<br>user_registration: 1<br>blog_public: 1<br>default_comment_status: open<br>environment_type: production<br>user_count: 1<br>dotorg_communication: true wp-paths-sizes<br><br>wordpress_path: /var/www/characters<br>wordpress_size: loading…<br>uploads_path: /var/www/characters/wp-content/uploads<br>uploads_size: loading…<br>themes_path: /var/www/characters/wp-content/themes<br>themes_size: loading…<br>plugins_path: /var/www/characters/wp-content/plugins<br>plugins_size: loading…<br>fonts_path: /var/www/characters/wp-content/uploads/fonts<br>fonts_size: loading…<br>database_size: loading…<br>total_size: loading… wp-dropins (2)<br><br>advanced-cache.php: true<br>object-cache.php: true wp-active-theme<br><br>name: Hestia Pro (hestia-pro)<br>version: 3.1.9<br>author: ThemeIsle<br>author_website: https://themeisle.com<br>parent_theme: none<br>theme_features: core-block-patterns, title-tag, post-thumbnails, automatic-feed-links, custom-logo, html5, custom-header, customize-selective-refresh-widgets, custom-background, themeisle-demo-import, align-wide, header-footer-elementor, starter-content, style, script, editor-color-palette, menus, editor-style, jetpack-portfolio, block-templates, align-full, widgets<br>theme_path: /var/www/characters/wp-content/themes/hestia-pro<br>auto_update: Disabled wp-themes-inactive (1)<br><br>Twenty Twenty-Four: version: 1.2, author: the WordPress team, Auto-updates disabled wp-mu-plugins (1)<br><br>Health Check Troubleshooting Mode: author: (undefined), version: 1.9.2 wp-plugins-active (21)<br><br>Age Gate: version: 3.4.1, author: Phil Baker, Auto-updates disabled<br>Akismet Anti-spam: Spam Protection: version: 5.3.3, author: Automattic - Anti-spam Team, Auto-updates disabled<br>Cloudflare: version: 4.12.8, author: Cloudflare, Inc., Auto-updates disabled<br>Duplicator: version: 1.5.10.2, author: Duplicator, Auto-updates disabled<br>FileBird Lite: version: 6.3.2, author: Ninja Team, Auto-updates disabled<br>Forminator: version: 1.34.1, author: WPMU DEV, Auto-updates disabled<br>Health Check & Troubleshooting: version: 1.7.1, author: The www.remarpro.com community, Auto-updates disabled<br>Image Placeholders: version: 1.1.1, author: WordPress Performance Team, Auto-updates disabled<br>IndexNow: version: 1.0.3, author: Microsoft Bing, Auto-updates enabled<br>iQ Block Country: version: 1.2.23, author: Pascal, Auto-updates disabled<br>Jetpack: version: 13.7, author: Automattic, Auto-updates disabled<br>Jetpack Boost: version: 3.4.7, author: Automattic - Jetpack Site Speed team, Auto-updates disabled<br>Kubio: version: 2.3.2, author: ExtendThemes, Auto-updates disabled<br>LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: version: 2.6.11, author: Themeisle, Auto-updates disabled<br>NSFW (Not Safe For Work): version: 1.0, author: Zing-Ming, Auto-updates disabled<br>Orbit Fox Companion: version: 2.10.37, author: Themeisle, Auto-updates disabled<br>Otter – Page Builder Blocks & Extensions for Gutenberg: version: 3.0.2, author: ThemeIsle, Auto-updates disabled<br>Performance Lab: version: 3.4.0, author: WordPress Performance Team, Auto-updates disabled<br>Popup Box: version: 4.7.4, author: Popup Box Team, Auto-updates disabled<br>TranslatePress - Multilingual: version: 2.8.3, author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban, Auto-updates disabled<br>WP Mail SMTP: version: 4.1.1, author: WP Mail SMTP, Auto-updates disabled wp-media<br><br>image_editor: WP_Image_Editor_Imagick<br>imagick_module_version: 1692<br>imagemagick_version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org<br>imagick_version: 3.7.0<br>file_uploads: 1<br>post_max_size: 50M<br>upload_max_filesize: 50M<br>max_effective_size: 50 MB<br>max_file_uploads: 20<br>imagick_limits:<br>imagick::RESOURCETYPE_AREA: 244 MB<br>imagick::RESOURCETYPE_DISK: 2147483648<br>imagick::RESOURCETYPE_FILE: 6144<br>imagick::RESOURCETYPE_MAP: 2 GB<br>imagick::RESOURCETYPE_MEMORY: 1 GB<br>imagick::RESOURCETYPE_THREAD: 1<br>imagick::RESOURCETYPE_TIME: 9.2233720368548E+18<br>imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, 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, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV<br>gd_version: 2.3.3<br>gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM<br>ghostscript_version: 10.02.1 wp-server<br><br>server_architecture: Linux 6.8.0-41-generic x86_64<br>httpd_software: Apache/2.4.58 (Ubuntu)<br>php_version: 8.3.6 64bit<br>php_sapi: apache2handler<br>max_input_variables: 1000<br>time_limit: 300<br>memory_limit: 512M<br>max_input_time: 60<br>upload_max_filesize: 50M<br>php_post_max_size: 50M<br>curl_version: 8.5.0 OpenSSL/3.0.13<br>suhosin: false<br>imagick_availability: true<br>pretty_permalinks: true<br>htaccess_extra_rules: false<br>current: 2024-08-25T22:52:15+00:00<br>utc-time: Sunday, 25-Aug-24 22:52:15 UTC<br>server-time: 2024-08-26T00:52:12+02:00 wp-database<br><br>extension: mysqli<br>server_version: 10.11.8-MariaDB-0ubuntu0.24.04.1<br>client_version: mysqlnd 8.3.6<br>max_allowed_packet: 16777216<br>max_connections: 151 wp-constants<br><br>WP_HOME: https://characters.neodraco.fr<br>WP_SITEURL: https://characters.neodraco.fr<br>WP_CONTENT_DIR: /var/www/characters/wp-content<br>WP_PLUGIN_DIR: /var/www/characters/wp-content/plugins<br>WP_MEMORY_LIMIT: 512M<br>WP_MAX_MEMORY_LIMIT: 256M<br>WP_DEBUG: false<br>WP_DEBUG_DISPLAY: true<br>WP_DEBUG_LOG: true<br>SCRIPT_DEBUG: false<br>WP_CACHE: true<br>CONCATENATE_SCRIPTS: undefined<br>COMPRESS_SCRIPTS: undefined<br>COMPRESS_CSS: undefined<br>WP_ENVIRONMENT_TYPE: Undefined<br>WP_DEVELOPMENT_MODE: undefined<br>DB_CHARSET: utf8mb4<br>DB_COLLATE: undefined wp-filesystem<br><br>wordpress: writable<br>wp-content: writable<br>uploads: writable<br>plugins: writable<br>themes: writable<br>fonts: not writable<br>mu-plugins: writable jetpack<br><br>site_id: 225757495<br>ssl_cert: No<br>time_diff: undefined<br>version_option: 13.7:1723147252<br>old_version: 13.6:1721034217<br>public: Public<br>master_user: #1 Veivneorul<br>is_offline_mode: off<br>is_offline_mode_constant: off<br>current_user: #1 Veivneorul<br>tokens_set: Blog User<br>blog_token: @GtKq1J%ZdlitDKwCf&1C6606XezN9CN<br>user_token: @QOJc2*gf8)kMWdB3lHlkuxcgRoL6vPl<br>version: 13.7<br>jp_plugin_dir: /var/www/characters/wp-content/plugins/jetpack/<br>plan: free<br>protect_header: ""<br>full_sync: {"started":"Thu, 22 Feb 2024 13:03:04 +0000","finished":"Thu, 22 Feb 2024 13:03:07 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"0","sent":0,"finished":true,"last_sent":"~0"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[2],"network_options":true}}<br>sync_size: 1<br>sync_lag: 1 second<br>full_sync_size: undefined<br>full_sync_lag: 0 seconds<br>idc_urls: {"home":"https:\/\/characters.neodraco.fr","siteurl":"https:\/\/characters.neodraco.fr","WP_HOME":"https:\/\/characters.neodraco.fr","WP_SITEURL":"https:\/\/characters.neodraco.fr"}<br>idc_error_option: false<br>idc_optin: true<br>cxn_tests: All Pass. wp_mail_smtp<br><br>version: 4.1.1<br>license_key_type: lite<br>debug: No debug notices found.<br>lite_install_date: Nov 12, 2023 @ 5:22pm</code></pre>
    
    
    
    <p>And as for noaledet.fr : </p>
    
    
    
    <pre class="wp-block-code"><code>` wp-core

    version: 6.6.1
    site_language: fr_FR
    user_language: fr_FR
    timezone: +02:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true wp-paths-sizes

    wordpress_path: /var/www/noaledet
    wordpress_size: loading…
    uploads_path: /var/www/noaledet/wp-content/uploads
    uploads_size: loading…
    themes_path: /var/www/noaledet/wp-content/themes
    themes_size: loading…
    plugins_path: /var/www/noaledet/wp-content/plugins
    plugins_size: loading…
    fonts_path: /var/www/noaledet/wp-content/uploads/fonts
    fonts_size: loading…
    database_size: loading…
    total_size: loading… wp-active-theme

    name: Personal CV Resume PRO (personal-cv-resume-pro)
    version: 1.0.5
    author: aThemeArt
    author_website: https://athemeart.com/
    parent_theme: none
    theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-background, customize-selective-refresh-widgets, custom-logo, post-formats, custom-header, widgets
    theme_path: /var/www/noaledet/wp-content/themes/personal-cv-resume-pro
    auto_update: Désactivé wp-themes-inactive (3)

    Personal CV Resume: version: 1.1.4, author: aThemeArt, Mises à jour auto désactivées
    Twenty Twenty-Four: version: 1.2, author: L’équipe WordPress, Mises à jour auto désactivées
    Twenty Twenty-Three: version: 1.5, author: L’équipe WordPress, Mises à jour auto désactivées wp-plugins-active (10)

    Clever Fox: version: 26.2.8, author: nayrathemes, Mises à jour auto désactivées
    Cloudflare: version: 4.12.8, author: Cloudflare, Inc., Mises à jour auto désactivées
    Codestar Framework: version: 2.1.8, author: Codestar, Mises à jour auto désactivées
    Elementor: version: 3.23.4, author: Elementor.com, Mises à jour auto désactivées
    Orbit Fox Companion: version: 2.10.37, author: Themeisle, Mises à jour auto désactivées
    Otter – Page Builder Blocks & Extensions for Gutenberg: version: 3.0.2, author: ThemeIsle, Mises à jour auto désactivées
    Royal Elementor Addons: version: 1.3.982, author: WP Royal, Mises à jour auto désactivées
    WP Crontrol: version: 1.17.0, author: John Blackbourn, Mises à jour auto désactivées
    WPForms Lite: version: 1.9.0.4, author: WPForms, Mises à jour auto désactivées
    WP Mail SMTP: version: 4.1.1, author: WP Mail SMTP, Mises à jour auto désactivées wp-plugins-inactive (1)

    Duplicator: version: 1.5.10.2, author: Duplicator, Mises à jour auto désactivées wp-media

    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1692
    imagemagick_version: ImageMagick 6.9.12-98 Q16 x86_64 18038 https://legacy.imagemagick.org
    imagick_version: 3.7.0
    file_uploads: 1
    post_max_size: 50M
    upload_max_filesize: 50M
    max_effective_size: 50 Mo
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 244 Mo
    imagick::RESOURCETYPE_DISK: 2147483648
    imagick::RESOURCETYPE_FILE: 6144
    imagick::RESOURCETYPE_MAP: 2 Go
    imagick::RESOURCETYPE_MEMORY: 1 Go
    imagick::RESOURCETYPE_THREAD: 1
    imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, 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, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 10.02.1 wp-server

    server_architecture: Linux 6.8.0-41-generic x86_64
    httpd_software: Apache/2.4.58 (Ubuntu)
    php_version: 8.3.6 64bit
    php_sapi: apache2handler
    max_input_variables: 1000
    time_limit: 300
    memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 50M
    php_post_max_size: 50M
    curl_version: 8.5.0 OpenSSL/3.0.13
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false
    current: 2024-08-25T22:54:47+00:00
    utc-time: Sunday, 25-Aug-24 22:54:47 UTC
    server-time: 2024-08-26T00:54:46+02:00 wp-database

    extension: mysqli
    server_version: 10.11.8-MariaDB-0ubuntu0.24.04.1
    client_version: mysqlnd 8.3.6
    max_allowed_packet: 16777216
    max_connections: 151 wp-constants

    WP_HOME: https://noaledet.fr
    WP_SITEURL: https://noaledet.fr
    WP_CONTENT_DIR: /var/www/noaledet/wp-content
    WP_PLUGIN_DIR: /var/www/noaledet/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Indéfini
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: not writable wp_mail_smtp

    version: 4.1.1
    license_key_type: lite
    debug: Aucune notification de débogage trouvée.
    lite_install_date: Juil 24, 2024 @ 3:25pm wpforms

    version: 1.9.0.4
    lite: 23 juillet 2024 à 16h12
    upload_dir: Accessible en écriture
    total_forms: 2
    total_submissions: 3
Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress cron jobs try to use their own domain to call tasks. Check that the servers can resolve the domains that point to them to themselves. You should be able to check this on the machines themselves by pinging them.

    Thread Starter ArtemisDraco

    (@veivneorul)

    Hi @threadi !

    Thanks for your answer ! I resolved the issue.

    I’ve added two DNS entries to my server’s hosts file so that the domain names point to the system’s loopback address and everything’s back in order.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.