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

Slack Authentication Failed Error #22

Open
MetaBliss opened this issue Jun 26, 2021 · 0 comments
Open

Slack Authentication Failed Error #22

MetaBliss opened this issue Jun 26, 2021 · 0 comments

Comments

@MetaBliss
Copy link

MetaBliss commented Jun 26, 2021

Hi @chsasank

I am running into an issue installing the Outline service. For context, I have a Synology NAS DS 920+ model and have docker installed and use Portainer to manage all of my containers.

I installed Outline using the following docker compose file and I have made it all the way to near the end where I am supposed to authenticate using Slack.

The exact error I get varies a bit but I have provided both errors below:

at /opt/outline/node_modules/passport-oauth2/lib/strategy.js:175:45, at Strategy.OAuth2Strategy._createOAuthError (/opt/outline/node_modules/passport-oauth2/lib/strategy.js:408:17), InternalOAuthError: Failed to obtain access token, at /opt/outline/node_modules/oauth/lib/oauth2.js:191:18, at ClientRequest.<anonymous> (/opt/outline/node_modules/oauth/lib/oauth2.js:162:5), at ClientRequest.emit (events.js:315:20), at ClientRequest.EventEmitter.emit (domain.js:467:12), at TLSSocket.socketErrorListener (_http_client.js:469:9), at TLSSocket.emit (events.js:315:20), at TLSSocket.EventEmitter.emit (domain.js:467:12), at emitErrorNT (internal/streams/destroy.js:106:8), at emitErrorCloseNT (internal/streams/destroy.js:74:3), oauthError: Error: getaddrinfo EAI_AGAIN slack.com, at processTicksAndRejections (internal/process/task_queues.js:80:21) {, at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {

And this error:

Error: Invalid key length, at Cipheriv.createCipherBase (internal/crypto/cipher.js:103:19), at Cipheriv.createCipherWithIV (internal/crypto/cipher.js:121:20), at new Cipheriv (internal/crypto/cipher.js:227:22), at Object.createCipheriv (crypto.js:123:10), at model.set (/opt/outline/node_modules/sequelize-encrypted/index.js:48:33), at model.set (/opt/outline/node_modules/sequelize/lib/model.js:3609:32), at model.set (/opt/outline/node_modules/sequelize/lib/model.js:3590:18), at model._initValues (/opt/outline/node_modules/sequelize/lib/model.js:171:10), at new Model (/opt/outline/node_modules/sequelize/lib/model.js:118:10), at Function.build (/opt/outline/node_modules/sequelize/lib/model.js:2157:12), at new user_authentications (/opt/outline/node_modules/sequelize/lib/sequelize.js:438:19), at Array.map (<anonymous>), at /opt/outline/node_modules/sequelize/lib/model.js:2175:41, at Function.bulkBuild (/opt/outline/node_modules/sequelize/lib/model.js:2175:22), at model._setInclude (/opt/outline/node_modules/sequelize/lib/model.js:3774:83), at model.set (/opt/outline/node_modules/sequelize/lib/model.js:3621:14)

I cannot understand what the problem is. I have provided some snapshots of the Slack API settings, I am pretty sure I have configured everything properly but wanted to double check with you.

image

My Settings are as follows (taken from the .env file):
SLACK_KEY - taken from the Client ID field in the picture above
SLACK_SECRET - taken from the Client Secret field in the picture above
----(in the optional section of the .env file)
SLACK_VERIFICATION_TOKEN= taken from the verification token field in the picture above
SLACK_APP_ID= taken from the APP ID field in the picture above
SLACK_MESSAGE_ACTIONS=false

1) Does my mapping above look correct to you?

2) Do app level tokens need to be set up? I'm not sure if that has anything to do with the authentication issue. Picture below of what I have so far

image

I use Nginx Reverse Proxy Manager (NPM) as a reverse proxy in front of my web services.
3) Is it possible that not setting up NPM is causing the authentication issue? Do I need to add some custom nginx configuration to the 'advanced' tab of NPM ? I dont have any custom nginx setup for either the outline or the minio service in NPM currently and was wondering what I would need to put in if that is the case.

Your review of this problem would be MOST appreciated!!!

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

No branches or pull requests

1 participant