Permission denied: '/var/log/NOVA/nova-manage.log'

Source: Internet
Author: User
nova db create notice:xxxxxxx su -s /bin/sh -c "nova-manage db_sync" nova  xxxxxxcorrect 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
20:07:08. 540 23121 critical Nova [-] novaexception: Version shocould 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]/] #



This article is from the "gray13" blog, please be sure to keep this source http://gray13.blog.51cto.com/1001206/1534270

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.