分享

求问Mitaka版dashboard的TIME_ZONE该怎么设定

按官方文档装到这时用浏览器能打开dashboard登录界面但登不上去,看错误日志提示如下
TIM图片20180326114209.png

因为看到中间error的时间差了八小时我怀疑是因为我把系统设置成北京时间的问题,于是想更改/etc/openstack-dashboard/local_settings.py 文件里的TIMEE_ZONE把时区改成北京时区(默认的是UTC),先后尝试了CCT,CST,MN,CN,UTC+8都报错ValueError,所以北京时间的时区代码到底是哪个啊

已有(4)人评论

跳转到指定楼层
howtodown 发表于 2018-3-26 15:37:52
这个应该跟openstack系统没有太大关系。openstack默认是utc。如果改变都没有任何改变。核实下面两个方面:
1.看下自己修改的是否生效了。

2.Linux系统时区看下。也就是你的本地时间。
回复

使用道具 举报

sssvssos 发表于 2018-3-26 17:35:38
howtodown 发表于 2018-3-26 15:37
这个应该跟openstack系统没有太大关系。openstack默认是utc。如果改变都没有任何改变。核实下面两个方面:
...

最后确定是Asia/Shanghai了,但还是登录不上去,每次登陆都会死机,重启后查看错误日志,时间对上了,但错误还是没变,如下[mw_shl_code=applescript,true][Mon Mar 26 16:11:56.654755 2018] [mpm_event:notice] [pid 3435:tid 140633922893696] AH00493: SIGUSR1 received.  Doing graceful restart
[Mon Mar 26 16:11:57.439090 2018] [mpm_event:notice] [pid 3435:tid 140633922893696] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Mar 26 16:11:57.439169 2018] [core:notice] [pid 3435:tid 140633922893696] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 16:13:16.711263 2018] [:error] [pid 4370:tid 140633819145984] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Mar 26 16:13:16.711661 2018] [:error] [pid 4369:tid 140633785575168] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.[/mw_shl_code]

参考网上的帖子把配置文件里的SESSION_ENGINE = 'django.contrib.sessions.backends.cache'改成SESSION_ENGINE = 'django.contrib.sessions.backends.file' 后又出现了下面的错误
[mw_shl_code=applescript,true][Mon Mar 26 15:51:00.836889 2018] [mpm_event:notice] [pid 3681:tid 140697438721920] AH00491: caught SIGTERM, shutting down
[Mon Mar 26 15:56:23.645096 2018] [mpm_event:notice] [pid 3962:tid 139908442879872] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Mar 26 15:56:23.702804 2018] [core:notice] [pid 3962:tid 139908442879872] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 15:58:31.779017 2018] [:error] [pid 3967:tid 139908272191232] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Mar 26 15:59:09.681212 2018] [:error] [pid 3966:tid 139908322547456] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Mar 26 15:59:23.977111 2018] [:error] [pid 3968:tid 139908339332864] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Mar 26 16:00:42.280453 2018] [:error] [pid 3966:tid 139908330940160] Login successful for user "admin".
[Mon Mar 26 16:03:17.867625 2018] [:error] [pid 3967:tid 139908272191232] Unable to retrieve Domain: 6cd1b73789b94d9d834dcefd574b5c6a
[Mon Mar 26 16:03:21.162139 2018] [core:warn] [pid 3962:tid 139908442879872] AH00045: child process 3980 still did not exit, sending a SIGTERM
[Mon Mar 26 16:03:23.165181 2018] [core:warn] [pid 3962:tid 139908442879872] AH00045: child process 3980 still did not exit, sending a SIGTERM
[Mon Mar 26 16:03:25.169394 2018] [core:warn] [pid 3962:tid 139908442879872] AH00045: child process 3980 still did not exit, sending a SIGTERM
[Mon Mar 26 16:03:27.173152 2018] [core:error] [pid 3962:tid 139908442879872] AH00046: child process 3980 still did not exit, sending a SIGKILL
[/mw_shl_code]

共同点是输入账号密码点登陆后一直没反应,然后慢慢的就死机了,还是不知道是哪里的问题


回复

使用道具 举报

einhep 发表于 2018-3-26 17:45:48
sssvssos 发表于 2018-3-26 17:35
最后确定是Asia/Shanghai了,但还是登录不上去,每次登陆都会死机,重启后查看错误日志,时间对上了,但 ...

登陆成功了,但是找不到域Domain
看下环境变量,是怎么设置Domain的。

回复

使用道具 举报

sssvssos 发表于 2018-3-27 17:41:05
einhep 发表于 2018-3-26 17:45
登陆成功了,但是找不到域Domain
看下环境变量,是怎么设置Domain的。

i就是default啊,ID也是对着的,不过我想先解决死机的问题,应该是child process 3980 still did not exit, sending a SIGKILL 这块出现死循环了,查了一圈还是不知道怎么解决

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条