Questions tagged [circusd]

Circus is a Python program that will let you run and watch multiple processes and sockets.

Circus is a process & socket manager. It can be used to monitor and control processes and sockets.

Circus can be driven via a command-line interface or programmatically through its Python API.

22 questions
6
votes
2 answers

Can not connect to websocket using django-channels , nginx on docker as services

I'm using docker compose to build a project with django, nginx as services. When I launch the daphne server, and a client tries to connect to the websocket server, I get this error: *1 recv() failed (104: Connection reset by peer) while reading…
3
votes
1 answer

Why circus server is not getting start/stop?

I am using circus server to run python program as a daemon process. But now circus is not getting started or stop or not even the status of the circus i get to know. I tried with the : sudo circusctl restart sudo circusctl…
user3141687
  • 159
  • 1
  • 4
  • 16
2
votes
1 answer

Why does Dramatiq fail to start in Docker-container?

I am trying to do a distributed task-queue Django-project with Dramatiq as the worker-library. I'm able to run the project without errors when doing it from the dev-environment, but getting cryptic FileNotFoundError when trying to run the built…
Toni Nurmi
  • 355
  • 4
  • 20
2
votes
0 answers

How to control running watches/processes in circus from Python

I am running few custom Python processes using circusd and ini file: [circus] endpoint = tcp://127.0.0.1:5555 pubsub_endpoint = tcp://127.0.0.1:5556 check_delay = 5 logoutput = /var/log/circus.log [watcher:test-worker] working_dir =…
Malay Sarkar
  • 411
  • 3
  • 9
2
votes
2 answers

Deploying Django with Virtualenv, Circus and Chaussette

I'm trying to run Django with Virtualenv, Circus and Chaussette, in a virtualhost with CentOS 7, but i keep getting this error when i run circusd circus.ini: (djenv)[root@localhost django]# circusd circus.ini 2014-09-01 22:06:38 circus[2406] [INFO]…
iDevFS
  • 483
  • 1
  • 10
  • 16
1
vote
1 answer

In Circus, the process and socket manager by mozilla, what is a singleton?

When configuring watchers, what would be the purpose of including both of these settings under a watching: singleton = True numprocess = 1 The documentation states that setting singleton has the following effect: singleton: If set to True, this…
AJ Venturella
  • 4,742
  • 4
  • 33
  • 62
1
vote
1 answer

Cannot start gunicorn under Circus

When I tried to run the gunicorn directly, it worked: gunicorn -b 127.0.0.1:8081 ecerp.wsgi --chdir /var/www/django/ecerp_set/demo/ecerp/ But I kept trying with failed when using circus. [circus] check_delay = 5 endpoint =…
Alfred Huang
  • 17,654
  • 32
  • 118
  • 189
1
vote
1 answer

How can I stop a server service in circus?

Does anybody know how to turn off services in circus? I'm able to start services by using this line cmd = /sbin/service mysqld restart but apparently when I turn off the watcher in circusctl the service is still running [root@devel1 bin]#…
user3746881
  • 51
  • 2
  • 9
1
vote
2 answers

Get Thin (bundle exec thin) to work with Circus

I'm using Circus as my supervisor for a Rails project, but I'm having some weird problem to make it work with Thin, the Ruby Server I chose. This is my circus.ini: [circus] check_delay = 5 [socket:server] host = 127.0.0.1 port =…
Lucas Sampaio
  • 1,568
  • 2
  • 18
  • 36
1
vote
1 answer

Cannot response a pdf file in circus

I have done to implement a print pdf function. I use pyramid, wkhtmltopdf and jinja2 to generate pdf. It works fine in gunicorn. However, when I deploy it to production (I use circusd to run in production), the function fails without any error…
Thinh Phan
  • 655
  • 1
  • 14
  • 27
0
votes
2 answers

How to run django's "python manage.py runserver" , celery's "celery -A app_name worker -l info" and redis-server in one command

I have recently started with django. And I started doing a small project. I've been using celery with redis worker. And every to use celery and redis I have to run the celery and redis server and then django server. Which is a bit lengthy process.…
bhargav_v
  • 25
  • 10
0
votes
1 answer

AttributeError: 'TApplicationException' object has no attribute 'result'

I've got this issue while running circus-serve locally and calling the service with circus-script. Tried different versions of circus and reinstalling dependant packages but nothing worked. Traceback (most recent call last): File…
0
votes
1 answer

Cannot start docker under circus

If I run sudo docker start redis, docker starts. But if I run sudo circusd --daemon circus.ini, it doesn't start. circus.ini [watcher:redis] cmd = docker start redis
user4550164
0
votes
1 answer

Why does Django not find my Docker-env variables?

I'm trying to do Django-project named dockerplayground with different configurations via Django-configurations. The goal is to set the configuration trough environmental variable during docker-build command. For some reason the Django-project can't…
Toni Nurmi
  • 355
  • 4
  • 20
0
votes
1 answer

circusd: import bash configuration

I'm running circusd from my command-line with the following config file: [circus] debug=True [watcher:flask] cmd=python --version [env:flask] PATH=$PATH The output is coming as Python 2.7.10. Currently, my .bashrc file contains an alias setting…
shashwat
  • 992
  • 1
  • 13
  • 27
1
2