Closed timclassic closed 6 years ago
+1, we met the same issue here, this happened when we run docker pull image
Uncaught Error: too few args to sprintf
FROM
jsSprintf (/opt/smartdc/imgapi/node_modules/extsprintf/lib/extsprintf.js:71:4)
WError (/opt/smartdc/imgapi/node_modules/verror/lib/verror.js:207:41)
HttpError (/opt/smartdc/imgapi/node_modules/restify/lib/errors/http_error.js:68:12)
new module.exports.(anonymous function) (/opt/smartdc/imgapi/node_modules/restify/lib/errors/http_error.js:146:19)
Object.wrapErrorFromDrc (/opt/smartdc/imgapi/lib/errors.js:557:16)
/opt/smartdc/imgapi/lib/images.js:3563:37
/opt/smartdc/imgapi/node_modules/docker-registry-client/lib/registry-client-v1.js:873:9
next (/opt/smartdc/imgapi/node_modules/vasync/lib/vasync.js:201:4)
/opt/smartdc/imgapi/node_modules/docker-registry-client/lib/registry-client-v1.js:485:20
_after (/opt/smartdc/imgapi/node_modules/docker-registry-client/lib/registry-client-v1.js:801:13)
Barrier._onGetNonRedirResult (/opt/smartdc/imgapi/node_modules/docker-registry-client/lib/registry-client-v1.js:659:9)
emitNone (events.js:67:13)
Barrier.emit (events.js:166:7)
Immediate._onImmediate (/opt/smartdc/imgapi/node_modules/vasync/lib/vasync.js:515:9)
processImmediate [as _immediateCallback] (timers.js:383:17)
processImmediate [as _immediateCallback] (timers.js:383:17)
[ Aug 28 07:46:46 Stopping because all processes in service exited. ]
[ Aug 28 07:46:46 Executing stop method (:kill). ]
[ Aug 28 07:46:46 Restarting too quickly, changing state to maintenance. ]
This error should now be fixed by the aforementioned change.
I tried to start a container that required pulling an image from docker.io with an incorrect Docker account password.
imgapi
crashes with the following messages:and then the service restarts.
I resolved the issue locally by running a
docker login
and supplying the correct credentials.imgapi
version: