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

Unable to create Queue from Google Cloud Run Redis #1913

Closed
Ritz90 opened this issue Nov 21, 2020 · 2 comments
Closed

Unable to create Queue from Google Cloud Run Redis #1913

Ritz90 opened this issue Nov 21, 2020 · 2 comments
Labels

Comments

@Ritz90
Copy link

Ritz90 commented Nov 21, 2020

I'm trying to setup my redis bull on Google Cloud run. Locally everything works.

I use the following code when the server starts:

const client = redis.createClient('6379', '10.103.YYY.YYY');
This seems to be working. I don't receive any error on startup.

When I try to launch a job with Bull like:

         const actionQueue = new Bull(uuid(), {
            redis: {
                port: 6379, host: '10.103.YYY.YYY', tls: {
                    servername: '10.103.YYY.YYY'
                }
            }
        });
     
        await actionQueue.add();

        actionQueue.process(async (job) => {
            return this._job();
        });

        actionQueue.on('completed', async (job, actionId) => {
            console.log(`Job completed with result ${actionId}`);
        });

        actionQueue.on("failed", (job, error) => {
            console.log(job.id, error);
        });

Logs:

2020-11-21T14:55:35.794783Z Error: connect ECONNREFUSED 127.0.0.1:6379
Standaard
2020-11-21T14:55:35.794791Z at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16) {
Standaard
2020-11-21T14:55:35.794798Z errno: 'ECONNREFUSED',
Standaard
2020-11-21T14:55:35.794804Z code: 'ECONNREFUSED',
Standaard
2020-11-21T14:55:35.794810Z syscall: 'connect',
Standaard
2020-11-21T14:55:35.794816Z address: '127.0.0.1',
Standaard
2020-11-21T14:55:35.794822Z port: 6379
Standaard
2020-11-21T14:55:35.794828Z }
Standaard
2020-11-21T14:55:35.794834Z}
Standaard
2020-11-21T14:55:35.794987Z The error was: Error: connect ECONNREFUSED 127.0.0.1:6379
Standaard
2020-11-21T14:55:35.794994Z at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16) {
Standaard
2020-11-21T14:55:35.795Z errno: 'ECONNREFUSED',
Standaard
2020-11-21T14:55:35.795006Z code: 'ECONNREFUSED',
Standaard
2020-11-21T14:55:35.795011Z syscall: 'connect',
Standaard
2020-11-21T14:55:35.795017Z address: '127.0.0.1',
Standaard
2020-11-21T14:55:35.795022Z port: 6379
Standaard
2020-11-21T14:55:35.795028Z}

@Ritz90 Ritz90 changed the title Unable to create Queue from Google Cloud Run Unable to create Queue from Google Cloud Run Redis Nov 21, 2020
@manast
Copy link
Member

manast commented Nov 23, 2020

I find highly unlikely that this setting will work, besides it is not the same as your example when you connected using the redis client directly:

tls: {
                    servername: '10.103.YYY.YYY'
                }

@stale
Copy link

stale bot commented Jul 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 12, 2021
@manast manast closed this as completed Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants