WebSocket connection to 'ws://projects.domain.com/events' failed: Error during WebSocket handshake: Unexpected response code: 502
2015/07/31 16:36:37 [error] 13809#0: *249 connect() failed (111: Connection refused) while connecting to upstream, client: 50.253.xxx.xxx, server: _, request: "GET /events HTTP/1.1", upstream: "http://127.0.0.1:8888/events", host: "projects.domain.com"
ERROR:2015-07-31 17:09:41,847: Internal Server Error: /api/v1/issuesTraceback (most recent call last): File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/handlers/base.py", line 111, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/taiga/taiga-back/taiga/base/api/viewsets.py", line 81, in view return self.dispatch(request, *args, **kwargs) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/views/decorators/csrf.py", line 57, in wrapped_view return view_func(*args, **kwargs) File "/home/taiga/taiga-back/taiga/base/api/views.py", line 420, in dispatch response = self.handle_exception(exc) File "/home/taiga/taiga-back/taiga/base/api/views.py", line 417, in dispatch response = handler(request, *args, **kwargs) File "/home/taiga/taiga-back/taiga/base/api/mixins.py", line 72, in create self.object = serializer.save(force_insert=True) File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 1055, in save self.object = super().save(**kwargs) File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 614, in save self.save_object(self.object, **kwargs) File "/home/taiga/taiga-back/taiga/base/api/serializers.py", line 1073, in save_object obj.save(**kwargs) File "/home/taiga/taiga-back/taiga/projects/issues/models.py", line 93, in save return super().save(*args, **kwargs) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/base.py", line 589, in save force_update=force_update, update_fields=update_fields) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/base.py", line 626, in save_base update_fields=update_fields, raw=raw, using=using) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/dispatch/dispatcher.py", line 198, in send response = receiver(signal=self, sender=sender, **named) File "/home/taiga/taiga-back/taiga/projects/references/models.py", line 92, in attach_sequence instance.save(update_fields=['ref']) File "/home/taiga/taiga-back/taiga/projects/issues/models.py", line 93, in save return super().save(*args, **kwargs) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/base.py", line 589, in save force_update=force_update, update_fields=update_fields) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/db/models/base.py", line 626, in save_base update_fields=update_fields, raw=raw, using=using) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/dispatch/dispatcher.py", line 198, in send response = receiver(signal=self, sender=sender, **named) File "/home/taiga/taiga-back/taiga/events/signal_handlers.py", line 43, in on_save_any_model connection.on_commit(emit_event) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/transaction_hooks/mixin.py", line 31, in on_commit func() File "/home/taiga/taiga-back/taiga/events/signal_handlers.py", line 42, in <lambda> emit_event = lambda: events.emit_event_for_model(instance, sessionid=sesionid, type=type) File "/home/taiga/taiga-back/taiga/events/events.py", line 78, in emit_event_for_model data=data) File "/home/taiga/taiga-back/taiga/events/events.py", line 47, in emit_event channel=channel) File "/home/taiga/taiga-back/taiga/events/backends/rabbitmq.py", line 51, in emit_event connection = _make_rabbitmq_connection(self.url) File "/home/taiga/taiga-back/taiga/events/backends/rabbitmq.py", line 43, in _make_rabbitmq_connection password=password, virtual_host=vhost[1:]) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/connection.py", line 180, in __init__ (10, 30), # tune File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/abstract_channel.py", line 67, in wait self.channel_id, allowed_methods) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/connection.py", line 240, in _wait_method self.method_reader.read_method() File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/method_framing.py", line 189, in read_method raise m File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/method_framing.py", line 107, in _next_method frame_type, channel, payload = read_frame() File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/transport.py", line 154, in read_frame frame_header = read(7, True) File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/amqp/transport.py", line 277, in _read s = recv(n - len(rbuf))ConnectionResetError: [Errno 104] Connection reset by peer
npm install
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/0f4e2cba-8d6e-44fc-a212-a13734509c4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| Alejandro Alonso Fernández CIO & Co-founder www.kaleidos.net/FC8EAC/ |
GET /api/v1/user-storage/3632e6ff1d72a92b5baa31e024734f27f1b027c5
HTTP 404 NOT FOUND
Content-Type: application/json
Vary: Accept
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
{
"_error_message": "No StorageEntry matches the given query."
}
angular.js:12221 Initialize navigation urlsangular.js:12221 Initialize api urlsangular.js:12221 Using the default logging exception handler.angular.js:12221 Initialize resourcesangular.js:12221 Initialize applicationangular.js:12221 Analytics: no acount id provided. Disabling.events.coffee:44 WebSocket connection to 'ws://projects.olympusat.com/events' failed: Error during WebSocket handshake: Unexpected response code: 502angular.js:12221 WebSocket error: [object Event](anonymous function) @ angular.js:12221EventsService.onError @ events.coffee:154bound @ lodash.js:729angular.js:12221 WebSocket closed.angular.js:10413 GET http://projects.olympusat.com/api/v1/user-storage/3632e6ff1d72a92b5baa31e024734f27f1b027c5 404 (NOT FOUND)startSymbol @ angular.js:10413sendReq @ angular.js:10232$get.serverRequest @ angular.js:9944processQueue @ angular.js:14454(anonymous function) @ angular.js:14470$get.Scope.$eval @ angular.js:15719$get.Scope.$digest @ angular.js:15530$get.Scope.$apply @ angular.js:15824(anonymous function) @ angular.js:16119completeOutstandingRequest @ angular.js:5370(anonymous function) @ angular.js:5642--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/703fe333-547e-41ae-ad33-90a69452d2a8%40googlegroups.com.
GET /api/v1/user-storage/f250e66cf068b06e308298a1bac5052c9e18eca9
HTTP 404 NOT FOUND
Content-Type: application/json
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Vary: Accept
{
"_error_message": "No StorageEntry matches the given query."
}
$ sudo ufw statusStatus: active
To Action From-- ------ ----22/tcp ALLOW Anywhere80/tcp ALLOW Anywhere443/tcp ALLOW Anywhere8001/tcp ALLOW Anywhere
8002/tcp ALLOW Anywhere
8003/tcp ALLOW Anywhere8888/tcp ALLOW Anywhere9000/tcp ALLOW Anywhere9001/tcp ALLOW Anywhere9002/tcp ALLOW Anywhere8001/tcp ALLOW Anywhere22/tcp (v6) ALLOW Anywhere (v6)80/tcp (v6) ALLOW Anywhere (v6)443/tcp (v6) ALLOW Anywhere (v6)8001/tcp (v6) ALLOW Anywhere ( v6 )
8002/tcp (v6) ALLOW Anywhere (v6)8003/tcp (v6) ALLOW Anywhere (v6)8888/tcp (v6) ALLOW Anywhere (v6)9000/tcp (v6) ALLOW Anywhere (v6)9001/tcp (v6) ALLOW Anywhere (v6)9002/tcp (v6) ALLOW Anywhere (v6)
server { listen 80 default_server; server_name _;
large_client_header_buffers 4 32k; client_max_body_size 50M; charset utf-8;
access_log /home/taiga/logs/nginx.access.log; error_log /home/taiga/logs/nginx.error.log;
# Frontend location / { root /home/taiga/taiga-front-dist/dist/; try_files $uri $uri/ /index.html; }
# Backend location /api { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8001/api; proxy_redirect off; }
# Django admin access (/admin/) location /admin { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8001$request_uri; proxy_redirect off; }
# Static files location /static { alias /home/taiga/taiga-back/static; }
# Media files location /media { alias /home/taiga/taiga-back/media; } # Events location /events { proxy_pass http://127.0.0.1:8888/events; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_connect_timeout 7d; proxy_send_timeout 7d; proxy_read_timeout 7d; }
}$ curl -I http://127.0.0.1:8888/eventscurl: (7) Failed to connect to 127.0.0.1 port 8888: Connection refused$ sudo netstat -tulpnActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 932/sshd tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1049/postgres tcp 0 0 127.0.0.1:8001 0.0.0.0:* LISTEN 1989/python3.4 tcp 0 0 0.0.0.0:48038 0.0.0.0:* LISTEN 1164/beam tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1308/redis-server 1tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3917/nginx tcp 0 0 127.0.0.1:5555 0.0.0.0:* LISTEN 741/python tcp 0 0 127.0.0.1:5556 0.0.0.0:* LISTEN 741/python tcp 0 0 127.0.0.1:5557 0.0.0.0:* LISTEN 1025/python tcp6 0 0 :::22 :::* LISTEN 932/sshd tcp6 0 0 :::5672 :::* LISTEN 1164/beam tcp6 0 0 :::4369 :::* LISTEN 1137/epmd udp 0 0 0.0.0.0:42526 0.0.0.0:* 602/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 602/dhclient udp 0 0 0.0.0.0:12027 0.0.0.0:* 741/python udp6 0 0 :::26638 :::* 602/dhclient { "url": "amqp://taiga:my_password@localhost:5672/taiga", "secret": "MY_SECRET_KEY", "webSocketServer": { "port": 8888 }}netstat -na | grep 8888
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/39b3133a-00ae-434d-bfa6-20126be461e7%40googlegroups.com.
$ netstat -na | grep 8888tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN --
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/c87d0859-039f-4a83-bb64-8e2935a7834e%40googlegroups.com.
coffee index.coffee
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/89bb6e3c-da25-465f-8747-b11426b1287d%40googlegroups.com.
[circus]check_delay = 5endpoint = tcp://127.0.0.1:5555pubsub_endpoint = tcp://127.0.0.1:5556statsd = true
[watcher:taiga]working_dir = /home/taiga/taiga-backcmd = gunicornargs = -w 3 -t 60 --pythonpath=. -b 127.0.0.1:8001 taiga.wsgiuid = taiganumprocesses = 1autostart = truesend_hup = truestdout_stream.class = FileStreamstdout_stream.filename = /home/taiga/logs/gunicorn.stdout.logstdout_stream.max_bytes = 10485760stdout_stream.backup_count = 4stderr_stream.class = FileStreamstderr_stream.filename = /home/taiga/logs/gunicorn.stderr.logstderr_stream.max_bytes = 10485760stderr_stream.backup_count = 4
[env:taiga]PATH = /home/taiga/.virtualenvs/taiga/bin:$PATHTERM=rxvt-256colorSHELL=/bin/bashUSER=taigaLANG=en_US.UTF-8HOME=/home/taigaPYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages
[watcher:taiga-celery]working_dir = /home/taiga/taiga-backcmd = celeryargs = -A taiga worker -c 4uid = taiganumprocesses = 1autostart = truesend_hup = truestdout_stream.class = FileStreamstdout_stream.filename = /home/taiga/logs/celery.stdout.logstdout_stream.max_bytes = 10485760stdout_stream.backup_count = 4stderr_stream.class = FileStreamstderr_stream.filename = /home/taiga/logs/celery.stderr.logstderr_stream.max_bytes = 10485760stderr_stream.backup_count = 4
[env:taiga-celery]PATH = /home/taiga/.virtualenvs/taiga/bin:$PATHTERM=rxvt-256colorSHELL=/bin/bashUSER=taigaLANG=en_US.UTF-8HOME=/home/taigaPYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages
[watcher:taiga-events]working_dir = /home/taiga/taiga-eventscmd = /usr/lib/node_modules/coffee-script/bin/coffeeargs = index.coffeeuid = taiganumprocesses = 1autostart = truesend_hup = truestdout_stream.class = FileStreamstdout_stream.filename = /home/taiga/logs/taigaevents.stdout.logstdout_stream.max_bytes = 10485760stdout_stream.backup_count = 12stderr_stream.class = FileStreamstderr_stream.filename = /home/taiga/logs/taigaevents.stderr.logstderr_stream.max_bytes = 10485760stderr_stream.backup_count = 12
[env:taiga-events]PATH = /home/taiga/.virtualenvs/taiga/bin:$PATHTERM=rxvt-256colorSHELL=/bin/bashUSER=taigaLANG=en_US.UTF-8HOME=/home/taigaPYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages
[watcher:taiga-celery]working_dir = /home/taiga/taiga-backcmd = celeryargs = -A taiga worker -c 4uid = taiganumprocesses = 1autostart = truesend_hup = truestdout_stream.class = FileStreamstdout_stream.filename = /home/taiga/logs/celery.stdout.logstdout_stream.max_bytes = 10485760stdout_stream.backup_count = 4stderr_stream.class = FileStreamstderr_stream.filename = /home/taiga/logs/celery.stderr.logstderr_stream.max_bytes = 10485760stderr_stream.backup_count = 4
[env:taiga-celery]PATH = /home/taiga/.virtualenvs/taiga/bin:$PATHTERM=rxvt-256colorSHELL=/bin/bashUSER=taigaLANG=en_US.UTF-8HOME=/home/taigaPYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages
start on filesystem and net-device-up IFACE=lostop on runlevel [016]
respawnexec /usr/local/bin/circusd /home/taiga/circus.ini[watcher:taiga-events]
working_dir = /home/taiga/taiga-events
cmd = /usr/lib/node_modules/coffee-script/bin/coffee
args = index.coffee
uid = taiga
numprocesses = 1
autostart = true
send_hup = true
stdout_stream.class = FileStream
stdout_stream.filename = /home/taiga/logs/taigaevents.stdout.log
stdout_stream.max_bytes = 10485760
stdout_stream.backup_count = 12
stderr_stream.class = FileStream
stderr_stream.filename = /home/taiga/logs/taigaevents.stderr.log
stderr_stream.max_bytes = 10485760
stderr_stream.backup_count = 12
[env:taiga-events]
PATH = /home/taiga/.virtualenvs/taiga/bin:$PATH
TERM=rxvt-256color
SHELL=/bin/bash
USER=taiga
LANG=en_US.UTF-8
HOME=/home/taiga
PYTHONPATH=/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages
cd /home/taiga/taiga-events
/usr/lib/node_modules/coffee-script/bin/coffee index.coffee
circusctl reloadconfig
circusctl restart taiga-events
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/cdd65286-163c-452c-aaf4-0e34552d55d3%40googlegroups.com.
2015/08/07 14:03:50 [error] 1198#0: *70 connect() failed (111: Connection refused) while connecting to upstream, client: 50.253.135.181, server: _, request: "GET /events HTTP/1.1", upstream: "http://127.0.0.1:8888/events", host: "projects.olympusat.com"
cd /home/taiga/taiga-events
/usr/lib/node_modules/coffee-script/bin/coffee index.coffee
-bash: /usr/lib/node_modules/coffee-script/bin/coffee: No such file or directory
whereis coffee[watcher:taiga-events]working_dir = /home/taiga/taiga-eventscmd = /usr/local/bin/coffeeargs = index.coffeeuid = taiganumprocesses = 1autostart = truesend_hup = truestdout_stream.class = FileStreamstdout_stream.filename = /home/taiga/logs/taigaevents.stdout.logstdout_stream.max_bytes = 10485760stdout_stream.backup_count = 12stderr_stream.class = FileStreamstderr_stream.filename = /home/taiga/logs/taigaevents.stderr.logstderr_stream.max_bytes = 10485760stderr_stream.backup_count = 12--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/9f2a110b-1098-4d69-a971-90b26d9410c8%40googlegroups.com.