permission denied: '/var/log/nova/nova-manage.log'

nova db create notice:

xxxxxxx su -s /bin/sh -c "nova-manage db_sync" nova  xxxxxx
correct one:
su -s /bin/sh -c "nova-manage db sync" nova

[[email protected] /]# su -s /bin/sh -c "nova-manage db sync" nova
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/nova/cmd/manage.py", line 1322, in main
    logging.setup("nova")
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/log.py", line 438, in setup
    _setup_logging_from_conf()
  File "/usr/lib/python2.6/site-packages/nova/openstack/common/log.py", line 502, in _setup_logging_from_conf
    filelog = logging.handlers.WatchedFileHandler(logpath)
  File "/usr/lib64/python2.6/logging/handlers.py", line 377, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.6/logging/__init__.py", line 827, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.6/logging/__init__.py", line 846, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: ‘/var/log/nova/nova-manage.log‘
[[email protected] /]# cat /var/log/nova/nova-manage.log
2014-08-02 20:07:08.540 23121 CRITICAL nova [-] NovaException: version should be an integer

[[email protected] /]# chmod 777 /var/log/nova/nova-manage.log
[[email protected] /]# su -s /bin/sh -c "nova-manage db sync" nova
[[email protected] /]#

permission denied: '/var/log/nova/nova-manage.log',布布扣,bubuko.com

permission denied: '/var/log/nova/nova-manage.log'

时间: 2024-10-25 10:29:36

permission denied: '/var/log/nova/nova-manage.log'的相关文章

fix [Errno 13] Permission denied: &#39;/var/log/glance/api.log&#39;

[email protected] glance]# su -s /bin/sh -c "glance-manage db_sync" glanceTraceback (most recent call last):  File "/usr/bin/glance-manage", line 10, in <module>    sys.exit(main())  File "/usr/lib/python2.6/site-packages/gl

permission denied部署django 遇到没有python_egg_cache的问题解决

检查/etc/httpd/logs/error_log,看是否有如下错误: [Errno 13] Permission denied: '/var/www/.python-eggs' 这时候需要编辑“/search/lizhigang/mysite/mysite/wsgi.py”,对“PYTHON_EGG_CACHE”进行设置: import osos.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings&

Linux 下 squid 服务启动失败,无法写入cache.log,Permission denied 解决方法

突然 squid 就启动不了了,打开 squid.out,发现报错: WARNING: Cannot write log file: /var/log/squid/cache.log /var/log/squid/cache.log: Permission denied messages will be sent to 'stderr'. 关键字:Permission denied Permission - 允许,批准 Denied - Deny过去式,拒绝 直接 cd 进入 /var/log/

爬虫之PermissionError: [Errno 13] Permission denied: &#39;ghostdriver.log&#39;问题解决

1. 问题提出 在定制开发爬虫之时,我们会常常需要模拟浏览器进行页面的访问和操作, PhantomJS就是这样一个解决方案,帮助我们模拟用户的操作和访问.在使用该框架之时,发现了如下错误信息: 平台附属信息:  Python 3.5,   windows 7. driver = webdriver.PhantomJS(executable_path=r'D:/Program Files/phantomjs-2.1.1-windows/bin/phantomjs') Traceback (most

php fpm安装curl后,nginx出现connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied)的错误

这里选择直接apt-get安装,因为比起自己编译简单多了,不需要自己配置什么 #sudo apt-get install curl libcurl3 libcurl3-dev php5-curl 安装后重启nginx #nginx -s reload 岂知出现错误,php全部不能访问,查看错误日志如下: 2014/07/24 23:59:46 [crit] 40455#0: *229072 connect() to unix:/var/run/php5-fpm.sock failed (13:

rabbitmq之HTTP access denied: user &#39;guest&#39; - User can only log in via localhost问题

问题: 昨天安装rabbitmq(3.3.4版本)服务,并启用rabbitmq_management插件去管理rabbitmq服务,但是在访问管理界面使用guest用户登录时出现login failed错误. 到服务器上查询日志显示出现错误的原因是:HTTP access denied: user 'guest' - User can only log in via localhost. 解决: rabbitmq从3.3.0开始禁止使用guest/guest权限通过除localhost外的访问.

输入docker ps 报错信息处理Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: permission denied.

完整错误信息 Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS? 原因: 1.未使用root用户进行操作 2.未让docker以daemon方式运行/bin/bash 解决方案: 1.没有使用root 在控制台上切

Failed to start NodeManager caused by &quot;/var/lib/hadoop-yarn/yarn-nm-recovery/yarn-nm-state/LOCK: Permission denied&quot;

Hadoop 安装步骤: 0. 安装前准备(节点机器,环境设置,yum源设置) 1. 配置并安装Cloudera-Manager 2. 启动 CM 服务 3. 安装CDH,并配置集群 4. 启动 在启动Yarn时, NodeManager 启动失败.接下来查看对应的日志:Cloudera Manager 主页,点击YARN项操作,选择"实例",点击角色类型,进入NodeManager 主页,在日志文件下拉框有stdout,stderr,角色日志文件,建议查看角色日志文件. 下面是角色日

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/json: dial unix /var/run/docker.sock: conne

使用docker报如下错误信息: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/images/json: dial unix /var/run/docker.sock: connect: permission denied 过程:早先是以root