Openstack-glance-api.service start request repeated too quickly, refusing to start

Source: Internet
Author: User

Descriptive narrative of the problem

OpenStack J Version Centos7 deployment
Restarting the service does not come up, the log does not error. Take the glance service as an example, such as the following:

# systemctl start Openstack-glance-api.service openstack-glance-registry.serviceJob forOpenstack-glance-api.service failed. See' systemctl status Openstack-glance-api.service 'and' Journalctl-xn '  forDetails.# systemctl Status Openstack-glance-api.serviceOpenstack-glance-api.service-openstack Image Service (code-named Glance) API Server loaded:loaded (/usr/lib/systemd/s Ystem/openstack-glance-api.service; Enabled) active:failed (result:start-limit) since Sat -- -- One  A: -: +EDT; +S ago Process:11841Execstart=/usr/bin/glance-api (code=exited, status=1/failure) Main PID:11841(Code=exited, status=1/failure) Jul One  A: -: +node- thesystemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server. Jul One  A: -: +node- thesystemd[1]: Unit Openstack-glance-api.service entered failed state. Jul One  A: -: +node- thesystemd[1]: Openstack-glance-api.service holdoff time over, scheduling restart. Jul One  A: -: +node- thesystemd[1]: Stopping OpenStack Image Service (code-named Glance) API server ... Jul One  A: -: +node- thesystemd[1]: Starting OpenStack Image Service (code-named Glance) API server ... Jul One  A: -: +node- thesystemd[1]: Openstack-glance-api.service start request repeated too quickly, refusing to start. Jul One  A: -: +node- thesystemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server. Jul One  A: -: +node- thesystemd[1]: Unit Openstack-glance-api.service entered failed state.
Error analysis

A similar error occurred before MARIADB, but journalctl -xn after the input, a configuration error is displayed. my.cnfthe correction will be able to, but Glance report this error how to solve? I haven't done anything yet, he said, connected too fast. Helpless under the thought of "Restart try, not on the points." Restart it, restart also useless, then remove the glance components, delete the database, delete the Keystone link again, the result is still no eggs.

Similar services do not come from the situation, according to personal experience such as the following summary

1. Configuration document error, revise configuration document, start again 2. There is a problem with the permissions of the relevant directory/file. View permissions, change permissions error resolution

Because I am the root permission to operate, so the synchronization of the database is often used is glance-manage db_sync not a problem this time, synchronization is successful, the problem can not find the reason is only to crash. Google didn't find it either. When I entered the su -s /bin/sh -c "glance-manage db_sync" glance Fox tail finally showed up. Synchronization error, error message:

Traceback (most recent): File"/usr/bin/glance-manage", lineTen,inch<module> Sys.exit (Main ()) File"/usr/lib/python2.7/site-packages/glance/cmd/manage.py", line273,inchMain Log.setup (' glance ') File"/usr/lib/python2.7/site-packages/glance/openstack/common/log.py", line460,inchSetup _setup_logging_from_conf (product_name, version) File"/usr/lib/python2.7/site-packages/glance/openstack/common/log.py", line529,inch_setup_logging_from_conf FileLog = Logging.handlers.WatchedFileHandler (logpath) File"/usr/lib64/python2.7/logging/handlers.py", line392,inch__init__ logging. filehandler.__init__ (self, filename, mode, encoding, delay) File"/usr/lib64/python2.7/logging/__init__.py", line902,inch__init__ streamhandler.__init__ (Self, Self._open ()) File"/usr/lib64/python2.7/logging/__init__.py", line925,inch_open stream = open (Self.basefilename, Self.mode) IOError: [Errno -] Permission denied:'/var/log/glance/api.log '

api.logPermissions have a problem, view

# ll /var/log/glance/api.log                                                          1147831122:25 /var/log/glance/api.log

Sure enough, change it to glance Group glance, and synchronize again. Restart again. Ok

# chown -R glance:glance /var/log/glance/api.log# su -s /bin/sh -c "glance-manage db_sync" glance#  systemctl start openstack-glance-api.service 

Openstack-glance-api.service start request repeated too quickly, refusing to start

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.