oortcloud / node-ddp-client

A callback style DDP (Meteor's Distributed Data Protocol) node client.
Other
263 stars 80 forks source link

Connection to galaxy hosted meteor app from DO node server fails #79

Open tyler-dunkel opened 8 years ago

tyler-dunkel commented 8 years ago

Hi, I am trying to connect to my meteor application hosted on galaxy with a node server that is hosted on digital ocean Unbuntu 14.04. When I run my node server locally, it connects to the meteor server fine and runs the job. However, when i deploy the node server to DO and run it, standalone using node or with pm2, the connection times out. Is there any reason it would work fine on my local machine but not once it is deployed to DO? Thanks!

mayvn10 commented 8 years ago

@vsivsi

We managed to connect via DDP w/ SSL enabled. The connection is fine and the jobs that we schedule run but after about 15-20 minutes, the connection drops and we see an error:

jobs-0 (err): JobQueue: Received error from getWork(): [Error: DDPClient: Disconnected from DDP server]

` Are there other methods to keep a DPP connection open/sustained?

vsivsi commented 8 years ago

Have you looked at the sample worker app?

https://github.com/vsivsi/meteor-job-collection-playground-worker

mayvn10 commented 8 years ago

@vsivsi Yes we looked at the playground worker. We got it working to a point. I'm filing an issue with a similar topic but different issue.