Authenticating or using the object service

This topic provides troubleshooting references and steps for resolving system errors when you are authenticating or using the object service.

Description

When the user is authenticating the object service or running the create, update, retrieve, and delete operations, the system displays the following error:

Error: {"error": {"message": "The request you have made requires authentication.",
 "code": 401, "title": "Unauthorized"}}

Cause

The system displays this error under one or all of the following conditions:
  • The password, user ID, or service ID that you have entered is incorrect.
  • The token that you are using has expired.

Proposed workaround

  • Check your user ID and password. All user IDs in the system can be viewed in the OpenStack user list.
  • Check if a valid service ID is provided in the /etc/swift/proxy-server.conf file, in the filter:authtoken section. Also, check if the password for the service ID is still vaild. The service ID can be viewed in the OpenStack service, project, and endpoint lists.