Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploying the site locally #1237

Closed
MartinDelille opened this issue Sep 13, 2018 · 4 comments
Closed

Error when deploying the site locally #1237

MartinDelille opened this issue Sep 13, 2018 · 4 comments

Comments

@MartinDelille
Copy link
Contributor

I just updated my local repository and I have a problem when starting the site locally:

$ docker-compose up
Starting liberapaycom_db_1 ... done
Starting liberapaycom_web_1 ... done
Attaching to liberapaycom_db_1, liberapaycom_web_1
db_1   | LOG:  database system was shut down at 2018-09-04 08:21:03 UTC
db_1   | LOG:  MultiXact member wraparound protections are now enabled
db_1   | LOG:  database system is ready to accept connections
db_1   | LOG:  autovacuum launcher started
web_1  | [2018-09-13 13:24:03 +0000] [9] [INFO] Starting gunicorn 19.6.0
web_1  | [2018-09-13 13:24:03 +0000] [9] [INFO] Listening at: http://0.0.0.0:8339 (9)
web_1  | [2018-09-13 13:24:03 +0000] [9] [INFO] Using worker: sync
web_1  | [2018-09-13 13:24:03 +0000] [13] [INFO] Booting worker with pid: 13
web_1  | [2018-09-13 13:24:03 +0000] [15] [INFO] Booting worker with pid: 15
web_1  | [2018-09-13 13:24:05 +0000] [15] [ERROR] Exception in worker process
web_1  | Traceback (most recent call last):
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
web_1  |     worker.init_process()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
web_1  |     self.load_wsgi()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
web_1  |     self.wsgi = self.app.wsgi()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
web_1  |     self.callable = self.load()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
web_1  |     return self.load_wsgiapp()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
web_1  |     return util.import_app(self.app_uri)
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 357, in import_app
web_1  |     __import__(module)
web_1  |   File "/app/liberapay/main.py", line 21, in <module>
web_1  |     from liberapay import utils, wireup
web_1  |   File "/app/liberapay/wireup.py", line 34, in <module>
web_1  |     import liberapay.billing.payday
web_1  |   File "/app/liberapay/billing/payday.py", line 21, in <module>
web_1  |     from liberapay.billing.transactions import Money, transfer
web_1  |   File "/app/liberapay/billing/transactions.py", line 25, in <module>
web_1  |     from liberapay.models.participant import Participant
web_1  |   File "/app/liberapay/models/participant.py", line 71, in <module>
web_1  |     from liberapay.utils import (
web_1  |   File "/app/liberapay/utils/emails.py", line 5, in <module>
web_1  |     from dns.exception import DNSException
web_1  | ImportError: No module named dns.exception
web_1  | [2018-09-13 13:24:05 +0000] [13] [ERROR] Exception in worker process
web_1  | Traceback (most recent call last):
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
web_1  |     worker.init_process()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
web_1  |     self.load_wsgi()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
web_1  |     self.wsgi = self.app.wsgi()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
web_1  |     self.callable = self.load()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
web_1  |     return self.load_wsgiapp()
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
web_1  |     return util.import_app(self.app_uri)
web_1  |   File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 357, in import_app
web_1  |     __import__(module)
web_1  |   File "/app/liberapay/main.py", line 21, in <module>
web_1  |     from liberapay import utils, wireup
web_1  |   File "/app/liberapay/wireup.py", line 34, in <module>
web_1  |     import liberapay.billing.payday
web_1  |   File "/app/liberapay/billing/payday.py", line 21, in <module>
web_1  |     from liberapay.billing.transactions import Money, transfer
web_1  |   File "/app/liberapay/billing/transactions.py", line 25, in <module>
web_1  |     from liberapay.models.participant import Participant
web_1  |   File "/app/liberapay/models/participant.py", line 71, in <module>
web_1  |     from liberapay.utils import (
web_1  |   File "/app/liberapay/utils/emails.py", line 5, in <module>
web_1  |     from dns.exception import DNSException
web_1  | ImportError: No module named dns.exception
web_1  | [2018-09-13 13:24:05 +0000] [15] [INFO] Worker exiting (pid: 15)
web_1  | [2018-09-13 13:24:05 +0000] [13] [INFO] Worker exiting (pid: 13)
web_1  | [2018-09-13 13:24:35 +0000] [9] [INFO] Shutting down: Master
web_1  | [2018-09-13 13:24:35 +0000] [9] [INFO] Reason: Worker failed to boot.

It looks like I have a dependency problem. Any idea to fix that?

@mattbk
Copy link
Contributor

mattbk commented Sep 13, 2018

Yeah, you need to install that module. This was added in bd830c9#diff-ba951dcdfc393700974a4eb3449bdb50.

@MartinDelille
Copy link
Contributor Author

How?

@mattbk
Copy link
Contributor

mattbk commented Sep 13, 2018

Did you rebuild the Docker container since that commit?

# build the local container
docker-compose build

I would guess that is where the dependencies are installed.

@MartinDelille
Copy link
Contributor Author

No and it fixed the problem. Thanks again @mattbk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants