Ask Your Question

restart openstack service

asked 2016-01-07 02:21:22 -0600

itsme gravatar image

I am using devstack setup in my development environment.

I need the safest way to restarting a particular service in Devstack.

I have tried all the possible way:

I tried the screen -r command it simply shows an error message as follows:

root@devstack:/opt/devstack# screen -r
There is no screen to be resumed.

Then I have tried to open the screen as stack user, then it is showing the error as follows:

stack@devstack:/opt/devstack$ screen -r
Cannot open your terminal '/dev/pts/43' - please check.

So that I went with the final option root@devstack:/opt/devstack# ./

But in this case, after this command, I am getting the error as follows when I am accessing the devstack horizon.

root@devstack:/opt/devstack# ./

Each and every horizon page I am getting an error as above.

I can see that in screen there are many errors in many services, Someone let me know the easy and safest way for restarting of services.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2016-01-07 03:59:19 -0600

Prateek K gravatar image

updated 2016-01-07 04:00:09 -0600

There are two ways to resolve this:

1. Sign out and properly connect / sign in as the user you wish to use.(In your case login with stack itself, dont go with root and then su to stack)
2. (Only use when step 1 does not work) Run script /dev/null to own the shell ; then try screen again.
edit flag offensive delete link more


thank you, this one worked :). I ssh as stack user, everything worked fine

聪明健康 gravatar image聪明健康 ( 2016-03-04 20:46:47 -0600 )edit

answered 2016-01-07 04:30:47 -0600

itsme gravatar image

I can be able to find the solution.

I have switched to stack user and then changed the permission of screen.

So that I can be able to join the session using screen -r command.

sudo chmod 777 /dev/pts/43

It worked as I expected.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-07 02:21:22 -0600

Seen: 976 times

Last updated: Jan 07 '16