Skip to content

V1 - Unable to create base path mapping for 'xxx.xxx.com': Base path already exists for this domain name #644

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

Open
talaikis opened this issue Nov 29, 2024 · 3 comments · May be fixed by #645
Labels

Comments

@talaikis
Copy link

talaikis commented Nov 29, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Bug Report

Error Description

Multiple errors with serverless-domain-manager v8.0.0 and serverless 4.4.13:

V1 - Unable to create base path mapping for 'xxx.xxx.com':
Base path already exists for this domain name
Section content for "Serverless Domain Manager" was already set

Command Run

serverless deploy (over compose)

Console Output

Domain Manager Configuration
Replace this with your own serverless.yml file (anonymized, of course) to help us better resolve your issue.

custom:
  customDomain:
    domainName: xxx.xxx.com
    stage: dev
    basePath: dev
    certificateName: *.xxx.com
    createRoute53Record: false
    endpointType: 'regional'
    securityPolicy: tls_1_2

Versions

  • Domain Manager version(s): 8.0.0
  • Node/npm version: 22
  • Serverless Version: 4.4.13
  • Lambda Code JS

Possible Solution

  • doiwngrade serverless to v3. i.e. plugin v8 works fines with serverless v3

Additional context/Screenshots

@talaikis talaikis added the bug label Nov 29, 2024
@talaikis talaikis changed the title V1 - Unable to create base path mapping for 'api4.weido.app': Base path already exists for this domain name V1 - Unable to create base path mapping for 'xxx.xxx.com': Base path already exists for this domain name Dec 11, 2024
@babay123
Copy link

babay123 commented Jan 6, 2025

The issue occurs when two or more services are deployed at the same time. However, if you deploy them one by one, it works fine.

@abiencourt
Copy link

Thanks @babay123 when setting dependsOn on my serverless-compose.yml to create a dependency between each services using this plugin it works fine.

@savagecx
Copy link

savagecx commented Apr 17, 2025

I came across this issue while upgrading to serverless v4 and I believe that the problem is due to the duplicate section name (The section name is the plugin name for all services) on line 59 of logging.ts:

Globals.serverless.addServiceOutputSection(Globals.pluginName, summaryList);

I have modified the line to include a random UUID and it is working without the dependsOn being added to serverless-compose.yml for me:

Globals.serverless.addServiceOutputSection(`${Globals.pluginName} - ${crypto.randomUUID()}`, summaryList);

@rddimon - I am a complete novice with Typescript so I'm sure there is a better way to add a meaningful unique ID to the section name but I'm happy to try raising a PR if that would be helpful?

@savagecx savagecx linked a pull request Apr 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants