Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

orgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed #434

Closed

Description

@ivancarlosti

I am getting this error on all versions I tested since v5.0+ :/
Please, does anyone get an solution?

Error:

agenda  | @calcom/web:start: 18:28:21:155 [WARN] orgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed {
agenda  | @calcom/web:start:   WEBAPP_URL: 'https://subdomain.example.com',
agenda  | @calcom/web:start:   ALLOWED_HOSTNAMES: [
agenda  | @calcom/web:start:     'subdomain.example.com'
agenda  | @calcom/web:start:   ]
agenda  | @calcom/web:start: }

.env file:

NEXT_PUBLIC_LICENSE_CONSENT='agree'
NEXT_PUBLIC_WEBAPP_URL='https://subdomain.example.com'
ALLOWED_HOSTNAMES='"subdomain.example.com"'
NEXTAUTH_URL='https://subdomain.example.com'
NEXT_PUBLIC_CONSOLE_URL='https://subdomain.example.com'
NEXT_PUBLIC_APP_URL='https://subdomain.example.com'
NEXT_PUBLIC_WEBSITE_URL='https://subdomain.example.com'
NEXT_PUBLIC_API_V2_URL='http://localhost:5555/api/v2'
NEXT_PUBLIC_EMBED_LIB_URL='https://subdomain.example.com/embed/embed.js'
NEXTAUTH_SECRET='password'
CALENDSO_ENCRYPTION_KEY='password'
POSTGRES_USER='agenda'
POSTGRES_PASSWORD='password'
POSTGRES_DB=agenda
DATABASE_HOST='host.docker.internal:5432'
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
DATABASE_DIRECT_URL=${DATABASE_URL}
CALCOM_TELEMETRY_DISABLED=1
NODE_ENV='production'
VIRTUAL_HOST='subdomain.example.com'
LETSENCRYPT_HOST='subdomain.example.com'
NODE_TLS_REJECT_UNAUTHORIZED=0

Activity

  1. krumware commented on Jul 14, 2025

    @krumware
    Contributor

    Related to #319

  2. added
    triageAcknowledged and awaiting investigation
    on Jul 14, 2025
  3. HannesOberreiter commented on Aug 6, 2025

    @HannesOberreiter

    fyi setting RESERVED_SUBDOMAINS to the subdomain path and allowed host only for the top level did solve it for me. Don't ask me why though.

    - NEXT_PUBLIC_WEBAPP_URL=https://subdomain.website.com
    - ALLOWED_HOSTNAMES="website.com"
    - RESERVED_SUBDOMAINS="subdomain"
  4. ivancarlosti commented on Aug 6, 2025

    @ivancarlosti
    Author

    It's working fine, thanks!!

    fyi setting RESERVED_SUBDOMAINS to the subdomain path and allowed host only for the top level did solve it for me. Don't ask me why though.

    My logs atill have lot of issues, working on them 😋

    agenda  | @calcom/web:start:  ✓ Ready in 1873ms
    
    agenda  | @calcom/web:start: {"0":"getDeploymentKey","1":"Signature token not found in database or set in environment variable","_meta":{"runtime":"Nodejs","runtimeVersion":"v18.20.8","hostname":"d6c9ee501fc5","name":"[undefined]","parentNames":"[undefined]","date":"2025-08-06T14:04:11.896Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"/calcom/apps/web/.next/server/chunks/72305.js:1:7062","fileName":"72305.js","fileNameWithLine":"72305.js:1","fileColumn":"7062","fileLine":"1","filePath":"/.next/server/chunks/72305.js","filePathWithLine":"/.next/server/chunks/72305.js:1","method":"s"}}}
    
    agenda  | @calcom/web:start: react-i18next:: You will need to pass in an i18next instance by using initReactI18next
    
    agenda  | @calcom/web:start: {"0":"RateLimit","1":"Disabled because the UNKEY_ROOT_KEY environment variable was not found.","_meta":{"runtime":"Nodejs","runtimeVersion":"v18.20.8","hostname":"d6c9ee501fc5","name":"[undefined]","parentNames":"[undefined]","date":"2025-08-06T14:04:13.691Z","logLevelId":4,"logLevelName":"WARN","path":{"fullFilePath":"/calcom/apps/web/.next/server/chunks/76526.js:1:7251","fileName":"76526.js","fileNameWithLine":"76526.js:1","fileColumn":"7251","fileLine":"1","filePath":"/.next/server/chunks/76526.js","filePathWithLine":"/.next/server/chunks/76526.js:1","method":"o"}}}
    
    agenda  | @calcom/web:start: (node:173) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
    
    agenda  | @calcom/web:start: (Use `node --trace-warnings ...` to show where the warning was created)
    
    agenda  | @calcom/web:start: [PERF]: getUserEventGroups(1) took 1333.913137987256ms
    
    agenda  | @calcom/web:start: [PERF]: getEventTypesFromGroup(1) took 90.83725100755692ms
    
    agenda  | @calcom/web:start: `markdownToSafeHTMLClient` should not be used on the server side. use markdownToSafeHTML instead
    
    agenda  | @calcom/web:start: [DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937
    

    For this case I think we can close the issue, right?

  5. HannesOberreiter commented on Aug 6, 2025

    @HannesOberreiter

    Yeah the translation failing to load is another issue, which I too have :/ #438

  6. ivancarlosti commented on Aug 6, 2025

    @ivancarlosti
    Author

    About "Signature token not found in database or set in environment variable" and "Disabled because the UNKEY_ROOT_KEY environment variable was not found", do you know any workaround to not print it everytime in logs?

  7. HannesOberreiter commented on Aug 6, 2025

    @HannesOberreiter

    The UNKEY_ROOT_KEY message is only a warning therefore you could remove it by settings the log level higher NEXT_PUBLIC_LOGGER_LEVEL=4.

    The signature token sounds like you missing a key on build, but is an error therefore hard to remove from logs. I mean you can set the logger level even higher but yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageAcknowledged and awaiting investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions