Skip to content
Syno Package Land
Language: English

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 itForm
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.

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).

CodeMeaningSuggestion
ADD_FILE_CONFLICTExisting files conflict with the SDK overlay.Move or merge the listed conflicting files before running add; the CLI never overwrites different content.
ADD_LAYOUT_UNSUPPORTEDThe SDK overlay needs the standard backend directory.Use backend.dir: backend, or merge the SDK overlay manually.
APP_SCRIPT_INVALIDA dsm-scripts/ entry is a symlink, directory or special file.Make it a regular file in the project’s dsm-scripts/ folder.
APP_SCRIPT_NO_SHEBANGA dsm-scripts/ file does not start with #!.Start the file with an interpreter line such as #!/bin/sh.
APP_SCRIPT_NOT_EXECUTABLEA dsm-scripts/ file is not executable; DSM runs it directly.Run chmod +x on the file.
APP_SCRIPT_UNKNOWNA 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_INVALIDThe baseline SPK failed inspection.Pass the unmodified released SPK of the same package and architecture; inspect it for findings.
BUILD_NOT_REPRODUCIBLEA 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_INVALIDThe capability combination with the runtime or UI is invalid.daemon cannot combine with capabilities.jobs; identity/login needs a vue UI (—ui vue).
CAPABILITY_INVALIDThe capability declaration is invalid.Use files: session, jobs: true or {worker: sha256-v1}, identity: standalone, rootOps: true.
CAPABILITY_UNSUPPORTEDThis runtime does not support the chosen capability.files, jobs and identity need backend.kind: go; compose does not support native capabilities.
CATALOG_INSTALL_FAILEDNAS Package Center failed to install the package.Check the install log in DSM Package Center or try installing manually.
CLI_ARCH_INVALIDThe architecture option is invalid.Use x86_64, aarch64 or armv7 (armv7 is for native-go and binary, not for Container Manager Apps).
CLI_ARGUMENT_MISSINGA command argument is missing.Use —help to see the required arguments.
CLI_COMMAND_UNKNOWNUnknown 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_MISSINGAn option is missing its value.Pass the value the option needs.
CLI_OPTION_INVALIDA command option is invalid.Use —help to check the options and the available runtime.
CLI_OPTION_MISSINGA required option is missing.Use —help to see the required options.
CLI_OPTION_UNKNOWNUnknown CLI option.Use —help to see the currently supported options.
CLI_OUTPUT_ARCH_REQUIREDWriting a single file needs an architecture.Combine -o with a single —arch, or use —out-dir.
COMMAND_FAILEDThe command failed.Check the message and stderr, fix the problem and retry.
COMPOSE_ACQUIRE_GENERATION_INVALIDThe 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_UNSUPPORTEDThe 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_UNSUPPORTEDUse 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_UNSUPPORTEDThe declared value must use an upstream prebuilt image.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_EGRESS_ALLOWLIST_UNSUPPORTEDChoose isolated or internet; destination allowlists are not implemented.Declare isolated or internet; destination allowlists are unsupported.
COMPOSE_ENV_INVALIDInvalid service environment.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_ENV_MISSINGThe project is missing the required environment variable directory structure.Make sure SYNOPKG_PKGVAR and the secrets directory are created correctly.
COMPOSE_EXTERNAL_VOLUME_UNVERIFIEDExternal 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_UNSUPPORTEDSecret/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_INVALIDThe 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_READYThe 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_REQUIREDBridge ingress requires a declared App health endpoint.Set compose.web.health.path and its expected 2xx status.
COMPOSE_HOST_UDP_INVALIDThe 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_INVALIDService 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_INVALIDUnsafe image VOLUME target.Use the intended anonymous registry repository and verified Linux platform digest; recheck source/image proofs and rebuild.
COMPOSE_IMAGE_PLATFORM_UNSUPPORTEDThe 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_FAILEDRegistry 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_CHANGEDCompose input bytes changed after planning.Use bounded regular project-local files without symlink or remote dependencies, then rebuild from unchanged bytes.
COMPOSE_LEGACY_MANIFEST_REMOVEDCompose 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_INVALIDPrivate storage inventory is invalid.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_MODEL_INVALIDThe declared value.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_NETWORK_UNSUPPORTEDNetwork 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_HEALTHYThe Compose service did not reach healthy within the time limit.Check the container healthcheck and application logs: synopkgland logs —host .
COMPOSE_NOT_RUNNINGThe 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_UNSUPPORTEDHost 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_INVALIDPackage 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_FORBIDDENA 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_UNDECLAREDCompose 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_UNSUPPORTEDDSM 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_UNSUPPORTEDContainer root capability the declared value is not supported.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_PROJECT_CONTROL_UNAVAILABLEProtected 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_INVALIDBridge readiness configuration is invalid.Rebuild with the matching SDK and declare a local health path and expected 2xx status.
COMPOSE_REQUEST_INVALIDThe unified Compose request is invalid.Declare schema-2 files, web and supported DSM differences; see the Compose reference.
COMPOSE_ROOT_FORBIDDENPrepare 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_FORBIDDENContainer-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_INVALIDContainer 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_INVALIDService 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_UNSUPPORTEDThe 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_UNKNOWNServices.the declared value is not active.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_SHARE_INVALIDShares.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_APPROVALDeclare 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_UNSAFEFiles 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_INVALIDThe 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_TIMEOUTContainer 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_INVALIDThe 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_INVALIDThe 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_INVALIDData.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_READYInvalid package var path.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_STORAGE_NOT_WRITABLEThe 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_UNMAPPEDThe 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_CONFLICTThe fixed ingress subnet overlaps a NAS route.Choose a different compose.network.ingress_candidate and rebuild; do not change NAS networks.
COMPOSE_SUBNET_INVALIDInvalid ingress subnet candidate.Set compose.network.ingress_candidate to an integer from 0 through 255.
COMPOSE_SUBNET_INVENTORY_UNAVAILABLEKernel route inventory is unavailable.Use a supported Linux package-account environment; never borrow Docker socket or administrator credentials.
COMPOSE_SUBNET_STATE_INVALIDThe 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_READYThe declared ingress TCP endpoint is unavailable.Inspect the official project’s startup result; do not expose upstream ports to the LAN.
COMPOSE_VOLUME_DRIVER_UNSUPPORTEDReserved image volume namespace collision.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
COMPOSE_WEB_INVALIDCompose web ingress is invalid.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
CONTAINER_ARCH_UNSUPPORTEDContainer 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_INVALIDintegration.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_INVALIDThe 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_WEBA 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_INVALIDadminport must be an integer.Provide an integer adminport in synology-app.yaml that matches the Compose published port.
CONTRACT_HOMES_PATH_FORBIDDENA 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_UNSUPPORTEDinstall..type: homes has no usable install path today: the install wizard generates no input control and Package Center install ends in DSM broken/150; CLI deploy can resolve /volume1/homes, but DSM rejects the compound install with 4540.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_INVALIDThe 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_INVALIDThe 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_.png including icon_256.png; omit it to use the SDK default icon.
CONTRACT_INVALID_STRINGA 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_INVALIDThe 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_WEBA 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_FIELDsynology-app.yaml is missing a required field.Add the missing required fields to synology-app.yaml (for example package, version, displayname).
CONTRACT_PACKAGE_TOO_LONGThe 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_EXECUTORThe 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_UNSUPPORTEDposix_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 so an administrator session takes the Share list snapshot at install time; this type cannot ship through Package Center or Package Source listing.
CONTRACT_POSIX_ALL_SHARES_VALUE_FORBIDDENA 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_INVALIDsynology-app.yaml does not match the JSON Schema.Fix the field formats in synology-app.yaml so they match the schema.
CONTRACT_SCHEMA_UNSUPPORTEDThe schema version in synology-app.yaml is not supported.Set the schema field in synology-app.yaml to 1.
CONTRACT_SECRET_UNSUPPORTEDinstall..type: secret has no usable install path today: whether or not Compose references it, Package Center install ends in DSM broken/150 and creates no Container Manager project.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_UNREGISTEREDA command references an unregistered backend method.Correct ctl.commands bindings or register the backend method.
CTL_DECLARATION_INVALIDThe ctl declaration is invalid.Check ctl.enabled, aliases and explicit commands in dsm-package.yaml.
CTL_DESCRIBE_FAILEDThe backend registry export failed.Check the backend —describe output and build diagnostics.
CTL_DESCRIBE_REQUIREDThe Go backend has no build-only registry exporter.Update the native template and implement —describe using api.DescribeRoutes.
CTL_DESCRIPTOR_INVALIDThe generated API description violates the public contract.Correct ctl.commands and rebuild the private synopkgland-api.json.
CTL_HOST_REQUIREDSelect a registered NAS hostRun synopkgland host add, select —host, or set host default
CTL_NOT_AUTHENTICATEDDSM session expired or absentsynopkgland host login <name>
CTL_TRUST_REQUIREDApp description access requires approval.Run synopkgland ctl list with explicit host and approve the candidate batch.
CTL_UNSUPPORTED_BACKENDAutomatic descriptions require a native SDK backend.Disable ctl for binary/Compose wrappers or implement the public contract separately.
DEPLOY_ARCH_UNDETERMINEDThe NAS architecture could not be determined.Use —arch x86_64, aarch64 or armv7.
DEPLOY_BUILD_OUTPUT_INVALIDThe number of deploy build outputs does not match.Specify a single architecture and build again.
DEPLOY_FAILEDAn unclassified error occurred while deploying to the NAS.Check NAS connectivity and logs: synopkgland logs —host .
DEPLOY_PARAM_REQUIREDThe 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= or —param delegate_home=true and deploy again.
DEPLOY_PARAM_TYPE_INVALIDThe 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_UNDECLAREDdeploy —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_INVALIDThe deploy plan does not match the runtime.Run check again and regenerate the deploy plan.
DEPLOY_VERSION_INVALIDThe package version is invalid or lower than the installed version.Set a higher valid version/build and deploy again.
DEVELOPMENT_INSTANCE_UNSUPPORTEDA native project does not support —dev.Use a different package ID when running init.
DSM_COMPOUND_FAILEDA 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_CONFLICTDSM rejected the compound install request because of running dependent packages.Stop the listed dependent packages, then retry the upgrade.
DSM_REQUEST_FAILEDThe DSM SYNO.Entry.Request compound request failed.Check the DSM session, request parameters and Package Center log, then retry.
DSM_TLS_UNTRUSTEDStrict TLS: the DSM certificate failed CA, hostname or validity verificationCheck the —ca PEM file, NAS hostname and certificate validity; NAS certificates are accepted by default without —strict-tls or —ca
DSM_USER_LOGICAL_NAME_REQUIREDA 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_REQUIREDA Shared Folder requires exactly one dsm_user as the Container Run-as.Add install..type: dsm_user to synology-app.yaml and reference ${NAME_UID}:${NAME_GID} in Compose.
EXECUTOR_BUILD_FAILEDCompiling 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_DIGESTThe 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_MISMATCHThe 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_UNVERIFIEDSYNOPKGLAND_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_PACKAGEThe package name pinned into the root task is invalid.package must start with a letter and contain only alphanumerics (2-64 characters).
EXECUTOR_PIN_REQUIREDA 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_POLICYcapabilities.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// for every arch in arches.
EXECUTOR_POLICY_REJECTEDThe 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_UNSUPPORTEDThe 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_LENGTHThe 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_PERCENTThe 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_REQUIREDThe 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_ENABLEDThe 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_CHANGEDStrict TLS: the NAS certificate differs from the recorded SHA-256Verify old/new fingerprints, then run synopkgland host trust
HOST_CONNECTION_REFUSEDThe NAS refused the connectionCheck the DSM port and NAS availability
HOST_DNS_FAILEDThe NAS hostname could not be resolvedCheck the registered hostname and DNS
HOST_TIMEOUTThe NAS request timed outCheck connection and firewall; inspect state before retrying writes
HOST_TLS_UNTRUSTEDStrict TLS: the NAS certificate failed CA, hostname or validity verificationCheck the CA file, NAS hostname and certificate validity, or omit strict TLS
IMAGE_PIN_REQUIREDThe image digest is not pinned.Run images pin.
INIT_BINARY_BUILD_FAILEDThe binary example failed to compile.Install Go or provide your own static CGI ELF.
INIT_COMPOSE_INVALIDThe imported Compose is invalid.Point —from at a YAML file with services.
INIT_DISPLAY_NAME_INVALIDThe display name is invalid.Use single-line text without quotes or backslashes.
INIT_HEALTH_INVALIDThe 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_UNSUPPORTEDThe 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_INVALIDThe package name is invalid.Use a 2-64 character alphanumeric name that starts with a letter.
INIT_PUBLISHER_INVALIDThe 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_INVALIDThe shared folder option is invalid.Use select or create; add —shared-folder-name with create.
INIT_TARGET_NOT_EMPTYThe init directory already has conflicting files.Use an empty directory; add capabilities to an existing project with add.
INIT_TEMPLATE_REQUIREDNo template was specified.Use -t native-go, native-python, native-node, native-rust, binary or compose.
INIT_TEMPLATE_UNKNOWNUnknown template.Use -t native-go, native-python, native-node, native-rust, binary or compose.
INIT_UI_INVALIDThe UI option is invalid.Use —ui vue or plain.
INIT_UPSTREAM_IMAGE_INVALIDThe 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_REQUIREDThe official upstream image repository was not selected.Use init —upstream-fork —upstream-image for Compose.
INIT_UPSTREAM_INVALIDThe upstream repository URL is invalid.Supply —upstream with an HTTPS repository URL without credentials.
INSTALL_SETTINGS_INVALIDThe 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_INVALIDAn Install Parameter string value contains an invalid character or interpolation.Remove control characters and ${ interpolation from the install parameter default.
INSTALL_STRING_TOO_LONGAn Install Parameter string default exceeds 256 characters.Shorten the default string of the install parameter in synology-app.yaml.
LAUNCHER_PORTAL_MISMATCHThe launcher has Portal fields without a matching explicit Portal declaration.Remove defaultAlias and login fields, or explicitly enable portal and rebuild.
LAUNCHER_TYPE_MISMATCHThe 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_FLOORThe Compose minimum DSM version is too low.Compose needs DSM 7.2.1-69057 or later.
MIN_DSM_INVALIDThe minimum DSM version format is invalid.Specify a 7.x release or a full 7.x-build.
NAS_ADMIN_REQUIREDPackage installation and removal require an administratorRegister and log in with a DSM administrator account
NATIVE_LAYOUT_INVALIDThe 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_EXECUTABLEA 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_UNSUPPORTEDExtracting 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_INSTALLEDThe package is not installed on the target NAS yet.Run synopkgland deploy —host to install the package first.
NOTICE_MISSINGThird-party license information is missing.Reinstall the template dependencies and generate the third-party notices.
NOTICE_UNSAFEA license file does not meet the regular-file limits.Remove symlinks, special files and oversized license files.
PACKAGE_IDENTITY_TOO_LONGThe 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_USEThe 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_FOUNDThe project manifest was not found.Run from the project root or use —project.
PROJECT_RUNTIME_EXCLUSIVEThe 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_INVALIDThe 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_FAILEDThe trusted SDK Compose tool could not be compiled.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
SDK_COMPOSE_FAILEDThe SDK Compose tool could not return a valid plan.Correct the reported declaration in dsm-package.yaml; see the Compose support matrix.
SDK_COMPOSE_UNSUPPORTEDThis 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_READYThe 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_FAILEDgo 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_FAILEDThe 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_UNSUPPORTEDThe 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_INVALIDThe 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_REQUIREDPython, 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_REQUIREDThe 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_UNSUPPORTEDThe 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_MISMATCHThe @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_REQUIREDA 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_FOUNDThe 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_ACCESSThe 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_REQUIREDDeploy is missing the physical path mapping for a shared_folder declared in the contract.Provide the matching Shared Folder name with —share =.
SPK_INSPECTION_FAILEDThe 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_CHANGEDThe API policy changed during the build.Freeze permissions.json, then run check/build again.
STANDALONE_API_PERMISSIONS_INVALIDThe API policy is invalid.Fix backend/internal/api/permissions.json.
STANDALONE_ARCH_NOT_DECLAREDThe requested build architecture is not in arches.Add the architecture to arches in dsm-package.yaml, or use a declared —arch.
STANDALONE_ARCHES_INVALIDarches is invalid.List one or more unique values from x86_64, aarch64 or armv7.
STANDALONE_BACKEND_INVALIDThe backend configuration is invalid.backend must contain exactly one of go (dir and a ./ main) or binary (keyed by architecture).
STANDALONE_BACKGROUND_ARTIFACT_REQUIREDThe 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_FAILEDThe 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_INVALIDThe 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_MISMATCHThe backend executable’s CPU architecture does not match the target.Rebuild for that architecture, or fix the backend.files mapping.
STANDALONE_BINARY_ARCH_MISSINGAn 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_DYNAMICThe backend executable is dynamically linked.Link statically (set CGO_ENABLED=0 for Go); the libc version differs across DSM models.
STANDALONE_BINARY_MISSINGThe backend executable was not found.Confirm the file backend.files points at exists.
STANDALONE_BINARY_NOT_ELFThe 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_REGULARThe backend executable is not a regular file.Use a real file; no symlinks, directories or special files.
STANDALONE_BINARY_TOO_LARGEThe backend executable exceeds 256 MiB.Shrink the executable (for example -ldflags “-s -w”).
STANDALONE_BRIDGE_APP_IN_UIThe 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_INVALIDThe 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_FAILEDThere 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_INVALIDThe 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_MISMATCHThe 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_INVALIDbuild 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_INVALIDThe 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_LAUNCHconsole 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_PORTALconsole is declared together with portal.Declare either console or portal, not both.
STANDALONE_CONSOLE_REQUIRES_GATEWAYconsole 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_REQUIREDThe 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_FAILEDThe 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_INVALIDdaemon.ingress does not declare one same-origin path and a bounded proxy timeout.Set daemon.ingress.path to // with lowercase letters, digits and -, not a DSM path, and timeout (optional) to 1–3600 seconds.
STANDALONE_DAEMON_INGRESS_MIN_DSMdaemon.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_INVALIDThe 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_INVALIDdaemon.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_INVALIDThe 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_INVALIDdaemon.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_REQUIREDThe 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_INVALIDThe entry configuration is invalid.Set entry to admin-only or app-privilege; app-privilege needs at least one authenticated route.
STANDALONE_ENTRY_UNSUPPORTEDThe 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_WIDENEDentry: 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_UNKNOWNdsm-package.yaml contains an unsupported field.Remove the field; a Standalone Package does not accept custom lifecycle scripts or DSM conf.
STANDALONE_GO_BUILD_FAILEDgo 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_MISSINGThe 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_INVALIDA message file is not a flat key -> text JSON object.Use a format like { “greeting.save”: “Save” }.
STANDALONE_I18N_GLOSSARY_INVALIDThe 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_MISMATCHA 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_INVALIDThe 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_MISMATCHOne language’s message keys differ from en.json.Give every language file exactly the keys of en.json.
STANDALONE_I18N_LOCALE_UNSUPPORTEDA 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_MISSINGThe i18n.messages directory is missing en.json.Add en.json; it is the fallback text and key list for every language.
STANDALONE_I18N_PLACEHOLDER_MISMATCHA translation has a missing or extra {placeholder}.Keep every {name} placeholder from the en.json text.
STANDALONE_ICON_INVALIDThe 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_.png including icon_256.png; omit it to use the SDK default icon.
STANDALONE_IDENTITY_GATEWAY_ARTIFACT_REQUIREDThe 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_FAILEDThe 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_INVALIDThe 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_REQUIREDExternal 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_INVALIDThe 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_INVALIDAn 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_INVALIDlogin_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_MISSINGdsm-package.yaml was not found.Run from the project root, or create a project with synopkgland init -t native-go.
STANDALONE_MANIFEST_YAMLdsm-package.yaml is not a valid YAML object.Fix the YAML syntax in dsm-package.yaml.
STANDALONE_NODE_DEPENDENCY_MISSINGThe 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_BUILTThe 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_INVALIDos_min_ver has the wrong format.Use .-, for example 7.2-64570.
STANDALONE_PACKAGE_INVALIDThe package name is invalid.Use a 2-64 character name that starts with a letter and contains only alphanumerics, for example PhotoTagger.
STANDALONE_PATH_INVALIDThe path field is not a relative path inside the project.Use a path relative to the project root.
STANDALONE_PATH_OUTSIDE_PROJECTThe path points outside the project directory.Keep the files inside the project directory (also after resolving symlinks).
STANDALONE_PORTAL_ENTRY_INVALIDWhen 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_INVALIDThe 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_DSMA 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_EXECUTORAn 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_MISSINGThe 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_SHORTThe 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_INVALIDroot/ contains an invalid root operation file.A script must be a regular root/.sh starting with #!/bin/sh and under 16 KiB; a binary must be root//, an ELF for that architecture, under 64 MiB, and must not share a script’s name.
STANDALONE_ROOT_OPS_MISSINGcapabilities.rootOps: true is set but there are no root operations.Put at least one .sh in root/, or drop capabilities.rootOps.
STANDALONE_ROOT_OPS_UNUSEDThe 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_INVALIDThe root settings in dsm-package.yaml are invalid, or the executor does not accept them.root accepts only programs (: {kind, schema, run, job} matching root/.sh or root//), stop (a program in root/) and state: true, and requires capabilities.rootOps: true.
STANDALONE_RUNTIME_BUILD_FAILEDCompiling 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_FAILEDThe 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_INVALIDThe schema version in dsm-package.yaml is not supported.Set schema to 2 and use backend.kind and capabilities.
STANDALONE_SHARED_FOLDER_INVALIDThe install.sharedFolder declaration in dsm-package.yaml is invalid.Write install: { sharedFolder: { mode: select|create, key: , permission: ro|rw } }; create also needs name (the DSM shared folder name) and select must not have one.
STANDALONE_TEXT_INVALIDA display text field is invalid.Use single-line, non-empty text without ” or .
STANDALONE_TIMEOUT_UNSUPPORTEDbackend.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_FAILEDThe 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_INVALIDThe 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_MISSINGThe 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_INVALIDThe ui configuration is invalid.Provide ui.dir, or ui: false for a native identity_gateway App without an SDK window.
STANDALONE_UI_LAUNCH_INVALIDThe 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_INVALIDui: 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_FILEThe UI directory contains a special file.The UI directory may contain only regular files and directories.
STANDALONE_UI_SYMLINKThe UI directory contains a symlink.Replace the symlink with a real file.
STANDALONE_UI_TOO_LARGEThe total UI file size exceeds 64 MiB.Shrink the UI assets.
STANDALONE_UI_WINDOW_INVALIDui.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_INVALIDversion 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_MISSINGuninstall.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_UNSAFEuninstall.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/.sh and declare it with uninstall.purge.root.
UNINSTALL_INVALIDThe 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_MISSINGuninstall.purge.root points at a root operation that does not exist.Add root/.sh, or change uninstall.purge.root to an existing root operation name.
UNINSTALL_ROOT_REQUIRES_ROOT_OPSuninstall.purge.root needs administrator-approved root operations.Declare capabilities.rootOps: true and provide root/.sh, or remove uninstall.purge.root.
UNINSTALL_STATE_REQUIRES_PURGEuninstall.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_MISSINGThe uninstall wizard cannot list the text of the uninstall.state items.Add uninstall.state. to i18n.messages en.json (and the other languages).
UPSTREAM_ATTRIBUTIONUpstream 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.

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.

CodeSeverityMeaningSource
SPK_CONF_UNKNOWNwarningconf/ 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_MISMATCHerrorAn 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_UNKNOWNwarningThe 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_UNSAFEerrorA path in the SPK leaves the archive root (absolute or ..), or is a link.DSM 7 Developer Guide: Package Structure
SPK_ICON_INVALIDerrorPACKAGE_ICON.PNG or PACKAGE_ICON_256.PNG is not a PNG.DSM 7 Developer Guide: Package Structure
SPK_ICON_MISSINGerrorPACKAGE_ICON.PNG or PACKAGE_ICON_256.PNG is missing.DSM 7 Developer Guide: Package Structure
SPK_ICON_SIZEwarningPACKAGE_ICON.PNG is not 64×64, or PACKAGE_ICON_256.PNG is not 256×256.DSM 7 Developer Guide: Package Structure
SPK_INFO_ADMINPORT_INVALIDerrorINFO adminport is not an integer from 0 to 65536.DSM 7 Developer Guide: INFO Optional Fields (adminport)
SPK_INFO_ARCH_NOARCH_MIXEDwarningINFO arch lists noarch together with other values.DSM 7 Developer Guide: INFO Necessary Fields (arch)
SPK_INFO_ARCH_UNKNOWNwarningINFO 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_INVALIDerrorA 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_MISMATCHerrorINFO checksum is not the MD5 of package.tgz.DSM 7 Developer Guide: INFO Optional Fields (checksum)
SPK_INFO_DISPLAYNAME_MISSINGwarningINFO has no displayname, so Package Center shows the package value.DSM 7 Developer Guide: INFO Optional Fields
SPK_INFO_FIELD_DUPLICATEwarningINFO sets the same field twice.DSM 7 Developer Guide: INFO
SPK_INFO_FIELD_REQUIREDerrorINFO lacks a necessary field: package, version, os_min_ver, description, arch or maintainer.DSM 7 Developer Guide: INFO Necessary Fields
SPK_INFO_FIELD_UNKNOWNwarningAn 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_UNKNOWNwarningThe 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_INVALIDwarningAn INFO line is not key="value" (blank lines and # comments are fine).DSM 7 Developer Guide: INFO
SPK_INFO_MISSINGerrorINFO is missing.DSM 7 Developer Guide: Package Structure
SPK_INFO_OS_MIN_VER_LOWwarningINFO os_min_ver is below 7.0-40000.DSM 7 Developer Guide: INFO Necessary Fields (os_min_ver)
SPK_INFO_OS_VER_INVALIDerrorINFO 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_INVALIDerrorINFO package contains one of : / > < | =.DSM 7 Developer Guide: INFO Necessary Fields (package)
SPK_INFO_VALUE_UNTERMINATEDerrorAn INFO value has no closing quote.DSM 7 Developer Guide: INFO
SPK_INFO_VERSION_INVALIDerrorINFO 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_BUILDwarningINFO 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_LARGEerrorLICENSE is 1 MB or larger.DSM 7 Developer Guide: Package Structure
SPK_NOARCH_ELFerrorINFO arch is noarch, but package.tgz contains an ELF executable.DSM 7 Developer Guide: INFO Necessary Fields (arch), Pack Stage
SPK_NOT_TARerrorThe file is not a readable tar archive. An SPK is an uncompressed tar.DSM 7 Developer Guide: Package Structure
SPK_PAYLOAD_LINK_ABSOLUTEwarningA 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_ESCAPEerrorA package.tgz symlink or hard link points outside the package folder.DSM 7 Developer Guide: Package Structure (package.tgz)
SPK_PAYLOAD_MISSINGerrorpackage.tgz is missing.DSM 7 Developer Guide: Package Structure
SPK_PAYLOAD_PATH_UNSAFEerrorA 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_UNREADABLEerrorpackage.tgz is not a readable tar or tar.gz archive, or it is empty.DSM 7 Developer Guide: Package Structure (package.tgz)
SPK_PAYLOAD_XZwarningpackage.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_INVALIDerrorconf/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_MISSINGerrorconf/privilege is missing. DSM 7 requires it.DSM 7 Developer Guide: conf, Privilege Config
SPK_PRIVILEGE_ROOTwarningconf/privilege asks to run as root (in defaults, ctrl-script or executable).DSM 7 Developer Guide: Privilege Config
SPK_RESOURCE_INVALIDerrorconf/resource is not a JSON object.DSM 7 Developer Guide: Resource Config
SPK_RESOURCE_UNKNOWNwarningconf/resource has a resource worker id the guide does not list.DSM 7 Developer Guide: Available Workers
SPK_SCRIPT_HOOK_MISSINGwarningpreinst, 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_MISSINGerrorscripts/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_EXECUTABLEerrorA lifecycle script in scripts/ is not executable.DSM 7 Developer Guide: scripts
SPK_SCRIPT_NO_INTERPRETERwarningA lifecycle script starts with no #! line (such as #!/bin/sh) and is not ELF.DSM 7 Developer Guide: scripts
SPK_SIGNATURE_INVALIDwarningsyno_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_INVALIDerrorThe config under dsmuidir is not a JSON object.DSM 7 Developer Guide: Integrate DSM, Application Config
SPK_UI_TEXTS_MISSINGerrorA 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_UNDECLAREDwarningA 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_INVALIDwarningA wizard file in WIZARD_UIFILES is not a JSON array.DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES)
SPK_WIZARD_SCRIPT_NOT_EXECUTABLEwarningA .sh wizard generator in WIZARD_UIFILES is not executable.DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES)
SPK_WIZARD_UNKNOWNwarningA WIZARD_UIFILES name is not install, upgrade or uninstall_uifile[_<lang>][.sh].DSM 7 Developer Guide: Package Structure (WIZARD_UIFILES)

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).

CodeReturned byMeaningWhat to do
session_requiredEvery route except public onesThere is no valid DSM session, or the File Station user does not match the caller.Sign in to DSM again.
credential_not_readyRoutes 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_requirednas.*, bg.browse, bg.jobs.submit with identity: standaloneThe call needs the DSM id cookie and it is missing.Open the app from the DSM window and sign in to DSM.
session_revalidation_requiredOther routes with identity: standaloneThe app session needs to be checked against DSM and the DSM cookie is missing.Open the app from the DSM window.
admin_requiredRoutes that need administratorsThe 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_deniedEvery route when entry: app-privilegeDSM 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_unavailableEvery routeDSM 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_methodEvery routeThe 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_originJSON routesThe request came from another origin.Call the backend only from the app’s own page.
origin_requiredJSON routesA POST carried neither Origin nor Referer, so the backend cannot tell which page sent it.Open the app again in a current browser.
json_requiredJSON routesThe request does not have Content-Type: application/json.Send JSON. ctx.call does this for you.
method_not_allowedJSON routesThe request is not a POST.Use POST.
request_too_largeJSON routesThe body is larger than 1 MiB or too deeply nested.Send less data.
bad_requestEvery routeThe body or the params are not valid. Params with unknown fields are refused.Send {"method": "…", "params": {…}} with only the fields the method accepts.
bad_responseEvery routeThe request timed out (20 seconds) or was canceled, or the server did not return JSON.Retry.
internalEvery routeThe 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.
networkctx.call in the DSM windowThe NAS did not answer.Check the connection and retry.
deniednas.*, bg.browseFile Station refused the operation, usually because the user lacks permission on the folder.Give the user permission on the folder in DSM.
conflictnas.*, bg.*The target already exists, or the request conflicts with the current state of the job.Pick another name, or reload the state.
invalid-requestnas.*File Station refused the arguments, for example a bad path.Check the path.
unavailablenas.*, bg.*File Station or the background storage did not answer or is not available.Retry later.
cancelednas.*, delegate.*The call was canceled.Retry if you did not cancel it.
not_foundnas.*, bg.jobs.*The file, job or schedule does not exist, or belongs to another user.Check the path or id.
commit-uncertainnas.files.create_folder, nas.files.uploadThe response was lost, so you cannot tell if the change was made.List the folder to check, then retry if needed.
upload_size_requirednas.files.uploadThe upload has no Content-Length, or it is larger than 16 GiB.Send a Content-Length of at most 16 GiB.
limit-exceedednas.*, bg.jobs.submit, files.readA size limit was reached, for example a job input larger than 512 KiB.Send a smaller file.
read_failedbg.jobs.submitThe file could not be read completely.Retry.
identity_unavailablebg.*The caller’s DSM user id could not be found.Retry. If it persists, sign in to DSM again.
jobs_busybg.*The job store stayed locked for 5 seconds.Retry later.
not_readybg.jobs.resultThe job has no result yet.Wait until the job is succeeded.
queue-fullbg.jobs.submit, bg.schedules.*The background queue is full.Wait for jobs to finish.
quota-exceededbg.jobs.submitThe background storage is full.Wait for jobs to finish, or remove finished jobs.
owner-queue-fullbg.jobs.submitThe caller already has the maximum of pending jobs.Wait for the caller’s jobs to finish.
owner-quota-exceededbg.jobs.submitThe caller’s background storage limit is reached.Wait for the caller’s jobs to finish.
schedule-fullbg.schedules.createThe schedule limit of the package is reached.Delete a schedule.
input-unavailablebg.schedules.*The private copy of the job input is gone.Import the file again.
https_requiredidentity.login, identity.sessionThe call was made over plain HTTP.Open the app over HTTPS.
invalid_credentialsidentity.loginThe account name or password is wrong.Try again.
account_disabledidentity.loginThe DSM account is disabled.Use another account, or enable it in DSM.
otp_requiredidentity.loginThe account needs a two-factor code.Send otp with the login.
login_not_permittedidentity.loginDSM does not let this account sign in to the app.Check the account in DSM.
rate_limitedidentity.loginToo many attempts.Wait a minute and retry.
invalid-destinationdelegate.*The destination is not valid.Select the destination again.
invalid-sizedelegate.*The file size is not valid.Pass the real size of the staged file.
unsupporteddelegate.*, bg.*The call is not supported in this setup.Check the capability and the lifetime mode.
needs-scope-confirmationdelegate.*An administrator must confirm the folder scope first.Approve the scope in the app’s administrator settings.
disableddelegate.*An administrator turned the integration off.Ask an administrator to enable it.
operation-conflictdelegate.*The same job id was sent again with different input.Use a new job id.
operation-not-founddelegate.operations.*The operation is not known to the executor.Check the ids.
destination-existsdelegate.move_from_staging, delegate file operationsA 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-pathdelegate.move_from_staging, delegate file operationsA 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-deepdelegate.move_from_stagingname has more than 16 folders.Use fewer folders.
destination-not-directorydelegate.move_from_staging, files.createFolderA 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-longdelegate.move_from_staging, delegate file operationsThe volume refused a name as too long, for example over 143 bytes on an encrypted Shared Folder.Use a shorter name.
NO_SPACEdelegate.move_from_staging, delegate file operationsThe destination volume is full.Free space.
not-foundDelegate file operationsThe path does not exist inside the grant’s folder, or File Station reported the item missing.Check the path.
not-a-filefiles.readThe path is a folder or a special file.Read a regular file.
recursive-requiredfiles.deleteThe path is a folder and recursive is not set.Set Recursive: true.
recycle-bin-disabledfiles.deleteThe Shared Folder has no recycle bin and permanent is not set.Turn on the recycle bin, or set Permanent: true.
task-not-foundfiles.taskStatus, files.taskCancelThe task belongs to another job, or the executor restarted.Check the result with files.info.
too-many-tasksfiles.copy, files.move, files.deleteThe executor already tracks 64 tasks.Wait for tasks to finish.
READ_FAILEDfiles.readThe executor could not copy the file into staging.Retry. If it persists, check the NAS.
PERMISSION_DENIEDdelegate.*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_CHANGEDdelegate.move_from_stagingThe staged file is missing, or it changed after you staged it.Stage the file again.
ADMISSION_PENDING, ADMISSION_EXHAUSTEDdelegate.move_from_stagingThe move is waiting to be accepted by the executor, or it ran out of retries.Wait and check delegate.operations.get.
download_failedDelegate time-limited downloadsThe download did not finish.Retry.
jobs_unavailabledelegate.jobs.*The job store is not available.Retry later.
spool_unsafe, journal_corruptdelegate.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, quotadelegate.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_PROTOCOLdelegate.*, 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_PAUSEDdelegate.*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_STARTINGdelegate.*, 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_OPdelegate.*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_LARGEdelegate.*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_FAILEDdelegate.*The executor failed while reading its state, writing the file or calling DSM.Retry. If it persists, check the NAS.
SCOPE_APPROVAL_STALE, IDENTITY_CHANGEDdelegate.*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_FAILEDroot.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_invalidctx.portalDSM rejected the alias.Use 1 to 64 lowercase letters, digits or -.
portal_alias_reservedctx.portalThe alias is a reserved DSM path.Choose another alias.
portal_alias_in_usectx.portalAnother app already uses the alias.Choose another alias.
portal_unavailablectx.portalApplication 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.

A failed job has an errorCode, not an RPC error; read it from bg.jobs.get or bg.jobs.list.

errorCodeMeaningWhat to do
timeoutThe job ran longer than 60 seconds.Use a smaller input.
input-changedThe worker result did not match the input digest.Submit the job again.
worker-errorThe worker failed.Submit the job again. If it repeats, check the input.
worker-stoppedThe worker stopped while the job ran. The job state is interrupted.Submit the job again.
worker-changedThe 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-interruptedThe job was interrupted before it was accepted.Submit the job again.

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.

CodeKindRetryableHTTPMeaning
AUTH_DENIEDrefusalNo401The DSM session in auth is missing, invalid or expired.
INELIGIBLErefusalNo403The DSM account cannot be delegated: system account, expired, or not the caller.
APP_DENIEDrefusalNo403DSM Application Privileges do not allow the account to use the app or File Station.
ADMIN_REQUIREDrefusalNo403The operation needs a DSM administrator.
DELEGATION_DENIEDrefusalNo403The grant does not exist, belongs to another user or package, or was revoked.
SCOPE_DENIEDrefusalNo403The path is outside the grant or the approved folder scope.
POLICY_DENIEDrefusalNo403The operation is not in the approved policy.
PEER_DENIEDrefusalNo403The socket peer is not the package user or root.
PERMISSION_DENIEDrefusalNo403The delegated user cannot access the path in DSM.
UNKNOWN_OPrefusalNo400The executor does not know the operation.
INVALID_REQUESTrefusalNo400The request or its params are not valid.
REQUEST_TOO_LARGErefusalNo413The request line is larger than 64 KiB.
EXECUTOR_PAUSEDrefusalYes503The executor is paused, for example while the package stops or upgrades.
EXECUTOR_STARTINGrefusalYes503The executor is running the App’s start step after an install or upgrade; status answers state starting until it ends.
STORAGE_ERRORrefusalYes500The executor could not read or write its protected state.
INTERNALrefusalYes500The executor failed unexpectedly.
WRITE_FAILEDrefusalYes500The executor could not write the file.
READ_FAILEDrefusalYes500The executor could not copy the file into staging.
DSM_FAILEDrefusalYes502A DSM call made by the executor failed.
ROOT_FAILEDrefusalNo500The root program could not run, ended by a signal, or its output could not be kept.
ROOT_TIMEOUTrefusalYes504The root program ran past its policy timeout and was killed.
ROOT_BUSYrefusalYes429The package already runs as many root programs as it may.
ROOT_STAGING_FULLrefusalYes507Root output waiting in the staging folder already fills its quota.
ROOT_JOB_NOT_FOUNDrefusalNo404No root job of the package has this job_id.
PORTAL_FAILEDrefusalYes502DSM did not accept the Application Portal change; status portal says whether the entry needs another removal.
NO_SPACErefusalNo507The destination volume is full.
SCOPE_APPROVAL_STALErefusalNo409The folder scope approval is out of date.
IDENTITY_CHANGEDrefusalNo409The DSM account or folder the grant is bound to changed.
needs-scope-confirmationrefusalNo409An administrator must confirm the folder scope first.
disabledrefusalNo409An administrator turned the integration off.
invalid-destinationrefusalNo400The destination key is not in the policy.
invalid-sizerefusalNo400The size is missing, negative or too large.
operation-conflictrefusalNo409The same job id was sent again with different input.
operation-not-foundrefusalNo404The operation is not known for this grant and caller.
destination-existsrefusalNo409A file with that name already exists and conflict does not allow replacing it.
invalid-pathrefusalNo400A name or path is empty, reserved, too long or contains a forbidden character.
path-too-deeprefusalNo400The name has more than 16 folders.
destination-not-directoryrefusalNo409A folder in the name exists as a file or symlink, or is on another volume.
name-too-longrefusalNo400The volume refused a name as too long.
not-foundrefusalNo404The path does not exist.
not-a-filerefusalNo400The path is a folder or a special file.
recursive-requiredrefusalNo400The path is a folder and recursive is not set.
recycle-bin-disabledrefusalNo409The Shared Folder has no recycle bin and permanent is not set.
task-not-foundrefusalNo404The task belongs to another job, or the executor restarted.
too-many-tasksrefusalYes429The executor already tracks 64 tasks.
queue-fullrefusalYes429The executor operation queue is full.
limit-exceededrefusalNo413The file is larger than max_bytes, or root output is larger than its policy max_output.
OPERATION_CANCELEDoutcomeNo409The operation was canceled; reason says why.
CANCEL_REQUESTEDoutcomeNo202Cancel was requested and the copy has not stopped yet.
CLEANUP_PENDINGoutcomeYes500The operation ended but its partial file is not removed yet.
grant-revokedreasonNo409The grant was revoked.
destination-replacedreasonNo409A newer grant replaced this destination.
integration-disabledreasonNo409An administrator disabled the integration.
validation-deniedreasonNo403The grant failed revalidation against DSM.
scope-changedreasonNo409The approved folder scope changed.
storage-errorreasonYes500Protected state could not be written.
operation-canceled-by-userreasonNo409The owner canceled the operation.
operation-deadline-exceededreasonYes504The operation ran past its deadline.
EXECUTOR_UNAVAILABLEclientYes503The client could not connect to the executor socket.
APP_STOPPEDclientYes503The package is stopped: its lifecycle mailbox asks the executor to stop. The client sent nothing.
APP_STARTINGclientYes503The package was just started and its executor is not listening yet. The client sent nothing.
EXECUTOR_TIMEOUTclientYes504The executor did not answer in time.
EXECUTOR_TOO_LARGEclientNo413The request or reply is larger than 64 KiB.
EXECUTOR_PROTOCOLclientNo502The executor reply is not a valid v1 response.
WEBAPI_UNCERTAINrefusalNo502The WebAPI outcome is unknown: execution, reply validation or audit completion failed. Do not automatically retry a mutation.