ExportXMLWordPrintable

    • Prev.Sprint, S26-W44/45
    • 1

      Precondition:

      • Frontend runs on PHP 8.5.
      • Global APM data source (Administration > Data source > APM) points to ClickHouse with a user that ClickHouse rejects for the query, e.g. a user without SELECT on the otel tables:
        CREATE USER qa_noperm IDENTIFIED WITH plaintext_password BY 'qa_noperm'
        
      • Administration > Data source > APM: Username/Password qa_noperm, click Update

      Steps to reproduce:

      • Open Monitoring > APM > Traces
      • Click Apply

      Result: Depricated error message appears =>

       Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0 [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerDataTable->doAction() →
        CControllerApmTraceListData->getData() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CApmTrace->get() →
        CApmTrace->getFromClickHouse() → ApmDbClickHouse->fetch() in include/classes/db/ApmDbClickHouse.php:143]
        Database error occurred.
      

      Expected: No PHP deprecation message, only "Database error occurred.".

      Affected places: All APM pages that read ClickHouse through ApmDbClickHouse::fetch() (Traces, Logs, Metrics).

            Assignee:
            Janis Freibergs
            Reporter:
            Kirils Seve
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 7.75h
                7.75h