Problemin Başlama Sebebi ve Olası Nedenler;
1 – Aşağıdaki adımları takip ederek Nginx Kurulumu;
2 – MySQl 5.5 ten MariaDB’ye Geçiş
3 – Litspeed’e geçtiğimde SQL’e zarar vermesi ve Repair & Optimze seçenekleriyle geri gelmesi
.
Problemde aldığım hata mesajları;
1 – Updraftplus yeterli kaynağınız yok hatası;
msgid "Table %s has very many rows (%s) - we hope your web hosting company gives you enough resources to dump out that table in the backup" msgstr "%s tablosunda çok fazla satır (%s) bulunuyor - umarız web sunucu şirketiniz size bu tabloyu yedeğe alabilecek kadar kaynak veriyordur."
.
2 – Updrafplus eror code 3;
Binary mysqldump: error (code: 3)
.
3 – Updraftplus 502 Gateway hatası
.
4 – xCloner’da Tam backup alırken Internal Server 500 Hatası
5 – xCloner’da sadce SQL yedeği alırken 502 Bad Gateway hatası
6 – xCloner “To decrease the likelihood of overlaps, increasing resump interval to: 300 + 120 = 420
7 – Backup Scheduler yedeklemesinde 502 timout hatası
8 – xCloner “Invalid query: Access denied; you need (at least one of) the PROCESS privilege(s) for this operation” hatası
.
Problemin Tahmini Çözümleri
1) Increase buffer and timeouts inside http block:
http { ... fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; ... } |
2) Ensure your php-fpm service is listening according to what you’ve configured in nginx, it can be either this two options:
Edit www.conf file (in CentOS it is located at /etc/php-fpm.d/www.conf and try with one of this two options:
listen = /var/run/php5-fpm.sock |
or
listen = 127.0.0.1:9000 |
After that, just restart the php-fpm service.
3) Disable APC Cache if used, instead try Xcache, apc can cause this kind of issues under particular enviroments causing segmentation faults.
4) I recently found another cause of 502 bad gateway error, check it out here: php5-fpm.sock failed (13: Permission denied) error
http://www.nginxtips.com/502-bad-gateway-using-nginx/
.
5 – Internal Server 500 Hatası için Klasörlere kullanıcı haklarını 755 olarak atayın;
.
6 – Memory Limitini 512 MB Yapın;
7 – Nginx’i Silip Tekrar Kurun
8 – xCloner’ı Silip Tekar Kurun;
9 – SQL database’inde tüm kullanıcılara tam hak yetkisi verin;
.
10 – SQL Tablolarını onarın;
.
11 – Klasörlerin kullanıcı haklarını 755 e çekin;
Hatta;
.
12 – Proxy Connection Timeout Satırı Ekleyin (ve Nginx i tekrar başlatın)
.
13 – php.ini deki memory limitini ve execution limiti yükseltin;
.
İşin İlginç Kısmı;
1 – Bütün bu ayarlara rağmen 3 yedekleme yazılımında hata mesajı dönüyor;
2 – Sistem kaynaklarımın sadece yarısı kullanılıyor (HDD alanımda boş yer var ve sadece 4 GB RAM’ın 2 GB’ı kullanıyor sadece)
.
3 – Yedeklemede sıkıştırarak almak yerine (SQLDump değil), Manuel Yedekleme düzgün çalışıyor;
.
Çözebildiğim Problemler;
1 – PHP event code E_WARNING: strpos() -> Bugsnag Programını Durdur
.