今天在更新 macOS 後,想要 ssh 到 ec2 server 時 (使用 -i 指定 identity_file)
指令: ssh -i "test.pem" ubuntu@ec2-xx-xx-xx-x.ap-northeast-1.compute.amazonaws.com
跳了要輸入密碼的提示
sign_and_send_pubkey: no mutual signature supported
ubuntu@ec2-xx-xx-xx-x.ap-northeast-1.compute
»
Context
MacOS version: 14.6.1
Go version: 1.22
今天在寫 golang 的時候發現的一個問題
用 go run main.go 可以正常執行,但要執行 go build 建出來的 binary 檔就會無法執行
用 file 指令檢查 binary 檔架構
持續做了交叉測試,發現只有 server.Init() 會發生,test1.Init() 是正常的
中間也試過重新啟動電腦、gvm 重新安裝 go 版本,這兩個方法
»
在 12/26 下午,我參加了 AWS Certified Developer - Associate exam 的線上考試
考完隔天收到一封 Email
Email 內容提到當次考試透過 Data Forensics 偵測到有異常情形,此次考試被判定為無效
並取消之後的線上考試資格 (只能去考試中心考) 直到 AWS 那邊另行通知
當下蠻疑惑的,在考試期間,監考官並沒有提到有什麼違規行為
爬文了一下,發現國外蠻多人遇到 (也有人在考試中心考,也遇到這個狀況)
找到 AWS 的 Data
»
有時候在 Rails 執行 migrate 時,會遇到 redis 的錯誤
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
解法:
1.進 redis cli,下指令
$ redis-cli
> config set stop-writes-on-bgsave-error no
2.重開 redis service
macOS (brew):
»
紀錄一下前幾天遇到的 docker 問題
專案使用 docker-compose 在 local 開發
Dockerfile 裡面的 image source 原本是 docker hub
改成使用 AWS ecr public image 後,在 local 執行 docker-compose build 會跳這個錯誤
用關鍵字搜尋了很久,終於找到解法
問題出在 docker 的 config 設定 /Users/stan/.docker/config.json
裡面有一段 "credsStore
»
環境:
MacOS: 12.6.2
Ruby version: 3.0.3
Rails version: 6.1.7.3
前陣子將一個 Rails 專案從 6.1.6.1 升到 6.1.7.3
升級後,用 rails console 查東西會噴這個錯誤
[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called
爬文後,有兩個解法
»