Problem:
During the upgrade to Image Artist 1.5, the ImA stack fails to deploy successfully at step 14.
Error:
"failed to update secret SImA_datastore_secret: Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed"
******************************************************
Step 14: Deploy updated docker stack for configuration changes
******************************************************
logging output to /data/sima/ImA-1.5.0.1965/upgrade_logs_2025-12-02_3zpS/step_14_logs.txt
Ignoring unsupported options: build, pid, restart, security_opt
Ignoring deprecated options:
container_name: Setting the container name is not supported.
Since --detach=false was not specified, tasks will be created in the background.
In a future release, --detach=false will become the default.
failed to update secret SImA_datastore_secret: Error response from daemon: rpc error: code = InvalidArgument desc = only updates to Labels are allowed
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Failed to deploy new stack with new images (exit code 1) at 2025-12-02T16:06:13+01:00
Please fix the problem and re-run upgrade with parameter '--from-step 14'
Cause:
At step 14 of the upgrade, the ImA stack is deployed. The problem likely occurs because the ImA stack is already deployed.
Reason:
The deployment script regenerates the datastore_secret file content every time the stack is deployed. If the SImA_datastore_secret already exists it tries to update the existing secret SImA_datastore_secret with new content, which Docker Swarm refuses. In Docker Swarm, secrets are immutable by design. Once a secret is created, you cannot change its content - you can only modify its labels.
Solution:
- Undeploy the ImA stack using the
undeploy.shscript found inside the ImA installation directory - Restart the upgrade --from-step 14.
e.g.
$ ./upgrade.sh --old-install-dir ../ImA-1.4.xx --from-step 14
Comments
0 comments
Article is closed for comments.