国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

HTTP 500 Internal Server Error: 錯誤的解決方法

這篇具有很好參考價值的文章主要介紹了HTTP 500 Internal Server Error: 錯誤的解決方法。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

?創(chuàng)建openstack鏡像的時候報錯。HTTP 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation

查看?cat /var/log/glance/api.log日志顯示如下。

2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi     six.reraise(type(de_ref), de_ref)
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi   File "<string>", line 3, in reraise
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'controller' ([Errno 111] ECONNREFUSED)") (Background on this error at: http://sqlalche.me/e/e3q8)
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi
2022-02-13 11:18:53.204 5691 INFO eventlet.wsgi.server [req-2e8e6857-0668-4897-93ea-575cf7e17411 d2ba72d0f04a46b19901e84c6700f0ce 7e7143f292c34f1789773405af525239 - default default] 10.10.10.10 - - [13/Feb/2022 11:18:53] "POST /v2/images HTTP/1.1" 500 454 100.407488

2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi ? ? six.reraise(type(de_ref), de_ref)
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi ? File "<string>", line 3, in reraise
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'controller' ([Errno 111] ECONNREFUSED)") (Background on this error at: http://sqlalche.me/e/e3q8)
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi
2022-02-13 11:18:53.204 5691 INFO eventlet.wsgi.server [req-2e8e6857-0668-4897-93ea-575cf7e17411 d2ba72d0f04a46b19901e84c6700f0ce 7e7143f292c34f1789773405af525239 - default default] 10.10.10.10 - - [13/Feb/2022 11:18:53] "POST /v2/images HTTP/1.1" 500 454 100.407488

嘗試過

(1)重新配置glance-api.conf 和glance-registry.conf文件,

(2)同步數(shù)據(jù)庫?su -s /bin/sh -c "glance-manage db_sync" glance

(3)用root用戶更新權(quán)限,flush priviledegs

(4)配置cat /etc/httpd/conf.d/wsgi-keystone.conf文件,監(jiān)聽35357和5000端口

(5)重啟環(huán)境變量admin.sh admin-openrc等

還有其他一些嘗試,都不行。

最后我在錯誤日志里看到主機名和ip,我想會不會是因為公私網(wǎng)的ip順序不對。

2003, "Can't connect to MySQL server on 'controller' ([Errno 111] ECONNREFUSED)") (Background on this error at: http://sqlalche.me/e/e3q8)
2022-02-13 11:18:53.201 5691 ERROR glance.common.wsgi
2022-02-13 11:18:53.204 5691 INFO eventlet.wsgi.server [req-2e8e6857-0668-4897-93ea-575cf7e17411 d2ba72d0f04a46b19901e84c6700f0ce 7e7143f292c34f1789773405af525239 - default default] 10.10.10.10

我打開/etc/hosts文件

是這樣的

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.10.10.10 controller
10.10.10.12 compute
192.168.100.101 controller
192.168.100.102 compute

我把順序調(diào)整一下之后。

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.100.101 controller
192.168.100.102 compute
10.10.10.10 controller
10.10.10.12 compute

運行

openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public

?成功


[root@controller ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --publi
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field ? ? ? ? ? ?| Value ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum ? ? ? ? | ee1eca47dc88f4879d8a229cc70a07c6 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| container_format | bare ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| created_at ? ? ? | 2022-02-13T03:21:34Z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| disk_format ? ? ?| qcow2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| file ? ? ? ? ? ? | /v2/images/79e12274-4a04-4749-8439-88ee368d64a6/file ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| properties ? ? ? | os_hash_algo='sha512', os_hash_value='1b03ca1bc3fafe448b90583c12f367949f8b0e665685979d95b004e48574b953316799e23240f4f739d1b5eb4c4ca24d38fdc6f4f9d8247a2bc64db25d6bbdb2', os_hidden='False' |
| protected ? ? ? ?| False ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| schema ? ? ? ? ? | /v2/schemas/image ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| size ? ? ? ? ? ? | 13287936 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| status ? ? ? ? ? | active ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| tags ? ? ? ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| updated_at ? ? ? | 2022-02-13T03:21:35Z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| virtual_size ? ? | None ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
| visibility ? ? ? | public ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
?文章來源地址http://www.zghlxwxcb.cn/news/detail-784881.html

到了這里,關(guān)于HTTP 500 Internal Server Error: 錯誤的解決方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 在IIS上發(fā)布.NET Core項目報: HTTP 錯誤 500.19 - Internal Server Error 無法訪問請求的頁面,因為該頁的相關(guān)配置數(shù)據(jù)無效

    在IIS上發(fā)布.NET Core項目報: HTTP 錯誤 500.19 - Internal Server Error 無法訪問請求的頁面,因為該頁的相關(guān)配置數(shù)據(jù)無效

    在IIS上發(fā)布.NET Core項目流程步驟及“HTTP 錯誤 500.19 - Internal Server Error”解決方法 解決方法如下: 1、用VS發(fā)布項目到本地文件夾中(Release模式下即可) 2、拷貝生成的文件到IIS指定的文件夾中 3、遇到“HTTP 錯誤 500.19 - Internal Server Error 無法訪問請求的頁面,因為該頁的相關(guān)配

    2024年02月11日
    瀏覽(19)
  • 報錯解決:jupyter notebook打開顯示500 : Internal Server Error

    報錯解決:jupyter notebook打開顯示500 : Internal Server Error

    jupyter notebook打開某一ipynb文件后顯示報錯: 500 : Internal Server Error 示意圖如下: Terminal中的報錯: 問題報錯的原因在于nbconvert版本不匹配,導(dǎo)致不兼容,需要進行更新。 進入conda環(huán)境,輸入以下指令: 注:一般上述代碼即可解決問題,若 上述方法不可行 ,可嘗試輸入以下指

    2024年02月12日
    瀏覽(25)
  • 打開Jupyter notebook出現(xiàn)500:Internal Server Error的解決辦法

    打開Jupyter notebook出現(xiàn)500:Internal Server Error的解決辦法

    起因: 今天打開Jupyter notebook 打算進行數(shù)據(jù)分析的時候,突然出現(xiàn)這么大大的一個500命令: 于是在百度上一陣搜尋,得到的都是安裝各種屌絲的包。 后面提示是說 mistune 包的版本不對。各種博客一陣分析對 mistune 的版本進行了限制。 有個偷懶的做法就是: 將你新創(chuàng)建的環(huán)境

    2024年02月12日
    瀏覽(18)
  • 深入了解HTTP 500內(nèi)部服務(wù)器錯誤的原因及解決方法

    深入了解HTTP 500內(nèi)部服務(wù)器錯誤的原因及解決方法

    HTTP 狀態(tài)代碼提供有關(guān)在線請求是否成功的信息,如果不成功,則錯誤是什么。 但是錯誤消息并不總是很清楚。 “500 內(nèi)部服務(wù)器錯誤”尤其如此。 此消息表示在連接到服務(wù)器期間發(fā)生錯誤,并且無法訪問所請求的頁面。 但是,它不會告訴你為什么會這樣。 幸運的是,有不

    2024年02月08日
    瀏覽(28)
  • 解決使用WebTestClient訪問接口報[185c31bb] 500 Server Error for HTTP GET “/**“

    解決使用WebTestClient訪問接口報[185c31bb] 500 Server Error for HTTP GET “/**“

    WebTestClient 是 Spring WebFlux 框架中提供的用于測試 Web 請求的客戶端工具。它可以不用啟動服務(wù)器,模擬發(fā)送 HTTP 請求并驗證服務(wù)器的響應(yīng)。 在學(xué)習(xí) spring-test 中,依照文檔要求進行編寫后報錯,完整實例代碼如下: 報錯截圖 由于沒有啟動服務(wù)看不到接受端到底是那個地方報錯

    2024年02月08日
    瀏覽(26)
  • 什么是HTTP 500錯誤,怎么解決

    什么是HTTP 500錯誤,怎么解決

    目錄 什么是HTTP 500 HTTP 500錯誤的常見原因: 如何修復(fù)HTTP 500 總結(jié) HTTP 500內(nèi)部服務(wù)器錯誤是指在客戶端發(fā)出請求后,服務(wù)器在處理請求過程中發(fā)生了未知的問題,導(dǎo)致服務(wù)器無法完成請求。HTTP 500錯誤是一個通用的服務(wù)器錯誤狀態(tài)碼,它表示服務(wù)器遇到了無法處理的錯誤,從而

    2024年02月09日
    瀏覽(29)
  • ES 通過查詢更新某個字段,Error 500 (Internal Server Error)

    ES 通過查詢更新某個字段,Error 500 (Internal Server Error)

    問題描述: 項目中通過查詢ES中某個字段,并更新某個值的字段,當(dāng)量比較大的時候報錯: upsert associated failed: elastic: Error 500 (Internal Server Error): Failed to compile inline script [ctx._source.pcap_filename = ] using lang [painless] [type=general_script_exception] 問題解析: 1. 通過查詢某個字段并更新這

    2024年02月03日
    瀏覽(28)
  • 雙層while嵌套循環(huán)導(dǎo)致 500internal server error

    雙層while嵌套循環(huán)導(dǎo)致 500internal server error

    在編寫從文本文件中提取有用信息的過程中,使用到了雙層while嵌套循環(huán)(其實內(nèi)循環(huán)就是8,9次數(shù)據(jù)處理,時間復(fù)雜度并不高,為O(n))。 奇怪現(xiàn)象:第一次進入內(nèi)層while循環(huán),函數(shù)會成功執(zhí)行,但是不能正確退出,且瀏覽器頁面不顯示任何內(nèi)容,只是一個勁兒地轉(zhuǎn)圈圈,隨

    2024年02月06日
    瀏覽(29)
  • 并發(fā)請求gitlab接口報錯500 Internal Server Error

    并發(fā)請求gitlab接口報錯500 Internal Server Error

    Gitalb 14.9 由docker搭建,使用的數(shù)據(jù)庫是內(nèi)置的postgresql 近期發(fā)現(xiàn)自研系統(tǒng)在請求調(diào)用 gitlab 的 api 接口時,尤其是 并發(fā)請求同一資源 時, 我這里是并發(fā)創(chuàng)建subgroup這個資源 ,會得到500的報錯,起初以為是自己研發(fā)的系統(tǒng)代碼在處理過程中由于數(shù)據(jù)不準(zhǔn)確導(dǎo)致的500錯誤,沒有太

    2024年02月16日
    瀏覽(22)
  • HTTP 500錯誤:服務(wù)器內(nèi)部錯誤,原因及解決方案

    HTTP 500錯誤:服務(wù)器內(nèi)部錯誤,原因及解決方案

    大家好,今天我們來聊聊一個常見的問題——HTTP 500錯誤,也就是服務(wù)器內(nèi)部錯誤。這個錯誤就像是一個神秘的魔法,時不時地出現(xiàn)在你的網(wǎng)頁上,讓你的用戶和你在一片懵逼中互相猜疑。 首先,我們來了解一下這個錯誤。HTTP 500錯誤是服務(wù)器在處理請求時發(fā)生了內(nèi)部錯誤,

    2024年02月04日
    瀏覽(46)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包