Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to deploy socorro locally

95 views
Skip to first unread message

unive...@gmail.com

unread,
Jan 18, 2018, 10:43:04 PM1/18/18
to
Hi everybody, I'm a developer and trying to install socorro for local using.

I cloned it from github and install all the requirements to make it passed the "make" phase.

But I'm confusing about how to do the next. Which script to call to make the whole socorro to run like crash-stats.mozilla.com

Any help is welcome!

Help me please, I'm trapping within all day long :(

Алексей Акимов

unread,
Jan 19, 2018, 8:53:17 AM1/19/18
to unive...@gmail.com, tools-...@lists.mozilla.org
Hi.

The easiest way I think would be start from Getting Started Docs [1].
This will help you to run Socorro localy with docker-compose.

Then I'll recommend you other pages of Socorro documentation [2].

If you wan to run Socorro without Docker it would take time. Since Socorro
has 4 components (Antenna-collector, processor, webapp, cron) you'll need
to configure each of them properly. It also heavily relies on RabbitMQ,
Postgresql and ElasticSearch 1.4.
It that case I recommend you to look through ./docker [3] folder as an
example of simple configuration (especially *.env files).

[1] https://socorro.readthedocs.io/en/latest/gettingstarted.html
<https://socorro.readthedocs.io/en/latest/gettingstarted.html>
[2] https://socorro.readthedocs.io/en/latest/index.html
[3] https://github.com/mozilla-services/socorro/tree/master/docker



Best regards,
Alexey Akimov.

E-mail: akimo...@gmail.com
> _______________________________________________
> tools-socorro mailing list
> tools-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/tools-socorro
>

William Kahn-Greene

unread,
Jan 19, 2018, 9:15:50 AM1/19/18
to unive...@gmail.com, tools-...@lists.mozilla.org
Hi!

I agree with Alexey in that following the Getting Started docs should
get you a local development environment that works just like the Crash
Stats site out-of-the-box with no additional configuration needed.

The Crash Stats site that you see is run by the webapp component. The
documentation for that is here:

https://socorro.readthedocs.io/en/latest/components/webapp.html

This is the best venue for asking questions about how to run Socorro
for a local development environment.

Hope that helps!

/will

On Fri, Jan 19, 2018 at 8:52 AM, Алексей Акимов <akimo...@gmail.com> wrote:
> Hi.
>
> The easiest way I think would be start from Getting Started Docs [1].
> This will help you to run Socorro localy with docker-compose.
>
> Then I'll recommend you other pages of Socorro documentation [2].
>
> If you wan to run Socorro without Docker it would take time. Since Socorro
> has 4 components (Antenna-collector, processor, webapp, cron) you'll need
> to configure each of them properly. It also heavily relies on RabbitMQ,
> Postgresql and ElasticSearch 1.4.
> It that case I recommend you to look through ./docker [3] folder as an
> example of simple configuration (especially *.env files).
>
> [1] https://socorro.readthedocs.io/en/latest/gettingstarted.html
> <https://socorro.readthedocs.io/en/latest/gettingstarted.html>
> [2] https://socorro.readthedocs.io/en/latest/index.html
> [3] https://github.com/mozilla-services/socorro/tree/master/docker
>
>
>
> Best regards,
> Alexey Akimov.
>
> E-mail: akimo...@gmail.com
>
> On Fri, Jan 19, 2018 at 6:43 AM, <unive...@gmail.com> wrote:
>

unive...@gmail.com

unread,
Jan 21, 2018, 8:46:29 PM1/21/18
to
Thank you Alex, I'll try it right now.

在 2018年1月19日星期五 UTC+8下午9:53:17,Алексей Акимов写道:

unive...@gmail.com

unread,
Jan 21, 2018, 8:49:50 PM1/21/18
to
Yeah I figured out it and I have some knowledge about Django also socorro's webapp is based on Django that I know.

Yesterday I've made the webapp worked! But how other components work together I don't know until Alex's reply, I'll try it.

Thank you Will! :)

在 2018年1月19日星期五 UTC+8下午10:15:50,William Kahn-Greene写道:

unive...@gmail.com

unread,
Jan 21, 2018, 11:20:28 PM1/21/18
to
Yes Alex, I run docker-compose in the root directory of the repo

and also fix the my.env not exist error, but where the local/socorro_base ?

The script can't run :(
在 2018年1月19日星期五 UTC+8下午9:53:17,Алексей Акимов写道:

William Kahn-Greene

unread,
Jan 22, 2018, 11:04:20 AM1/22/18
to yupeng zhang, tools-...@lists.mozilla.org
If my.env doesn't exist, it probably means you didn't run "make
dockerbuild" which builds all the docker containers required
(including local/socorro_base) and generates the my.env file.

Hope that helps!

/will

unive...@gmail.com

unread,
Jan 23, 2018, 12:12:29 AM1/23/18
to
Thank you Will, I'm trying it.

Run `make` is OK but `make dockerbuild` will show me:

make: build: Command not found
Makefile:30: recipe for target 'dockerbuild' failed
make: *** [dockerbuild] Error 127

:(

在 2018年1月23日星期二 UTC+8上午12:04:20,William Kahn-Greene写道:

Miles Crabill

unread,
Jan 23, 2018, 12:29:37 AM1/23/18
to unive...@gmail.com, tools-...@lists.mozilla.org
It sounds like you don't have docker-compose installed or that it cannot be
found in your PATH. There are docs for installing compose here
<https://docs.docker.com/compose/install/>.
If you continue to have issues, try posting the output of these commands:

docker-compose -v
docker -v

miles

unive...@gmail.com

unread,
Jan 23, 2018, 2:39:52 AM1/23/18
to
OK, I'm trying it. :) Thank you for your reply.

在 2018年1月23日星期二 UTC+8下午1:29:37,Miles Crabill写道:
0 new messages