{"record":{"id":"e531b134ab3408bb","repo":"weaviate/weaviate","slug":"init-additional-properties-provider-e531b1","errorCode":null,"errorMessage":"init additional properties provider","messagePattern":"init additional properties provider","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/text2vec-openai/module.go","lineNumber":80,"sourceCode":"func (m *OpenAIModule) Name() string {\n\treturn Name\n}\n\nfunc (m *OpenAIModule) Type() modulecapabilities.ModuleType {\n\treturn modulecapabilities.Text2ManyVec\n}\n\nfunc (m *OpenAIModule) Init(ctx context.Context,\n\tparams moduletools.ModuleInitParams,\n) error {\n\tm.logger = params.GetLogger()\n\n\tif err := m.initVectorizer(ctx, params.GetConfig().ModuleHttpClientTimeout, m.logger); err != nil {\n\t\treturn errors.Wrap(err, \"init vectorizer\")\n\t}\n\n\tif err := m.initAdditionalPropertiesProvider(); err != nil {\n\t\treturn errors.Wrap(err, \"init additional properties provider\")\n\t}\n\n\treturn nil\n}\n\nfunc (m *OpenAIModule) InitExtension(modules []modulecapabilities.Module) error {\n\tfor _, module := range modules {\n\t\tif module.Name() == m.Name() {\n\t\t\tcontinue\n\t\t}\n\t\tif arg, ok := module.(modulecapabilities.TextTransformers); ok {\n\t\t\tif arg != nil && arg.TextTransformers() != nil {\n\t\t\t\tm.nearTextTransformer = arg.TextTransformers()[\"nearText\"]\n\t\t\t}\n\t\t}\n\t}\n\n\tif err := m.initNearText(); err != nil {","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/modules/text2vec-openai/module.go#L62-L98","documentation":"This error wraps any failure from initAdditionalPropertiesProvider() during the text2vec-openai module's Init phase. The additional properties provider fetches/uses the OpenAI embeddings-based nearText properties support (e.g. 'moveAwayFrom'/'moveTo' helpers relying on the vectorizer); if its internal initialization fails, the module aborts startup and the error is surfaced wrapped as 'init additional properties provider'. It indicates the module could not complete plugin initialization, so Weaviate will refuse to start with this module enabled.","triggerScenarios":"Calling Weaviate startup with ENABLE_MODULES=text2vec-openai; the Init(ctx, params) method runs and initAdditionalPropertiesProvider() returns an error, causing errors.Wrap(err, \"init additional properties provider\"). Any failure inside the provider's constructor/dependency lookup produces this wrapper.","commonSituations":"Starting Weaviate with the OpenAI text2vec module enabled in docker-compose or helm; broken module binary or version mismatch where the module does not expose the required additional-properties capability; nil dependencies passed to module Init in custom wiring.","solutions":["Read the inner (wrapped) error in the log for the root cause; this wrapper is only the context layer","Verify ENABLE_MODULES only lists correctly built/compatible modules for your Weaviate version","Upgrade/downgrade the text2vec-openai module to match the Weaviate core version","Rebuild the Weaviate binary including the module if using a custom build","If you don't need the module, remove text2vec-openai from ENABLE_MODULES"],"exampleFix":"// before\nENABLE_MODULES=text2vec-openai,text2vec-transformers\n// after (module built from mismatched source)\n// rebuild with matching version, then:\nENABLE_MODULES=text2vec-openai","handlingStrategy":"validation","validationCode":"// Bash, before starting Weaviate\ndocker run --rm weaviate/weaviate:latest 2>&1 | grep -q 'init additional properties provider' \\\n  && echo 'module init failed' || echo 'ok'\n// In Go (embedding weaviate):\nimport \"strings\"\nfunc isAdditionalPropsInitErr(err error) bool {\n    return err != nil && strings.Contains(err.Error(), \"init additional properties provider\")\n}","typeGuard":"func moduleInitErrIs(err error, ctx string) bool {\n    // errors from module Init are wrapped; unwrap to classify\n    for e := err; e != nil; e = errors.Unwrap(e) {\n        if strings.Contains(e.Error(), ctx) {\n            return true\n        }\n    }\n    return false\n}\n// usage: moduleInitErrIs(err, \"init additional properties provider\")","tryCatchPattern":"if err := mod.Init(ctx, params); err != nil {\n    if strings.Contains(err.Error(), \"init additional properties provider\") {\n        logger.Fatalf(\"text2vec-openai additional-properties init failed, check inner error: %v\", err)\n    }\n    return fmt.Errorf(\"module init failed: %w\", err)\n}","preventionTips":["Keep module binaries and Weaviate core on matching release versions","Pin ENABLE_MODULES to only modules you actually use","Check Weaviate startup logs immediately after upgrades for wrapped init errors","Test module enablement in a staging container before production rollout"],"tags":["weaviate","modules","startup","text2vec-openai"],"backgroundTag":"module-init-failed","analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}