Skip to main content
NetApp Knowledge Base

Unable to delete bucket with error "Net::ReadTimeout (MgmtApi::LocalizedRuntimeError)"

Views:
490
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
esg
Last Updated:

Applies to

NetApp StorageGRID 11.6

Issue

  • A bucket is empty per checking on Tenant Manger:

Bucket_empty.png

  • Unable to delete the bucket with error Net::ReadTimeout

Error_delete_bucket.png

  • Associated errors are seen in /var/local/log/nms.log on the Admin Node which the delete is running on

MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.203| ERROR   Net::ReadTimeout (Net::ReadTimeout)
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.203| ERROR   /usr/lib/ruby/2.5.0/net/protocol.rb:181:in `rbuf_fill'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.203| ERROR   /usr/lib/ruby/2.5.0/net/protocol.rb:157:in `readuntil'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.203| ERROR   /usr/lib/ruby/2.5.0/net/protocol.rb:167:in `readline'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.204| ERROR   Internal server error. The server encountered an error and could not complete your request. Try again. If the problem persists, contact support. Net::ReadTimeout (MgmtApi::LocalizedRuntimeError)
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.204| ERROR   /usr/local/lib/site_ruby/mgmt-api/rest-client/resource.rb:730:in `handle_errors!'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.204| ERROR   /usr/local/lib/site_ruby/mgmt-api/containers/container.rb:407:in `handle_errors!'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.205| ERROR   /usr/local/lib/site_ruby/mgmt-api/rest-client/resource.rb:615:in `rescue in delete'
MMM DD hh:mm:ss dc1-adm1 NMS: |YYYY-MM-DDThh:mm:ss.205| ERROR   {"errors":[{"text":"Net::ReadTimeout","key":"error.i18n.validation"}],"message":{"text":"Internal server error. The server encountered an error and could not complete your request. Try again. If the problem persists, contact support.","key":"error.500"},"code":500,"status":"error","responseTime":"TZ","apiVersion":"3.3","data":{"type":"MgmtApi::LocalizedRuntimeError","trace":["/usr/local/lib/site_ruby/mgmt-api/rest-client/resource.rb:730:in `handle_errors!'","/usr/local/lib/site_ruby/mgmt-api/containers/container.rb:407:in `handle_errors!'","/usr/local/lib/site_ruby/mgmt-api/rest-client/resource.rb:615:in `rescue in delete'","/usr/local/lib/site_ruby/mgmt-api/rest-client/resource.rb:608:in `delete'","/usr/local/lib/site_ruby/mgmt-api/containers/container.rb:261:in `delete_for_account!'","/usr/local/mgmt-api/app/controllers/containers.rb:51:in `block in registered'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1635:in `call'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1635:in `block in compile!'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:992:in `block (3 levels) in route!'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1011:in `route_eval'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:992:in `block (2 levels) in route!'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1040:in `block in process_route'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1038:in `catch'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1038:in `process_route'","/usr/lib/ruby/vendor_ruby/sinatra/base.rb:990:in `block in route!'"]}}

  • Delete the bucket by AWS cli s3api failed with error BucketNotEmpty:

# aws --endpoint-url https://dc1-sn1:18082 --no-verify-ssl --profile demo s3api delete-bucket --bucket <bucket_name> --cli-read-timeout 0
...
An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty.

  • Delete the bucket forcibly by AWS cli s3 failed with error BucketNotEmpty:

# aws --endpoint-url https://dc1-sn1:18082 --profile demo --no-verify-ssl s3 rb s3://<bucket_name> --cli-read-timeout 0 --force 
...
remove_bucket failed: s3://<bucket_name> An error occurred (BucketNotEmpty) when calling the DeleteBucket operation: The bucket you tried to delete is not empty.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.