【採坑】oss input/output error

一、背景

oss掛載在linux上,nginx將路徑轉發到oss裏,但是無法正常顯示界面。

二、步驟

1.進入相應的oss路徑,ls顯示input/output error。
2.ps|grep ossfs 找到相應進程,kill掉,並且umount 你的oss路徑。重新掛載
3.顯示ossfs: could not resolve host ‘oss-cn-hangzhou.aliyuncs.com’. If you use IP, please try to add option ‘-o use_path_reqeust_style’。ping oss-cn-hangzhou.aliyuncs.com 無法ping通並且無法ping通百度,聯想到了網絡問題。果然未設置dns
4.設置完dns,systemctl restart network重啓網絡,重新掛載,刷新界面,問題解決。

三、問題總結

1.ossfs: unable to access MOUNTPOINT /aliyun_ossfs: Transport endpoint is not connected
需要先執行 umount /aliyun_ossfs
2.執行ossfs掛載,顯示ossfs: could not resolve host ‘oss-cn-hangzhou.aliyuncs.com’. If you use IP, please try to add option ‘-o use_path_reqeust_style’
ping oss-cn-hangzhou.aliyuncs.com不通,並且ping百度不通,聯想到網絡問題,設置dns,問題解決。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章