Error codes
Every code below is a stable string; match the code, not the message. ctl has its own JSON envelope and exit codes (Run ctl commands); CTL_* build codes are below.
| Where you see it | Form |
|---|---|
| CLI text output | [CODE] message on stderr; exit code 1. |
CLI --json | {"ok":false,"code":"CODE","message":"…","hint":"…"} on stdout; some failures add a data report. |
| App RPC (UI to backend) | {"success":false,"error":{"code":"…","message":"…"}} at HTTP 200; ctx.call rejects with {code, message} (App API reference). |
A failing check names the file, line and a suggestion; code is the first error.
CLI errors
Section titled “CLI errors”synopkgland reports the codes below. Codes that start with COMPOSE_, CONTRACT_, INSTALL_ and HOMES_ belong to container (Compose) apps; codes that start with STANDALONE_ belong to native apps (dsm-package.yaml).
| Code | Meaning | Suggestion |
|---|---|---|
ADD_FILE_CONFLICT | Existing files conflict with the SDK overlay. | Move or merge the listed conflicting files before running add; the CLI never overwrites different content. |
ADD_LAYOUT_UNSUPPORTED | The SDK overlay needs the standard backend directory. | Use backend.dir: backend, or merge the SDK overlay manually. |
APP_SCRIPT_INVALID | A dsm-scripts/ | Make it a regular file in the project’s dsm-scripts/ folder. |
APP_SCRIPT_NO_SHEBANG | A dsm-scripts/ | Start the file with an interpreter line such as #!/bin/sh. |
APP_SCRIPT_NOT_EXECUTABLE | A dsm-scripts/ | Run chmod +x on the file. |
APP_SCRIPT_UNKNOWN | A file in the project’s dsm-scripts/ folder does not have a DSM package script name the SDK runs. | Name it preinst, postinst, preuninst, postuninst, preupgrade, postupgrade or start-stop-status, or move it out of dsm-scripts/. prereplace and postreplace are not supported. |
APPROVAL_BASELINE_INVALID | The baseline SPK failed inspection. | Pass the unmodified released SPK of the same package and architecture; inspect it for findings. |
BUILD_NOT_REPRODUCIBLE | A second SPK built by build —verify-reproducible differs from the first. | Look at the listed payload and metadata files and remove anything that changes per build (timestamps, random or absolute paths, unpinned dependencies). |
CAPABILITY_COMBINATION_INVALID | The capability combination with the runtime or UI is invalid. | daemon cannot combine with capabilities.jobs; identity/login needs a vue UI (—ui vue). |
CAPABILITY_INVALID | The capability declaration is invalid. | Use files: session, jobs: true or {worker: sha256-v1}, identity: standalone, rootOps: true. |
CAPABILITY_UNSUPPORTED | This runtime does not support the chosen capability. | files, jobs and identity need backend.kind: go; compose does not support native capabilities. |
CATALOG_INSTALL_FAILED | NAS Package Center failed to install the package. | Check the install log in DSM Package Center or try installing manually. |
CLI_ARCH_INVALID | The architecture option is invalid. | Use x86_64, aarch64 or armv7 (armv7 is for native-go and binary, not for Container Manager Apps). |
CLI_ARGUMENT_MISSING | A command argument is missing. | Use —help to see the required arguments. |
CLI_COMMAND_UNKNOWN | Unknown command. | Use synopkgland —help to see the commands. |
CLI_JOBS_INVALID | —jobs is not a positive integer. | Use —jobs 1 (the default) or a larger integer. |
CLI_OPTION_ARGUMENT_MISSING | An option is missing its value. | Pass the value the option needs. |
CLI_OPTION_INVALID | A command option is invalid. | Use —help to check the options and the available runtime. |
CLI_OPTION_MISSING | A required option is missing. | Use —help to see the required options. |
CLI_OPTION_UNKNOWN | Unknown CLI option. | Use —help to see the currently supported options. |
CLI_OUTPUT_ARCH_REQUIRED | Writing a single file needs an architecture. | Combine -o with a single —arch, or use —out-dir. |
COMMAND_FAILED | The command failed. | Check the message and stderr, fix the problem and retry. |
COMPOSE_ACQUIRE_GENERATION_INVALID | The lifecycle acquire generation is missing, released or stale. | Start the installed package through Package Center; this record does not attest Docker identity. |
COMPOSE_ANONYMOUS_VOLUME_UNSUPPORTED | The declared value:the declared value needs a stable declared volume. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_BASE_PATH_UNSUPPORTED | Use the upstream’s dedicated origin at /; automatic subpath asset rewriting is not supported. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_BUILD_UNSUPPORTED | The declared value must use an upstream prebuilt image. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_EGRESS_ALLOWLIST_UNSUPPORTED | Choose isolated or internet; destination allowlists are not implemented. | Declare isolated or internet; destination allowlists are unsupported. |
COMPOSE_ENV_INVALID | Invalid service environment. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_ENV_MISSING | The project is missing the required environment variable directory structure. | Make sure SYNOPKG_PKGVAR and the secrets directory are created correctly. |
COMPOSE_EXTERNAL_VOLUME_UNVERIFIED | External volume the declared value needs trusted admin ownership/driver readback; no official controller is configured. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_FILE_RESOURCE_UNSUPPORTED | Secret/config resource delivery is not implemented; use explicit package-owned configuration. | Use bounded regular project-local files without symlink or remote dependencies, then rebuild from unchanged bytes. |
COMPOSE_GPU_INVALID | The GPU declaration requires bounded package-UID services. | Declare distinct active names in compose.devices.gpu.services; retain package UID and no added capabilities. Let the SDK discover Intel render nodes and the native videodriver GID. |
COMPOSE_HEALTH_NOT_READY | The App health endpoint did not return the expected status. | Check the declared App health path/status and upstream health; redirects are not followed. |
COMPOSE_HEALTH_REQUIRED | Bridge ingress requires a declared App health endpoint. | Set compose.web.health.path and its expected 2xx status. |
COMPOSE_HOST_UDP_INVALID | The host UDP listener declaration is invalid. | Declare at most 32 distinct compose.host_udp ports from 1024 to 65535, each with a lowercase purpose label. Use the verified nonroot host Web topology; no added capabilities are required. |
COMPOSE_IMAGE_INVALID | Service the declared value needs an image. | Use the intended anonymous registry repository and verified Linux platform digest; recheck source/image proofs and rebuild. |
COMPOSE_IMAGE_LOCK_INVALID | Unsafe image VOLUME target. | Use the intended anonymous registry repository and verified Linux platform digest; recheck source/image proofs and rebuild. |
COMPOSE_IMAGE_PLATFORM_UNSUPPORTED | The declared value has no Linux the declared value image. | Use the intended anonymous registry repository and verified Linux platform digest; recheck source/image proofs and rebuild. |
COMPOSE_IMAGE_RESOLVE_FAILED | Registry mirror must be an HTTPS origin. | Use the intended anonymous registry repository and verified Linux platform digest; recheck source/image proofs and rebuild. |
COMPOSE_INPUT_CHANGED | Compose input bytes changed after planning. | Use bounded regular project-local files without symlink or remote dependencies, then rebuild from unchanged bytes. |
COMPOSE_LEGACY_MANIFEST_REMOVED | Compose requires a schema-2 dsm-package.yaml declaration. | Run init -t compose and declare differences in schema-2 dsm-package.yaml while retaining upstream bytes. |
COMPOSE_LOCK_INVALID | Private storage inventory is invalid. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_MODEL_INVALID | The declared value. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_NETWORK_UNSUPPORTED | Network the declared value must be a managed bridge without custom driver/IPAM options. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_NOT_HEALTHY | The Compose service did not reach healthy within the time limit. | Check the container healthcheck and application logs: synopkgland logs —host |
COMPOSE_NOT_RUNNING | The Compose service did not stay running within the time limit. | Check the container start script and logs for the crash cause: synopkgland logs —host |
COMPOSE_OIDC_TOPOLOGY_UNSUPPORTED | Host service the declared value requires oidc Web ingress and a verified address_env. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_PACKAGE_INVALID | Package must be 2-64 alphanumerics starting with a letter. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_POSIX_ALL_SHARES_SUFFIX_FORBIDDEN | A POSIX all-shares marker must not carry a Share subpath. | Use the complete ${ALL_SHARES} source only; the package-only preinst expands each Share’s container target. |
COMPOSE_POSIX_ALL_SHARES_UNDECLARED | Compose uses an undeclared POSIX all-shares marker. | Declare type: posix_all_shares so the package-only wizard/CLI takes the Share snapshot at install time. |
COMPOSE_PRIVATE_BIND_TIMING_UNSUPPORTED | DSM private-bind initialization is unavailable before official worker acquire. | Use an explicitly selected arbitrary-UID-compatible named volume or keep the configuration unsupported; never initialize pkgvar as root. |
COMPOSE_PRIVILEGE_UNSUPPORTED | Container root capability the declared value is not supported. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_PROJECT_CONTROL_UNAVAILABLE | Protected official Compose project control is unavailable. | Keep the project disabled until an official protected ACL/project Adapter has been verified; do not use host root or a destination grant. |
COMPOSE_READINESS_INVALID | Bridge readiness configuration is invalid. | Rebuild with the matching SDK and declare a local health path and expected 2xx status. |
COMPOSE_REQUEST_INVALID | The unified Compose request is invalid. | Declare schema-2 files, web and supported DSM differences; see the Compose reference. |
COMPOSE_ROOT_FORBIDDEN | Prepare must run as the package account. | Use the package identity; container-root requires explicit reason, bridge and no host bind. Never elevate the App on the host. |
COMPOSE_ROOT_HOST_MOUNT_FORBIDDEN | Container-root service the declared value cannot bind host files or Shares. | Use the package identity; container-root requires explicit reason, bridge and no host bind. Never elevate the App on the host. |
COMPOSE_ROOT_OPT_IN_INVALID | Container root needs a reason and bridge networking. | Use the package identity; container-root requires explicit reason, bridge and no host bind. Never elevate the App on the host. |
COMPOSE_RUN_AS_INVALID | Service the declared value run_as must be package or container-root. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_SCALE_UNSUPPORTED | The declared value deploy/replicas need an explicit local runtime contract. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_SERVICE_UNKNOWN | Services.the declared value is not active. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_SHARE_INVALID | Shares.the declared value needs admin selection, ro/rw and fixed mounts. | Keep the project disabled until an official protected mount/project adapter is verified; never use a destination grant or host root workaround. |
COMPOSE_SHARE_NEEDS_APPROVAL | Declare capabilities.composeMounts: true; user destination grants cannot authorize package mounts. | Keep the project disabled until an official protected mount/project adapter is verified; never use a destination grant or host root workaround. |
COMPOSE_SOURCE_UNSAFE | Files must contain 1-32 local Compose files. | Use bounded regular project-local files without symlink or remote dependencies, then rebuild from unchanged bytes. |
COMPOSE_STARTUP_INVALID | The container startup budget is invalid. | Set compose.startup_timeout_seconds to an integer from 2 to 900 (default 900), and use SYNOPKGLAND_STARTUP_BUDGET_SECONDS in the bootstrap adapter. |
COMPOSE_STARTUP_TIMEOUT | Container readiness exhausted its declared startup budget. | Inspect the safe phase code in daemon/daemon.log and bootstrap health; declare a sufficient bounded budget, rebuild and keep ingress closed until ready. |
COMPOSE_STORAGE_COMMAND_INVALID | The application command after storage preflight cannot be executed. | Declare the actual upstream executable and arguments. Keep the upstream official image unchanged; the SPK supplies the SDK initializer. |
COMPOSE_STORAGE_INIT_INVALID | The container storage initialization declaration is invalid. | Declare private subdirectories on writable mounts and explicit upstream entrypoint/command argv; keep the service nonroot. The SDK initializer is supplied by the SPK. |
COMPOSE_STORAGE_INVALID | Data.the declared value needs an active service, target, storage: package and safe path. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_STORAGE_NOT_READY | Invalid package var path. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_STORAGE_NOT_WRITABLE | The package UID cannot initialize or write its private container data. | Use a writable mount base with a package-owned private subtree; inspect ownership, permissions, read-only storage, quota and free space. Do not add root or chown hooks. |
COMPOSE_STORAGE_UNMAPPED | The declared value:the declared value needs package data or an approved Share mapping. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_SUBNET_CONFLICT | The fixed ingress subnet overlaps a NAS route. | Choose a different compose.network.ingress_candidate and rebuild; do not change NAS networks. |
COMPOSE_SUBNET_INVALID | Invalid ingress subnet candidate. | Set compose.network.ingress_candidate to an integer from 0 through 255. |
COMPOSE_SUBNET_INVENTORY_UNAVAILABLE | Kernel route inventory is unavailable. | Use a supported Linux package-account environment; never borrow Docker socket or administrator credentials. |
COMPOSE_SUBNET_STATE_INVALID | The private ingress history is invalid or has foreign ownership. | Inspect the package private state; do not bypass route checks or claim network ownership. |
COMPOSE_TCP_NOT_READY | The declared ingress TCP endpoint is unavailable. | Inspect the official project’s startup result; do not expose upstream ports to the LAN. |
COMPOSE_VOLUME_DRIVER_UNSUPPORTED | Reserved image volume namespace collision. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
COMPOSE_WEB_INVALID | Compose web ingress is invalid. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
CONTAINER_ARCH_UNSUPPORTED | Container Manager Apps support only x86_64 and aarch64; DSM does not provide Container Manager for armv7. | Use —arch x86_64 or aarch64, or switch to the native-go template. |
CONTRACT_ACCESS_GROUPS_INVALID | integration.web.groups is missing, malformed, or not combined with access: dsm-groups. | Use access: dsm-groups and list DSM group names, or remove groups. |
CONTRACT_ACCESS_INVALID | The integration.web.access mode is invalid. | Use dsm-users (signed-in DSM users, the default), dsm-admins, dsm-groups (with groups), or public to keep an anonymous Web Station entry. |
CONTRACT_ACCESS_REQUIRES_WEB | A headless App does not declare Web access rules. | Remove integration.web.access/groups, or add the adminport that matches the Compose published port. |
CONTRACT_ADMINPORT_INVALID | adminport must be an integer. | Provide an integer adminport in synology-app.yaml that matches the Compose published port. |
CONTRACT_HOMES_PATH_FORBIDDEN | A homes Install Parameter must not write a NAS physical path or default value into the contract. | Declare only type: homes, reference the parameter in Compose, and let the package resolve this NAS’s User Home path at install time. |
CONTRACT_HOMES_UNSUPPORTED | install. | If the App needs an administrator-chosen folder, use type: shared_folder instead. The homes type stays closed until the wizard control and preinst path resolution exist. |
CONTRACT_I18N_INVALID | The i18n configuration in synology-app.yaml is invalid. | i18n accepts only info; info is keyed by a supported language such as zh-TW or ja with single-line displayname / description values without ” or \ (English goes at the top level). |
CONTRACT_ICON_INVALID | The icon in synology-app.yaml is not a usable package icon. | Set icon to a square PNG inside the project (at least 256x256), or a directory of icon_ |
CONTRACT_INVALID_STRING | A contract string contains a control character or the ${ interpolation syntax, which is not allowed. | Remove control characters and ${ interpolation; declare install parameters in the install block. |
CONTRACT_LAUNCH_INVALID | The integration.web.launch mode is invalid. | Use dsm-window (DSM window) or new-page (new tab, the default); omit this field for a headless App. |
CONTRACT_LAUNCH_REQUIRES_WEB | A headless App does not declare a Web Launch Mode. | Remove integration.web.launch, or add the adminport that matches the Compose published port. |
CONTRACT_MISSING_FIELD | synology-app.yaml is missing a required field. | Add the missing required fields to synology-app.yaml (for example package, version, displayname). |
CONTRACT_PACKAGE_TOO_LONG | The Package Identity exceeds the DSM limit of 32 characters. | Shorten the package name in synology-app.yaml to 32 characters or fewer. |
CONTRACT_PORTAL_REQUIRES_EXECUTOR | The Compose contract declares unsupported integration.web.portal. | Use schema 2 with top-level portal and DSM 7.2-64570+, or remove integration.web.portal. |
CONTRACT_POSIX_ALL_SHARES_LISTING_UNSUPPORTED | posix_all_shares requires the CLI to take a Share list snapshot of this NAS with an administrator session at install time; Package Center and Package Source listing cannot fulfill this contract. | Use synopkgland deploy —host |
CONTRACT_POSIX_ALL_SHARES_VALUE_FORBIDDEN | A POSIX all-shares parameter must not specify a default or NAS physical path in the contract. | Declare only type: posix_all_shares and let the wizard/CLI take the current Share snapshot at install time. |
CONTRACT_SCHEMA_INVALID | synology-app.yaml does not match the JSON Schema. | Fix the field formats in synology-app.yaml so they match the schema. |
CONTRACT_SCHEMA_UNSUPPORTED | The schema version in synology-app.yaml is not supported. | Set the schema field in synology-app.yaml to 1. |
CONTRACT_SECRET_UNSUPPORTED | install. | Use type: string (non-sensitive), or have the App fetch the secret itself at startup or read a file an administrator places in ${SYNO_APP_SECRETS_DIR}. The secret type stays closed until the DSM worker failure reason is observable. |
CTL_COMMAND_UNREGISTERED | A command references an unregistered backend method. | Correct ctl.commands bindings or register the backend method. |
CTL_DECLARATION_INVALID | The ctl declaration is invalid. | Check ctl.enabled, aliases and explicit commands in dsm-package.yaml. |
CTL_DESCRIBE_FAILED | The backend registry export failed. | Check the backend —describe output and build diagnostics. |
CTL_DESCRIBE_REQUIRED | The Go backend has no build-only registry exporter. | Update the native template and implement —describe using api.DescribeRoutes. |
CTL_DESCRIPTOR_INVALID | The generated API description violates the public contract. | Correct ctl.commands and rebuild the private synopkgland-api.json. |
CTL_HOST_REQUIRED | Select a registered NAS host | Run synopkgland host add, select —host, or set host default |
CTL_NOT_AUTHENTICATED | DSM session expired or absent | synopkgland host login <name> |
CTL_TRUST_REQUIRED | App description access requires approval. | Run synopkgland ctl list with explicit host and approve the candidate batch. |
CTL_UNSUPPORTED_BACKEND | Automatic descriptions require a native SDK backend. | Disable ctl for binary/Compose wrappers or implement the public contract separately. |
DEPLOY_ARCH_UNDETERMINED | The NAS architecture could not be determined. | Use —arch x86_64, aarch64 or armv7. |
DEPLOY_BUILD_OUTPUT_INVALID | The number of deploy build outputs does not match. | Specify a single architecture and build again. |
DEPLOY_FAILED | An unclassified error occurred while deploying to the NAS. | Check NAS connectivity and logs: synopkgland logs —host |
DEPLOY_PARAM_REQUIRED | The first install of an install-selected delegate package did not provide the install wizard scope value, so preinst rejects the install. | Add —param delegate_share= |
DEPLOY_PARAM_TYPE_INVALID | The deploy —param value does not match the string or boolean type declared in the contract. | Pass a non-empty string for string; pass only true or false for boolean. |
DEPLOY_PARAM_UNDECLARED | deploy —param provided an Install Parameter the contract does not declare, or an install wizard value that a native-go/binary package does not have. | For Compose pass only string or boolean names declared in synology-app.yaml install; native-go/binary accept only delegate_share or delegate_home from the install-selected delegate. |
DEPLOY_PLAN_INVALID | The deploy plan does not match the runtime. | Run check again and regenerate the deploy plan. |
DEPLOY_VERSION_INVALID | The package version is invalid or lower than the installed version. | Set a higher valid version/build and deploy again. |
DEVELOPMENT_INSTANCE_UNSUPPORTED | A native project does not support —dev. | Use a different package ID when running init. |
DSM_COMPOUND_FAILED | A substep of the DSM compound install request failed. | Check the api, method and errorCode in the response and the DSM Package Center log, then retry. |
DSM_DEPENDENCY_CONFLICT | DSM rejected the compound install request because of running dependent packages. | Stop the listed dependent packages, then retry the upgrade. |
DSM_REQUEST_FAILED | The DSM SYNO.Entry.Request compound request failed. | Check the DSM session, request parameters and Package Center log, then retry. |
DSM_TLS_UNTRUSTED | Strict TLS: the DSM certificate failed CA, hostname or validity verification | Check the —ca PEM file, NAS hostname and certificate validity; NAS certificates are accepted by default without —strict-tls or —ca |
DSM_USER_LOGICAL_NAME_REQUIRED | A dsm_user parameter needs a DSM user logical name; a numeric UID is forbidden. | Pass the DSM account name with —run-as (for example —run-as RUN_AS=alice). |
DSM_USER_REQUIRED | A Shared Folder requires exactly one dsm_user as the Container Run-as. | Add install. |
EXECUTOR_BUILD_FAILED | Compiling the executor or lifecycle helper from the App’s SDK version failed. | Confirm Go 1.21 or later is installed and go1.26.10 is available (prepare it offline), and check the compiler output in the message. |
EXECUTOR_DIGEST | The sha256 pin for the executor or policy is malformed. | Build again so the CLI recomputes the pin; do not hand-edit pins inside the SPK. |
EXECUTOR_DIGEST_MISMATCH | The executor built from the SDK version does not match the sha256 table bundled in the CLI, or the table has no entry for this SDK version. | Confirm github.com/synopackageland/syno-pkg-land-sdk in backend/go.mod is a release version and Go is go1.26.10; upgrade the CLI when the table has no entry for that version. |
EXECUTOR_DIGEST_UNVERIFIED | SYNOPKGLAND_SDK_DIR points at a local SDK, so the executor was not checked against the sha256 table (warning). | Development only; for a publishable SPK unset SYNOPKGLAND_SDK_DIR and build again. |
EXECUTOR_PACKAGE | The package name pinned into the root task is invalid. | package must start with a letter and contain only alphanumerics (2-64 characters). |
EXECUTOR_PIN_REQUIRED | A package that declares rootOps or delegate was built without the executor artifact. | Use synopkgland build so the CLI compiles and pins the executor; do not call the low-level SPK API directly. |
EXECUTOR_POLICY | capabilities.delegate has invalid operations or scope, or a binary root program lacks the file for this architecture, so the executor policy cannot be generated. | Use the delegate declaration init/add produces and fix scope and operations against the manifest reference; for binary root programs provide root/ |
EXECUTOR_POLICY_REJECTED | The executor of the App’s SDK version refuses the policy the CLI generated, so the NAS would refuse it at approval. | The reason names the refused part: policy root/start/stop/purge → root.programs (schema, run, job), root.start, root.stop, uninstall.purge; policy scope/operation/destination/move/lifetime → capabilities.delegate; policy portal → portal; policy entry → entry. Fix that part of dsm-package.yaml; if it already matches the manifest reference, use the SDK version this CLI release names. |
EXECUTOR_ROOT_PROGRAMS_UNSUPPORTED | The root settings in dsm-package.yaml need an executor that supports root program settings, which the App’s SDK version lacks. | Use an SDK with root programs, stop and root_state (executor/stop_step.go), or remove the root settings. |
EXECUTOR_TASK_LENGTH | The root task script exceeds the DSM task scheduler’s length limit. | Shorten the root/ scripts; move the logic into a file inside the package and call it from the script. |
EXECUTOR_TASK_PERCENT | The root task script contains %, which the DSM task scheduler cannot store. | Remove % from the root/ scripts (for example rewrite the date format). |
GATEWAY_ARCH_FAMILY_REQUIRED | The DSM verification gateway is a native binary, so the SPK must name its target architecture. | Add —arch x86_64 or —arch aarch64 (deploy detects it from the NAS); only Apps without DSM verification may choose public in integration.web.access. |
HOMES_NOT_ENABLED | The target NAS has User Home disabled, or the homes physical bind source cannot be resolved. | Enable DSM User Home on this NAS, confirm the DSM API returns the resolved path, then deploy again. |
HOST_CERT_CHANGED | Strict TLS: the NAS certificate differs from the recorded SHA-256 | Verify old/new fingerprints, then run synopkgland host trust |
HOST_CONNECTION_REFUSED | The NAS refused the connection | Check the DSM port and NAS availability |
HOST_DNS_FAILED | The NAS hostname could not be resolved | Check the registered hostname and DNS |
HOST_TIMEOUT | The NAS request timed out | Check connection and firewall; inspect state before retrying writes |
HOST_TLS_UNTRUSTED | Strict TLS: the NAS certificate failed CA, hostname or validity verification | Check the CA file, NAS hostname and certificate validity, or omit strict TLS |
IMAGE_PIN_REQUIRED | The image digest is not pinned. | Run images pin. |
INIT_BINARY_BUILD_FAILED | The binary example failed to compile. | Install Go or provide your own static CGI ELF. |
INIT_COMPOSE_INVALID | The imported Compose is invalid. | Point —from at a YAML file with services. |
INIT_DISPLAY_NAME_INVALID | The display name is invalid. | Use single-line text without quotes or backslashes. |
INIT_HEALTH_INVALID | The Compose readiness selection is invalid. | Supply both —health-path and —health-status with the actual endpoint and expected 2xx response; redirects are not followed. |
INIT_OPTIONS_UNSUPPORTED | The option does not apply to this template. | —from is compose only; —ui is native templates only (native-go, native-python, native-node, native-rust). |
INIT_PACKAGE_INVALID | The package name is invalid. | Use a 2-64 character alphanumeric name that starts with a letter. |
INIT_PUBLISHER_INVALID | The attribution name or publisher URL is invalid. | Use plain single-line project/publisher names and an http(s) publisher URL without credentials. |
INIT_SHARED_FOLDER_INVALID | The shared folder option is invalid. | Use select or create; add —shared-folder-name with create. |
INIT_TARGET_NOT_EMPTY | The init directory already has conflicting files. | Use an empty directory; add capabilities to an existing project with add. |
INIT_TEMPLATE_REQUIRED | No template was specified. | Use -t native-go, native-python, native-node, native-rust, binary or compose. |
INIT_TEMPLATE_UNKNOWN | Unknown template. | Use -t native-go, native-python, native-node, native-rust, binary or compose. |
INIT_UI_INVALID | The UI option is invalid. | Use —ui vue or plain. |
INIT_UPSTREAM_IMAGE_INVALID | The upstream image repository is invalid. | Supply the official repository without a tag or digest; upgrade.sh selects the matching release and resolves its digest. |
INIT_UPSTREAM_IMAGE_REQUIRED | The official upstream image repository was not selected. | Use init —upstream-fork —upstream-image |
INIT_UPSTREAM_INVALID | The upstream repository URL is invalid. | Supply —upstream with an HTTPS repository URL without credentials. |
INSTALL_SETTINGS_INVALID | The installation setting declaration is invalid. | Declare 1–32 lowercase identifier keys in install.settings, each with type https-origin, a plain label and an explicit boolean required; omit defaults and values. |
INSTALL_STRING_INVALID | An Install Parameter string value contains an invalid character or interpolation. | Remove control characters and ${ interpolation from the install parameter default. |
INSTALL_STRING_TOO_LONG | An Install Parameter string default exceeds 256 characters. | Shorten the default string of the install parameter in synology-app.yaml. |
LAUNCHER_PORTAL_MISMATCH | The launcher has Portal fields without a matching explicit Portal declaration. | Remove defaultAlias and login fields, or explicitly enable portal and rebuild. |
LAUNCHER_TYPE_MISMATCH | The built launcher or INFO entry differs from the declared launch mode. | Rebuild with synopkgland build; native new-page uses standalone, and schema-1 web uses url at the trusted entry; schema-2 SDK wrappers use standalone. |
MIN_DSM_CONTAINER_FLOOR | The Compose minimum DSM version is too low. | Compose needs DSM 7.2.1-69057 or later. |
MIN_DSM_INVALID | The minimum DSM version format is invalid. | Specify a 7.x release or a full 7.x-build. |
NAS_ADMIN_REQUIRED | Package installation and removal require an administrator | Register and log in with a DSM administrator account |
NATIVE_LAYOUT_INVALID | The native layout’s manifest, hooks, toolkit or artifacts violate the package-only contract. | Use schema 2 with backend.kind: native; check paths, ELF linkage and checksum pins. |
NATIVE_LAYOUT_SCRIPT_NOT_EXECUTABLE | A scripts/ lifecycle script in the native layout metadata is not executable (inspect’s SPK_SCRIPT_NOT_EXECUTABLE). | chmod +x the script in the layout metadata directory, then build again. |
NATIVE_TOOLKIT_TAR_UNSUPPORTED | Extracting native.toolkits needs GNU tar or bsdtar, but the tar on PATH is neither. | Point the tar on PATH at GNU tar or bsdtar (macOS ships bsdtar, most Linux distros GNU tar), then build again. |
NOT_INSTALLED | The package is not installed on the target NAS yet. | Run synopkgland deploy —host |
NOTICE_MISSING | Third-party license information is missing. | Reinstall the template dependencies and generate the third-party notices. |
NOTICE_UNSAFE | A license file does not meet the regular-file limits. | Remove symlinks, special files and oversized license files. |
PACKAGE_IDENTITY_TOO_LONG | The Package Identity exceeds the length limit (28 characters for a formal identity, 32 for the final identity). | Shorten the package name in synology-app.yaml (at most 28 characters for the formal identity, leaving 4 characters for the .dev suffix). |
PORT_ALREADY_IN_USE | The deploy pre-install check found the Compose published TCP port already taken by another service or container. | Change the published host port in synology-app.yaml/compose.yaml; existing containers of the same Package Identity are allowed during upgrade or reinstall. |
PROJECT_NOT_FOUND | The project manifest was not found. | Run from the project root or use —project. |
PROJECT_RUNTIME_EXCLUSIVE | The project has both compose.yaml and dsm-package.yaml, which are mutually exclusive. | Choose compose.yaml (container App) or dsm-package.yaml (native App) and delete the other file. |
REPRODUCIBLE_INVALID | The reproducible configuration is malformed, or a listed input is not a file inside the project. | Use reproducible: {inputs: [files…], clean: [paths…]} with project-relative paths; {arch} is only allowed in clean. |
SDK_COMPOSE_BUILD_FAILED | The trusted SDK Compose tool could not be compiled. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
SDK_COMPOSE_FAILED | The SDK Compose tool could not return a valid plan. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
SDK_COMPOSE_UNSUPPORTED | This SDK release does not contain the unified Compose planner. | Correct the reported declaration in dsm-package.yaml; see the Compose support matrix. |
SDK_DIR_NOT_READY | The SDK checkout SYNOPKGLAND_SDK_DIR points at has no go.mod, or the ts package a Vue project needs is not built (no ts/dist). | Point at a syno-pkg-land-sdk checkout; for a Vue project first run pnpm install && pnpm run build in $SYNOPKGLAND_SDK_DIR/ts (pnpm does not build file: packages for you). |
SDK_DOWNLOAD_FAILED | go mod download cannot fetch the SDK version backend/go.mod requires. | Confirm the SDK version exists in the public repository and check network access to the configured Go proxy or github.com. Offline, run go mod download for that version on the same machine first. |
SDK_INSTALL_SETTINGS_BUILD_FAILED | The SDK installation settings controller could not be built. | Install the pinned Go toolchain, inspect the compiler diagnostics and rebuild with a complete matching SDK release. |
SDK_INSTALL_SETTINGS_UNSUPPORTED | The selected SDK does not provide native installation settings. | Use a matching SDK release with installsettings/cmd/control, then rebuild with the matching CLI. |
SDK_MANIFEST_INVALID | The resolved SDK executor manifest has invalid versions, toolchain or payload digests. | Reinstall the exact locked SDK package and verify its integrity; do not replace its manifest with runtime data. |
SDK_REQUIRED | Python, Node and Rust Apps, and rootOps or delegate, need the SDK, but the backend does not name an SDK version (Go: backend/go.mod; Python and Node: backend.sdk; Rust: syno-pkg-land-app in Cargo.toml). | In Go add require github.com/synopackageland/syno-pkg-land-sdk to backend/go.mod; in Python and Node write backend.sdk in dsm-package.yaml; in Rust depend on syno-pkg-land-app by git+tag in the App’s Cargo.toml; keep the version on the same minor as the CLI. |
SDK_TAG_REQUIRED | The Rust App’s Cargo.lock does not pin exactly one syno-pkg-land-app to a release tag (branch, rev, path, registry and multiple versions are all rejected). | Write syno-pkg-land-app = { git = “https://github.com/synopackageland/syno-pkg-land-sdk”, tag = “vX.Y.Z” } in Cargo.toml, run cargo update -p syno-pkg-land-app and commit Cargo.lock. |
SDK_UNSUPPORTED | The SDK the backend requires (backend/go.mod or backend/Cargo.lock) is not on this CLI’s minor line. | Use a CLI on the same minor as the SDK, or raise the SDK to a version line the CLI supports (listed in the message). |
SDK_VERSION_MISMATCH | The @synopackageland/sdk in frontend/package.json differs from the SDK version the backend requires (backend/go.mod or backend/Cargo.lock). | Make both sides the same version; for a file: dependency the comparison uses that directory’s package.json version. |
SHARE_LOGICAL_NAME_REQUIRED | A Share parameter needs a logical name; physical paths such as /volume1/… are forbidden. | Give the Shared Folder logical name from DSM Control Panel, for example —share MEDIA_SHARE=photos. |
SHARE_NOT_FOUND | The named Shared Folder was not found on the target NAS. | Create the Shared Folder in DSM Control Panel, or check the spelling. |
SHARE_RUN_AS_NO_ACCESS | The deploy pre-install check found that the chosen Container Run-as user has no permission on the chosen Shared Folder (or is explicitly denied). The container mounts the Share as that user, so the install succeeds but runtime reads and writes get Permission denied. | Grant that user (or their group) permission on the Shared Folder in DSM Control Panel, or choose another user/Share, then deploy again. This check only runs in deploy; the Package Center install wizard does not go through it, and ACLs remain the administrator’s responsibility. |
SHARE_VALUE_REQUIRED | Deploy is missing the physical path mapping for a shared_folder declared in the contract. | Provide the matching Shared Folder name with —share |
SPK_INSPECTION_FAILED | The SPK does not match the DSM 7 package format (dsm.errors), or a synopkgland-built SPK does not match the build contract (findings). | Fix the SPK_* rule codes and findings, then repackage; warnings do not affect the result. |
STANDALONE_API_PERMISSIONS_CHANGED | The API policy changed during the build. | Freeze permissions.json, then run check/build again. |
STANDALONE_API_PERMISSIONS_INVALID | The API policy is invalid. | Fix backend/internal/api/permissions.json. |
STANDALONE_ARCH_NOT_DECLARED | The requested build architecture is not in arches. | Add the architecture to arches in dsm-package.yaml, or use a declared —arch. |
STANDALONE_ARCHES_INVALID | arches is invalid. | List one or more unique values from x86_64, aarch64 or armv7. |
STANDALONE_BACKEND_INVALID | The backend configuration is invalid. | backend must contain exactly one of go (dir and a ./ main) or binary (keyed by architecture). |
STANDALONE_BACKGROUND_ARTIFACT_REQUIRED | The built worker is missing while assembling the background job SPK. | Build the complete artifacts with synopkgland build; do not call the assembler directly without the worker. |
STANDALONE_BACKGROUND_BUILD_FAILED | The package background worker could not be built. | Install Go 1.25 or later, confirm the backend has cmd/background-worker (create it with synopkgland init -t native-go —with jobs), and check the compiler stderr. |
STANDALONE_BACKGROUND_INVALID | The package background job declaration does not match the fixed worker contract. | Write only capabilities.jobs: true or { worker: sha256-v1 }, use backend.kind: go, and do not combine it with daemon or integration; background processes always run as the package account. |
STANDALONE_BINARY_ARCH_MISMATCH | The backend executable’s CPU architecture does not match the target. | Rebuild for that architecture, or fix the backend.files mapping. |
STANDALONE_BINARY_ARCH_MISSING | An architecture declared in arches has no backend.files executable. | Add the executable for that architecture to backend.files, or remove it from arches. |
STANDALONE_BINARY_DYNAMIC | The backend executable is dynamically linked. | Link statically (set CGO_ENABLED=0 for Go); the libc version differs across DSM models. |
STANDALONE_BINARY_MISSING | The backend executable was not found. | Confirm the file backend.files points at exists. |
STANDALONE_BINARY_NOT_ELF | The backend executable is not the little-endian Linux ELF the architecture needs (64-bit for x86_64 and aarch64, 32-bit for armv7). | Provide an x86_64, aarch64 or armv7 executable built for Linux. |
STANDALONE_BINARY_NOT_REGULAR | The backend executable is not a regular file. | Use a real file; no symlinks, directories or special files. |
STANDALONE_BINARY_TOO_LARGE | The backend executable exceeds 256 MiB. | Shrink the executable (for example -ldflags “-s -w”). |
STANDALONE_BRIDGE_APP_IN_UI | The backend.dir and ui.dir of a Python, Node or Rust App overlap; DSM serves the files under ui/ directly. | Put the App in a directory outside ui.dir (for example app/); neither may contain the other. |
STANDALONE_BRIDGE_APP_INVALID | The App directory contains a symlink or special file, or exceeds 256 MiB. | Keep only regular files and directories in the App directory; move large data out of it. |
STANDALONE_BRIDGE_DESCRIBE_FAILED | There is no backend.methods, so build starts the App to read hello, but the App did not answer a v1 hello. | Install python3 or node on the build machine and make sure the App starts; or list backend.methods in dsm-package.yaml. |
STANDALONE_BRIDGE_MANIFEST_INVALID | The bridge.json the CLI produced does not match spec/bridge/v1 manifest.schema.json. | Check backend.entry, methods and node.package; if it still fails, report the CLI bug. |
STANDALONE_BRIDGE_METHODS_MISMATCH | The App’s methods do not match permissions.json, or use an SDK method name; the runtime refuses to start. | permissions.json lists only the App’s own methods; an App method must not share a name with an SDK method (nas., identity., portal.status and others). |
STANDALONE_BUILD_INVALID | build is not an integer from 1 to 9999. | Set build to an integer from 1 to 9999 and increment it for each SPK release. |
STANDALONE_CONSOLE_INVALID | The console format or title in dsm-package.yaml is invalid. | Use console: {} for "<displayname> for DSM", or console: { title: My App Admin } with 1-64 characters and no quotes, backslashes or control characters. |
STANDALONE_CONSOLE_LAUNCH | console is declared together with ui.launch. | Remove ui.launch: the console always opens in a DSM window and the native icon in a new tab. |
STANDALONE_CONSOLE_PORTAL | console is declared together with portal. | Declare either console or portal, not both. |
STANDALONE_CONSOLE_REQUIRES_GATEWAY | console is declared on a Compose App or an App without identity_gateway. | Declare console only on a native App whose web UI the identity gateway serves; otherwise remove console and keep one icon. |
STANDALONE_DAEMON_ARTIFACT_REQUIRED | The built supervisor is missing while assembling the daemon SPK. | Build the complete artifacts with synopkgland build; do not call the assembler directly without the controller. |
STANDALONE_DAEMON_BUILD_FAILED | The package daemon’s Go supervisor could not be built. | Install Go 1.21 or later (builds pin go1.26.10 and need it offline) and check the compiler stderr; the NAS does not need a Go toolchain. |
STANDALONE_DAEMON_INGRESS_INVALID | daemon.ingress does not declare one same-origin path and a bounded proxy timeout. | Set daemon.ingress.path to / |
STANDALONE_DAEMON_INGRESS_MIN_DSM | daemon.ingress uses DSM’s web-config worker, which DSM 7.1 refuses in an unsigned package. | Raise os_min_ver to 7.2-64570 or later, or remove daemon.ingress. |
STANDALONE_DAEMON_INVALID | The package daemon declaration does not match the fixed argv, environment and lifecycle contract. | Check daemon.exec, the per-architecture targets, args, env, uninstall_args and integer-second timeouts; remove shell, user and custom conf. |
STANDALONE_DAEMON_NODE_INVALID | daemon.node does not name a Package Center Node.js package and a version of its major. | Set daemon.node.package to Node.js_v18, Node.js_v20 or Node.js_v22, and min_version (optional) to a version of that major such as 22.19.0. |
STANDALONE_DAEMON_PAYLOAD_INVALID | The daemon payload is not a bounded, link-free directory inside the project. | Rebuild the per-architecture bundles; remove symlinks, special files and setid bits, and keep the size under 512 MiB. |
STANDALONE_DAEMON_RESTART_INVALID | daemon.restart does not match the bounded native crash-recovery policy. | Use mode off or on-failure, integer delay/attempt/window limits, and max_seconds at least initial_seconds; omit or set limits to zero for SDK defaults and remove unknown fields. |
STANDALONE_DAEMON_RESTART_SDK_REQUIRED | The selected controller SDK version or source does not support daemon.restart. | Upgrade the selected controller SDK to a release with daemon restart support and use matching sources, including a local SDK override; update the App SDK requirement, identity_gateway.sdk or the templates that supply the default. |
STANDALONE_ENTRY_INVALID | The entry configuration is invalid. | Set entry to admin-only or app-privilege; app-privilege needs at least one authenticated route. |
STANDALONE_ENTRY_UNSUPPORTED | The backend cannot enforce the entry mode. | Use a Go backend: require github.com/synopackageland/syno-pkg-land-sdk in backend/go.mod and wrap the authenticator with dsm.NewEntryGate in the main.go of backend.main (init defaults to cmd/app/main.go). |
STANDALONE_ENTRY_WIDENED | entry: admin-only conflicts with routes that widen access. | Change the authenticated or public routes in permissions.json to administrators; to open it to regular users use entry: app-privilege or omit entry. |
STANDALONE_FIELD_UNKNOWN | dsm-package.yaml contains an unsupported field. | Remove the field; a Standalone Package does not accept custom lifecycle scripts or DSM conf. |
STANDALONE_GO_BUILD_FAILED | go build failed. | Run go build ./… in the backend directory and fix the errors. If github.com/synopackageland/syno-pkg-land-sdk is unreachable, check network access to the configured Go proxy or the public GitHub repository. |
STANDALONE_GO_MISSING | The go command was not found. | Install Go 1.25 or later (https://go.dev/dl/), or package an existing executable with backend.files. |
STANDALONE_I18N_CATALOG_INVALID | A message file is not a flat key -> text JSON object. | Use a format like { “greeting.save”: “Save” }. |
STANDALONE_I18N_GLOSSARY_INVALID | The glossary format is wrong, or it points at a message key that does not exist. | Fix the terms (id, text, keys) in glossary.json. |
STANDALONE_I18N_GLOSSARY_MISMATCH | A message does not use the DSM interface term from the glossary. | Use that language’s term from glossary.json to stay consistent with the DSM interface. |
STANDALONE_I18N_INVALID | The i18n configuration in dsm-package.yaml is invalid. | i18n accepts only messages, glossary and info; info is keyed by a supported language such as zh-TW or ja (English goes at the top level). |
STANDALONE_I18N_KEYS_MISMATCH | One language’s message keys differ from en.json. | Give every language file exactly the keys of en.json. |
STANDALONE_I18N_LOCALE_UNSUPPORTED | A message file’s language is not one of the nine supported locales. | Use en, zh-TW, zh-CN, ja, ko, de, fr, es, it; every other DSM language shows English. |
STANDALONE_I18N_MESSAGES_MISSING | The i18n.messages directory is missing en.json. | Add en.json; it is the fallback text and key list for every language. |
STANDALONE_I18N_PLACEHOLDER_MISMATCH | A translation has a missing or extra {placeholder}. | Keep every {name} placeholder from the en.json text. |
STANDALONE_ICON_INVALID | The icon in dsm-package.yaml is not a usable package icon. | Set icon to a square PNG inside the project (at least 256x256), or a directory of icon_ |
STANDALONE_IDENTITY_GATEWAY_ARTIFACT_REQUIRED | The built identity gateway is missing while assembling the SPK. | Build the complete artifacts with synopkgland build; do not call the assembler directly without the gateway. |
STANDALONE_IDENTITY_GATEWAY_BUILD_FAILED | The SDK identity gateway could not be built from identity_gateway.sdk. | Use an SDK release that contains idgateway/cmd/gateway, install Go (builds pin go1.26.10) and check the compiler stderr. |
STANDALONE_IDENTITY_GATEWAY_EXTERNAL_INVALID | The external access declaration does not match the gateway contract. | Set identity_gateway.external_access.connect to optional or none, origin_change to none or confirm, and single_origin to a boolean; required is not supported. |
STANDALONE_IDENTITY_GATEWAY_EXTERNAL_SDK_REQUIRED | External access requires an SDK with external access support and matching gateway sources. | Update identity_gateway.sdk and compose.sdk together to a release with external access support; ensure any development SDK override includes external access and settings.cgi support. |
STANDALONE_IDENTITY_GATEWAY_INVALID | The identity_gateway declaration does not match the gateway contract. | Declare a daemon; set sdk, mode (oidc, header or token), the App’s loopback upstream port and distinct listen ports other than 5000/5001; keep passthrough and redirects local paths outside /_sso; oidc needs issuer_port and clients, header needs headers.user, token needs token.exec in the daemon payload. |
STANDALONE_LOGIN_STYLE_IMAGE_INVALID | An image login_style names is missing, in the wrong format or the wrong size. | Use a JPEG wallpaper of at least 1920x1080 and at most 2 MiB, a 320x200 JPEG wallpaper_thumbnail and a 680x124 PNG title, inside the project. |
STANDALONE_LOGIN_STYLE_INVALID | login_style in dsm-package.yaml is malformed, or set without portal. | Declare portal, and give login_style only color (#RRGGBB), wallpaper together with wallpaper_thumbnail, and title; omit login_style to use the CLI default style. |
STANDALONE_MANIFEST_MISSING | dsm-package.yaml was not found. | Run from the project root, or create a project with synopkgland init -t native-go. |
STANDALONE_MANIFEST_YAML | dsm-package.yaml is not a valid YAML object. | Fix the YAML syntax in dsm-package.yaml. |
STANDALONE_NODE_DEPENDENCY_MISSING | The Node App’s package.json dependencies are not installed in the App’s node_modules. | Run pnpm install —prod —node-linker=hoisted in the App directory and build again; the CLI places @synopackageland/app, so it does not need installing. |
STANDALONE_NODE_SDK_NOT_BUILT | The App’s SDK version has no built Node SDK (node/dist). | Run pnpm install && pnpm run build in node/ of the SYNOPKGLAND_SDK_DIR checkout first; a release SDK must contain node/dist. |
STANDALONE_OS_MIN_VER_INVALID | os_min_ver has the wrong format. | Use |
STANDALONE_PACKAGE_INVALID | The package name is invalid. | Use a 2-64 character name that starts with a letter and contains only alphanumerics, for example PhotoTagger. |
STANDALONE_PATH_INVALID | The path field is not a relative path inside the project. | Use a path relative to the project root. |
STANDALONE_PATH_OUTSIDE_PROJECT | The path points outside the project directory. | Keep the files inside the project directory (also after resolving symlinks). |
STANDALONE_PORTAL_ENTRY_INVALID | When os_min_ver is below DSM 7.2-64570 the executor registers the portal, and the package name or displayname does not match its rules. | The package name may contain only alphanumerics separated by . _ -, at most 64 characters; displayname is 1-64 characters without control characters. |
STANDALONE_PORTAL_INVALID | The portal format or alias in dsm-package.yaml is invalid. | Use portal: {} or portal: { alias: my-app }; alias is 1-64 lowercase alphanumerics or -, and not a DSM reserved path. |
STANDALONE_PORTAL_MIN_DSM | A package that declares portal has os_min_ver below DSM 7.1-42661. | Before DSM 7.2-64570 the executor writes the entry into DSM’s app.d, and that format is only verified from DSM 7.1. Raise os_min_ver to 7.1-42661 or later, or remove portal. |
STANDALONE_PORTAL_REQUIRES_EXECUTOR | An App targets DSM below 7.2-64570 and declares portal without an executor. | Raise os_min_ver to 7.2-64570 or later; on DSM 7.1 declare an executor capability for registration. |
STANDALONE_PYTHON_SDK_MISSING | The App’s SDK version has no Python SDK (python/synopkgland_app). | Point SYNOPKGLAND_SDK_DIR at a syno-pkg-land-sdk checkout that has python/synopkgland_app, or require an SDK release that ships it. |
STANDALONE_REQUEST_TIMEOUT_SHORT | The request deadline ends before a root program that root.run may run would answer: the executor answers 10 seconds after run.timeout_s and its client waits 10 more. | Set backend.timeout_seconds to at least the program’s run.timeout_s (20 by default) + 20, or lower run.timeout_s. |
STANDALONE_ROOT_OP_INVALID | root/ contains an invalid root operation file. | A script must be a regular root/ |
STANDALONE_ROOT_OPS_MISSING | capabilities.rootOps: true is set but there are no root operations. | Put at least one |
STANDALONE_ROOT_OPS_UNUSED | The project has a root/ directory but capabilities.rootOps is not enabled. | Set capabilities.rootOps: true to use root operations, or delete root/. |
STANDALONE_ROOT_PROGRAMS_INVALID | The root settings in dsm-package.yaml are invalid, or the executor does not accept them. | root accepts only programs ( |
STANDALONE_RUNTIME_BUILD_FAILED | Compiling the bridge runtime (bridge/cmd/runtime) from the App’s SDK version failed, or the result was not built with go1.26.10. | Confirm Go 1.21 or later is installed and go1.26.10 is available; that SDK version must contain the bridge runtime; check the compiler output in the message. |
STANDALONE_RUST_BUILD_FAILED | The Rust App’s cargo zigbuild cross-compile failed, or it produced no binary for backend.entry. | Install Rust with rustup and the three targets (x86_64/aarch64-unknown-linux-musl, armv7-unknown-linux-gnueabihf), install cargo-zigbuild and zig; set backend.entry to the Cargo binary name; check the compiler output in the message. |
STANDALONE_SCHEMA_INVALID | The schema version in dsm-package.yaml is not supported. | Set schema to 2 and use backend.kind and capabilities. |
STANDALONE_SHARED_FOLDER_INVALID | The install.sharedFolder declaration in dsm-package.yaml is invalid. | Write install: { sharedFolder: { mode: select|create, key: |
STANDALONE_TEXT_INVALID | A display text field is invalid. | Use single-line, non-empty text without ” or . |
STANDALONE_TIMEOUT_UNSUPPORTED | backend.timeout_seconds needs a Go main that reads the requestTimeout the build passes. | Declare var requestTimeout = "" in main.go and pass its seconds to api.WithRequestDeadline(handler, api.Timeout(…)), or remove timeout_seconds. |
STANDALONE_UI_BUILD_FAILED | The UI build command failed. | Install the UI dependencies in ui.build.cwd (pnpm install —frozen-lockfile when pnpm-lock.yaml exists, otherwise pnpm install), then run the UI build command and fix the errors. |
STANDALONE_UI_BUILD_INVALID | The ui.build configuration is invalid. | ui.build.command must be an argv string array (not going through a shell), for example [pnpm, run, build]. |
STANDALONE_UI_ENTRY_MISSING | The UI directory is missing app.js or app.css. | Make ui.dir (or the UI build output) contain app.js and app.css. |
STANDALONE_UI_INVALID | The ui configuration is invalid. | Provide ui.dir, or ui: false for a native identity_gateway App without an SDK window. |
STANDALONE_UI_LAUNCH_INVALID | The native ui.launch value is invalid. | Set ui.launch to dsm-window (UI SDK) or new-page (other frontends). Portal is a separate opt-in. |
STANDALONE_UI_NO_WINDOW_INVALID | ui: false is declared where the App needs an SDK window. | ui: false needs identity_gateway and no console, portal, capabilities.rootOps, delegate, webapi or identity; otherwise declare ui.dir. |
STANDALONE_UI_SPECIAL_FILE | The UI directory contains a special file. | The UI directory may contain only regular files and directories. |
STANDALONE_UI_SYMLINK | The UI directory contains a symlink. | Replace the symlink with a real file. |
STANDALONE_UI_TOO_LARGE | The total UI file size exceeds 64 MiB. | Shrink the UI assets. |
STANDALONE_UI_WINDOW_INVALID | ui.window does not give a valid DSM window size. | Give width and height as whole numbers from 320 to 3840 and 240 to 2160, keep minWidth and minHeight (700 and 420 by default) no larger than them, and write only the fields you change. |
STANDALONE_VERSION_INVALID | version is not a numeric version. | Use a version such as 1.2.0 and put the build number in build. |
TEMPLATES_MISSING | @synopackageland/templates was not found. | Reinstall @synopackageland/cli, or point SYNOPKGLAND_TEMPLATES_DIR at a templates checkout. |
UNINSTALL_EXEC_MISSING | uninstall.purge.exec is not a regular executable file inside the built package. | Point at an executable in the package, for example ui/cgi/api.cgi, background/worker, or an executable file under daemon/payload/. |
UNINSTALL_EXEC_UNSAFE | uninstall.purge.exec is a shell script that tries to gain root. | Hooks always run as the package account; put cleanup that needs root in root/ |
UNINSTALL_INVALID | The uninstall declaration does not match the fixed exec, argv, environment and timeout contract. | Check uninstall.purge’s exec (inside the package, not in executor/ or root/), args, env (SYNOPKGLAND_* not allowed) and 2-120 second timeout, and the unique keys of state.items. |
UNINSTALL_ROOT_OP_MISSING | uninstall.purge.root points at a root operation that does not exist. | Add root/ |
UNINSTALL_ROOT_REQUIRES_ROOT_OPS | uninstall.purge.root needs administrator-approved root operations. | Declare capabilities.rootOps: true and provide root/ |
UNINSTALL_STATE_REQUIRES_PURGE | uninstall.state has no App uninstall hook that could delete the state. | Add uninstall.purge so the App deletes the listed state when SYNOPKGLAND_DELETE_STATE=1, or remove uninstall.state. |
UNINSTALL_STATE_TEXT_MISSING | The uninstall wizard cannot list the text of the uninstall.state items. | Add uninstall.state. |
UPSTREAM_ATTRIBUTION | Upstream App attribution is incomplete or names the distributor as maintainer. | Name the original project/team or owner as maintainer; set metadata.maintainer_url to the upstream repository and metadata.distributor/distributor_url to your publisher; resolve TODOs before release. |
Inspect rules
Section titled “Inspect rules”synopkgland inspect <spk> reports these SPK_* rules in its DSM format section (dsm in --json): an error fails the inspection with SPK_INSPECTION_FAILED, a warning does not. Findings carry code, severity, message and optional path (package.tgz:<path> inside the payload); Source names the DSM 7 Developer Guide page.
| Code | Severity | Meaning | Source |
|---|---|---|---|
SPK_CONF_UNKNOWN | warning | conf/ has a file DSM does not read. Known: privilege, resource, PKG_DEPS, PKG_CONX, systemd/. | DSM 7 Developer Guide: conf, Systemd User Unit |
SPK_ELF_ARCH_MISMATCH | error | An ELF executable in package.tgz is for a different CPU than INFO arch. | DSM 7 Developer Guide: INFO Necessary Fields (arch), Appendix A |
SPK_ENTRY_UNKNOWN | warning | The SPK top level has a file or folder the guide does not list. Names are case-sensitive. | DSM 7 Developer Guide: Package Structure |
SPK_ENTRY_UNSAFE | error | A path in the SPK leaves the archive root (absolute or ..), or is a link. | DSM 7 Developer Guide: Package Structure |
SPK_ICON_INVALID | error | PACKAGE_ICON.PNG or PACKAGE_ICON_256.PNG is not a PNG. | DSM 7 Developer Guide: Package Structure |
SPK_ICON_MISSING | error | PACKAGE_ICON.PNG or PACKAGE_ICON_256.PNG is missing. | DSM 7 Developer Guide: Package Structure |
SPK_ICON_SIZE | warning | PACKAGE_ICON.PNG is not 64×64, or PACKAGE_ICON_256.PNG is not 256×256. | DSM 7 Developer Guide: Package Structure |
SPK_INFO_ADMINPORT_INVALID | error | INFO adminport is not an integer from 0 to 65536. | DSM 7 Developer Guide: INFO Optional Fields (adminport) |
SPK_INFO_ARCH_NOARCH_MIXED | warning | INFO arch lists noarch together with other values. | DSM 7 Developer Guide: INFO Necessary Fields (arch) |
SPK_INFO_ARCH_UNKNOWN | warning | INFO arch or exclude_arch has a value that is neither in Appendix A nor a known DSM 7 platform. | DSM 7 Developer Guide: Appendix A Platform and Arch Value Mapping Table |
SPK_INFO_BOOLEAN_INVALID | error | A yes/no INFO field, such as startable or silent_install, is not "yes" or "no". | DSM 7 Developer Guide: INFO Optional Fields |
SPK_INFO_CHECKSUM_MISMATCH | error | INFO checksum is not the MD5 of package.tgz. | DSM 7 Developer Guide: INFO Optional Fields (checksum) |
SPK_INFO_DISPLAYNAME_MISSING | warning | INFO has no displayname, so Package Center shows the package value. | DSM 7 Developer Guide: INFO Optional Fields |
SPK_INFO_FIELD_DUPLICATE | warning | INFO sets the same field twice. | DSM 7 Developer Guide: INFO |
SPK_INFO_FIELD_REQUIRED | error | INFO lacks a necessary field: package, version, os_min_ver, description, arch or maintainer. | DSM 7 Developer Guide: INFO Necessary Fields |
SPK_INFO_FIELD_UNKNOWN | warning | An INFO field is not in the guide’s list, so DSM does not use it. Misspelled field names show up here. | DSM 7 Developer Guide: INFO Necessary Fields, Optional Fields |
SPK_INFO_LANG_UNKNOWN | warning | The language code of displayname_<lang> or description_<lang> is not in the guide’s list (enu, cht, chs, jpn…). | DSM 7 Developer Guide: INFO Optional Fields (description_[language]) |
SPK_INFO_LINE_INVALID | warning | An INFO line is not key="value" (blank lines and # comments are fine). | DSM 7 Developer Guide: INFO |
SPK_INFO_MISSING | error | INFO is missing. | DSM 7 Developer Guide: Package Structure |
SPK_INFO_OS_MIN_VER_LOW | warning | INFO os_min_ver is below 7.0-40000. | DSM 7 Developer Guide: INFO Necessary Fields (os_min_ver) |
SPK_INFO_OS_VER_INVALID | error | INFO os_min_ver or os_max_ver is not <major>.<minor>-<build> (<major>.<minor>.<micro>-<build> is also accepted). | DSM 7 Developer Guide: INFO Necessary Fields (os_min_ver), Optional Fields (os_max_ver) |
SPK_INFO_PACKAGE_INVALID | error | INFO package contains one of : / > < | =. | DSM 7 Developer Guide: INFO Necessary Fields (package) |
SPK_INFO_VALUE_UNTERMINATED | error | An INFO value has no closing quote. | DSM 7 Developer Guide: INFO |
SPK_INFO_VERSION_INVALID | error | INFO version is not numbers separated by ., - or _, or a part is above 2147483647. | DSM 7 Developer Guide: INFO Necessary Fields (version) |
SPK_INFO_VERSION_NO_BUILD | warning | INFO version has no -<build> number; the guide’s form is [feature number]-[build number]. | DSM 7 Developer Guide: INFO Necessary Fields (version) |
SPK_LICENSE_TOO_LARGE | error | LICENSE is 1 MB or larger. | DSM 7 Developer Guide: Package Structure |
SPK_NOARCH_ELF | error | INFO arch is noarch, but package.tgz contains an ELF executable. | DSM 7 Developer Guide: INFO Necessary Fields (arch), Pack Stage |
SPK_NOT_TAR | error | The file is not a readable tar archive. An SPK is an uncompressed tar. | DSM 7 Developer Guide: Package Structure |
SPK_PAYLOAD_LINK_ABSOLUTE | warning | A package.tgz symlink points to an absolute path, so the NAS, not the package, decides its target. | DSM 7 Developer Guide: Package Structure (package.tgz) |
SPK_PAYLOAD_LINK_ESCAPE | error | A package.tgz symlink or hard link points outside the package folder. | DSM 7 Developer Guide: Package Structure (package.tgz) |
SPK_PAYLOAD_MISSING | error | package.tgz is missing. | DSM 7 Developer Guide: Package Structure |
SPK_PAYLOAD_PATH_UNSAFE | error | A package.tgz path is absolute or contains .., so it would extract outside the package folder. | DSM 7 Developer Guide: Package Structure (package.tgz) |
SPK_PAYLOAD_UNREADABLE | error | package.tgz is not a readable tar or tar.gz archive, or it is empty. | DSM 7 Developer Guide: Package Structure (package.tgz) |
SPK_PAYLOAD_XZ | warning | package.tgz is xz-compressed (the Synology toolkit format). inspect cannot read xz, so the payload rules did not run. | DSM 7 Developer Guide: Pack Stage |
SPK_PRIVILEGE_INVALID | error | conf/privilege is not a JSON object, has no defaults.run-as, or a run-as is not package or root. | DSM 7 Developer Guide: Privilege Config |
SPK_PRIVILEGE_MISSING | error | conf/privilege is missing. DSM 7 requires it. | DSM 7 Developer Guide: conf, Privilege Config |
SPK_PRIVILEGE_ROOT | warning | conf/privilege asks to run as root (in defaults, ctrl-script or executable). | DSM 7 Developer Guide: Privilege Config |
SPK_RESOURCE_INVALID | error | conf/resource is not a JSON object. | DSM 7 Developer Guide: Resource Config |
SPK_RESOURCE_UNKNOWN | warning | conf/resource has a resource worker id the guide does not list. | DSM 7 Developer Guide: Available Workers |
SPK_SCRIPT_HOOK_MISSING | warning | preinst, postinst, preuninst, postuninst, preupgrade or postupgrade is missing. The guide marks them required; what DSM does without one is not verified. | DSM 7 Developer Guide: scripts |
SPK_SCRIPT_MISSING | error | scripts/start-stop-status is missing. DSM uses it to start, stop and poll the package. | DSM 7 Developer Guide: Package Structure, scripts |
SPK_SCRIPT_NOT_EXECUTABLE | error | A lifecycle script in scripts/ is not executable. | DSM 7 Developer Guide: scripts |
SPK_SCRIPT_NO_INTERPRETER | warning | A lifecycle script starts with no #! line (such as #!/bin/sh) and is not ELF. | DSM 7 Developer Guide: scripts |
SPK_SIGNATURE_INVALID | warning | syno_signature.asc is not an ASCII-armored PGP signature. The guide’s package signing applies only to DSM 6.x, so the file can be left out. | DSM 7 Developer Guide: Sign Package (only for DSM6.X) |
SPK_UI_CONFIG_INVALID | error | The config under dsmuidir is not a JSON object. | DSM 7 Developer Guide: Integrate DSM, Application Config |
SPK_UI_TEXTS_MISSING | error | A config title or desc refers to the package’s own strings (for example synopkgland:app_title), but the entry does not declare "texts", so DSM shows the raw key. | Tested on DSM 7.1.1 and 7.4 |
SPK_UI_TEXTS_UNDECLARED | warning | A config title or desc is a section:key reference without "texts". Unless the section is built into DSM, DSM shows the raw key. | Tested on DSM 7.1.1 and 7.4 |
SPK_WIZARD_INVALID | warning | A wizard file in WIZARD_UIFILES is not a JSON array. | DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES) |
SPK_WIZARD_SCRIPT_NOT_EXECUTABLE | warning | A .sh wizard generator in WIZARD_UIFILES is not executable. | DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES) |
SPK_WIZARD_UNKNOWN | warning | A WIZARD_UIFILES name is not install, upgrade or uninstall_uifile[_<lang>][.sh]. | DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES) |
App errors
Section titled “App errors”A generated native app returns these codes from its backend to the UI; a handler may also return its own (App API reference). A plain Go error, not api.Error, reaches the UI as internal, including every root.run failure and every executor.status failure except a paused executor (ready: false, state: "paused", next).
| Code | Returned by | Meaning | What to do |
|---|---|---|---|
session_required | Every route except public ones | There is no valid DSM session, or the File Station user does not match the caller. | Sign in to DSM again. |
credential_not_ready | Routes that act with the caller’s DSM session (root.*, files.*, delegate.*, File Station) | The request has a DSM session cookie but no usable SynoToken. The shared window wrapper obtains a missing token before backend and DSM WebAPI calls; this error means the required carrier is still unavailable. | Sign in to DSM again on the same host and reopen the app. In a custom transport, await the DSM session helper before sending the request. |
dsm_session_required | nas.*, bg.browse, bg.jobs.submit with identity: standalone | The call needs the DSM id cookie and it is missing. | Open the app from the DSM window and sign in to DSM. |
session_revalidation_required | Other routes with identity: standalone | The app session needs to be checked against DSM and the DSM cookie is missing. | Open the app from the DSM window. |
admin_required | Routes that need administrators | The caller is not in the DSM administrators group, entry: admin-only refused the caller, or api.RequireAdmin failed. A registered method that permissions.json does not list also gives this code to non-administrators. | Open the app with an administrator account. An admin-only app is not listed in Application Privileges. If the method is intended for ordinary users, list it as authenticated in permissions.json. |
app_privilege_denied | Every route when entry: app-privilege | DSM Application Privileges do not allow this account or address to use the app. | Ask an administrator to open Control Panel > Application Privileges, select the app by its display name and click Edit, then allow your account or group. |
auth_unavailable | Every route | DSM authentication or the privilege lookup failed. It is also returned when there are too many sessions. | Retry. If it persists, check that DSM is healthy. |
unknown_method | Every route | The method name is not registered. Every signed-in caller gets this code, administrator or not. | Check the method name and that the capability is added. |
cross_origin | JSON routes | The request came from another origin. | Call the backend only from the app’s own page. |
origin_required | JSON routes | A POST carried neither Origin nor Referer, so the backend cannot tell which page sent it. | Open the app again in a current browser. |
json_required | JSON routes | The request does not have Content-Type: application/json. | Send JSON. ctx.call does this for you. |
method_not_allowed | JSON routes | The request is not a POST. | Use POST. |
request_too_large | JSON routes | The body is larger than 1 MiB or too deeply nested. | Send less data. |
bad_request | Every route | The body or the params are not valid. Params with unknown fields are refused. | Send {"method": "…", "params": {…}} with only the fields the method accepts. |
bad_response | Every route | The request timed out (20 seconds) or was canceled, or the server did not return JSON. | Retry. |
internal | Every route | The handler returned an error that is not an api.Error. The details are in the app log, not in the response. | Return api.Error for errors the UI should see. Check the app log. |
network | ctx.call in the DSM window | The NAS did not answer. | Check the connection and retry. |
denied | nas.*, bg.browse | File Station refused the operation, usually because the user lacks permission on the folder. | Give the user permission on the folder in DSM. |
conflict | nas.*, bg.* | The target already exists, or the request conflicts with the current state of the job. | Pick another name, or reload the state. |
invalid-request | nas.* | File Station refused the arguments, for example a bad path. | Check the path. |
unavailable | nas.*, bg.* | File Station or the background storage did not answer or is not available. | Retry later. |
canceled | nas.*, delegate.* | The call was canceled. | Retry if you did not cancel it. |
not_found | nas.*, bg.jobs.* | The file, job or schedule does not exist, or belongs to another user. | Check the path or id. |
commit-uncertain | nas.files.create_folder, nas.files.upload | The response was lost, so you cannot tell if the change was made. | List the folder to check, then retry if needed. |
upload_size_required | nas.files.upload | The upload has no Content-Length, or it is larger than 16 GiB. | Send a Content-Length of at most 16 GiB. |
limit-exceeded | nas.*, bg.jobs.submit, files.read | A size limit was reached, for example a job input larger than 512 KiB. | Send a smaller file. |
read_failed | bg.jobs.submit | The file could not be read completely. | Retry. |
identity_unavailable | bg.* | The caller’s DSM user id could not be found. | Retry. If it persists, sign in to DSM again. |
jobs_busy | bg.* | The job store stayed locked for 5 seconds. | Retry later. |
not_ready | bg.jobs.result | The job has no result yet. | Wait until the job is succeeded. |
queue-full | bg.jobs.submit, bg.schedules.* | The background queue is full. | Wait for jobs to finish. |
quota-exceeded | bg.jobs.submit | The background storage is full. | Wait for jobs to finish, or remove finished jobs. |
owner-queue-full | bg.jobs.submit | The caller already has the maximum of pending jobs. | Wait for the caller’s jobs to finish. |
owner-quota-exceeded | bg.jobs.submit | The caller’s background storage limit is reached. | Wait for the caller’s jobs to finish. |
schedule-full | bg.schedules.create | The schedule limit of the package is reached. | Delete a schedule. |
input-unavailable | bg.schedules.* | The private copy of the job input is gone. | Import the file again. |
https_required | identity.login, identity.session | The call was made over plain HTTP. | Open the app over HTTPS. |
invalid_credentials | identity.login | The account name or password is wrong. | Try again. |
account_disabled | identity.login | The DSM account is disabled. | Use another account, or enable it in DSM. |
otp_required | identity.login | The account needs a two-factor code. | Send otp with the login. |
login_not_permitted | identity.login | DSM does not let this account sign in to the app. | Check the account in DSM. |
rate_limited | identity.login | Too many attempts. | Wait a minute and retry. |
invalid-destination | delegate.* | The destination is not valid. | Select the destination again. |
invalid-size | delegate.* | The file size is not valid. | Pass the real size of the staged file. |
unsupported | delegate.*, bg.* | The call is not supported in this setup. | Check the capability and the lifetime mode. |
needs-scope-confirmation | delegate.* | An administrator must confirm the folder scope first. | Approve the scope in the app’s administrator settings. |
disabled | delegate.* | An administrator turned the integration off. | Ask an administrator to enable it. |
operation-conflict | delegate.* | The same job id was sent again with different input. | Use a new job id. |
operation-not-found | delegate.operations.* | The operation is not known to the executor. | Check the ids. |
destination-exists | delegate.move_from_staging, delegate file operations | A file with that name already exists in the destination, and conflict is fail; or overwrite met a folder or symlink; or rename used up name (99). | Use another name, or set conflict. |
invalid-path | delegate.move_from_staging, delegate file operations | A folder in name is empty, . or .., longer than 255 bytes, contains a control character or one of \ : * ? " < > |, or is #recycle, #snapshot or @eaDir; or the whole name is longer than 1024 bytes; or File Station refused a name or path as illegal. | Fix the name. |
path-too-deep | delegate.move_from_staging | name has more than 16 folders. | Use fewer folders. |
destination-not-directory | delegate.move_from_staging, files.createFolder | A folder in name exists as a file or a symlink, or is on another volume; or CreateFolder was called below a file. | Choose another folder name. |
name-too-long | delegate.move_from_staging, delegate file operations | The volume refused a name as too long, for example over 143 bytes on an encrypted Shared Folder. | Use a shorter name. |
NO_SPACE | delegate.move_from_staging, delegate file operations | The destination volume is full. | Free space. |
not-found | Delegate file operations | The path does not exist inside the grant’s folder, or File Station reported the item missing. | Check the path. |
not-a-file | files.read | The path is a folder or a special file. | Read a regular file. |
recursive-required | files.delete | The path is a folder and recursive is not set. | Set Recursive: true. |
recycle-bin-disabled | files.delete | The Shared Folder has no recycle bin and permanent is not set. | Turn on the recycle bin, or set Permanent: true. |
task-not-found | files.taskStatus, files.taskCancel | The task belongs to another job, or the executor restarted. | Check the result with files.info. |
too-many-tasks | files.copy, files.move, files.delete | The executor already tracks 64 tasks. | Wait for tasks to finish. |
READ_FAILED | files.read | The executor could not copy the file into staging. | Retry. If it persists, check the NAS. |
PERMISSION_DENIED | delegate.* | The user the app acts for cannot write to the destination, delegate.select_destination was given a folder the user cannot write to, or File Station refused an item for lack of permission. A delete that leaves the item behind also fails with it. | Fix permissions in DSM, or choose another destination. |
STAGING_UNAVAILABLE, STAGING_CHANGED | delegate.move_from_staging | The staged file is missing, or it changed after you staged it. | Stage the file again. |
ADMISSION_PENDING, ADMISSION_EXHAUSTED | delegate.move_from_staging | The move is waiting to be accepted by the executor, or it ran out of retries. | Wait and check delegate.operations.get. |
download_failed | Delegate time-limited downloads | The download did not finish. | Retry. |
jobs_unavailable | delegate.jobs.* | The job store is not available. | Retry later. |
spool_unsafe, journal_corrupt | delegate.jobs.* | The job store failed a safety check. | These do not clear on retry. Check the app data folder. |
not_cancelable, key_conflict, queue_full, quota | delegate.jobs.* | The job cannot be canceled in its state, the key is already used, the queue is full, or storage is full. | Change the request or wait. |
EXECUTOR_UNAVAILABLE, EXECUTOR_TIMEOUT, EXECUTOR_TOO_LARGE, EXECUTOR_PROTOCOL | delegate.*, executor.* | The app could not reach the administrator-operations executor, it timed out, the message was too large, or the answer was not understood. | Check the capability state with synopkgland status. An administrator may need to approve it again. |
EXECUTOR_PAUSED | delegate.* | The executor is paused, for example while the package is stopped or upgraded. | Start the package. An administrator may need to approve it again after an upgrade. |
APP_STOPPED, APP_STARTING | delegate.*, executor.* | The package is stopped, or was just started and its executor is not listening yet. Nothing was sent. | Start the package, or wait: the SDK’s panels show the stopped or starting package and check again on their own, and an action they refuse reads “start it, then try again” (lifecycleRefusal(error, locale)). The DSM window passes APP_STOPPED on at once and repeats APP_STARTING and EXECUTOR_STARTING for about 4 seconds; executor.control repeats a start for up to 30 seconds. |
AUTH_DENIED, INELIGIBLE, APP_DENIED, ADMIN_REQUIRED, DELEGATION_DENIED, SCOPE_DENIED, POLICY_DENIED, UNKNOWN_OP | delegate.* | The executor refused the operation: the caller or app is not allowed, the grant or folder scope does not cover it, or the operation is not in the approved policy. | Check the grant, the scope and the manifest. Changing the policy needs a rebuild and a new administrator approval. |
INVALID_REQUEST, REQUEST_TOO_LARGE | delegate.* | The request to the executor is not valid or is larger than 64 KiB. The Go client returns INVALID_REQUEST before it calls the executor when a path or name is not valid. | Fix the request. |
STORAGE_ERROR, INTERNAL, WRITE_FAILED, DSM_FAILED | delegate.* | The executor failed while reading its state, writing the file or calling DSM. | Retry. If it persists, check the NAS. |
SCOPE_APPROVAL_STALE, IDENTITY_CHANGED | delegate.* | The scope approval is out of date, or the DSM account the grant belongs to changed. | Approve the scope or select the destination again. |
ROOT_FAILED | root.run (shown as internal) | The root operation exited with a non-zero status or failed to run. | Test the script. Output is capped at 1 MiB and the run at 20 seconds. |
portal_alias_invalid | ctx.portal | DSM rejected the alias. | Use 1 to 64 lowercase letters, digits or -. |
portal_alias_reserved | ctx.portal | The alias is a reserved DSM path. | Choose another alias. |
portal_alias_in_use | ctx.portal | Another app already uses the alias. | Choose another alias. |
portal_unavailable | ctx.portal | Application Portal settings could not be read or changed. | Retry. Use Control Panel if it persists. |
The identity gateway answers 403 for a disallowed account or cross-origin request, 413 above max_upload_bytes, 501 for an unsupported upgrade and 502 when the upstream is down; cookies and authentication stay the app’s responsibility.
Delegate file operations read File Station’s per-item refusals, so PERMISSION_DENIED, destination-exists, not-found, name-too-long, invalid-path, destination-not-directory and NO_SPACE name the real cause and are not retryable.
Job error codes
Section titled “Job error codes”A failed job has an errorCode, not an RPC error; read it from bg.jobs.get or bg.jobs.list.
errorCode | Meaning | What to do |
|---|---|---|
timeout | The job ran longer than 60 seconds. | Use a smaller input. |
input-changed | The worker result did not match the input digest. | Submit the job again. |
worker-error | The worker failed. | Submit the job again. If it repeats, check the input. |
worker-stopped | The worker stopped while the job ran. The job state is interrupted. | Submit the job again. |
worker-changed | The worker version changed after you queued the job. The job state is interrupted, and schedules stay off until an administrator enables them. | Submit the job again. An administrator enables the schedules with bg.schedules.enable. |
admission-interrupted | The job was interrupted before it was accepted. | Submit the job again. |
Executor protocol codes
Section titled “Executor protocol codes”These executor protocol v1 codes come from errors.json in @synopackageland/sdk and github.com/synopackageland/syno-pkg-land-sdk; kind says where a code appears: refusal refused the request, outcome and reason are recorded on an operation, and client is produced in the app. Most reach the UI as App errors.
| Code | Kind | Retryable | HTTP | Meaning |
|---|---|---|---|---|
AUTH_DENIED | refusal | No | 401 | The DSM session in auth is missing, invalid or expired. |
INELIGIBLE | refusal | No | 403 | The DSM account cannot be delegated: system account, expired, or not the caller. |
APP_DENIED | refusal | No | 403 | DSM Application Privileges do not allow the account to use the app or File Station. |
ADMIN_REQUIRED | refusal | No | 403 | The operation needs a DSM administrator. |
DELEGATION_DENIED | refusal | No | 403 | The grant does not exist, belongs to another user or package, or was revoked. |
SCOPE_DENIED | refusal | No | 403 | The path is outside the grant or the approved folder scope. |
POLICY_DENIED | refusal | No | 403 | The operation is not in the approved policy. |
PEER_DENIED | refusal | No | 403 | The socket peer is not the package user or root. |
PERMISSION_DENIED | refusal | No | 403 | The delegated user cannot access the path in DSM. |
UNKNOWN_OP | refusal | No | 400 | The executor does not know the operation. |
INVALID_REQUEST | refusal | No | 400 | The request or its params are not valid. |
REQUEST_TOO_LARGE | refusal | No | 413 | The request line is larger than 64 KiB. |
EXECUTOR_PAUSED | refusal | Yes | 503 | The executor is paused, for example while the package stops or upgrades. |
EXECUTOR_STARTING | refusal | Yes | 503 | The executor is running the App’s start step after an install or upgrade; status answers state starting until it ends. |
STORAGE_ERROR | refusal | Yes | 500 | The executor could not read or write its protected state. |
INTERNAL | refusal | Yes | 500 | The executor failed unexpectedly. |
WRITE_FAILED | refusal | Yes | 500 | The executor could not write the file. |
READ_FAILED | refusal | Yes | 500 | The executor could not copy the file into staging. |
DSM_FAILED | refusal | Yes | 502 | A DSM call made by the executor failed. |
ROOT_FAILED | refusal | No | 500 | The root program could not run, ended by a signal, or its output could not be kept. |
ROOT_TIMEOUT | refusal | Yes | 504 | The root program ran past its policy timeout and was killed. |
ROOT_BUSY | refusal | Yes | 429 | The package already runs as many root programs as it may. |
ROOT_STAGING_FULL | refusal | Yes | 507 | Root output waiting in the staging folder already fills its quota. |
ROOT_JOB_NOT_FOUND | refusal | No | 404 | No root job of the package has this job_id. |
PORTAL_FAILED | refusal | Yes | 502 | DSM did not accept the Application Portal change; status portal says whether the entry needs another removal. |
NO_SPACE | refusal | No | 507 | The destination volume is full. |
SCOPE_APPROVAL_STALE | refusal | No | 409 | The folder scope approval is out of date. |
IDENTITY_CHANGED | refusal | No | 409 | The DSM account or folder the grant is bound to changed. |
needs-scope-confirmation | refusal | No | 409 | An administrator must confirm the folder scope first. |
disabled | refusal | No | 409 | An administrator turned the integration off. |
invalid-destination | refusal | No | 400 | The destination key is not in the policy. |
invalid-size | refusal | No | 400 | The size is missing, negative or too large. |
operation-conflict | refusal | No | 409 | The same job id was sent again with different input. |
operation-not-found | refusal | No | 404 | The operation is not known for this grant and caller. |
destination-exists | refusal | No | 409 | A file with that name already exists and conflict does not allow replacing it. |
invalid-path | refusal | No | 400 | A name or path is empty, reserved, too long or contains a forbidden character. |
path-too-deep | refusal | No | 400 | The name has more than 16 folders. |
destination-not-directory | refusal | No | 409 | A folder in the name exists as a file or symlink, or is on another volume. |
name-too-long | refusal | No | 400 | The volume refused a name as too long. |
not-found | refusal | No | 404 | The path does not exist. |
not-a-file | refusal | No | 400 | The path is a folder or a special file. |
recursive-required | refusal | No | 400 | The path is a folder and recursive is not set. |
recycle-bin-disabled | refusal | No | 409 | The Shared Folder has no recycle bin and permanent is not set. |
task-not-found | refusal | No | 404 | The task belongs to another job, or the executor restarted. |
too-many-tasks | refusal | Yes | 429 | The executor already tracks 64 tasks. |
queue-full | refusal | Yes | 429 | The executor operation queue is full. |
limit-exceeded | refusal | No | 413 | The file is larger than max_bytes, or root output is larger than its policy max_output. |
OPERATION_CANCELED | outcome | No | 409 | The operation was canceled; reason says why. |
CANCEL_REQUESTED | outcome | No | 202 | Cancel was requested and the copy has not stopped yet. |
CLEANUP_PENDING | outcome | Yes | 500 | The operation ended but its partial file is not removed yet. |
grant-revoked | reason | No | 409 | The grant was revoked. |
destination-replaced | reason | No | 409 | A newer grant replaced this destination. |
integration-disabled | reason | No | 409 | An administrator disabled the integration. |
validation-denied | reason | No | 403 | The grant failed revalidation against DSM. |
scope-changed | reason | No | 409 | The approved folder scope changed. |
storage-error | reason | Yes | 500 | Protected state could not be written. |
operation-canceled-by-user | reason | No | 409 | The owner canceled the operation. |
operation-deadline-exceeded | reason | Yes | 504 | The operation ran past its deadline. |
EXECUTOR_UNAVAILABLE | client | Yes | 503 | The client could not connect to the executor socket. |
APP_STOPPED | client | Yes | 503 | The package is stopped: its lifecycle mailbox asks the executor to stop. The client sent nothing. |
APP_STARTING | client | Yes | 503 | The package was just started and its executor is not listening yet. The client sent nothing. |
EXECUTOR_TIMEOUT | client | Yes | 504 | The executor did not answer in time. |
EXECUTOR_TOO_LARGE | client | No | 413 | The request or reply is larger than 64 KiB. |
EXECUTOR_PROTOCOL | client | No | 502 | The executor reply is not a valid v1 response. |
WEBAPI_UNCERTAIN | refusal | No | 502 | The WebAPI outcome is unknown: execution, reply validation or audit completion failed. Do not automatically retry a mutation. |