# Services don't start whith action=activateservices

**URL:** <https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774>\
**Category:** Rancher 1.x\
**Created:** [May 12, 2016, 6:15pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774 "2016-05-12T18:15:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [May 12, 2016, 6:15pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/1 "2016-05-12T18:15:19Z")

</div>

I’m trying to activate services using the Rancher API and it seems the exact same URL used in the UI is ignored if I use the API. From API view on a stack (environment), I can activateservices and it works as exepcted - the services all start up. But using the API externally, it seems to be ignored. I even opened up developer tools in my browser, and didn’t see any clue.

/v1/projects/1a133/environments/1e3085/?action=activateservices

Any ideas?

I’m falling back to the having the services start automatically when I create the stack, but I’d rather the the control.

All latest versions of everything…

---

<div class="post-metadata">

**Author:** ![aemneina](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/aemneina/32/1323_2.png) [@aemneina](https://forums.suse.com/u/aemneina)\
**Post date:** [May 13, 2016, 10:07pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/2 "2016-05-13T22:07:11Z")

</div>

Hey @ebishop, do you see anything in the rancher server logs? I was able to issue activate[/deactivate]services, using POST, just fine using the API… also running the latest.

Sample of my api command, using cURL:  
curl -X POST “[http://ENDPOINT/v1/projects/1a5/environments/1e4/?action=activateservices](http://ENDPOINT/v1/projects/1a5/environments/1e4/?action=activateservices)” -u APIKEY:SECRETKEY

---

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [May 13, 2016, 11:05pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/3 "2016-05-13T23:05:22Z")

</div>

I saw nothing in the logs. I worked around it by just activing each service in the stack (environment).

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [May 14, 2016, 2:58am UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/4 "2016-05-14T02:58:58Z")

</div>

Did it return 2xx? The only thing I can think of is that the action isn’t available in the state the stack is in, but you’d get a 405 back in that case.

---

<div class="post-metadata">

**Author:** ![ebishop](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ebishop](https://forums.suse.com/u/ebishop)\
**Post date:** [May 27, 2016, 12:34pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/5 "2016-05-27T12:34:25Z")

</div>

Docker 1.11 related…again - that’s my guess.

I’ve had a test running almost since I’ve been using Rancher, that adds a VM, creates and starts a service and then deletes the VM instance in Openstack. The inability to start a service was one problem. Rancher would also never delete VM instances when I deleted them in the UI or via the API. After rolling back to Docker 1.10.3, this test worked this morning for the first time in a few weeks. So I suspect this is another Docker 1.11 related issue.

I had assumed that there were undocumented API changes or something like that, and had given up on using Rancher to create VM in Openstack. So know I have some working code that creates and activates a service, so this one can be clsoed.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [May 27, 2016, 2:49pm UTC](https://forums.suse.com/t/services-dont-start-whith-action-activateservices/2774/6 "2016-05-27T14:49:02Z")

</div>

Closed on May 27, 2016, 2:49pm UTC


