Error: Request failed with status code 500

Whenever I save PMM Configuration settings, I get the error Error: Request failed with status code 500

logger.ts:24 [WARN] $e {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}
logger.ts:25 $e {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}code: "ERR_BAD_RESPONSE"config: adapter: (2) ['xhr', 'http']cancelToken: $n {promise: Promise, _listeners: null, reason: Ki}data: "{\"data_retention\":\"691200s\",\"enable_telemetry\":true,\"enable_advisor\":true,\"enable_azurediscover\":false,\"pmm_public_address\":\"172.25.72.227\",\"enable_alerting\":true,\"advisor_run_intervals\":{\"rare_interval\":\"86400s\",\"standard_interval\":\"43200s\",\"frequent_interval\":\"14400s\"},\"enable_backup_management\":true,\"enable_updates\":true,\"enable_access_control\":false}"env: {FormData: ƒ, Blob: ƒ}headers: Qr {Accept: 'application/json, text/plain, */*', Content-Type: 'application/json'}maxBodyLength: -1maxContentLength: -1method: "put"timeout: 0transformRequest: [ƒ]transformResponse: [ƒ]transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}url: "/v1/server/settings"validateStatus: ƒ (Fn)xsrfCookieName: "XSRF-TOKEN"xsrfHeaderName: "X-XSRF-TOKEN"[[Prototype]]: Objectmessage: "Request failed with status code 500"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: {…}, status: 500, statusText: '', headers: Qr, config: {…}, …}stack: "AxiosError: Request failed with status code 500\n    at ji (https://172.25.72.227/graph/public/build/6771.14ecde8f6d7259dfcbaa.js:1225:1144)\n    at XMLHttpRequest.bt (https://172.25.72.227/graph/public/build/6771.14ecde8f6d7259dfcbaa.js:1225:4617)\n    at tr.request (https://172.25.72.227/graph/public/build/6771.14ecde8f6d7259dfcbaa.js:1227:3363)\n    at async Object.setSettings (https://172.25.72.227/graph/public/build/3425.8537b7a0082ba97f54d7.js:4801:60637)\n    at async https://172.25.72.227/graph/public/build/3425.8537b7a0082ba97f54d7.js:4801:65560\n    at async https://172.25.72.227/graph/public/build/6771.14ecde8f6d7259dfcbaa.js:1223:8043\n    at async Qe (https://172.25.72.227/graph/public/build/AdvancedSettingsPage.ec02f21aa6157f84dba0.js:99:2698)"[[Prototype]]: Errorconstructor: ƒ $e(nn,Fn,cr,Kn,ei)toJSON: ƒ ()length: 0name: "toJSON"prototype: {}arguments: (...)caller: (...)[[FunctionLocation]]: AxiosError.js:34[[Prototype]]: ƒ ()[[Scopes]]: Scopes[2]isAxiosError: true[[Prototype]]: Object

please help

Hi, can you also share the relevant lines from pmm-managed logs?

Hi! How can I find it?

Click the little help icon (question mark) at the top right corner of the PMM home page, then select the PMM logs link (it will download logs of all PMM components).

Alternatively, you can find pmm-managed logs specifically at /srv/logs/pmm-managed.log

time="2025-06-05T10:48:46.278+00:00" level=warning msg="No explicit rule, falling back to Grafana admin." component=grafana/auth req="POST /v1/ui-events/Store"

time="2025-06-05T10:48:59.100+00:00" level=error msg="RPC /server.v1.ServerService/ChangeSettings done in 251.88138ms with unexpected error: Post \"https://id.percona.com/oauth2/auskl7vxt4N1CAbjO1t7/v1/token?grant_type=client_credentials&scope=percona\": EOF\nfailed to insert Percona SSO Details\ngithub.com/percona/pmm/managed/models.GetPerconaSSODetails\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/models/percona_sso_model_helpers.go:58\ngithub.com/percona/pmm/managed/services/server.(*Server).UpdateConfigurations\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/services/server/server.go:714\ngithub.com/percona/pmm/managed/services/server.(*Server).ChangeSettings\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/services/server/server.go:660\ngithub.com/percona/pmm/api/server/v1._ServerService_ChangeSettings_Handler.func1\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/api/server/v1/server_grpc.pb.go:444\nmain.runGRPCServer.UnaryServerInterceptor.func7\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/validator/validator.go:47\nmain.runGRPCServer.ChainUnaryServer.func9.1\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:48\nmain.runGRPCServer.UnaryServiceEnabledInterceptor.func6\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/service.go:39\nmain.runGRPCServer.ChainUnaryServer.func9.1\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:48\nmain.runGRPCServer.(*ServerMetrics).UnaryServerInterceptor.func4\n\t/home/builder/go/pkg/mod/github.com/!percona-!lab/go-grpc-prometheus@v0.0.0-20230116133345-3487748d4592/server_metrics.go:114\nmain.runGRPCServer.Unary.func5.1\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:105\ngithub.com/percona/pmm/managed/utils/interceptors.logRequest\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:77\nmain.runGRPCServer.Unary.func5\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:103\nmain.runGRPCServer.ChainUnaryServer.func9\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:53\ngithub.com/percona/pmm/api/server/v1._ServerService_ChangeSettings_Handler\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/api/server/v1/server_grpc.pb.go:446\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1405\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1815\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1035\nruntime.goexit\n\t/home/builder/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700\nfailed to get SSO details\ngithub.com/percona/pmm/managed/services/server.(*Server).UpdateConfigurations\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/services/server/server.go:717\ngithub.com/percona/pmm/managed/services/server.(*Server).ChangeSettings\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/services/server/server.go:660\ngithub.com/percona/pmm/api/server/v1._ServerService_ChangeSettings_Handler.func1\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/api/server/v1/server_grpc.pb.go:444\nmain.runGRPCServer.UnaryServerInterceptor.func7\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/validator/validator.go:47\nmain.runGRPCServer.ChainUnaryServer.func9.1\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:48\nmain.runGRPCServer.UnaryServiceEnabledInterceptor.func6\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/service.go:39\nmain.runGRPCServer.ChainUnaryServer.func9.1\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:48\nmain.runGRPCServer.(*ServerMetrics).UnaryServerInterceptor.func4\n\t/home/builder/go/pkg/mod/github.com/!percona-!lab/go-grpc-prometheus@v0.0.0-20230116133345-3487748d4592/server_metrics.go:114\nmain.runGRPCServer.Unary.func5.1\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:105\ngithub.com/percona/pmm/managed/utils/interceptors.logRequest\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:77\nmain.runGRPCServer.Unary.func5\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/managed/utils/interceptors/interceptors.go:103\nmain.runGRPCServer.ChainUnaryServer.func9\n\t/home/builder/go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.4.0/chain.go:53\ngithub.com/percona/pmm/api/server/v1._ServerService_ChangeSettings_Handler\n\t/home/builder/rpm/BUILD/pmm-4b5821b21539ca4bd9b31fa46510ad9f69d322bf/src/github.com/percona/pmm/api/server/v1/server_grpc.pb.go:446\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1405\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1815\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1\n\t/home/builder/go/pkg/mod/google.golang.org/grpc@v1.71.0/server.go:1035\nruntime.goexit\n\t/home/builder/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.4.linux-amd64/src/runtime/asm_amd64.s:1700" request=af60f0b9-41fa-11f0-bb26-0242ac110002

Thank you! Can you also share exact settings that were changed?

Any settings of PMM Configuration - Advanced Settings lead to an error

1 Like
ime="2025-06-07T06:10:00.829+00:00" level=error msg="Failed to update settings from environment:" component=setup
time="2025-06-07T06:10:00.829+00:00" level=error msg="failed to get SSO details: failed to insert Percona SSO Details: failed to get access token, response body: {\"errorCode\":\"invalid_client\",\"errorSummary\":\"Invalid value for 'client_id' parameter.\",\"errorLink\":\"invalid_client\",\"errorId\":\"oae1ZVIzEDBRh-AeVJzPzqLGQ\",\"errorCauses\":[]}" component=setup

the error appeared after trying to add to the percona platform