Closed BradyPlanden closed 1 year ago
After proceeding with ENV NODE_OPTIONS=--openssl-legacy-provider
removed, I'm unfortunately unable to login to the frontend via the superuser account. Does it make sense that the login functionality would break with the above command removed?
this option was added because the frontend wasn't working unless @mjaquiery added this, so it could be breaking the login. Can you open a development console in your browser and try logging in, what error do you get?
note I just tried this on a fresh azure vm (ubuntu 20.04) and it worked fine, no issues with the 'NODE_OPTIONS'. What system are you using @BradyPlanden ?
OS is ubuntu 20.04 LTS (it's the current instance used for the BIL).
Quite weird, I'll investigate this a bit further. I suspect it's a host issue now that you've confirmed via azure. I'll update this issue when I find the problem for future reference.
@mjaquiery do you know why @BradyPlanden is getting this problem with NODE_OPTIONS
? I think you added this line.
@BradyPlanden: I don't know what the issue is, but I'm guessing that you have a different node:lts
image than we do. Perhaps delete all local images and do a docker compose build --no-cache
. This might help.
Also, if you are having an issue with the login this could be a separate problem. Open a development console in your browser (Ctrl-Shift-I for chrome in windows) and then try to login again. Have a look at the console for any output, and also the network tab for more info on what went wrong
Yes, definitely could be a node:lts
version issue. We could prevent this by properly specifying the base image. I'll investigate the images I'm actually using on the current setup and upgrade the Dockerfile*
s to use more specific image tags.
@BradyPlanden can you try pulling from main
and rebuilding and let me know if you still experience the issue, please?
Thanks Matt, I ended up removing the node:lts docker image and running docker compose build --no-cache
and that build correctly. It appears the supporting images where about 14 months old.
Excellent. This problem should not occur in future because the node:lts
image is now properly specified so we shouldn't get clashes from older images!
Describe the bug I'm getting an exit code 9 on the
RUN yarn install
in the docker-compose. Here is the trace:Removing
ENV NODE_OPTIONS=--openssl-legacy-provider
from the /frontend/.env file fixes the exit code; however, I've not confirmed if this affects functionality.To Reproduce Steps to reproduce the behavior: