goharbor/harbor · error

no log data getter is configured

Error message

no log data getter is configured

What it means

logger.Retrieve failed because the package singleton store contains no log data getter under systemKeyLogDataGetter — the jobservice log getter was never initialized, so there is no backend to read log data from. This is an initialization-order/config issue, not a bad input.

Solutions

  1. Call the getter initialization (logger.GetLogger or the setter that stores the file getter singleton) during jobservice startup before serving requests
  2. Ensure Retrieve is only used inside the jobservice process, not from other binaries that skip initialization
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at src/jobservice/logger/log_data_handler.go:27 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16). Data as JSON: /api/errors/464c9b4407e930bf. Report an issue: GitHub.

Appendix: source

Thrown at src/jobservice/logger/log_data_handler.go:27

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package logger

import (
	"errors"

	"github.com/goharbor/harbor/src/jobservice/logger/getter"
)

// Retrieve is wrapper func for getter.Retrieve
func Retrieve(logID string) ([]byte, error) {
	val, ok := singletons.Load(systemKeyLogDataGetter)
	if !ok {
		return nil, errors.New("no log data getter is configured")
	}

	return val.(getter.Interface).Retrieve(logID)
}

View on GitHub (pinned to 7b2fd08cc5)