plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: 401 error login loop

Open Aviortheking opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

After trying to login I get sent back to the login page

It seems that I can get one authenticated request done to the api but after that I go back to being disconnected


Additionnal infos:

Browser Request logs: _planerqworker_logs.txt

API logs: api.log

the only "error" I see in any logs is this for the frontend

2023-06-14T09:34:26.890329433Z Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly 

You can try on https://plane.dzeio.com using the defaults

it is self hosted using coolify with the docker being here https://github.com/aviortheking/plane

Steps to reproduce

  1. Login with the defaults ids
  2. get sent back to the login screen

Browser

Mozilla Firefox

Version

Self-hosted

Discord forum

Aviortheking avatar Jun 14 '23 09:06 Aviortheking

I have the exact same issue :/ Tried following the guide on the readme, however it just wont let me login using the default

Cant sign up either. Just says something went wrong

Jirubizu avatar Jun 27 '23 07:06 Jirubizu

Hi, it would be awesome if you could try the latest version (0.8). Please feel free to comment if you are still facing the issue.

pablohashescobar avatar Jul 02 '23 09:07 pablohashescobar

@pablohashescobar tried with 0.8, can confirm, that the issue still persists

orbatschow avatar Jul 02 '23 16:07 orbatschow

It seems SECRET_KEY will be regenerated sporadically, if not already present in environment and is used to encode and decode jwt in several places.

calbrecht avatar Jul 04 '23 15:07 calbrecht

Yeah it seems to have fixed the issue !

Aviortheking avatar Jul 05 '23 07:07 Aviortheking

For me this was indeed caused by a typo, setting SECRET_KEY the correct way fixes the issue, sorry for the noise!

orbatschow avatar Jul 05 '23 07:07 orbatschow

I have the exact same issue, @orbatschow, how did you fix that?

quangngoc avatar Jul 21 '23 10:07 quangngoc

@quangngoc I misspelled the environment variable name itself (used SECRET_KEYa instead of SECRET_KEY), so i just fixed the typo and then it worked for me.

orbatschow avatar Jul 21 '23 10:07 orbatschow

Can confirm SECRET_KEY fixed it for me too

jimhuds avatar Jul 21 '23 11:07 jimhuds