Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Redirect after Login - Cal.com Docker Setup #373

Open
shwetd19 opened this issue Aug 1, 2024 Discussed in #372 · 6 comments
Open

Issue with Redirect after Login - Cal.com Docker Setup #373

shwetd19 opened this issue Aug 1, 2024 Discussed in #372 · 6 comments

Comments

@shwetd19
Copy link

shwetd19 commented Aug 1, 2024

Discussed in #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!

@flexhd41
Copy link

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

@flexhd41
Copy link

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

@mokkin
Copy link
Contributor

mokkin commented Sep 25, 2024

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

@canameti
Copy link

canameti commented Oct 3, 2024

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

@canameti
Copy link

canameti commented Oct 3, 2024

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

@satonotdead
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants