awslabs / web-client-for-aws-transfer-family

This solution creates a web portal for your customers to access your corporate Secure Shell File Transfer Protocol (SFTP) environment. It combines the benefits of using AWS Transfer for SFTP with an intuitive web browser interface for your non-technical users.
https://aws.amazon.com/solutions/implementations/web-client-for-aws-transfer-family/?did=sl_card&trk=sl_card
Apache License 2.0
73 stars 41 forks source link

Cannot login, blank red box, page shows JS errors #11

Open adityavb opened 2 years ago

adityavb commented 2 years ago

When attempting to login with correct or incorrect credentials a blank red box appears above the login button. Browser console shows error as screenshot attached. Screen Shot 2022-03-07 at 11 45 00 AM

adityavb commented 2 years ago

ECS logs:

[2022-03-08 16:31:28 +0000] [6] [INFO] Starting gunicorn 20.0.4

[2022-03-08 16:31:28 +0000] [6] [INFO] Listening at: http://0.0.0.0:80 (6) [2022-03-08 16:31:28 +0000] [6] [INFO] Using worker: sync [2022-03-08 16:31:28 +0000] [8] [INFO] Booting worker with pid: 8 [2022-03-08 16:31:28 +0000] [9] [INFO] Booting worker with pid: 9 [2022-03-08 16:31:28 +0000] [10] [INFO] Booting worker with pid: 10 sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631 sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631 sftpwebclientlogger INFO jwt_secret_key found in the environment variable:3dxxxxbe631

rathialok901 commented 2 years ago

I am having the exact same problem, the Cognito part has been correctly setup as I can do a manual test authentication with Lambda and it returns successful auth and the directory Mapping from DynamoDB.

rathialok901 commented 2 years ago

@adityavb Try Connecting to the SFTP Endpoint and see if that is working as in the backend the web is opening an SFTP connection and if that doesnt work then Web Logons will fail too.

adityavb commented 2 years ago

@rathialok901 yes I am able to login to the server directly using OpenSSH, FileZilla and WinSCP. Still having the same issue. Is your setup working now ?

rathialok901 commented 2 years ago

@adityavb Yes I have web logins working but the UI experience is not great and is pretty slow. Can you switch your browser to developer mode and see what is happening to your request and that could help point out the problem.

sapra5379 commented 2 years ago

Team - I am deploying this solution in Bahrain region. I wanted to understand what is the use of AWS Lambda@Edge and why it is need to be deployed only in Virginia Region. Kindly let me know at the earlies @rathialok901 or @adityavb

sapra5379 commented 2 years ago

@rathialok901 @adityavb @ajorg-aws - I am able to set it up, However - I am getting red screen while login. Can anyone of you available for a quick screenshare. Need to check dynamoDB and deployment.

rathialok901 commented 2 years ago

Team - I am deploying this solution in Bahrain region. I wanted to understand what is the use of AWS Lambda@Edge and why it is need to be deployed only in Virginia Region. Kindly let me know at the earlies @rathialok901 or @adityavb

That is because CloudFront, although a Global Service has its control plane in us-east-1 and that is why you are deploying the Lambda@edge in that region.

rathialok901 commented 2 years ago

@rathialok901 @adityavb @ajorg-aws - I am able to set it up, However - I am getting red screen while login. Can anyone of you available for a quick screenshare. Need to check dynamoDB and deployment.

I can work with you tommorrow to look at what is going on, In what timezone are you available.

sapra5379 commented 2 years ago

@rathialok901 Its great to hear from you, I am reachable at aakashsapra93@gmail.com I am available in between 1PM IST to 6 PM IST or 11 PMIST to 1 AM IST. Let me know if this works for you , will send the invite or drop me hello on my e-mail.

sapra5379 commented 2 years ago

I am getting authentication error, it must be something wrong at my DynamoDB mapping.

Failed to authenticate user asapra with Cognito

dagarkatyal commented 2 years ago

I deployed everything twice but I am getting CORS errors when I click login button. Any thoughts? What am i missing here? any account level setting? here is the screenshot..

Screen Shot 2022-07-22 at 12 57 11 AM
nagarjuna-jammula commented 1 year ago

Hello,

We have deployed the solution. User created, dynamo DB mapping is completed but facing the same issue as original. It shows red box below when trying to login.

Is there already a solution for this ?

lalithprasad12 commented 1 year ago

Hi, Any update on the issue. We are facing the same problem.