• Resolved emilianomaina

    (@emilianomaina)


    Hello,

    few days ago Site Kit stopped working following error:

    I tried to reset che connection but it is always providing the following error:

    Looks like your site is having a technical issue with requesting data from Google services.
    To get more help, ask a question on our support forum and include the text of the original error message:
    google_api_connection_fail

    No special change performed.

    Tried this command to check connectivty from the host:

    [lamiacas@node3652 ~]$ curl -I https://sitekit.withgoogle.com
    
    HTTP/1.1 403 Forbidden
    Content-Type: text/html; charset=UTF-8
    Referrer-Policy: no-referrer
    Content-Length: 1579
    Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

    Site Health Information

    
    ### wp-core ###
    
    version: 5.8.2
    site_language: it_IT
    user_language: it_IT
    timezone: Europe/Rome
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 4
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/lamiacas/public_html
    wordpress_size: 1,44 GB (1550944643 bytes)
    uploads_path: /home/lamiacas/public_html/wp-content/uploads
    uploads_size: 5,48 GB (5885162195 bytes)
    themes_path: /home/lamiacas/public_html/wp-content/themes
    themes_size: 13,38 MB (14027680 bytes)
    plugins_path: /home/lamiacas/public_html/wp-content/plugins
    plugins_size: 187,84 MB (196960557 bytes)
    database_size: 507,07 MB (531706648 bytes)
    total_size: 7,62 GB (8178801723 bytes)
    
    ### wp-dropins (2) ###
    
    advanced-cache.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: Neve (neve)
    version: 3.1.1
    author: ThemeIsle
    author_website: https://themeisle.com
    parent_theme: none
    theme_features: core-block-patterns, hfg_support, widgets-block-editor, title-tag, post-thumbnails, automatic-feed-links, custom-logo, html5, customize-selective-refresh-widgets, custom-background, align-wide, editor-color-palette, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, header-footer-elementor, lifterlms-sidebars, lifterlms, service_worker, starter-content, amp, menus, widgets
    theme_path: /home/lamiacas/public_html/wp-content/themes/neve
    auto_update: Abilitato
    
    ### wp-themes-inactive (5) ###
    
    Casa Elettrica (2012) Child Theme: version: 1.0.0, author: La mia Casa Elettrica, Aggiornamenti automatici disabilitati
    Twenty Nineteen: version: 2.1, author: Team di WordPress, Aggiornamenti automatici disabilitati
    Twenty Twelve: version: 3.5, author: il team di WordPress, Aggiornamenti automatici disabilitati
    Twenty Twenty: version: 1.8, author: Team di WordPress, Aggiornamenti automatici disabilitati
    Twenty Twenty-One: version: 1.4, author: the WordPress team, Aggiornamenti automatici disabilitati
    
    ### wp-plugins-active (53) ###
    
    404page - your smart custom 404 error page: version: 11.3.0, author: Peter Raschendorfer, Aggiornamenti automatici disabilitati
    AAWP: version: 3.17, author: AAWP, Aggiornamenti automatici disabilitati
    Affiliate Egg Pro: version: 10.3.1, author: keywordrush.com, Aggiornamenti automatici disabilitati
    Akismet Anti-Spam: version: 4.2.1, author: Automattic, Aggiornamenti automatici disabilitati
    AMP: version: 2.1.4, author: AMP Project Contributors, Aggiornamenti automatici abilitati
    Better Search Replace: version: 1.3.4, author: Delicious Brains, Aggiornamenti automatici disabilitati
    Broken Link Checker: version: 1.11.16, author: WPMU DEV, Aggiornamenti automatici disabilitati
    Bulk Datetime Change: version: 1.12, author: Katsushi Kawamori, Aggiornamenti automatici disabilitati
    Calculated Fields Form: version: 1.1.50, author: CodePeople, Aggiornamenti automatici disabilitati
    Classic Editor: version: 1.6.2, author: WordPress Contributors, Aggiornamenti automatici disabilitati
    Cloudflare: version: 4.7.0, author: Cloudflare, Inc., Aggiornamenti automatici abilitati
    CM Tooltip Glossary: version: 3.9.21, author: CreativeMindsSolutions, Aggiornamenti automatici disabilitati
    Comments Emails: version: 0.1, author: Aleksej Solovjov, Aggiornamenti automatici disabilitati
    Content Egg: version: 5.2.1, author: keywordrush.com, Aggiornamenti automatici disabilitati
    Disable Embeds: version: 1.5.0, author: Pascal Birchler, Aggiornamenti automatici disabilitati
    Edit Author Slug: version: 1.8.3, author: Brandon Allen, Aggiornamenti automatici disabilitati
    Enable Media Replace: version: 3.6.3, author: ShortPixel, Aggiornamenti automatici disabilitati
    Feedzy RSS Feeds Lite: version: 3.8.0, author: Themeisle, Aggiornamenti automatici disabilitati
    FV Gravatar Cache: version: 0.4.8, author: Foliovision, Aggiornamenti automatici disabilitati
    GDPR Cookie Consent: version: 2.3.7, author: WebToffee, Aggiornamenti automatici disabilitati
    Heartbeat Control by WP Rocket: version: 2.0, author: WP Rocket, Aggiornamenti automatici disabilitati
    iThemes Security: version: 8.0.2, author: iThemes, Aggiornamenti automatici disabilitati
    Media File Renamer: version: 5.3.5, author: Jordy Meow, Aggiornamenti automatici disabilitati
    miniOrange 2 Factor Authentication: version: 5.4.47, author: miniOrange, Aggiornamenti automatici disabilitati
    Newsletter: version: 7.3.3, author: Stefano Lissa & The Newsletter Team, Aggiornamenti automatici disabilitati
    Newsletter - Addons Manager: version: 1.1.5, author: The Newsletter Team, Aggiornamenti automatici disabilitati
    Newsletter - Import: version: 1.2.6, author: The Newsletter Team, Aggiornamenti automatici disabilitati
    Newsletter - Instasend (BETA): version: 1.0.2, author: The Newsletter Team, Aggiornamenti automatici disabilitati
    Newsletter - SMTP Addon: version: 1.0.0, author: The Newsletter Team, Aggiornamenti automatici disabilitati
    PHP Compatibility Checker: version: 1.5.2, author: WP Engine, Aggiornamenti automatici disabilitati
    Plugins Garbage Collector (Database Cleanup): version: 0.12, author: Vladimir Garagulya, Aggiornamenti automatici disabilitati
    Pre* Party Resource Hints: version: 1.8.11, author: Sam Perrow, Aggiornamenti automatici abilitati
    Public Post Preview: version: 2.9.3, author: Dominik Schilling, Aggiornamenti automatici disabilitati
    Really Simple SSL: version: 5.2.1, author: Really Simple Plugins, Aggiornamenti automatici disabilitati
    Redirection: version: 5.1.3, author: John Godley, Aggiornamenti automatici disabilitati
    Remove Category URL: version: 1.1.6, author: Valerio Souza, Сreativemotion, Aggiornamenti automatici disabilitati
    Revive Old Posts: version: 9.0.6, author: revive.social, Aggiornamenti automatici disabilitati
    SEOZoom Plugin: version: 3.2.13, author: Ivano Di Biasi, Aggiornamenti automatici abilitati
    Site Kit by Google: version: 1.47.0, author: Google, Aggiornamenti automatici abilitati
    Stackable - Gutenberg Blocks: version: 3.0.7, author: Gambit Technologies, Inc, Aggiornamenti automatici disabilitati
    Table of Contents Plus: version: 2106, author: Michael Tran, Aggiornamenti automatici disabilitati
    TablePress: version: 1.14, author: Tobias B?thge, Aggiornamenti automatici disabilitati
    TablePress Extension: Responsive Tables: version: 1.8, author: Tobias B?thge, Aggiornamenti automatici disabilitati
    UpdraftPlus - Backup/Restore: version: 1.16.66, author: UpdraftPlus.Com, DavidAnderson, Aggiornamenti automatici disabilitati
    W3 Total Cache: version: 2.2.1, author: BoldGrid, Aggiornamenti automatici disabilitati
    WP-Appbox: version: 4.3.15, author: Marcel Schmilgeit, Aggiornamenti automatici disabilitati
    WP-Sweep: version: 1.1.5, author: Lester 'GaMerZ' Chan, Aggiornamenti automatici disabilitati
    WP Crontrol: version: 1.12.0, author: John Blackbourn & crontributors, Aggiornamenti automatici disabilitati
    WPMobile.App — Android and iOS Mobile Application: version: 10.16, author: WPMobile.App, Aggiornamenti automatici abilitati
    WP Rollback: version: 1.7.1, author: Impress.org, Aggiornamenti automatici disabilitati
    WP YouTube Lyte: version: 1.7.18, author: Frank Goossens (futtta), Aggiornamenti automatici disabilitati
    Yoast Duplicate Post: version: 4.3, author: Enrico Battocchi & Team Yoast, Aggiornamenti automatici disabilitati
    Yoast SEO: version: 17.8, author: Team Yoast, Aggiornamenti automatici abilitati
    
    ### wp-plugins-inactive (1) ###
    
    Search & Replace: version: 3.2.1, author: Inpsyde GmbH, Aggiornamenti automatici disabilitati
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Non disponibile
    imagemagick_version: Non disponibile
    imagick_version: Non disponibile
    file_uploads: File uploads is turned off
    post_max_size: 512M
    upload_max_filesize: 512M
    max_effective_size: 512 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.25
    
    ### wp-server ###
    
    server_architecture: Linux 5.7.6-x86_64-linode136 x86_64
    httpd_software: Apache
    php_version: 7.4.26 64bit
    php_sapi: litespeed
    max_input_variables: 10000
    time_limit: 3000
    memory_limit: 1024M
    max_input_time: 6000
    upload_max_filesize: 512M
    php_post_max_size: 512M
    curl_version: 7.80.0 OpenSSL/1.1.1l
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.36-log
    client_version: mysqlnd 7.4.26
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/lamiacas/public_html/wp-content
    WP_PLUGIN_DIR: /home/lamiacas/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 384M
    WP_MAX_MEMORY_LIMIT: 1024M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    ### neve ###
    
    api: Sì
    child: No
    customizer_css: No
    
    ### google-site-kit ###
    
    version: 1.47.0
    php_version: 7.4.26
    wp_version: 5.8.2
    reference_url: https://lamiacasaelettrica.com
    amp_mode: secondary
    site_status: not-connected
    user_status: not authenticated
    verification_status: not-verified
    connected_user_count: none
    active_modules: site-verification, search-console, pagespeed-insights
    required_scopes: 
    	openid: ?
    	https://www.googleapis.com/auth/userinfo.profile: ?
    	https://www.googleapis.com/auth/userinfo.email: ?
    	https://www.googleapis.com/auth/siteverification: ?
    	https://www.googleapis.com/auth/webmasters: ?
    capabilities: 
    	googlesitekit_authenticate: ?
    	googlesitekit_setup: ?
    	googlesitekit_view_posts_insights: ?
    	googlesitekit_view_dashboard: ?
    	googlesitekit_view_module_details: ?
    	googlesitekit_manage_options: ?
    enabled_features: 
    	ideaHubModule: ?
    	serviceSetupV2: ?
    	swgModule: ?
    	userInput: ?
    	unifiedDashboard: ?
    search_console_property: none
    
    ### amp_wp ###
    
    amp_slug_query_var: amp
    amp_slug_defined_late: false
    amp_mode_enabled: transitional
    amp_reader_theme: twentytwelve
    amp_templates_enabled: post, page, glossary, is_singular, is_home, is_archive, is_author, is_date, is_search, is_404, is_category, is_tag
    amp_serve_all_templates: true
    amp_css_transient_caching_disabled: n/a
    amp_css_transient_caching_threshold: 5000 transients per day
    amp_css_transient_caching_sampling_range: 14 days
    amp_css_transient_caching_transient_count: undefined
    amp_css_transient_caching_time_series: 
    amp_libxml_version: 2.9.7
    
    
Viewing 15 replies - 1 through 15 (of 33 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello @emilianomaina and thanks for reaching out. This message displays when Site Kit cannot connect to the Google APIs necessary for setup. This can occur if your host, a firewall, plugin, or other configuration is blocking access to https://sitekit.withgoogle.com, which Site Kit must be able to connect to for setup.

    Thanks for providing your Site Health that is very useful. Do you see any errors or warnings when checking your Site Health status (Tools > Site Health > Status), which differs to your Site Health information?

    As you do have many active plugins on your site it would be helpful to rule out any conflicts causes by a particular plugin or theme. The best way to do this is to

    1. Login to your site from a Chrome browser incognito window.
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google”.
    5. Check to see if you get the same message once more.

    You can exit troubleshooting mode once done and while in troubleshooting mode it will not affect what users to your website will see.

    Please let me know if you have any further questions

    Thread Starter emilianomaina

    (@emilianomaina)

    Hello @adamdunnage,

    I don’t any relevant error in Site Health status.

    I followed your suggestion, enabling only Site Kit. Unfortunately nothing changed, still the following error:

    Looks like your site is having a technical issue with requesting data from Google services.
    To get more help, ask a question on our support forum and include the text of the original error message:
    google_api_connection_fail

    How can I further troubleshoot?

    Thread Starter emilianomaina

    (@emilianomaina)

    Please consider also I am using Cloudflare CDN but I have a different istance of WP on the same host without CDN and the issue is the same.

    • This reply was modified 3 years, 2 months ago by emilianomaina.
    Plugin Support Adam Dunnage

    (@adamdunnage)

    @emilianomaina thank you for providing the information and for also following those steps. Would you please be able to share who your hosting provider is and what package you are using for your site?

    Did you make any notable changes to your site around the time that Site Kit disconnected and you received this message?

    Could you also try going to Tools > Available Tools > Reset Site Kit and then try your Site Kit set up once more to see if this makes any difference?

    Thread Starter emilianomaina

    (@emilianomaina)

    My hosting provider is FastComet.
    My hosting package is VPS – Cloud SSD VPS 3.

    No changes in the last weeks (I was involved in another project).

    I tried again Reset Site Kit but the message is still the same:

    Looks like your site is having a technical issue with requesting data from Google services.
    To get more help, ask a question on our support forum and include the text of the original error message:
    google_api_connection_fail

    Can I perform any check on the host directly or some logs?

    • This reply was modified 3 years, 2 months ago by emilianomaina.
    Plugin Support Adam Dunnage

    (@adamdunnage)

    @emilianomaina thanks for the further information.

    1. Do you see any console errors when Site Kit displays this message?
    2. Would you also be able to provide your site url if possible?
    Thread Starter emilianomaina

    (@emilianomaina)

    1) In the browser console there are no errors at all; I think the error is handled on server side
    2) Site URL is https://lamiacasaelettrica.com/

    Can I perform any check on server side?

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @emilianomaina thanks a lot for your cooperation with this one. This looks like it could be a hosting related issue at this point.

    It’s possible that this could be a firewall issue so as you have been getting an error with the cURL command you could check for any hosting related firewall, or an easy check is to check this from another website running on the same hosting platform to see if you are getting the same results.

    Please let me know how this goes and if you have any further questions.

    Thread Starter emilianomaina

    (@emilianomaina)

    Hello @adamdunnage

    Can you explain how this answer:

    [lamiacas@node3652 ~]$ curl -I https://sitekit.withgoogle.com
    HTTP/1.1 403 Forbidden
    Content-Type: text/html; charset=UTF-8
    Referrer-Policy: no-referrer
    Content-Length: 1579
    Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

    Can be an hosting firewall issue? 403 it’s a response from Google server.

    As already mentioned I have exactly the same issue on all WordPress instances (4) running on the same host.

    • This reply was modified 3 years, 2 months ago by emilianomaina.
    Thread Starter emilianomaina

    (@emilianomaina)

    What is strange is that connection is marked as green:

    https://pasteboard.co/npa077RcshTx.jpg

    https://pasteboard.co/2bwWcZ940MiE.jpg

    Thread Starter emilianomaina

    (@emilianomaina)

    This is the answer from Fastcomet support engineer:

    I have temporarily disabled all of the server's security system and have flushed the iptables rules and the Curl request to https://sitekit.withgoogle.com still displays a 403 Forbidden response. Thus, I can confirm that the issue is not related to the server's Firewall.
    
    However, I am afraid that I am unable to confirm why a 403 response is being displayed. It is possible that the server's IP address is being blocked from this URL specifically, however, I am unable to confirm this with certainty.
    
    If possible, please ask the Google support to check if the server's IP address is being blocked on their end - 172.105.246.234.

    I also performed a test from my home and the answer is different:

    pi@raspberrypi:~ $ curl -I https://sitekit.withgoogle.com
    HTTP/2 200
    content-type: text/html
    vary: Accept-Encoding
    x-cloud-trace-context: 2507dc52acd870a84e6f0705fcce3d72
    date: Thu, 16 Dec 2021 10:29:34 GMT
    server: Google Frontend
    alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
    Plugin Support Adam Dunnage

    (@adamdunnage)

    @emilianomaina thanks for providing more information and the screenshots. With regards to the other 4 WordPress instances you have running on the same host:

    1. Do you see any warnings or notices when checking the Site Health status(Tools > Site Health > Status) on each site?
    2. Are each of these 4 setup environments similar or do they differ?
    3. Does the same occur when checking from another device, which can help rule our any local software or browser related issues blocking access?
    Thread Starter emilianomaina

    (@emilianomaina)

    Do you see any warnings or notices when checking the Site Health status(Tools > Site Health > Status) on each site?

    No.

    Are each of these 4 setup environments similar or do they differ?

    Same environment.

    Does the same occur when checking from another device, which can help rule our any local software or browser related issues blocking access?

    I repeated with an incognito session and the behaviour is the same.

    Have you read the answer from my hosting provider? And my curl test from another client?

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @emilianomaina thanks for confirming and for your ongoing patience while we investigate this. Yes I have read the comment thank you for providing this.

    We are going to check this installing Site Kit from new with a clean WordPress install on a standard Fastcomet shared hosting plan we have set up, while performing this check if you wish to do the same on your own plan, then please do.

    We will update you on this as soon as we can.

    Thread Starter emilianomaina

    (@emilianomaina)

    Thanks @adamdunnage

    Is not possibile that IP of my host is blocked on Google Server side?

    It seems the most probable cause of the problem considering the tests performed.

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Site Kit stopped working (google_api_connection_fail)’ is closed to new replies.