Issue
Saat mencoba menyinkronkan database atau mengatur scheduled job dengan SQLyog, proses job dan sync tidak berhasil dan muncul error seperti berikut.
Job started at Thu Aug 01 15:19:22 2024
Sync started at Thu Aug 01 15:20:46 2024
Error fetching source server version information.Error No. 1
Error in tunneling. The HTTP response may be invalid, PHP settings may not allow for tunneling or similar. You may send the HTTP response to [email protected]. You may also try the settings behind the 'advanced' button to resolve the problem.
Solution
Hal ini bisa terjadi karena konfigurasi URL yang belum sesuai. Sehingga pastikan URL dapat diakses dengan benar melalui browser dan menampilkan halaman seperti berikut.
Selanjutnya pastikan URL untuk tunneling tidak redirect seperti contoh dari http
ke https
, atau redirect ke URL lain.
$ curl -I http://example.com/dbtunneling.php
HTTP/1.1 301 Moved Permanently
Date: Thu, 01 Aug 2024 14:17:17 GMT
Server: Apache
Location: https://example.com/dbtunneling.php
Content-Type: text/html; charset=iso-8859-1
Jika sudah seperti itu, maka Anda perlu mengedit URL menggunakan https
agar proses job dan sync dapat berjalan.