siyuan-note/siyuan · warning
Conf.Language(34)
Error message
Conf.Language(34)
What it means
EnsureOnboarding returns errors.New(Conf.Language(34)) when the workspace is read-only (util.ReadOnly) or publishing is enabled (Conf.Publish.Enable) while a new-user onboarding session still needs to run. The onboarding flow cannot safely write its state under those conditions, so it is aborted with a localized user-facing message.
Solutions
- Make the workspace data directory writable by the SiYuan process (fix permissions/ownership)
- Disable the Publish option in Settings - Publish (or remove the publish config) so onboarding can proceed
- Remount the volume read-write (e.g. remove :ro from the Docker mount)
- Complete onboarding on a writable instance instead
Example fix
// environment: docker run -v siyuan-data:/data:ro ... // before $ docker run -v siyuan-data:/data:ro b3log/siyuan // after (read-write mount, writable user) $ docker run -v siyuan-data:/data b3log/siyuan
Defensive patterns
Strategy: validation
Validate before calling
// Before relying on onboarding, check workspace writability
if util.ReadOnly || conf.PublishEnabled {
// onboarding will be skipped; do not depend on it
} Try / catch
docs, _, err := EnsureOnboarding()
if err != nil {
// err is a localized user message; show it and skip onboarding gracefully
} Prevention
- Mount the workspace data directory read-write before first launch
- Disable publish mode while running initial setup
- Check container volume flags (:ro vs read-write) when deploying with Docker
- Fix directory ownership so the SiYuan process user can write
When it happens
Trigger: A brand-new user (onboarding.NewUser true, State != OnboardingCompleted) opens SiYuan while the workspace is mounted read-only, or while the Publish feature is enabled; the kernel refuses to run the interactive onboarding steps.
Common situations: Running SiYuan from read-only media or a read-only volume mount; workspace directory owned by another user; publish server mode where onboarding writes would conflict; Docker container with read-only data volume.
Understand the failure class
Background: "Invalid value" and "allowed values are" config errors: what your library rejected and how to fix it — this error's family across 41 libraries.
Related errors
- invalid agent permission mode
- invalid boot appearance selection
- no encrypted key material for box
- Please initialize the data repo key first in [Settings -…
- read-only mode
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/b31fcab70dd1d09c.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/model/onboarding.go:109
onboarding := Conf.Onboarding
if !onboarding.NewUser || onboarding.Dismissed {
return cloneOnboarding(onboarding), false, nil
}
boxes, listErr := ListNotebooks()
if listErr != nil {
return cloneOnboarding(onboarding), false, listErr
}
documentExists := onboarding.NotebookID != "" && onboarding.DocumentID != "" && filelock.IsExist(filepath.Join(
util.DataDir, onboarding.NotebookID, onboarding.DocumentID+".sy"))
if reconcileOnboarding(onboarding, boxes, documentExists) {
Conf.Save()
}
if !onboarding.NewUser || onboarding.State == conf.OnboardingCompleted {
return cloneOnboarding(onboarding), false, nil
}
if util.ReadOnly || Conf.Publish.Enable {
return cloneOnboarding(onboarding), false, errors.New(Conf.Language(34))
}
if onboarding.NotebookID == "" {
if len(boxes) > 0 {
if len(boxes) == 1 && boxes[0].Name == Conf.Language(342) {
onboarding.NotebookID = boxes[0].ID
onboarding.State = conf.OnboardingNotebookCreated
Conf.Save()
} else {
onboarding.State = conf.OnboardingCompleted
onboarding.NewUser = false
Conf.Save()
return cloneOnboarding(onboarding), false, nil
}
}
if onboarding.NotebookID == "" {
onboarding.NotebookID, err = CreateBox(Conf.Language(342))View on GitHub (pinned to 9f775e8a12)