Skip to content

Domain has already been taken - Error

Description of the problem

Custom GitLab Pages domains are not deleted when

  • pages a destroyed for project
  • project itself is deleted

Note: pages domains automatically removed after 7 days if verification is failed.

Describe what you were doing right before the issue occurred.

First case - deletion of the project

  1. deploy a pages application
  2. link a custom domain
  3. add a custom cert - might not be required
  4. DELETE THE REPOSITORY with out removing the custom domain
  5. create a new repository again.
  6. attempt to add the same domain and you will now receive an error.

Second case - removal of pages

  1. Create a project, setup CI and deploy pages.
  2. Add and verify custom domain.
  3. Remove pages (this also removed the custom domain entry).
  4. Create another project, setup CI and deploy pages.
  5. Add the same custom domain as in step 2. => Got Domain has already been taken. Adding the same domain to the old project also yields the same error.
Edited by Vladimir Shushlin