2018年7月27日 星期五

Lost connection to MySQL server during query at ...

有維護一些定期工作的程式
都是歷史悠久一代傳一代
只要他正常工作都不會異動他
最近忽然發現某支程式會執行失敗
錯誤訊息為 Lost connection to MySQL server during query  at ...

上網查了一下 說是資料庫資料較大 建議加大 net_read_timeout和net_write_timeout時間
因為資料庫不是我管理的  試著從程式下手
發現在執行失敗的那一行是一個查詢的指令
而where的條件式沒有依過濾最多的放在前面
調整一下順序 果然查詢回覆的時間大幅減少  應該就可以避免失敗了

2018年6月24日 星期日

interface input error

https://www.cisco.com/en/US/docs/internetworking/troubleshooting/guide/tr1904.html#wp1020996

原先目標是抓interface crc error,這值如果持續產生有很大機率是線材的問題,
結果目標設備不支援,只好改抓input error,input error 的原因則較多了,

Includes runts, giants, no buffer, CRC, frame, overrun, and ignored counts. Other input-related errors can also cause the input error count to be increased, and some datagrams may have more than one error; therefore, this sum may not balance with the sum of enumerated input error counts.


runts, giants, no buffer, CRC, frame, overrun, and ignored都是input error原因之一,
但這些數量總合不會等於input error,因為封包發生錯誤也許原因不只一種。

macOS ssh 失敗(diffie-hellman-group1-sha1)


Unable to negotiate with xxx.xxx.xxx.xxx port 22: no matching key exchange method found. Their offer:diffie-hellman-group1-sha1

ans:
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 name@xxx.xxx.xxx.xxx

2017年6月16日 星期五

CentOS 7 ,Mediawiki, php5.6, mariaDB 10.2

因為要安裝google -authentication,所以把老舊的系統換掉,

systemctl 取代  service
安裝google -authentication
php 版本更新到 5.6
mariadb從原本的5.5更新到10.2

Mediawiki
  • 執行安裝時一直卡在set_time_limit(0)這行,因為我暫時找不到問題,直接將這行comment out 
  • 然後就一路安裝完畢了
  • 目前還有上傳檔案的問題 ,doc檔案會變成你的zip檔案毀損無法辨識

2016年2月16日 星期二

switch ssh 設定


在更換switch後發現設定檔完全一樣但ssh無法登入,
一般設定步驟如下:參考 cisco ssh 設定
1. enable
2. configure terminal
3. hostname hostname
4. ip domain-name name
5. crypto key generate rsa
6. ip ssh [time-out seconds | authentication-retries integer]
7. ip ssh version [2]

其實,就是少了產生公鑰的步驟,所以即使將設定檔完全倒入也無法ssh登入

crypto key generate rsa

2015年12月22日 星期二

virtualbox無法啟動(Timed out after 60014 ms waiting for child request......)



今天在重啟電腦後要啟動virtualbox的os 非常緩慢
然後一直跳出以下類型的錯誤訊息

Timed out after 60014 ms waiting for child request......


在virtualbox討論串裡有
https://forums.virtualbox.org/viewtopic.php?f=6&t=67840&start=195#p347694

avira移除後,啟動就恢復以往的快速了 

2014年10月9日 星期四

Drivers for GUC232A USB to Serial converter

http://iogear.custhelp.com/app/answers/detail/a_id/1026/~/drivers-for-guc232a-usb-to-serial-converter

安裝完後

開啟終端機


screen /dev/cu.UC-232AC 9600

ctrl+ A , ctrl+\ 離開