Issue with Redirect after Login - Cal.com Docker Setup
Discussed in https://github.com/calcom/docker/discussions/372
Originally posted by shwetd19 July 31, 2024
Description:
I'm experiencing an issue with my Cal.com instance hosted on a GCP VM. After logging in, the application redirects to http://api/auth/error and displays the following message: "Something went wrong. Please try again and contact us if the issue persists."
Here are the steps I've followed for the installation and setup:
Installation Steps:
-
Installation of Docker and Docker Compose via a Simple Script
- Download the installation script:
wget -O install-docker.sh https://gitlab.com/bmcgonag/docker_installs/-/raw/main/install_docker_nproxyman.sh - Change the permissions to make the script executable:
chmod +x ./install-docker.sh - Run the script:
./install-docker.sh - Follow the prompts to install Docker-CE and Docker Compose. Optionally, install NGinX Proxy Manager.
- Download the installation script:
-
Installing Cal.com
- Clone the Cal.com Docker repository:
git clone https://github.com/calcom/docker.git - Rename the folder for clarity:
mv docker cal-com-docker - Navigate to the project directory:
cd cal-com-docker - Copy the example environment file and edit it:
cp .env.example .env nano .env - Set the environment variables as needed. Here are some key variables I configured:
NEXT_PUBLIC_LICENSE_CONSENT=true NEXT_PUBLIC_WEBAPP_URL=https://cal.swades.ai - Edit the
docker-compose.yamlfile to change the port mapping:services: calcom: ports: - "8594:3000" - Update the Cal.com Submodule:
git submodule update --remote --init - Build and Start Cal.com via Docker Compose:
docker compose up --build
- Clone the Cal.com Docker repository:
-
Setup our Reverse Proxy
Despite following these steps, I'm encountering the redirect issue after login.
Additional Information:
- Here is a Loom recording showing the issue and the steps I've taken.
Help Needed: I would appreciate any insights or suggestions on what might be causing this issue and how to resolve it. Thank you in advance!
Having the same issue here running it behind nginx I tired setting NEXTAUTH_URL wich didnt work sadly
now im confused it works on my phone but not on my pc
I have the same issue with v4.5.5 behind Nginx Proxy Manager. I can't even login the first time it immediately redirects to /auth/setup and "something went wrong".
same issue here, any solutions already? can confirm, logging in on my phone is no problem and working fine
seems working on pc now as well after logging in on the phone
Stills no way to use Calcom behind a reverse proxy? =/