Compiling problem about my heroku deployment

61 views
Skip to first unread message

Mert Öztürk

unread,
Jan 2, 2015, 6:58:17 AM1/2/15
to chica...@googlegroups.com
Hello,

I am developing my own project with Erlang and ChicagoBoss with ubuntu for 2 months and everything works fine in my local. So i decided to deploy the work i have done so far to test on other computers. Actually i am struggling with the heroku deployment for 1 week and still have no result.
What i have done so far is, i make a new project with ChicagoBoss and changed the app layout to the same as: https://github.com/vorn/ChicagoBoss-on-Heroku
My app compile without any errors and start in production mode as i run run.sh in my local. For heroku, i will write what i have done to deploy my app succeffully;

1- heroku create mynewapp -s cedar
2- heroku config:add BUILDPACK_URL="https://github.com/archaelus/heroku-buildpack-erlang.git" -a mynewapp
3-git push heroku master

I deploy the app without any errors with the OTP selection. (I tried all the versions). After deployment done i watch the logs with heroku logs -t and i put them in a txt file here. 
As you can see from the text i get the following errors while making ChicagoBoss deps folder. And i have no results and no deployments.
Sometimes it writes that starting boss in production mode but after completing 60 seconds it gets a timeout and crash happens.

Any help would be great.

Thanks
Mert


heroku-logs.txt
Message has been deleted

Mert Öztürk

unread,
Jan 2, 2015, 8:06:59 AM1/2/15
to chica...@googlegroups.com
I think it works fine with the erlang selected verison R16B03-1 but now the main problem is pulling all files from git and compiling exceeds the given time of 60 seconds. 
Any idea?

Thanks
Mert

2 Ocak 2015 Cuma 13:58:17 UTC+2 tarihinde Mert Öztürk yazdı:

Kai Janson

unread,
Jan 2, 2015, 8:15:05 AM1/2/15
to chica...@googlegroups.com
The file BSON.erl cannot be parsed.  That's where the compilation stops.
Take a peek at that file ...

Sent from my non-google-device
--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/58f68ca4-03ee-4ed4-a402-168bd1785137%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<heroku-logs.txt>

Mert Öztürk

unread,
Jan 2, 2015, 8:20:24 AM1/2/15
to chica...@googlegroups.com
Hello Kai,

I am now using it with the Erlang version:  R16B03-1
That problem is solved but other problems appeared at the same time. After trying about 10 times i came to an end on the server like this below;

2015-01-02T13:16:21.009953+00:00 app[web.1]: Compiled src/boss/boss_web_controller_util.erl
2015-01-02T13:16:21.073264+00:00 app[web.1]: Compiled src/tests/ct/make_app_SUITE.erl
2015-01-02T13:16:21.115936+00:00 app[web.1]: Compiled src/boss/boss_websocket_router.erl
2015-01-02T13:16:21.588965+00:00 app[web.1]: Compiled src/boss/boss_html_errors_template.dtl
2015-01-02T13:16:21.602354+00:00 app[web.1]: Compiled src/boss/boss_html_doc_template.dtl
2015-01-02T13:16:21.747781+00:00 app[web.1]: *********************************************************************************
2015-01-02T13:16:21.750213+00:00 app[web.1]: CONGRATULATIONS! You've successfully built ChicagoBoss. Pat yourself on the back.
2015-01-02T13:16:21.752580+00:00 app[web.1]: If you're unsure what to do next, try making a new app with:
2015-01-02T13:16:21.754999+00:00 app[web.1]:     make app PROJECT=my_project_name
2015-01-02T13:16:21.757436+00:00 app[web.1]: *********************************************************************************
2015-01-02T13:16:21.763536+00:00 app[web.1]: starting boss in production mode...
2015-01-02T13:16:21.592122+00:00 app[web.1]: Compiled src/boss/boss_html_error_template.dtl
2015-01-02T13:16:21.746528+00:00 app[web.1]: 
2015-01-02T13:16:21.748962+00:00 app[web.1]: 
2015-01-02T13:16:21.751391+00:00 app[web.1]: 
2015-01-02T13:16:21.753744+00:00 app[web.1]: 
2015-01-02T13:16:21.756158+00:00 app[web.1]: 
2015-01-02T13:16:21.758675+00:00 app[web.1]: 
2015-01-02T13:16:25.244379+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-01-02T13:16:25.244379+00:00 heroku[web.1]: Stopping process with SIGKILL
2015-01-02T13:16:25.955523+00:00 heroku[web.1]: Process exited with status 137
2015-01-02T13:16:25.971137+00:00 heroku[web.1]: State changed from starting to crashed

Altohugh boss starts in production mode, the server is not becoming up. It waits the remaining 2 second out of 60 and crashes because of timeout error.
Do you have any idea about this?

Thanks
Mert

2 Ocak 2015 Cuma 15:15:05 UTC+2 tarihinde Kai Janson yazdı:
Message has been deleted
Message has been deleted

Dmitry Polyanovsky

unread,
Jan 3, 2015, 4:09:23 AM1/3/15
to chica...@googlegroups.com
Hi,

in case you are limited by 60 seconds, try to commit CB with all deps downloaded or even compiled. At the end, it's only your project you update frequently, not CB.

Mert Öztürk

unread,
Jan 3, 2015, 4:14:03 AM1/3/15
to chica...@googlegroups.com
Dear Dmitry,

Thanks for your answer. As deps are submodules i had hard time tracking them and failed.(maybe this is related with my git experience)
I gave up and load my application on vps (digitalocean). Now it is working fine.

Mert

--
You received this message because you are subscribed to a topic in the Google Groups "ChicagoBoss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chicagoboss/OlbDgaDxwFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chicagoboss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages