Bucket management issues

Prev Next

Available in Classic and VPC

You may encounter the following issues when you use Object Storage: View the causes and solutions by problem and take proper action.

Unable to view the shared bucket

I granted permissions to another account using the bucket permissions management, but I cannot see the bucket in the shared account.

Cause

Because you can only view the bucket you have according to S3 API specifications, it is normal that the bucket with permissions is not exposed on the console.

Solution

To access the bucket with permissions, call through API or CLI directly.

Note

You can grant permissions only to the main account using Object Storage.

Unable to view bucket

I cannot view the bucket.

Cause

When you upload the object using a key for which URL encoding was not conducted, the bucket may not be viewed.

Solution

To access the object, use Javascript SDK. To prevent a recurrence of the issue, be sure to conduct URL Encoding for the Key value when you upload the object in the future.

The following example is a code sample to view the object specified to Prefix, apply URL Encoding for the Kay value, upload it again, and delete the object with issues. Run after you work to fit the environment by referring to the following codes:

import AWS from 'aws-sdk';

const endpoint = new AWS.Endpoint('ENDPOINT');
const region = 'kr-standard';
const bucket_name = 'BUCKET_NAME';
const prefix = 'PREFIX';
const access_key = 'ACCESS_KEY';
const secret_key = 'SECRET_KEY';

const S3 = new AWS.S3({
    endpoint: endpoint,
    region: region,
    credentials: {
        accessKeyId: access_key,
        secretAccessKey: secret_key
    }
});

(async () => {
    let response = await S3.listObjectsV2({
        Bucket: bucket_name,
        Prefix: prefix
    }).promise();

    console.log(response.Contents);

    for (let content of response.Contents) {
        if (encodeURI(content.Key) !== content.Key) {
            console.log(decodeURI(encodeURI(content.Key)));

            // get object
            let inStream = S3.getObject({
                Bucket: bucket_name,
                Key: content.Key,
            }).createReadStream();

            // upload file
            await S3.upload({
                Bucket: bucket_name,
                Key: encodeURI(content.Key),
                Body: inStream
            }).promise();

            // delete invalid file
            await S3.deleteObject({
                Bucket: bucket_name,
                Key: content.Key
            }).promise();
        }
    }
})();

Object unlock

The object lock applied to the bucket of Object Storage is not canceled.

Cause

If you apply the object lock to the bucket, it cannot be unlocked.

Solution

For more information on object unlock, see Manage lock.

"You are not the object owner." messages

When I create a folder in the bucket or upload a file, I encounter a message saying you are not the object owner.

Cause

Occurs when upload permissions are deactivated in the bucket.

Solution

The owner adds upload permissions of the account in the bucket's permissions management window. To add upload permissions to the bucket, see Manage permissions on the Object Storage guide.

Note

If you cannot find information you need in this guide, or if you need more information, click the feedback icon below and send your opinions at any time. We will refer to your opinions and provide more useful information.