1. 程式人生 > >kilo版本openstack的dashboard報錯解決辦法

kilo版本openstack的dashboard報錯解決辦法

作者:【吳業亮】雲端計算開發工程師

部落格:http://blog.csdn.net/wylfengyujiancheng

一、問題現象:

dashboard能正常登陸,能做一系列的操作,但在做刪除操作時會報如下錯誤。


二、日誌分析:


報UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)是轉碼失敗

三、解決辦法:

1、在/etc/openstack-dashboard/local_settings中加入相關模組

import sys

reload(sys)

sys.setdefaultencoding('utf-8')

2、加入後:


3、重啟http和memcached服務

systemctl start httpd.service memcached.service


相關推薦

ansible自動化運維 cryptography 0.8.2 版本相容性解決辦法

在管理端向客戶機執行 ansible Client -m ping 時報錯:ERROR! Unexpected Exception, this is probably a bug: VersionConflict: (cryptography 0.8.2 (/usr/lib64/python2.7/site-

kilo版本openstack的dashboard解決辦法

作者:【吳業亮】雲端計算開發工程師 部落格:http://blog.csdn.net/wylfengyujiancheng 一、問題現象: dashboard能正常登陸,能做一系列的操作,但在做刪

python 鏈接codis 解決辦法 command 'EXEC' is not allowed

command 'exec' is not allowed python redis codis [[email protected]/* */ ceph]# python ../pkg/redisbase.py Traceback (most recent cal

Authentication token manipulation error解決辦法

erro ive 參考 ext .net center tex tps tro Authentication token manipulation error報錯解決辦法 #參考http://blog.163.com/junwu_lb/blog/static/1916798

Mysql安裝解決辦法

base edi 註意 eve program 搜索 重新啟動 5.1 edit .msi版MySQL安裝包在安裝最後執行的時候到第三部或者第四部死掉 主要是因為之前安裝的版本沒有卸載幹凈,要卸載幹凈MySQ安裝包有一些幾個步驟: 1.通過卸載程序MySQL的相關組件 2。

ORA-09817: Write to audit file failed 解決辦法

ora-09817 archivelog 上午開虛擬機登錄數據庫的時候,突然就報錯:ORA-09817: Write to audit file failed寫入失敗?不會是磁盤滿了吧?當然,no space left on device提示的很明顯,df -h 查詢一下,果然100%了:馬上搜羅下o

Maven 本地倉庫明明有jar包,pom文件還是解決辦法

lips rep win 選擇 class osi 方案 pom nbsp 方法一: 找到出錯的jar包文件位置,刪掉_maven.repositories文件 方法二: maven中的本地倉庫的index索引沒有更新導致 解決方案:

loadrunner-27077解決辦法

包含 use msg 報錯解決 運行時 init AC 警告 設置 警告 -27077: “每次叠代模擬一個新用戶”運行時設置為“開”時,“vuser_init”節將包含 Web 函數。這可能會產生具有多次叠代的不可預測結果 [MsgId: MWAR-27077] 正在

3.django連接mysql數據庫及安裝mysqldb驅動解決辦法

64位 分享圖片 l數據庫 required 後來 AS password www com 1.在setting.py設置連接數據庫 DATABASES = { ‘default‘: { ‘ENGINE‘: ‘django.db.backends.m

Rsync服務器搭建遇到的解決辦法

Rsync報錯 linux centOS 遇到錯誤1:[root@backup tmp]# rsync -avz /etc/hosts -e 'ssh -p 22' [email protected]:/tmp/rsync: Failed to exec ssh: No such fi

PHP 結合memcache make 過程的解決辦法

PHP memcache 安裝完LAMP中PHP,後面在PHP結合memcache,換成插件的過程中出現出錯的解決辦法 cd memcache-2.2.1 /application/php5.3.27/bin/phpize ./configure --with-php-config

python2.x下pip install mysql-python解決辦法

分享圖片 alt info pan www. 下載 ima sql pytho 在https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python 下載該驅動網盤鏈接:https://pan.baidu.com/s/1r0

for迴圈呼叫刪除方法解決辦法

1.每次刪除一個元素,索引往前移,即i-1.      List<String> list = new ArrayList<String>();      list.add("111");  &nbs

vue eslint解決辦法

overlay formatter form emit tel erl ORC bubuko 解決辦法 若提示入下圖時,在build / webpack.base.conf.js中, 找到 // const createLintingRule = () => ({//

Navicat for MySQL 最新版安裝與破解 + 解決辦法

Navicat for MySQL 最新版安裝與破解 + 報錯解決辦法 MySQL 8.0.13 下載地址: 下載地址:https://dev.mysql.com/downloads/installer/ 我選擇是 mysql8.0.13 進行安裝(目前windows最新版本)

AttributeError: 'module' object has no attribute 'urlopen解決辦法

AttributeError: ‘module’ object has no attribute 'urlopen 在python3中此處的urllib都應該改成urllib.request python NameError: name ‘raw_input’ is not define

mybatis解決辦法 :Result Maps collection does not contain value for java.lang.String

錯誤 java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.lang.String at org.apache.ibatis.session.Configura

altium designer dxf檔案匯入到PCB中出現一片空白或匯入解決辦法

這類現象出現的主要原因是,DXF裡面的很多元素,Altium中無法識別造成的,無論我們怎麼匯入都是無法匯入成功的,我們可以按照如下步驟進行操作: 這個時候我們可以在CAD中開啟這個DXF檔案,然後框選

pip安裝解決辦法

最近也在看部落格學習python,想要安裝selenium,在這之前,需要先安裝pip。 安裝pip是通過執行命令安裝,初次安裝時報錯 Traceback (most recent call last): File “setup.py”, line 6, i

Oracle資料庫安裝+漢化版PLsql+Oracle外掛,plsql連線Oracle步驟和解決辦法

    從https://download.csdn.net/download/fxiaoyaole/10449523 此連結下載裡面有所資源,資源包括(Oracle兩個資料庫壓縮包win64_11gR2_database_1of2, win64_11gR2_database