sclorg / rails-ex

Ruby Rails Example
35 stars 346 forks source link

template is not running properly on OpenShift 4 #164

Closed phracek closed 8 months ago

phracek commented 9 months ago

Container platform

OCP 4

Version

ruby-3.1, ruby3.0

OS version of the container image

RHEL 8, RHEL 9

Bugzilla, Jira

No response

Description

During the testing of rail-ex template I discovered, that it is not working properly. Log from build is here:

Defaulted container "sti-build" out of: sti-build, git-clone (init), manage-dockerfile (init)
time="2024-01-16T13:03:31Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I0116 13:03:31.114103       1 defaults.go:112] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Trying to pull image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/ruby@sha256:370bcf32ceb5505acf52679882fdba076ce2a5d7bbe4aa77924ea808925a9a77...
Getting image source signatures
Copying blob sha256:2a8df87989f5321716be1b8863523d3ee9d5b5324f33f0163bb054330f5fe758
Copying blob sha256:50ccdb01751aeb08fdb4bb077afe0f302149e1fb82242159e5787372a750d3c1
Copying blob sha256:8ee5f1e863ab9d2a5c9741aa4954fd8be5fa515465efdc38cb4e15808b58010e
Copying blob sha256:2e81a4fbe719bf7452c5a1dfc71d98c0c1d2daa567b7db50466b15f9448d88f9
Copying blob sha256:696f68f50a3c4b73bf17307463f440fa7da4780aca9ab78f4a4ffc6c0c978d74
Copying blob sha256:c2650fe947f606317fadb11c65aae44ee7b8ebd7c245a639d3521ce7a8d4544f
Copying blob sha256:ac0e01248de69227cd4fab0fa3cf5024af18872ca86eac77356d9b93129c0c7a
Copying config sha256:19271c2407eadb0fa558c9322e675626dae59d154ba0a881c266e854a9828d27
Writing manifest to image destination
Generating dockerfile with builder image image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/ruby@sha256:370bcf32ceb5505acf52679882fdba076ce2a5d7bbe4aa77924ea808925a9a77
Replaced Dockerfile FROM image image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/ruby@sha256:370bcf32ceb5505acf52679882fdba076ce2a5d7bbe4aa77924ea808925a9a77
Adding transient rw bind mount for /run/secrets/rhsm
[1/3] STEP 1/10: FROM image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/ruby@sha256:370bcf32ceb5505acf52679882fdba076ce2a5d7bbe4aa77924ea808925a9a77 AS appimagea0b095206ff640fda78eb83b746d9d9b
[1/3] STEP 2/10: LABEL "io.openshift.build.commit.message"="Fix oc env"       "io.openshift.build.source-location"="https://github.com/sclorg/rails-ex.git"       "io.openshift.build.image"="image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/ruby@sha256:370bcf32ceb5505acf52679882fdba076ce2a5d7bbe4aa77924ea808925a9a77"       "io.openshift.build.commit.author"="Pavel Valena <pvalena@redhat.com>"       "io.openshift.build.commit.date"="Tue Jan 2 15:02:42 2024 +0100"       "io.openshift.build.commit.id"="a5fa1c2383333d663b08fd8ffae3d87663358924"       "io.openshift.build.commit.ref"="master"
[1/3] STEP 3/10: ENV OPENSHIFT_BUILD_NAME="rails-postgresql-example-1"     OPENSHIFT_BUILD_NAMESPACE="sclorg-test-20714"     OPENSHIFT_BUILD_SOURCE="https://github.com/sclorg/rails-ex.git"     OPENSHIFT_BUILD_REFERENCE="master"     OPENSHIFT_BUILD_COMMIT="a5fa1c2383333d663b08fd8ffae3d87663358924"     RUBYGEM_MIRROR=""
[1/3] STEP 4/10: USER root
[1/3] STEP 5/10: COPY upload/scripts /tmp/scripts
[1/3] STEP 6/10: COPY upload/src /tmp/src
[1/3] STEP 7/10: RUN chown -R 1001:0 /tmp/scripts /tmp/src
[1/3] STEP 8/10: USER 1001
[1/3] STEP 9/10: RUN /tmp/scripts/assemble
/tmp/src ~
---> Building your Ruby application from source ...
---> Running 'bundle install --retry 2' ...
Fetching gem metadata from https://rubygems.org/..........
Fetching rake 13.1.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rake 13.1.0
Fetching concurrent-ruby 1.2.2
Fetching minitest 5.15.0
Fetching crass 1.0.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching zeitwerk 2.6.12
Fetching builder 3.2.4
Fetching erubi 1.12.0
Fetching mini_portile2 2.6.1
Fetching racc 1.7.3
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing crass 1.0.6
Installing builder 3.2.4
Installing erubi 1.12.0
Installing mini_portile2 2.6.1
Fetching rack 2.2.8
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing zeitwerk 2.6.12
Installing racc 1.7.3 with native extensions
Fetching nio4r 2.7.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing minitest 5.15.0
Installing concurrent-ruby 1.2.2
Fetching websocket-extensions 0.1.5
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching marcel 1.0.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing websocket-extensions 0.1.5
Fetching mini_mime 1.1.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching digest 3.1.1
Installing nio4r 2.7.0 with native extensions
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rack 2.2.8
Fetching io-wait 0.3.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing mini_mime 1.1.2
Installing marcel 1.0.2
Installing digest 3.1.1 with native extensions
Fetching timeout 0.4.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing io-wait 0.3.1 with native extensions
Fetching strscan 3.0.7
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing timeout 0.4.0
Using bundler 2.3.7
Fetching coffee-script-source 1.12.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching execjs 2.9.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing strscan 3.0.7 with native extensions
Fetching method_source 1.0.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing coffee-script-source 1.12.2
Fetching thor 1.2.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing execjs 2.9.1
Installing method_source 1.0.0
Fetching connection_pool 2.4.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching ffi 1.16.3
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing thor 1.2.2
Installing connection_pool 2.4.1
Fetching rb-fsevent 0.11.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching matrix 0.4.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing matrix 0.4.2
Installing rb-fsevent 0.11.2
Fetching pg 1.2.3
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching tilt 2.3.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching sqlite3 1.4.4
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing ffi 1.16.3 with native extensions
Installing tilt 2.3.0
Installing pg 1.2.3 with native extensions
Installing sqlite3 1.4.4 with native extensions
Fetching turbolinks-source 5.2.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing turbolinks-source 5.2.0
Fetching websocket-driver 0.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing websocket-driver 0.7.6 with native extensions
Fetching rack-test 2.1.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rack-test 2.1.0
Fetching i18n 1.14.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing i18n 1.14.1
Fetching tzinfo 2.0.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching sprockets 4.2.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing tzinfo 2.0.6
Installing sprockets 4.2.1
Fetching coffee-script 2.4.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching uglifier 4.2.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching redis-client 0.19.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing coffee-script 2.4.1
Fetching nokogiri 1.12.5
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing redis-client 0.19.1
Installing uglifier 4.2.0
Fetching turbolinks 5.2.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Using net-protocol 0.1.2
Fetching activesupport 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing turbolinks 5.2.1
Fetching redis 5.0.8
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing redis 5.0.8
Installing activesupport 6.1.7.6
Fetching net-pop 0.1.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing net-pop 0.1.2
Fetching globalid 1.2.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching activemodel 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing nokogiri 1.12.5 with native extensions
Installing globalid 1.2.1
Fetching activejob 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing activemodel 6.1.7.6
Fetching activerecord 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing activejob 6.1.7.6
Installing activerecord 6.1.7.6
Fetching puma 6.4.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing puma 6.4.0 with native extensions
Fetching net-imap 0.2.2
Fetching net-smtp 0.3.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing net-smtp 0.3.0
Installing net-imap 0.2.2
Fetching mail 2.8.1
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing mail 2.8.1
Fetching rb-inotify 0.10.1
Fetching sassc 2.4.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rb-inotify 0.10.1
Fetching listen 3.8.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing sassc 2.4.0 with native extensions
Installing listen 3.8.0
Fetching rails-dom-testing 2.2.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Fetching loofah 2.22.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rails-dom-testing 2.2.0
Installing loofah 2.22.0
Fetching rails-html-sanitizer 1.5.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing rails-html-sanitizer 1.5.0
Fetching actionview 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing actionview 6.1.7.6
Fetching actionpack 6.1.7.6
Fetching jbuilder 2.11.5
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing jbuilder 2.11.5
Installing actionpack 6.1.7.6
Fetching actioncable 6.1.7.6
Fetching actionmailer 6.1.7.6
Fetching sprockets-rails 3.4.2
Fetching activestorage 6.1.7.6
Fetching railties 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing sprockets-rails 3.4.2
Installing actionmailer 6.1.7.6
Installing activestorage 6.1.7.6
Installing actioncable 6.1.7.6
Fetching actionmailbox 6.1.7.6
Fetching actiontext 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing railties 6.1.7.6
Installing actionmailbox 6.1.7.6
Installing actiontext 6.1.7.6
Fetching coffee-rails 5.0.0
Fetching rails 6.1.7.6
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing coffee-rails 5.0.0
Installing rails 6.1.7.6
Fetching sassc-rails 2.1.2
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
/usr/share/ruby/net/http.rb:1162: warning: The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
Installing sass-rails 6.0.0
Bundle complete! 21 Gemfile dependencies, 73 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./bundle`
---> Cleaning up unused ruby gems ...
Running `bundle clean --verbose` with bundler 2.3.7
Frozen, using resolution from the lockfile
---> No master key present in environment, generating ...
Adding config/master.key to store the encryption key: 0b988816d99ec7f3565283423cac5f4e

Save this in a password manager your team can access.

If you lose the key, no one, including you, can access anything encrypted with it.

      create  config/master.key

File encrypted and saved.
~
---> Installing application source ...
---> Building your Ruby application from source ...
---> Running 'bundle install --retry 2' ...
Using rake 13.1.0
Using concurrent-ruby 1.2.2
Using i18n 1.14.1
Using minitest 5.15.0
Using tzinfo 2.0.6
Using zeitwerk 2.6.12
Using activesupport 6.1.7.6
Using builder 3.2.4
Using erubi 1.12.0
Using mini_portile2 2.6.1
Using racc 1.7.3
Using nokogiri 1.12.5
Using rails-dom-testing 2.2.0
Using crass 1.0.6
Using loofah 2.22.0
Using rails-html-sanitizer 1.5.0
Using actionview 6.1.7.6
Using rack 2.2.8
Using rack-test 2.1.0
Using actionpack 6.1.7.6
Using nio4r 2.7.0
Using websocket-extensions 0.1.5
Using websocket-driver 0.7.6
Using actioncable 6.1.7.6
Using globalid 1.2.1
Using activejob 6.1.7.6
Using activemodel 6.1.7.6
Using activerecord 6.1.7.6
Using marcel 1.0.2
Using mini_mime 1.1.2
Using activestorage 6.1.7.6
Using digest 3.1.1
Using io-wait 0.3.1
Using timeout 0.4.0
Using net-protocol 0.1.2
Using strscan 3.0.7
Using net-imap 0.2.2
Using net-pop 0.1.2
Using net-smtp 0.3.0
Using mail 2.8.1
Using actionmailbox 6.1.7.6
Using actionmailer 6.1.7.6
Using actiontext 6.1.7.6
Using bundler 2.3.7
Using coffee-script-source 1.12.2
Using execjs 2.9.1
Using coffee-script 2.4.1
Using method_source 1.0.0
Using thor 1.2.2
Using railties 6.1.7.6
Using coffee-rails 5.0.0
Using connection_pool 2.4.1
Using ffi 1.16.3
Using jbuilder 2.11.5
Using rb-fsevent 0.11.2
Using rb-inotify 0.10.1
Using listen 3.8.0
Using matrix 0.4.2
Using pg 1.2.3
Using puma 6.4.0
Using sprockets 4.2.1
Using sprockets-rails 3.4.2
Using rails 6.1.7.6
Using redis-client 0.19.1
Using redis 5.0.8
Using sassc 2.4.0
Using tilt 2.3.0
Using sassc-rails 2.1.2
Using sass-rails 6.0.0
Using sqlite3 1.4.4
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using uglifier 4.2.0
Bundle complete! 21 Gemfile dependencies, 73 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./bundle`
---> Cleaning up unused ruby gems ...
Running `bundle clean --verbose` with bundler 2.3.7
Frozen, using resolution from the lockfile
---> Starting asset compilation ...
I, [2024-01-16T13:06:18.906300 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js
I, [2024-01-16T13:06:18.907151 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/manifest-dad05bf766af0fe3d79dd746db3c1361c0583026cdf35d6a2921bccaea835331.js.gz
I, [2024-01-16T13:06:18.907331 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/application-220737ee0c8b1a6764f5c9e9cedc63bc8269f273b020285effe037827266ff1a.js
I, [2024-01-16T13:06:18.908073 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/application-220737ee0c8b1a6764f5c9e9cedc63bc8269f273b020285effe037827266ff1a.js.gz
I, [2024-01-16T13:06:18.908303 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/articles-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js
I, [2024-01-16T13:06:18.908951 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/articles-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js.gz
I, [2024-01-16T13:06:18.909099 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/cable-405b9eaa96e229928daca399c41ed1672fe9b1eb4aea0bbe27306cf68f4f829e.js
I, [2024-01-16T13:06:18.909985 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/cable-405b9eaa96e229928daca399c41ed1672fe9b1eb4aea0bbe27306cf68f4f829e.js.gz
I, [2024-01-16T13:06:18.910625 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/comments-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js
I, [2024-01-16T13:06:18.910787 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/comments-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js.gz
I, [2024-01-16T13:06:18.912235 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/welcome-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js
I, [2024-01-16T13:06:18.912534 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/welcome-27cfb9694c5e92d25d972c2b4a2d2e222ad088aef866823f772241c1db423402.js.gz
I, [2024-01-16T13:06:18.913153 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/application-30e2c46de053e7de3812037627d684e34d284d750d562538351e4629c5244306.css
I, [2024-01-16T13:06:18.913231 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/application-30e2c46de053e7de3812037627d684e34d284d750d562538351e4629c5244306.css.gz
I, [2024-01-16T13:06:18.913530 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/articles-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-01-16T13:06:18.913802 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/articles-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-01-16T13:06:18.913932 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/comments-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-01-16T13:06:18.914051 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/comments-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2024-01-16T13:06:18.914132 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/scaffolds-30e2c46de053e7de3812037627d684e34d284d750d562538351e4629c5244306.css
I, [2024-01-16T13:06:18.914188 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/scaffolds-30e2c46de053e7de3812037627d684e34d284d750d562538351e4629c5244306.css.gz
I, [2024-01-16T13:06:18.914261 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2024-01-16T13:06:18.914567 #10253]  INFO -- : Writing /opt/app-root/src/public/assets/welcome-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
[1/3] STEP 10/10: CMD /usr/libexec/s2i/run
Getting image source signatures
Copying blob sha256:86426b9e591db2cdd8eba8085aa38b705422152b49960696308d988f33f3d741
Copying blob sha256:ed3888a8ac3ef81efe863a57700ec94aef8ea84de1f8bb80b7065f6fe6d33300
Copying blob sha256:d4a64153af37ff791798154a516026125224d6a16a5c27d1c5c6548569026d99
Copying blob sha256:077d233fd2c7a2ee467690f781c36709f763ee77189fa9d1afce53dd528bd29e
Copying blob sha256:952d535c89a228961f23c814064af02f5c1c4b4fa84d4702f3bd8bec44c67d69
Copying blob sha256:753a922c20eedf2959d59644ffd7fe367940caaef8916d9eb15c946e6399a059
Copying blob sha256:9d24b62b7e8377368cce7da225dafb4b8b5042557f13bbf4314c0e536933e197
Copying blob sha256:1bbb79699756d312cb2a70c5f6a2b87eef1a8d0ecbe2958a1c4e2ff1af1aa030
Copying config sha256:e1588bd82c29aefa93fbc62f7ec6fc72700d3825510aaa44110376d365fd5a52
Writing manifest to image destination
--> e1588bd82c29
[2/3] STEP 1/2: FROM e1588bd82c29aefa93fbc62f7ec6fc72700d3825510aaa44110376d365fd5a52
[2/3] STEP 2/2: RUN /bin/sh -ic 'bundle exec rake test'
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
Run options: --seed 40294

# Running:

.

Finished in 0.145536s, 6.8712 runs/s, 6.8712 assertions/s.
1 runs, 1 assertions, 0 failures, 0 errors, 0 skips
[3/3] STEP 1/1: FROM e1588bd82c29aefa93fbc62f7ec6fc72700d3825510aaa44110376d365fd5a52
[3/3] COMMIT temp.builder.openshift.io/sclorg-test-20714/rails-postgresql-example-1:2b4e7ddf
--> e1588bd82c29
Successfully tagged temp.builder.openshift.io/sclorg-test-20714/rails-postgresql-example-1:2b4e7ddf
e1588bd82c29aefa93fbc62f7ec6fc72700d3825510aaa44110376d365fd5a52

Pushing image image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/rails-postgresql-example:latest ...
Getting image source signatures
Copying blob sha256:2a8df87989f5321716be1b8863523d3ee9d5b5324f33f0163bb054330f5fe758
Copying blob sha256:50ccdb01751aeb08fdb4bb077afe0f302149e1fb82242159e5787372a750d3c1
Copying blob sha256:c2650fe947f606317fadb11c65aae44ee7b8ebd7c245a639d3521ce7a8d4544f
Copying blob sha256:696f68f50a3c4b73bf17307463f440fa7da4780aca9ab78f4a4ffc6c0c978d74
Copying blob sha256:2e81a4fbe719bf7452c5a1dfc71d98c0c1d2daa567b7db50466b15f9448d88f9
Copying blob sha256:8ee5f1e863ab9d2a5c9741aa4954fd8be5fa515465efdc38cb4e15808b58010e
Copying blob sha256:ac0e01248de69227cd4fab0fa3cf5024af18872ca86eac77356d9b93129c0c7a
Copying blob sha256:1bbb79699756d312cb2a70c5f6a2b87eef1a8d0ecbe2958a1c4e2ff1af1aa030
Copying config sha256:e1588bd82c29aefa93fbc62f7ec6fc72700d3825510aaa44110376d365fd5a52
Writing manifest to image destination
Successfully pushed image-registry.openshift-image-registry.svc:5000/sclorg-test-20714/rails-postgresql-example@sha256:e072ca0d8f59331ab52d6633bbe0386cb5a90d9df94e852eb086094a14d85ee8
Push successful

The next running pod based on this build crashed with logs:

[1] Puma starting in cluster mode...
[1] * Puma version: 6.4.0 (ruby 3.1.2-p20) ("The Eagle of Durango")
[1] *  Min threads: 0
[1] *  Max threads: 16
[1] *  Environment: production
[1] *   Master PID: 1
[1] *      Workers: 2
[1] *     Restarts: (✔) hot (✔) phased
[1] * Listening on http://0.0.0.0:8080
[1] Use Ctrl-C to stop
[1] - Worker 0 (PID: 10) booted in 2.1s, phase: 0
[1] - Worker 1 (PID: 12) booted in 2.19s, phase: 0

Reproducer

No response

phracek commented 9 months ago

See also PR https://github.com/sclorg/s2i-ruby-container/pull/508

jackorp commented 8 months ago

PostgreSQL issues fixed with https://github.com/sclorg/s2i-ruby-container/pull/517 , migrations weren't running which resulted in failures for OpenShift probes that were asking for /articles resource, which was asking the database. The database was not in an OK state, therefore that probe received a response that was not 2xx but rather 5xx and reported the rails container as failing to start.

The PR fixed running the migration, therefore, the probe query succeeded and it all deploys OK now.