Problem description
The object the symbolic link points to does not exist, which causes the request to return an error.
Causes
You initiated a request to access a symbolic link, but the object to which the symbolic link points does not exist.
Examples
The following HeadObject request triggers this error. The object link-to-nothing is a symbolic link, but its target object does not exist in the bucket.
HEAD /link-to-nothing HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 02 Jan 2019 13:28:38 GMT
Authorization: OSS qn6q**************:77Dv****************Solutions
Run a GetSymlink request to find out which object the symbolic link points to.
Request:
GET /link-to-nothing?symlink HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 02 Jan 2019 13:28:38 GMT
Authorization: OSS qn6q**************:77Dv****************Response:
HTTP/1.1 200 OK
Server: AliyunOSS
Date: Wed, 02 Jan 2019 13:28:38 GMT
Last-Modified: Wed, 01 Jan 2019 13:28:38 GMT
Content-Length: 0
Connection: keep-alive
x-oss-request-id: 5650BD7****FB30443962F9A
x-oss-symlink-target: file-not-exist
ETag: "A797938C31D59EDD08D86188F6D5****"The x-oss-symlink-target response header shows the target object name. In this example, the symbolic link link-to-nothing points to file-not-exist.
Make sure that the object to which the symbolic link points exists in the bucket.
References
该文章对您有帮助吗?