【采坑】oss input/output error

博客讲述了在Linux上挂载OSS,Nginx将路径转发到OSS后界面无法正常显示的问题。通过进入OSS路径发现输入输出错误,杀掉相关进程并重新挂载,发现无法解析主机名且无法ping通网络,最终确定是未设置DNS,设置后重启网络、重新挂载,问题解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、背景
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,问题解决。
Collecting datasets<=3.6.0,>=3.0.0 (from modelscope[cv]) Downloading datasets-3.6.0-py3-none-any.whl.metadata (19 kB) Requirement already satisfied: einops in /mnt/storage/pythonenv/imageai/lib/python3.10/site-packages (from modelscope[cv]) (0.8.1) Requirement already satisfied: Pillow in /mnt/storage/pythonenv/imageai/lib/python3.10/site-packages (from modelscope[cv]) (11.2.1) Collecting python-dateutil>=2.1 (from modelscope[cv]) Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Requirement already satisfied: scipy in /mnt/storage/pythonenv/imageai/lib/python3.10/site-packages (from modelscope[cv]) (1.15.3) Collecting simplejson>=3.3.0 (from modelscope[cv]) Downloading simplejson-3.20.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.2 kB) Collecting sortedcontainers>=1.5.9 (from modelscope[cv]) Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl.metadata (10 kB) Requirement already satisfied: transformers in /mnt/storage/pythonenv/imageai/lib/python3.10/site-packages (from modelscope[cv]) (4.52.3) Requirement already satisfied: accelerate in /mnt/storage/pythonenv/imageai/lib/python3.10/site-packages (from modelscope[cv]) (1.7.0) Collecting albumentations>=1.0.3 (from modelscope[cv]) Downloading albumentations-2.0.8-py3-none-any.whl.metadata (43 kB) Collecting av>=9.2.0 (from modelscope[cv]) Downloading av-15.0.0-cp310-cp310-manylinux_2_28_aarch64.whl.metadata (4.6 kB) Collecting bmt-clipit>=1.0 (from modelscope[cv]) Downloading https://modelscope.oss-cn-beijing.aliyuncs.com/releases/dependencies/bmt_clipit-1.0-py3-none-any.whl (42 kB) Collecting chumpy (from modelscope[cv]) Downloading chumpy-0.70.tar.gz (50 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [23 lines of output] Traceback (most recent call last): File "<string>", line 9, in <module> ModuleNotFoundError: No module named 'pip' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/storage/pythonenv/imageai/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module> main() File "/mnt/storage/pythonenv/imageai/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "/mnt/storage/pythonenv/imageai/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-9_tcp27v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-9_tcp27v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-9_tcp27v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 512, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-9_tcp27v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 11, in <module> ModuleNotFoundError: No module named 'pip' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
最新发布
07-18
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值