docker icon indicating copy to clipboard operation
docker copied to clipboard

Issue with Redirect after Login - Cal.com Docker Setup

Open shwetd19 opened this issue 1 year ago • 6 comments

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:

  1. 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.
  2. 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.yaml file 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
      
  3. 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!

shwetd19 avatar Aug 01 '24 17:08 shwetd19

Having the same issue here running it behind nginx I tired setting NEXTAUTH_URL wich didnt work sadly

flexhd41 avatar Aug 30 '24 19:08 flexhd41

now im confused it works on my phone but not on my pc

flexhd41 avatar Aug 30 '24 19:08 flexhd41

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".

mokkin avatar Sep 25 '24 09:09 mokkin

same issue here, any solutions already? can confirm, logging in on my phone is no problem and working fine

canameti avatar Oct 03 '24 13:10 canameti

seems working on pc now as well after logging in on the phone

canameti avatar Oct 03 '24 13:10 canameti

Stills no way to use Calcom behind a reverse proxy? =/

satonotdead avatar Oct 13 '24 15:10 satonotdead