vendredi 20 mai 2016

Facebook og: tags not found - operation timeout

I have a vps (Centos 7.2 64bit/CPanel/5GB Dedi Ram & 2GB Boost/CPU i7 2900-3.4ghz(4 Cores)/200GB Disk) with apache 2.4 and nginx 1.10.0, and I have set up wp multisite(subdomains) 4.5.2 with WP Rocket 2.7.4. Am getting on facebook debugger random og: tags not found - operation timeout on my posts.

Object at URL '' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.

Curl Error : OPERATION_TIMEOUTED Operation timed out after 10000 milliseconds with 0 bytes received Blockquote

And when I click on the option "See exactly what our scraper sees for your URL" I see a blank page.

The problem is solved when am deactivating plugins that add stuff on the front of the site and increase the loading time. What do I have to do to fix that? Keep in mind that I moved to a new server. I didn't had such problems on the previous one. I believe that is some setting that needs to be fixed.

The difference between the old server and the new one is that the old one didn't have nginx(I deactivated nginx and the problem was still there) and that I had 2 cores Intel Xeon E3-1240 3.3 GHz and on the new one I have 4 Cores i7 2900-3.4ghz.

(Tell me what other information you need me to add or exclude that will help you understand what is wrong)

My Engintron v1.6.1 (Nginx version: 1.10.0)

*** Engintron is ENABLED ***
########################################
*** System Info ***

Uptime: 16:43:37 up 1 day, 56 min,  1 user,  load average: 0.08, 0.11, 0.17

OS: CentOS Linux release 7.2.1511 (Core)

Kernel: Linux panel.example.com 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Processors: 4 CPU(s)

RAM: 4.73 GB

Memory Usage:
              total        used        free      shared  buff/cache   available
Mem:           4840         480        3469           9         890        4139
Swap:          7999           0        7999

Disk Usage:
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/sda1      ext4      199G   15G  175G   8% /
devtmpfs       devtmpfs  2.0G     0  2.0G   0% /dev
tmpfs          tmpfs     2.0G     0  2.0G   0% /dev/shm
tmpfs          tmpfs     2.0G   49M  1.9G   3% /run
tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/loop0     ext3      3.9G   39M  3.6G   2% /tmp
tmpfs          tmpfs     396M     0  396M   0% /run/user/0

Nginx Cache/Temp Disk Usage:
4.0K    /tmp/engintron_dynamic
4.0K    /tmp/engintron_static
4.0K    /tmp/engintron_temp

System Time: Fri May 20 16:43:37 GMT-3 2016

System Users Connected:
16:43:37 up 1 day, 56 min,  1 user,  load average: 0.08, 0.11, 0.17
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    *                15:15   24:33   0.06s  0.06s -bash

My Nginx Status

Nginx Status:

Redirecting to /bin/systemctl status  nginx.service
● nginx.service - nginx - high performance web server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2016-05-20 16:48:22 GMT-3; 5s ago
     Docs: http://ift.tt/18yj2or
  Process: 21271 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
  Process: 21278 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
  Process: 21276 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
 Main PID: 21281 (nginx)
   CGroup: /system.slice/nginx.service
           ├─21281 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.con
           ├─21282 nginx: worker process                   
           ├─21283 nginx: worker process                   
           ├─21284 nginx: worker process                   
           ├─21285 nginx: worker process                   
           ├─21286 nginx: cache manager process            
           └─21287 nginx: cache loader process             

May 20 16:48:22 panel.example.com systemd[1]: Starting nginx - high performance web server...
May 20 16:48:22 panel.example.com nginx[21276]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
May 20 16:48:22 panel.example.com nginx[21276]: nginx: configuration file /etc/nginx/nginx.conf test is successful
May 20 16:48:22 panel.example.com systemd[1]: Started nginx - high performance web server.

Active connections: 1 
server accepts handled requests
 1 1 1 
Reading: 0 Writing: 1 Waiting: 0

My default.conf

# /**
#  * @version       1.6.1
#  * @package       Engintron for cPanel/WHM
#  * @author        Fotis Evangelou
#  * @url           https://engintron.com
#  * @copyright     Copyright (c) 2010 - 2016 Nuevvo Webware P.C. All rights reserved.
#  * @license       GNU/GPL license: http://ift.tt/iLWIb2
#  */

server {

    listen 80 default_server;
    #listen [::]:80 default_server; # Uncomment if your server supports IPv6

    server_name localhost;

    set $PROXY_DOMAIN_OR_IP $host;

    # Set custom rules like domain/IP exclusions or redirects here
    include custom_rules;

    location / {
        try_files $uri $uri/ @backend;
    }

    location @backend {
        include proxy_params_common;
        # === MICRO CACHING ===
        # Comment the following line to disable 1 second micro-caching for dynamic HTML content
        include proxy_params_dynamic;
    }

    # Enable browser cache for static content files (TTL is 1 hour)
    location ~* \.(?:json|xml|rss|atom)$ {
        include proxy_params_common;
        include proxy_params_static;
        expires 1h;
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header Vary "Accept-Encoding";
        access_log off;
    }

    # Enable browser cache for CSS / JS (TTL is 30 days)
    location ~* \.(?:css|js)$ {
        include proxy_params_common;
        include proxy_params_static;
        expires 30d;
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header Vary "Accept-Encoding";
        access_log off;
    }

    # Enable browser cache for media & document files (TTL is 60 days)
    location ~* \.(?:ico|jpg|jpeg|gif|png|bmp|webp|tiff|mp3|flac|ogg|mid|midi|wav|wma|mp4|mov|3gp|webm|mkv|ogv|wmv|zip|7z|tgz|gz|rar|bz2|tar|exe|pdf|doc|docx|xls|xlsx|ppt|pptx|rtf|odt|ods|odp)$ {
        include proxy_params_common;
        include proxy_params_static;
        expires 60d;
        add_header Pragma "public";
        add_header Cache-Control "public";
        access_log off;
    }

    # Enable browser cache for fonts & fix @font-face cross-domain restriction (TTL is 60 days)
    location ~* \.(eot|ttf|otf|woff|woff2|svg|svgz)$ {
        include proxy_params_common;
        include proxy_params_static;
        expires 60d;
        add_header Pragma "public";
        add_header Cache-Control "public";
        add_header Vary "Accept-Encoding";
        add_header Access-Control-Allow-Origin *;
        access_log off;
    }

    # Prevent logging of favicon and robot request errors
    location = /favicon.ico {
        include proxy_params_common;
        include proxy_params_static;
        expires 60d;
        add_header Pragma "public";
        add_header Cache-Control "public";
        access_log off;
        log_not_found off;
    }
    location = /robots.txt  {
        include proxy_params_common;
        include proxy_params_static;
        expires 1d;
        add_header Pragma "public";
        add_header Cache-Control "public";
        access_log off;
        log_not_found off;
    }

    location = /nginx_status {
        stub_status;
        access_log off;
        log_not_found off;
        # Comment the following 2 lines to make the Nginx status page public
        allow 127.0.0.1;
        deny all;
    }

    location = /whm-server-status {
        proxy_pass http://127.0.0.1:8080;
        # Comment the following 2 lines to make the Apache status page public
        allow 127.0.0.1;
        deny all;
    }

    # Deny access to hidden files
    location ~ /\.ht {
        deny all;
    }

}

My proxy_params_common

# /**
#  * @version       1.6.1
#  * @package       Engintron for cPanel/WHM
#  * @author        Fotis Evangelou
#  * @url           https://engintron.com
#  * @copyright     Copyright (c) 2010 - 2016 Nuevvo Webware P.C. All rights reserved.
#  * @license       GNU/GPL license: http://ift.tt/iLWIb2
#  */

# Adjust headers when using CloudFlare
set $X_REAL_IP $remote_addr;
if ($http_cf_connecting_ip) {
    set $X_REAL_IP $http_cf_connecting_ip;
}

# General Proxy Settings
proxy_pass          http://$PROXY_DOMAIN_OR_IP:8080;
proxy_http_version  1.1;                # Always upgrade to HTTP/1.1
proxy_set_header    Accept-Encoding ""; # Optimize encoding
proxy_set_header    Connection "";      # Enable keepalives
proxy_set_header    Host $host;
proxy_set_header    Referer $http_referer;
proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header    X-Forwarded-Host $host;
proxy_set_header    X-Forwarded-Port $server_port;
proxy_set_header    X-Forwarded-Proto $scheme;
proxy_set_header    X-Forwarded-Server $host;
proxy_set_header    X-Real-IP $X_REAL_IP;
proxy_set_header    CF-Connecting-IP $http_cf_connecting_ip;
proxy_set_header    Cf-Visitor $http_cf_visitor;

# Buffers
proxy_buffers               256 16k;
proxy_buffer_size           128k;
proxy_busy_buffers_size     256k;
proxy_temp_file_write_size  256k;

# Timeouts
proxy_connect_timeout       120s;
proxy_read_timeout          120s;
proxy_send_timeout          120s;

# Info
add_header                  X-Cache-Status $upstream_cache_status;
add_header                  X-Server-Powered-By "Engintron";

My proxy_params_dynamic

# /**
#  * @version       1.6.1
#  * @package       Engintron for cPanel/WHM
#  * @author        Fotis Evangelou
#  * @url           https://engintron.com
#  * @copyright     Copyright (c) 2010 - 2016 Nuevvo Webware P.C. All rights reserved.
#  * @license       GNU/GPL license: http://ift.tt/iLWIb2
#  */

# === MICRO CACHING ===
# 1 second (1s) micro-caching enabled for all proxied dynamic HTML content
proxy_cache                 engintron_dynamic;
proxy_cache_key             "$request_method$scheme$host$request_uri";
proxy_cache_lock            on;
proxy_cache_use_stale       updating;
proxy_cache_valid           200 1s;
proxy_ignore_headers        Expires Cache-Control Set-Cookie Vary;

My proxy_params_static

# /**
#  * @version       1.6.1
#  * @package       Engintron for cPanel/WHM
#  * @author        Fotis Evangelou
#  * @url           https://engintron.com
#  * @copyright     Copyright (c) 2010 - 2016 Nuevvo Webware P.C. All rights reserved.
#  * @license       GNU/GPL license: http://ift.tt/iLWIb2
#  */

# === STATIC ASSET CACHING ===
# Proxy Cache Settings for static files ONLY.
# Preset to a 1 minute internal cache time so file changes on static files that don't use
# cache busting techniques are visible after 1 minute.
# To increase, simply adjust the value for "proxy_cache_valid"
# Respects Expires, Cache-Control & Vary headers already set in default.conf
# for client-side caching.

proxy_cache                 engintron_static;
proxy_cache_key             "$request_method$scheme$host$request_uri";
proxy_cache_lock            on;
proxy_cache_min_uses        1;
proxy_cache_revalidate      on;
proxy_cache_use_stale       error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_valid           200 301 302 1m; # Covers 200, 301 & 302 responses, caching time set to 1 minute
proxy_ignore_headers        Set-Cookie;

My nginx.conf

# /**
#  * @version       1.6.1
#  * @package       Engintron for cPanel/WHM
#  * @author        Fotis Evangelou
#  * @url           https://engintron.com
#  * @copyright     Copyright (c) 2010 - 2016 Nuevvo Webware P.C. All rights reserved.
#  * @license       GNU/GPL license: http://ift.tt/iLWIb2
#  */

user nginx;
worker_processes auto;
worker_rlimit_nofile 65535;
pid /var/run/nginx.pid;

events {
    worker_connections 8192;
    multi_accept on;
}

http {
    ## Basic Settings ##
    client_body_timeout             20s; # Use 5s for high-traffic sites
    client_header_timeout           20s; # Use 5s for high-traffic sites
    client_max_body_size            1024m;
    keepalive_timeout               65s;
    port_in_redirect                off;
    sendfile                        on;
    server_names_hash_bucket_size   64;
    server_name_in_redirect         off;
    server_tokens                   off;
    tcp_nodelay                     on;
    tcp_nopush                      on;
    types_hash_max_size             2048;
    ## DNS Resolver ##
    # If in China, enable the OpenDNS entry that matches your network connectivity (IPv4 only or IPv4 & IPv6)
    # OpenDNS (IPv4 & IPv6)
    #resolver                       208.67.222.222 208.67.220.220 2620:0:ccc::2 2620:0:ccd::2;
    # OpenDNS (IPv4 only)
    #resolver                       208.67.222.222 208.67.220.220;
    # Google Public DNS (IPv4 & IPv6)
    #resolver                       8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844;
    # Google Public DNS (IPv4 only) [default]
    resolver                        8.8.8.8 8.8.4.4;

    ## MIME ##
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ## Logging Settings ##
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ## Gzip Settings ##
    gzip on;
    gzip_buffers 16 8k;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_min_length 256;
    gzip_proxied any;
    gzip_types
        application/atom+xml
        application/javascript
        application/json
        application/ld+json
        application/manifest+json
        application/rss+xml
        application/vnd.geo+json
        application/vnd.ms-fontobject
        application/x-font-ttf
        application/x-javascript
        application/x-web-app-manifest+json
        application/xhtml+xml
        application/xml
        font/opentype
        image/bmp
        image/svg+xml
        image/x-icon
        text/cache-manifest
        text/css
        text/javascript
        text/plain
        text/vcard
        text/vnd.rim.location.xloc
        text/vtt
        text/x-component
        text/x-cross-domain-policy
        text/x-js
        text/xml;
    gzip_vary on;

    # Proxy Settings
    proxy_cache_path /tmp/engintron_dynamic levels=1:2 keys_zone=engintron_dynamic:20m inactive=10m max_size=500m;
    proxy_cache_path /tmp/engintron_static levels=1:2 keys_zone=engintron_static:20m inactive=10m max_size=500m;
    proxy_temp_path /tmp/engintron_temp;

    ## Virtual Host Configs ##
    include /etc/nginx/conf.d/*.conf;
}

My php.ini

My php.conf

# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
#
# Manual edits of this file will be lost when Apache is updated.

# CGI configuration for PHP5
Action application/x-httpd-php5 /cgi-sys/php5
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

# End of autogenerated PHP configuration.

My my.cnf

[myisamchk]
read_buffer=16M
key_buffer=32M
write_buffer=16M
sort_buffer=32M
[mysqld_safe]
open_files_limit=3000
log-error="/var/log/mysqld.log"
pid-file="/var/run/mysqld/mysqld.pid"
[mysqld]
slow-query-log-file="/var/log/mysql/slow.log"
slow_query_log=1
long_query_time=2
log_queries_not_using_indexes
local-infile=0
join_buffer_size=10M
connect_timeout=10
read_buffer_size=1M
key_buffer=16M
key_buffer_size=70M
# old_passwords=1
max_allowed_packet=268435456
interactive_timeout=25
max_connect_errors=10
max_connections=100
wait_timeout=1000
query_cache_size=0
query_cache_type=OFF
user=mysql
thread_cache_size=286
sort_buffer_size=10M
tmp_table_size=256M
max_heap_table_size=16M
table_open_cache=500
query_cache_limit=10M
socket="/var/lib/mysql/mysql.sock"
myisam_sort_buffer_size=32M
datadir="/var/lib/mysql"
default-storage-engine=MyISAM
innodb_file_per_table=1
innodb_buffer_pool_size=134217728
innodb_buffer_pool_instances=1
open_files_limit=10000
[isamchk]
read_buffer=16M
key_buffer=32M
write_buffer=16M
sort_buffer=32M
[mysqlhotcopy]
skip-networking
interactive-timeout

/usr/local/apache/conf/httpd.conf

    Timeout 300
    TraceEnable Off
    ServerSignature Off
    ServerTokens ProductOnly
    FileETag None
    ServerLimit 256
    MaxRequestWorkers 150
    KeepAlive On
    KeepAliveTimeout 5
    MaxKeepAliveRequests 100
    <IfModule prefork.c>
       StartServers        5
       MinSpareServers     5
       MaxSpareServers     10
       MaxClients          150
       MaxRequestsPerChild 300
    </IfModule>

php -v

PHP 5.6.21 (cli) (built: May 19 2016 19:46:16)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend 
Technologies

free -m

              total        used        free      shared  buff/cache   available
Mem:           4840         341        3609           9         889        4279
Swap:          7999           0        7999



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire