Problem when starting a newly deployed app with StrongLoop Process Manager.

550 views
Skip to first unread message

Rafael Vega

unread,
Aug 12, 2015, 11:31:46 AM8/12/15
to LoopbackJS
Hi,

I've followed the instructions in the documentation to deploy a LoopBack app with the StrongLoop Process Manager. Here's what I've done so far:

On the remote server (Debian 8):
1. installed node, strongloop, strong-pm
2. Installed and started the strong-pm service using systemd
3. slc ctl status shows "no services exist" which is ok at this point.

On my local machine (Ubuntu 14.04):
1. Installed node, strongloop, strong-pm.
2. Created an API with a postgres back-end, commited it to git.
3. `slc build` created a the "deploy" git branch.
4. `slc deploy http+ssl://my.server` echoed "Deployed `deploy` as `my-app` to http+ssl://my.server

Back on the server
I verified that some entries were created in /var/lib/strong-pm/strong-pm.json. Notice there is no path for where the app files were copied.

"ServerService": {
 
"1": "{\"name\":\"cantoalegre-test\",\"env\":{},\"_groups\":[{\"name\":\"default\",\"scale\":1,\"id\":1}],\"id\":1}"},
}

And also the app files were copied to /var/lib/strong-pm/svc/1/work/...


Back on the local machine:

`slc ctl -C http+ssl://my.server start my-app` gives me the following error:

Service: "my-app"
   
Instance  Response
       
1     no current application
Command "start" on "http://127.0.0.1:46840" failed with error


Other things I've tried:
1. Ran strong-pm manually on my local machine, cd to app, slc start -> App runs fine on process manager.
2. Manually cloned app repo on server in /home/user/my-app, started process manager service, cd to app, slc start -> App runs fine on process manager. Entry created on strong-pm.json file does include path of the app. However, subsequent deploys from local machine do not actually start the app from the newly deployed dir (/var/lib/strong-pm/svc/1/work)

Can some one please help me figure out what is going wrong in this set up? I want to automate my deploys with the Process Manager.

One aditional question: Systemd starts the PM service on machine boot, but, how do you start an app within PM on machine boot?




Rafael Vega

unread,
Aug 12, 2015, 1:17:06 PM8/12/15
to loopb...@googlegroups.com
I think I have found a problem in the deploy utilities. Cross posting this to  https://github.com/strongloop/strong-deploy/issues/50


Chandrika Gole

unread,
Aug 12, 2015, 2:21:38 PM8/12/15
to LoopbackJS
When pm starts up on machine boot, it will restart all the apps.
Still looking into your deploy issue. 

Rafael Vega

unread,
Aug 13, 2015, 11:09:34 AM8/13/15
to LoopbackJS
Solved. See the comments at https://github.com/strongloop/strong-deploy/issues/50
Thanks! :)

Puneet Goyal

unread,
Apr 1, 2016, 1:10:12 AM4/1/16
to LoopbackJS
Reply all
Reply to author
Forward
0 new messages