• Resolved mataleo

    (@mataleo)


    Hi, cant authenticate plugin getting api error. New vps, got 2 websitet and both the same, fresh installs, every other plugins works and connect api’s. Running other app and no issues. Dont think anything blocking on my site.

    I got some output from cli I got from other thread, can someone tell me what it means? Theres 404 means yea its blocked, Is it issue with plugin or google api server? Can someone confirm its up and running? I had this sites on onter server and I moved it to new vps and start over, different IP now.

    Array
    (
    [headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [content-type] => text/html
    [vary] => Accept-Encoding
    [content-encoding] => gzip
    [x-cloud-trace-context] => 64bee1b39fb887aa04c636c974b1ac16
    [date] => Fri, 01 Dec 2023 16:59:56 GMT
    [server] => Google Frontend
    [cache-control] => private
    [alt-svc] => h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
    )

        )
    
    [body] => 
    [response] => Array
        (
            [code] => 200
            [message] => OK
        )
    
    [cookies] => Array
        (
        )
    
    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => WpOrg\Requests\Response Object
                (
                    [body] => 
                    [raw] => HTTP/1.1 200 OK

    Content-Type: text/html
    Vary: Accept-Encoding
    Content-Encoding: gzip
    X-Cloud-Trace-Context: 64bee1b39fb887aa04c636c974b1ac16
    Date: Fri, 01 Dec 2023 16:59:56 GMT
    Server: Google Frontend

    Cache-Control: private
    Transfer-Encoding: chunked
    Alt-Svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000
    Connection: close

                    [headers] => WpOrg\Requests\Response\Headers Object
                        (
                            [data:protected] => Array
                                (
                                    [content-type] => Array
                                        (
                                            [0] => text/html
                                        )
    
                                    [vary] => Array
                                        (
                                            [0] => Accept-Encoding
                                        )
    
                                    [content-encoding] => Array
                                        (
                                            [0] => gzip
                                        )
    
                                    [x-cloud-trace-context] => Array
                                        (
                                            [0] => 64bee1b39fb887aa04c636c974b1ac16
                                        )
    
                                    [date] => Array
                                        (
                                            [0] => Fri, 01 Dec 2023 16:59:56 GMT
                                        )
    
                                    [server] => Array
                                        (
                                            [0] => Google Frontend
                                        )
    
                                    [cache-control] => Array

    [0] => private ) [alt-svc] => Array ( [0] => h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000 ) ) ) [status_code] => 200 [protocol_version] => 1.1 [success] => 1 [redirects] => 0 [url] => https://sitekit.withgoogle.com/ [history] => Array ( ) [cookies] => WpOrg\Requests\Cookie\Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => [data] => [headers] => [status] => ))

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @mataleo. Based on recent reports, and the 443 error you kindly shared, this may be specific to communication between your site and Site Kit service over IPv6 only. To check this further, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.??
    2. Do you see any warnings or errors when checking yourSite Health status (Tools > Site Health > Status), which differs from your Site Health information requested above? Such errors may include REST endpoint references.
    3. Can you share the IPv6 address for these sites? I ask I can’t determine any AAAA records.

    As you’re using a VPS there may also be come configurations impacting communication with sitekit.withgoogle.com. I’m happy to provide you with some checks for this once we have the above information.

    Let me know if you have any questions with the above.

    Thread Starter mataleo

    (@mataleo)

    ` wp-core
    
    version: 6.4.1
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: undefined
    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: /home/visainthailand.com/public_html
    wordpress_size: 58.02 MB (60836169 bytes)
    uploads_path: /home/visainthailand.com/public_html/wp-content/uploads
    uploads_size: 27.37 MB (28700233 bytes)
    themes_path: /home/visainthailand.com/public_html/wp-content/themes
    themes_size: 31.68 MB (33222320 bytes)
    plugins_path: /home/visainthailand.com/public_html/wp-content/plugins
    plugins_size: 84.82 MB (88945399 bytes)
    database_size: 4.67 MB (4898816 bytes)
    total_size: 206.57 MB (216602937 bytes) wp-dropins (1) object-cache.php: true wp-active-theme name: Porto Child (porto-child)
    version: 1.1
    author: P-THEMES
    author_website: https://www.portotheme.com/
    parent_theme: Porto (porto)
    theme_features: core-block-patterns, widgets-block-editor, title-tag, editor-style, automatic-feed-links, post-thumbnails, woocommerce, menus, post-formats, html5, wp-block-styles, responsive-embeds, align-wide, editor-styles, editor-color-palette, widgets
    theme_path: /home/visainthailand.com/public_html/wp-content/themes/porto-child
    auto_update: Disabled wp-parent-theme name: Porto (porto)
    version: 6.12.1
    author: P-THEMES
    author_website: https://www.portotheme.com/
    theme_path: /home/visainthailand.com/public_html/wp-content/themes/porto
    auto_update: Disabled wp-themes-inactive (1) Twenty Twenty-Four: version: 1.0, author: the WordPress team, Auto-updates disabled wp-plugins-active (9) Advanced Custom Fields: version: 6.2.4, author: WP Engine, Auto-updates disabled
    Envato Market: version: 2.0.10, author: Envato, Auto-updates disabled
    LiteSpeed Cache: version: 5.7.0.1, author: LiteSpeed Technologies, Auto-updates enabled
    Porto Theme - Functionality: version: 2.12.1, author: P-Themes, Auto-updates disabled
    Site Kit by Google: version: 1.114.0, author: Google, Auto-updates disabled
    Slider Revolution: version: 6.6.18, author: ThemePunch, Auto-updates disabled
    The SEO Framework: version: 5.0.1, author: The SEO Framework Team, Auto-updates disabled
    WPBakery Page Builder: version: 7.2, author: Michael M - WPBakery.com, Auto-updates disabled
    WP Reset: version: 1.98, author: WebFactory Ltd, Auto-updates disabled wp-plugins-inactive (2) Contact Form 7: version: 5.8.4, author: Takayuki Miyoshi, Auto-updates disabled
    Dynamic Featured Image: version: 3.7.0, author: Ankit Pokhrel, Auto-updates disabled wp-media image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1691
    imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: 1
    post_max_size: 300M
    upload_max_filesize: 300M
    max_effective_size: 300 MB
    max_file_uploads: 20
    imagick_limits:
    imagick::RESOURCETYPE_AREA: 122 MB
    imagick::RESOURCETYPE_DISK: 1073741824
    imagick::RESOURCETYPE_FILE: 37500
    imagick::RESOURCETYPE_MAP: 512 MB
    imagick::RESOURCETYPE_MEMORY: 256 MB
    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, 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, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, 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, 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, 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, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.55.0 wp-server server_architecture: Linux 5.15.0-89-generic x86_64
    httpd_software: LiteSpeed
    php_version: 8.1.24 64bit
    php_sapi: litespeed
    max_input_variables: 5000
    time_limit: 1000
    memory_limit: 256M
    max_input_time: 1000
    upload_max_filesize: 300M
    php_post_max_size: 300M
    curl_version: 7.81.0 OpenSSL/3.0.2
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2023-12-01T17:54:59+00:00
    utc-time: Friday, 01-Dec-23 17:54:59 UTC
    server-time: 2023-12-01T17:54:59+00:00 wp-database extension: mysqli
    server_version: 10.6.12-MariaDB-0ubuntu0.22.04.1
    client_version: mysqlnd 8.1.24
    max_allowed_packet: 16777216
    max_connections: 151 wp-constants WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/visainthailand.com/public_html/wp-content
    WP_PLUGIN_DIR: /home/visainthailand.com/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    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_ENVIRONMENT_TYPE: Undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable google-site-kit version: 1.114.0
    php_version: 8.1.24
    wp_version: 6.4.1
    reference_url: https://visainthailand.com
    amp_mode: no
    site_status: not-connected
    user_status: not authenticated
    verification_status: not-verified
    connected_user_count: none
    active_modules: site-verification, search-console, analytics, analytics-4, pagespeed-insights
    recoverable_modules: none
    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: ?
    https://www.googleapis.com/auth/analytics.readonly: ?
    https://www.googleapis.com/auth/tagmanager.readonly: ?
    capabilities:
    googlesitekit_authenticate: ?
    googlesitekit_setup: ?
    googlesitekit_view_posts_insights: ?
    googlesitekit_view_dashboard: ?
    googlesitekit_manage_options: ?
    googlesitekit_update_plugins: ?
    googlesitekit_view_splash: ?
    googlesitekit_view_authenticated_dashboard: ?
    googlesitekit_view_wp_dashboard_widget: ?
    googlesitekit_view_admin_bar_menu: ?
    googlesitekit_view_shared_dashboard: ?
    googlesitekit_read_shared_module_data::["search-console"]: ?
    googlesitekit_read_shared_module_data::["pagespeed-insights"]: ?
    googlesitekit_manage_module_sharing_options::["search-console"]: ?
    googlesitekit_manage_module_sharing_options::["pagespeed-insights"]: ?
    googlesitekit_delegate_module_sharing_management::["search-console"]: ?
    googlesitekit_delegate_module_sharing_management::["pagespeed-insights"]: ?
    enabled_features:
    adsenseSetupV2: ?
    enhancedMeasurement: ?
    gm3Components: ?
    keyMetrics: ?
    search-console_shared_roles: none
    search-console_management: owner
    pagespeed-insights_shared_roles: none
    pagespeed-insights_management: all_admins
    search_console_property: none
    analytics_account_id: none
    analytics_property_id: none
    analytics_profile_id: none
    analytics_use_snippet: yes
    analytics_4_property_id: none
    analytics_4_web_data_stream_id: none
    analytics_4_measurement_id: none
    analytics_4_use_snippet: yes
    Thread Starter mataleo

    (@mataleo)

    https://prnt.sc/zDxV9P9_wkxw

    • This reply was modified 1 year, 3 months ago by mataleo.
    Thread Starter mataleo

    (@mataleo)

    thanks james, server is configured by me, cyberpanel, its ip4 not ip6 tho.

    there is some ipv6 in web panel

    https://prnt.sc/a4E5ZceM0cnD

    https://prnt.sc/VHHcdybkrmWw

    193.142.59.215

    no prob with other services

    • This reply was modified 1 year, 3 months ago by mataleo.
    • This reply was modified 1 year, 3 months ago by mataleo.
    Thread Starter mataleo

    (@mataleo)

    any idea?

    Thread Starter mataleo

    (@mataleo)

    ?

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update @mataleo. Note also that support is provided during weekdays only, hence the late reply.

    Given there is nothing obvious that stands out from the details you kindly shared, there are a couple of checks we can perform. Firstly, in order to rule out and theme, function, plugin or browser related issue impacting set up, please follow the steps below:

    1. Login to your live 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. Attempt to setup Site Kit once more.

    If the same occurs, I’ll then provide you with steps to temporarily deactivate IPv6 to check whether the same occurs.

    Thread Starter mataleo

    (@mataleo)

    Its the same

    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate you performing these checks @mataleo. Next what we’ll do is to try and disable IPv6 given there is such a related IPv6 address at host level given you previous screenshot. In order to do so, please apply the below commands using your SSH terminal:

    sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
    sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

    The above is a temporary configuration to check are you then able to proceed with Site Kit setup. Let me know if you have any questions with the above.

    If preferred I can request a check based on the IPv6 address you provided, although this may take some days before I hear word back.

    Thread Starter mataleo

    (@mataleo)

    Done it, no effect. Still google_api_connection_fail

    Guess wont work. Althought everything else works just fine. I get no connection issues with other apps/dapps or server updates.

    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate the update @mataleo. Let’s perform another check at host level to see if your host server is able to communicate directly with the Site Kit service. In order to do so, please perform the following commands:

    curl -4 -I https://sitekit.withgoogle.com
    The above will check the status if communication over IPv4
    curl -6 -I https://sitekit.withgoogle.com
    The above will check the status if communication over IPv6

    You may also wish to rule out the issue being with anything local on your machine, or with your browser extensions or configurations, by confirming that you don’t encounter any issues if attempting Site Kit set up from this disposable WordPress site.

    Thread Starter mataleo

    (@mataleo)

    Thread Starter mataleo

    (@mataleo)

    root@ns:~# curl -4 -I https://sitekit.withgoogle.com
    HTTP/2 200
    content-type: text/html
    vary: Accept-Encoding
    x-cloud-trace-context: 8c4b1174b5ea84e17ddc3407bd911574
    date: Fri, 08 Dec 2023 16:13:41 GMT
    server: Google Frontend
    alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000

    root@ns:~# curl -6 -I https://sitekit.withgoogle.com
    HTTP/2 403
    alt-svc: h3=”:443″; ma=2592000,h3-29=”:443″; ma=2592000

    Is this ok?

    I run firewall and crowdsec, tho should be okay? Does site kit requires some extra ports open? Thank for help

    • This reply was modified 1 year, 3 months ago by mataleo.
    Thread Starter mataleo

    (@mataleo)

    can you have look at this file https://visainthailand.com/sitekit

    its output of “wp eval ‘print_r(wp_remote_head(“https://sitekit.withgoogle.com”));’ –allow-root –path=/home/visainthailand.com/public_html >> sitekit”

    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate you performing these checks. Somehow, it looks like it IPv6 is used to connect your site with Site Kit, a 403 error does occur. I may need to check this further, in particular as you mention the same occurs if you disable IPv6. I’ll also check the commands I provided you with for doing so against your server setup.

    While I am performing some checks on this, can you confirm the host provider of your VPS? From the checks I performed this may be hostslick.de.

    I run firewall and crowdsec, tho should be okay? Does site kit requires some extra ports open? Thank for help

    These blocks may not be specific to your Firewall or Crowdsec, however, it may be useful to check does the same occur if you temporarily disable both. After checking, you can re-enable once more.

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