Description of problem: The build is failing on push the image to the registry. Pushing image docker-registry.default.svc.cluster.local:5000/test/ruby-ex:latest ... error: build error: Failed to push image: unauthorized: authentication required However, I was able to check the logs which secret is used - builder-dockercfg-<>. We tried to use the token from the secret and login and push manually the image, it works as expected. Nevertheless, the build is now failing on: Running 'bundle install --retry 2 --deployment --without development:test' ... failed to create fsnotify watcher: too many open files Version-Release number of selected component (if applicable): OpenShift Container Platform 3.9 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The error you're now getting points to a node/runtime resource problem, because we're simply running a docker container and it is hitting the too many open files restriction. Transferring to the runtimes team to help you investigate why you would be hitting this limitation. Error from the log: I1122 08:02:41.495624 1 sti.go:681] ---> Running 'bundle install --retry 2 --deployment --without development:test' ... failed to create fsnotify watcher: too many open files If you get past that error (w/ help from the runtime team) and start hitting the push error again, we can come back and investigate that.
Can you get this value sysctl fs.inotify.max_user_instances? Both on the node and in the container?
Can you try bumping up that limit and trying the build? sysctl -w fs.inotify.max_user_instances = 10000