Giter Site home page Giter Site logo

Register page doesn't work about docker HOT 8 CLOSED

calcom avatar calcom commented on August 25, 2024
Register page doesn't work

from docker.

Comments (8)

PeerRich avatar PeerRich commented on August 25, 2024 2

hey there, account creation is not part of the open core, yet. you need to use prisma studio if you self host. the majority of the self-host users have an existing user base already or have their own account creation and sync it up with the posgres of calendso.

from docker.

krumware avatar krumware commented on August 25, 2024 1

Awesome, thanks for the detail!

I'm talking with the cal.com team on slack about it

from docker.

siddjellali avatar siddjellali commented on August 25, 2024 1

Hello guys,

Do you know how limit registration to a specific domain ?

from docker.

Kfelts avatar Kfelts commented on August 25, 2024

I'm also having deployment problems. The schema.prisma is causing errors and I can't get beyond this.

from docker.

winston0410 avatar winston0410 commented on August 25, 2024

@Kfelts can you try docker log <containerID>? But I don't think we have the same error.

from docker.

krumware avatar krumware commented on August 25, 2024

Thanks for the feedback y'all!
Logs and screenshots would be immensely helpful if you could provide some here

from docker.

winston0410 avatar winston0410 commented on August 25, 2024

@krumware Thank you for replying! So I have the following config(I haven't changed anything apartfrom copy and paste from repo):

.env

# Set this value to 'agree' to accept our license:
# LICENSE: https://github.com/calendso/calendso/blob/main/LICENSE
#
# Summary of terms:
# - The codebase has to stay open source, whether it was modified or not
# - You can not repackage or sell the codebase
# - Acquire a commercial license to remove these terms by emailing: [email protected]
NEXT_PUBLIC_LICENSE_CONSENT=
LICENSE=

BASE_URL=http://localhost:3000
NEXT_PUBLIC_APP_URL=http://localhost:3000

POSTGRES_USER=unicorn_user
POSTGRES_PASSWORD=magical_password
POSTGRES_DB=calendso
DATABASE_HOST=database:5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
GOOGLE_API_CREDENTIALS={}

# Remove this var if you don't want Calendso to collect anonymous usage
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r

# Used for the Office 365 / Outlook.com Calendar integration
MS_GRAPH_CLIENT_ID=
MS_GRAPH_CLIENT_SECRET=

# Used for the Zoom integration
ZOOM_CLIENT_ID=
ZOOM_CLIENT_SECRET=

# E-mail settings
# Configures the global From: header whilst sending emails.
[email protected]

# Configure SMTP settings (@see https://nodemailer.com/smtp/).
EMAIL_SERVER_HOST=smtp.example.com
EMAIL_SERVER_PORT=587
EMAIL_SERVER_USER=email_user
EMAIL_SERVER_PASSWORD=email_password

# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
CALENDSO_ENCRYPTION_KEY=

# It is highly recommended that the JWT secret must be overridden and very unique
JWT_SECRET=secret

NODE_ENV=production
version: '3.1'

volumes:
  database-data:

networks:
  stack:
    external: false

services:
  database:
    image: postgres:14.1
    restart: always
    volumes:
      - database-data:/var/lib/postgresql/data/
    env_file: .env
    networks:
      - stack

  calendso:
    image: calendso/calendso:latest
    restart: always
    networks:
      - stack
    ports:
      - 3000:3000
    env_file: .env
    depends_on:
      - database

Reproduce:

  • Go to http://localhost:3000/signup
  • see the following error
    1641483123

Log in docker:

[nix-shell:~/calendso]$ docker-compose up
Starting calendso_database_1 ... done
Starting calendso_calendso_1 ... done
Attaching to calendso_database_1, calendso_calendso_1
calendso_1  | + /app/scripts/wait-for-it.sh database:5432 -- echo database is up
calendso_1  | nc command is missing!
calendso_1  | + npx prisma migrate deploy
database_1  |
database_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
database_1  |
database_1  | 2022-01-06 15:32:26.381 UTC [1] LOG:  starting PostgreSQL 14.1 (Debian 14.1-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
database_1  | 2022-01-06 15:32:26.381 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
database_1  | 2022-01-06 15:32:26.381 UTC [1] LOG:  listening on IPv6 address "::", port 5432
database_1  | 2022-01-06 15:32:26.405 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
database_1  | 2022-01-06 15:32:26.436 UTC [26] LOG:  database system was interrupted; last known up at 2022-01-06 15:24:45 UTC
database_1  | 2022-01-06 15:32:26.584 UTC [26] LOG:  database system was not properly shut down; automatic recovery in progress
database_1  | 2022-01-06 15:32:26.593 UTC [26] LOG:  redo starts at 0/181A8C0
database_1  | 2022-01-06 15:32:26.593 UTC [26] LOG:  invalid record length at 0/181A8F8: wanted 24, got 0
database_1  | 2022-01-06 15:32:26.593 UTC [26] LOG:  redo done at 0/181A8C0 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
database_1  | 2022-01-06 15:32:26.655 UTC [1] LOG:  database system is ready to accept connections
calendso_1  | Prisma schema loaded from prisma/schema.prisma
calendso_1  | Datasource "db": PostgreSQL database "calendso", schema "public" at "database:5432"
calendso_1  |
calendso_1  | 53 migrations found in prisma/migrations
calendso_1  |
calendso_1  | No pending migrations to apply.
calendso_1  | ┌─────────────────────────────────────────────────────────┐
calendso_1  | │  Update available 3.0.2 -> 3.7.0                        │
calendso_1  | │  Run the following to update                            │
calendso_1  | │    npm i --save-dev prisma@latest                       │
calendso_1  | │    npm i @prisma/client@latest                          │
calendso_1  | └─────────────────────────────────────────────────────────┘
calendso_1  | + yarn start
calendso_1  | yarn run v1.22.15
calendso_1  | $ next start
calendso_1  | ready - started server on 0.0.0.0:3000, url: http://localhost:3000
calendso_1  | prisma:query SELECT "public"."users"."id", "public"."users"."username", "public"."users"."email", "public"."users"."name", "public"."users"."bio", "public"."users"."avatar", "public"."users"."theme", "public"."users"."plan" FROM "public"."users" WHERE "public"."users"."username" = $1 LIMIT $2 OFFSET $3
calendso_1  | prisma:query SELECT "public"."users"."id", "public"."users"."username", "public"."users"."email", "public"."users"."name", "public"."users"."bio", "public"."users"."avatar", "public"."users"."theme", "public"."users"."plan" FROM "public"."users" WHERE "public"."users"."username" = $1 LIMIT $2 OFFSET $3
calendso_1  | prisma:query SELECT "public"."users"."id", "public"."users"."username", "public"."users"."email", "public"."users"."name", "public"."users"."bio", "public"."users"."avatar", "public"."users"."theme", "public"."users"."plan" FROM "public"."users" WHERE "public"."users"."username" = $1 LIMIT $2 OFFSET $3

from docker.

winston0410 avatar winston0410 commented on August 25, 2024

Thanks. This is a really promising project, good job!

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.