[GH-ISSUE #2645] Unable to create public ressource on root for domain #23495

Closed
opened 2026-06-05 06:22:40 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @NecktiedHummingbird on GitHub (Mar 13, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2645

Describe the Bug

So I try to add a static website to my root domain (example.com), but on creation I get the error, that a ressource with this domain already exists. Which is not true.
Image

This is the only domain configured in the config.yml. Pangolin it self is available at pangolin.example.com.

When I navigate to example.com I receive a 404.

When I add another domain via the pangolin UI and create a public resource to use the root domain of the newly added domain, it just works.

Both are registered as wildcard domains.

I also checked the api endpint /v1/org/{orgId}/resources if there is something hidden, but it is identical to the UI.

I thought "maybe i can move from config.yml to added by pangolin UI", but im not sure if you can do so, cause when I remove the entry from the config.yml, I cant access the UI anymore, cause the domain is not registered anymore.

Environment

  • OS Type & Version: Debian 13
  • Pangolin Version: 1.16.2
  • Traefik Version: 3.6.10

To Reproduce

Try to add a public ressource on the root domain example.com itself, configured in the config.yml.

Expected Behavior

No error on save.

Originally created by @NecktiedHummingbird on GitHub (Mar 13, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2645 ### Describe the Bug So I try to add a static website to my root domain (`example.com`), but on creation I get the error, that a ressource with this domain already exists. Which is not true. <img width="1589" height="711" alt="Image" src="https://github.com/user-attachments/assets/c89b328e-6de6-46aa-bc5c-7fcd0d4277aa" /> This is the only domain configured in the `config.yml`. Pangolin it self is available at `pangolin.example.com`. When I navigate to `example.com` I receive a 404. When I add another domain via the pangolin UI and create a public resource to use the root domain of the newly added domain, it just works. Both are registered as wildcard domains. I also checked the api endpint `/v1/org/{orgId}/resources` if there is something hidden, but it is identical to the UI. I thought "maybe i can move from `config.yml` to added by pangolin UI", but im not sure if you can do so, cause when I remove the entry from the `config.yml`, I cant access the UI anymore, cause the domain is not registered anymore. ### Environment - OS Type & Version: Debian 13 - Pangolin Version: 1.16.2 - Traefik Version: 3.6.10 ### To Reproduce Try to add a public ressource on the root domain `example.com` itself, configured in the `config.yml`. ### Expected Behavior No error on save.
GiteaMirror added the stale label 2026-06-05 06:22:40 -05:00
Author
Owner

@NecktiedHummingbird commented on GitHub (Mar 13, 2026):

Okay, so I checked the code here and saw, that there is "just" a query to the database. So i copied the sqlite database and viewed it in sqlite explorer.
And then i saw the ressource with the full domain on a RAW UDP resource. I am not sure how it went there. I beleife i had this ressource HTTPS first and changed it afterwards to RAW.

Image

The fun part, it is my old VPN, but i am migrating to pangolin client as VPN now lol.

Maybe it is cause of an older version of pangolin, where i created that resource.

After I deleted the resource with my old VPN i was able to create the resource on root domain!

For me personaly, the issue is closed now. But I leave it open in case of this is some kind of bug, that the full domain got saved on the raw tcp resource. Feel free to close.

<!-- gh-comment-id:4055315184 --> @NecktiedHummingbird commented on GitHub (Mar 13, 2026): Okay, so I checked the code [here](https://github.com/fosrl/pangolin/blob/9b0e7b381c753c235ae5a035bc98de497af53194/server/routers/resource/createResource.ts#L212) and saw, that there is "just" a query to the database. So i copied the sqlite database and viewed it in sqlite explorer. And then i saw the ressource with the full domain on a RAW UDP resource. I am not sure how it went there. I beleife i had this ressource HTTPS first and changed it afterwards to RAW. <img width="3013" height="191" alt="Image" src="https://github.com/user-attachments/assets/e23fea92-fa6e-4182-b429-fa64a4157b5d" /> The fun part, it is my old VPN, but i am migrating to pangolin client as VPN now lol. Maybe it is cause of an older version of pangolin, where i created that resource. After I deleted the resource with my old VPN i was able to create the resource on root domain! For me personaly, the issue is closed now. But I leave it open in case of this is some kind of bug, that the full domain got saved on the raw tcp resource. Feel free to close.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 28, 2026):

This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.

<!-- gh-comment-id:4146151589 --> @github-actions[bot] commented on GitHub (Mar 28, 2026): This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 11, 2026):

This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.

<!-- gh-comment-id:4227481124 --> @github-actions[bot] commented on GitHub (Apr 11, 2026): This issue has been automatically closed due to inactivity. If you believe this is still relevant, please open a new issue with up-to-date information.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#23495