Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to run swift command to report 401Unauthorized error in openstack

Shulou Source: shulou.com Published: 2022-06-01 02:54:49 10月03日 Update

This article mainly introduces how to do the 401 Unauthorized error running swift command in openstack. It has certain reference value. Interested friends can refer to it. I hope you will have a lot of gains after reading this article. Let Xiaobian take you to understand it together.

Error Description:

After installing and configuring swift, run the swift list command and report the following error:

Account GET failed: http://172.80.80.146:8081:8081/v1/AUTH_f3df03ae27a54dbbad2920b07a5462a9? format=json 401 Unauthorized [first 60 chars of response] Unauthorized

This server could not verify t

Run the swift stat command and get the following error:

Account HEAD failed: http://172.80.80.146:8081:8081/v1/AUTH_f3df03ae27a54dbbad2920b07a5462a9 401 Unauthorized

Looking for 401 Unauthorized error via Google, most articles say it is due to missing or incorrect configuration items in the proxy-server.conf configuration file, but I tried to add or modify it, and the problem still exists.

Solution:

Modify Keyston to use UUID tokens, find the/etc/keystone/keystone.conf file, find the token_format configuration entry, change its value to UUID, and then run service keystone restart to make the configuration take effect. Then re-run swift and you'll find the problem solved.

Thank you for reading this article carefully. I hope that Xiaobian will share the article "How to run swift command newspaper 401 Unauthorized error in openstack". This article is helpful to everyone. At the same time, I hope that everyone will support you a lot. Pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

Tags: Errors runs commands configurations articles what to do files problems values interests methods at the same time most articles more friends knowledge editing industry say Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Apple Shulou Information Shulou Technology Xiaomi