Hello! Trying to add a domain for SSO but running ...
# support
c
Hello! Trying to add a domain for SSO but running into an error:
Copy code
{
  "timestamp": "2025-06-25T16:40:24.823839334Z",
  "level": "INFO",
  "code": {
    "function": "<http://github.com/SigNoz/signoz/pkg/http/middleware.(*Logging).Wrap-fm.(*Logging).Wrap.func1|github.com/SigNoz/signoz/pkg/http/middleware.(*Logging).Wrap-fm.(*Logging).Wrap.func1>",
    "file": "/home/runner/work/signoz/signoz/pkg/http/middleware/logging.go",
    "line": 84
  },
  "msg": "::RECEIVED-REQUEST::",
  "pkg": "<http://go.signoz.io/pkg/http/middleware|go.signoz.io/pkg/http/middleware>",
  "client.address": "10.2.41.224:35772",
  "user_agent.original": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
  "server.address": "",
  "server.port": "",
  "http.request.size": 71,
  "http.route": "/api/v1/domains",
  "http.response.status_code": 500,
  "http.server.request.duration": 357655,
  "response.body": "{\"status\":\"error\",\"error\":{\"code\":\"internal\",\"message\":\"domain creation failed\"}}"
}
We have three SigNoz environments, and for the other two I had no issues setting up SSO. But for this environment we actually had to reset the root password following these steps: https://signoz.io/docs/operate/reset-admin-password/ so I wonder if that messed something up
The 500 error comes from
/api/v1/domains
Yup, that was it. We had started the setup of the domains before deleting the users, so there were some records in
org_domains
referencing the old org-id (which got regenerated when I re-created the root user)
deleted all with
delete from org_domains;
and was able to get it working 👍
e
Hi, Carlos. Glad to see you got it working and wanted to say hi 🙂