Fixing the "no such bucket" and "no such key" errors when uploading objects from CDN
Written by
Updated at November 27, 2023
Issue description
- You cannot download objects by CDN links the first time
- Sometimes, objects by CDN links start downloading after you refresh the browser page.
Solution
Possibly, the value of the origin
field in CDN parameters is set to <bucket_name>.website.yandexcloud.net
and header host
is set to <bucket_name>.storage.yandexcloud.net
. You need both parameters to have the same values.
Change the values if they differ and wait for some time (up to 15 minutes). Then check if you can download objects by CDN links.
If the issue persists
If the above actions didn't help, create a request for support
In the request, specify the following information:
- CDN ID
- One or more problematic CDN object links
- Problem description.