An unexpected error prevented the server from fulfilling your request. (HTTP 500)
来源:互联网 发布:差分方程matlab编程 编辑:程序博客网 时间:2024/06/05 16:16
执行 keystone tenant-create --name admin --description "Admin Tenant"
出现 An unexpected error prevented the server from fulfilling your request. (HTTP 500)
查询了一下
有的 说重启,不管用
有的说
Instead of typing the command: # su -s /bin/sh -c "keystone-manage db_sync" keystone, you must type only: /bin/sh -c "keystone-manage db_sync" keystone
The issue came that: if you have already loggin as a root so you haven't needed anymore to use the "su -s" command.也不管用
也查询了服务是否开启 netstat -anutp|grep 35357 正常啊
卡了3,4个小时
最后看日志 tail -f /var/log/keystone/keystone.log
2016-03-27 17:27:53.396 4910 ERROR keystone.common.wsgi [-] (ProgrammingError) (1146, "Table 'keystone.project' doesn't exist") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('2b7c3c51a0ff42a886174224a5e2bf4d', 'admin', 'default', 'Admin Tenant', 1, '{}')
一行命名解决
直接输入 keystone-manage db_sync
问题解决
看日志才能对症下药
以后得改变习惯,不要一出问题就度娘,要先分析日志!
- An unexpected error prevented the server from fulfilling your request. (HTTP 500)
- keystone -- An unexpected error prevented the server from fulfilling your request. 错误
- 解决方法HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request
- description The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request. exception
- The server encountered an internal error that prevented it from fulfilling this request.
- The server encountered an internal error that prevented it from fulfilling this request的一种解决办法
- The server encountered an internal error () that prevented it from fulfilling this request.h--模型驱动
- The server encountered an internal error that prevented it from fulfilling this request.
- spring3 struts2 利用aop在actioin层捕获异常
- PHP为什么慢?
- Cannot delete or update a parent row
- HDU 3177 Crixalis's Equipment(很巧妙的贪心)
- Xcode项目依赖
- An unexpected error prevented the server from fulfilling your request. (HTTP 500)
- Gallery的整体架构
- Android ORM应用开发框架KJFrameForAndroid使用详解
- BZOJ 3612 HEOI2014 大工程 树链剖分求LCA的优越
- UILable,UIButton字体加粗
- 乱码终极解决大全
- Android初试--Android中的ContentProvider(3)
- httpd.conf配置后php7,出现apache无法启动的现象
- 递归写法总结