Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken deploy with template on OCP 4.4 #119

Closed
wkulhanek opened this issue Oct 27, 2020 · 4 comments
Closed

Broken deploy with template on OCP 4.4 #119

wkulhanek opened this issue Oct 27, 2020 · 4 comments

Comments

@wkulhanek
Copy link

@hhorak @bparees

This is broken on OCP 4.4 with the cakephp-mysql-example template.

oc new-app cakephp-mysql-example

Results in a failed build:

Caching blobs under "/var/cache/blobs".
Getting image source signatures
Copying blob sha256:cf5693de4d3cdd6f352978b87c8f89ead294eff44938598f57a91cf7a02417d2
Copying blob sha256:51e5fc867e86131512a2e505f2496ad29ae8bcc0f23edfe85a17d206bbcd473a
Copying blob sha256:63abcb3c00123e524cf21f49a099025395236c9c7e525d9ccaa0d8b42060a104
Copying blob sha256:fd542ee251592bb3ed566aa42ccf98987a5607b64823720d19d68ae382e48bb0
Copying blob sha256:23302e52b49d49a0a25da8ea870bc1973e7d51c9b306f3539cd397318bd8b0a5
Copying config sha256:cb8f49448d04e9a860a7aa4aa0a9b88e9b870ee41f883f226a4219726dcadf86
Writing manifest to image destination
Storing signatures
Generating dockerfile with builder image image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:bbb9469731881762ab999ff8871378fc2852a11d7e5ad897e142bddde77f7b96
Replaced Dockerfile FROM image image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:bbb9469731881762ab999ff8871378fc2852a11d7e5ad897e142bddde77f7b96
STEP 1: FROM image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:bbb9469731881762ab999ff8871378fc2852a11d7e5ad897e142bddde77f7b96 AS appimage682d6b102aad4a40a5f1bb8fc7f4fd3e
STEP 2: LABEL "io.openshift.build.commit.author"="Honza Horak hhorak@redhat.com" "io.openshift.build.commit.date"="Tue Sep 1 14:17:04 2020 +0200" "io.openshift.build.commit.id"="377fe8f82054b6a458f9bd095e6814a2bc5107cc" "io.openshift.build.commit.ref"="master" "io.openshift.build.commit.message"="Merge pull request #117 from multi-arch/master" "io.openshift.build.source-location"="https://github.com/sclorg/cakephp-ex.git" "io.openshift.build.image"="image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:bbb9469731881762ab999ff8871378fc2852a11d7e5ad897e142bddde77f7b96"
STEP 3: ENV OPENSHIFT_BUILD_NAME="cakephp-mysql-example-1" OPENSHIFT_BUILD_NAMESPACE="wk-test" OPENSHIFT_BUILD_SOURCE="https://github.com/sclorg/cakephp-ex.git" OPENSHIFT_BUILD_COMMIT="377fe8f82054b6a458f9bd095e6814a2bc5107cc" COMPOSER_MIRROR=""
STEP 4: USER root
STEP 5: COPY upload/scripts /tmp/scripts
STEP 6: COPY upload/src /tmp/src
STEP 7: RUN chown -R 1001:0 /tmp/scripts /tmp/src
STEP 8: USER 1001
STEP 9: RUN /tmp/scripts/assemble
---> Installing application source...
Found 'composer.json', installing dependencies using composer.phar...
Downloading https://getcomposer.org/installer, attempt 1/6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 269k 100 269k 0 0 43306 0 0:00:06 0:00:06 --:--:-- 71385
All settings correct for using Composer
Downloading...

Composer (version 2.0.2) successfully installed to: /opt/app-root/src/composer.phar
Use it: php composer.phar

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 75 installs, 0 updates, 0 removals

  • Downloading cakephp/plugin-installer (1.1.0)
  • Downloading aura/intl (3.0.0)
  • Downloading symfony/polyfill-ctype (v1.11.0)
  • Downloading twig/twig (v1.39.1)
  • Downloading umpirsky/twig-php-function (v0.1)
  • Downloading jasny/twig-extensions (v1.2.0)
  • Downloading psr/http-message (1.0.1)
  • Downloading zendframework/zend-diactoros (1.8.6)
  • Downloading psr/log (1.1.0)
  • Downloading cakephp/chronos (1.2.5)
  • Downloading cakephp/cakephp (3.6.15)
  • Downloading asm89/twig-cache-extension (1.3.2)
  • Downloading aptoma/twig-markdown (2.0.0)
  • Downloading ajgl/breakpoint-twig-extension (0.3.4)
  • Downloading wyrihaximus/twig-view (4.3.8)
  • Downloading cakephp/bake (1.8.7)
  • Downloading squizlabs/php_codesniffer (3.4.2)
  • Downloading cakephp/cakephp-codesniffer (3.1.1)
  • Downloading jdorn/sql-formatter (v1.2.17)
  • Downloading symfony/process (v3.4.26)
  • Downloading symfony/finder (v3.4.26)
  • Downloading symfony/filesystem (v3.4.26)
  • Downloading symfony/polyfill-mbstring (v1.11.0)
  • Downloading symfony/debug (v3.4.26)
  • Downloading symfony/console (v3.4.26)
  • Downloading seld/phar-utils (1.0.1)
  • Downloading seld/jsonlint (1.7.1)
  • Downloading justinrainbow/json-schema (5.2.8)
  • Downloading composer/xdebug-handler (1.3.2)
  • Downloading composer/spdx-licenses (1.5.1)
  • Downloading composer/semver (1.5.0)
  • Downloading composer/ca-bundle (1.1.4)
  • Downloading composer/composer (1.8.5)
  • Downloading cakephp/debug_kit (3.16.7)
  • Downloading symfony/yaml (v3.4.26)
  • Downloading symfony/config (v3.4.26)
  • Downloading robmorgan/phinx (0.10.7)
  • Downloading cakephp/migrations (2.1.1)
  • Downloading jakub-onderka/php-console-color (v0.2)
  • Downloading m1/env (2.1.2)
  • Downloading josegonzalez/dotenv (3.2.0)
  • Downloading mobiledetect/mobiledetectlib (2.8.33)
  • Downloading webmozart/assert (1.4.0)
  • Downloading phpdocumentor/reflection-common (1.0.1)
  • Downloading phpdocumentor/type-resolver (0.4.0)
  • Downloading phpdocumentor/reflection-docblock (4.3.0)
  • Downloading phpunit/php-token-stream (2.0.2)
  • Downloading sebastian/version (2.0.1)
  • Downloading sebastian/resource-operations (1.0.0)
  • Downloading sebastian/recursion-context (3.0.0)
  • Downloading sebastian/object-reflector (1.1.1)
  • Downloading sebastian/object-enumerator (3.0.3)
  • Downloading sebastian/global-state (2.0.0)
  • Downloading sebastian/exporter (3.1.0)
  • Downloading sebastian/environment (3.1.0)
  • Downloading sebastian/diff (2.0.1)
  • Downloading sebastian/comparator (2.1.3)
  • Downloading phpunit/php-text-template (1.2.1)
  • Downloading doctrine/instantiator (1.0.5)
  • Downloading phpunit/phpunit-mock-objects (5.0.10)
  • Downloading phpunit/php-timer (1.0.9)
  • Downloading phpunit/php-file-iterator (1.4.5)
  • Downloading theseer/tokenizer (1.1.2)
  • Downloading sebastian/code-unit-reverse-lookup (1.0.1)
  • Downloading phpunit/php-code-coverage (5.3.2)
  • Downloading phpspec/prophecy (1.8.0)
  • Downloading phar-io/version (1.0.1)
  • Downloading phar-io/manifest (1.0.1)
  • Downloading myclabs/deep-copy (1.7.0)
  • Downloading phpunit/phpunit (6.5.14)
  • Downloading symfony/var-dumper (v3.4.26)
  • Downloading nikic/php-parser (v4.2.1)
  • Downloading jakub-onderka/php-console-highlighter (v0.4)
  • Downloading dnoegel/php-xdg-base-dir (0.1)
  • Downloading psy/psysh (v0.9.9)
  • Installing cakephp/plugin-installer (1.1.0): Extracting archive
  • Installing aura/intl (3.0.0): Extracting archive
  • Installing symfony/polyfill-ctype (v1.11.0): Extracting archive
  • Installing twig/twig (v1.39.1): Extracting archive
  • Installing umpirsky/twig-php-function (v0.1): Extracting archive
  • Installing jasny/twig-extensions (v1.2.0): Extracting archive
  • Installing psr/http-message (1.0.1): Extracting archive
  • Installing zendframework/zend-diactoros (1.8.6): Extracting archive
  • Installing psr/log (1.1.0): Extracting archive
  • Installing cakephp/chronos (1.2.5): Extracting archive
  • Installing cakephp/cakephp (3.6.15): Extracting archive
  • Installing asm89/twig-cache-extension (1.3.2): Extracting archive
  • Installing aptoma/twig-markdown (2.0.0): Extracting archive
  • Installing ajgl/breakpoint-twig-extension (0.3.4): Extracting archive
  • Installing wyrihaximus/twig-view (4.3.8): Extracting archive
  • Installing cakephp/bake (1.8.7): Extracting archive
  • Installing squizlabs/php_codesniffer (3.4.2): Extracting archive
  • Installing cakephp/cakephp-codesniffer (3.1.1): Extracting archive
  • Installing jdorn/sql-formatter (v1.2.17): Extracting archive
  • Installing symfony/process (v3.4.26): Extracting archive
  • Installing symfony/finder (v3.4.26): Extracting archive
  • Installing symfony/filesystem (v3.4.26): Extracting archive
  • Installing symfony/polyfill-mbstring (v1.11.0): Extracting archive
  • Installing symfony/debug (v3.4.26): Extracting archive
  • Installing symfony/console (v3.4.26): Extracting archive
  • Installing seld/phar-utils (1.0.1): Extracting archive
  • Installing seld/jsonlint (1.7.1): Extracting archive
  • Installing justinrainbow/json-schema (5.2.8): Extracting archive
  • Installing composer/xdebug-handler (1.3.2): Extracting archive
  • Installing composer/spdx-licenses (1.5.1): Extracting archive
  • Installing composer/semver (1.5.0): Extracting archive
  • Installing composer/ca-bundle (1.1.4): Extracting archive
  • Installing composer/composer (1.8.5): Extracting archive
  • Installing cakephp/debug_kit (3.16.7): Extracting archive
  • Installing symfony/yaml (v3.4.26): Extracting archive
  • Installing symfony/config (v3.4.26): Extracting archive
  • Installing robmorgan/phinx (0.10.7): Extracting archive
  • Installing cakephp/migrations (2.1.1): Extracting archive
  • Installing jakub-onderka/php-console-color (v0.2): Extracting archive
  • Installing m1/env (2.1.2): Extracting archive
  • Installing josegonzalez/dotenv (3.2.0): Extracting archive
  • Installing mobiledetect/mobiledetectlib (2.8.33): Extracting archive
  • Installing webmozart/assert (1.4.0): Extracting archive
  • Installing phpdocumentor/reflection-common (1.0.1): Extracting archive
  • Installing phpdocumentor/type-resolver (0.4.0): Extracting archive
  • Installing phpdocumentor/reflection-docblock (4.3.0): Extracting archive
  • Installing phpunit/php-token-stream (2.0.2): Extracting archive
  • Installing sebastian/version (2.0.1): Extracting archive
  • Installing sebastian/resource-operations (1.0.0): Extracting archive
  • Installing sebastian/recursion-context (3.0.0): Extracting archive
  • Installing sebastian/object-reflector (1.1.1): Extracting archive
  • Installing sebastian/object-enumerator (3.0.3): Extracting archive
  • Installing sebastian/global-state (2.0.0): Extracting archive
  • Installing sebastian/exporter (3.1.0): Extracting archive
  • Installing sebastian/environment (3.1.0): Extracting archive
  • Installing sebastian/diff (2.0.1): Extracting archive
  • Installing sebastian/comparator (2.1.3): Extracting archive
  • Installing phpunit/php-text-template (1.2.1): Extracting archive
  • Installing doctrine/instantiator (1.0.5): Extracting archive
  • Installing phpunit/phpunit-mock-objects (5.0.10): Extracting archive
  • Installing phpunit/php-timer (1.0.9): Extracting archive
  • Installing phpunit/php-file-iterator (1.4.5): Extracting archive
  • Installing theseer/tokenizer (1.1.2): Extracting archive
  • Installing sebastian/code-unit-reverse-lookup (1.0.1): Extracting archive
  • Installing phpunit/php-code-coverage (5.3.2): Extracting archive
  • Installing phpspec/prophecy (1.8.0): Extracting archive
  • Installing phar-io/version (1.0.1): Extracting archive
  • Installing phar-io/manifest (1.0.1): Extracting archive
  • Installing myclabs/deep-copy (1.7.0): Extracting archive
  • Installing phpunit/phpunit (6.5.14): Extracting archive
  • Installing symfony/var-dumper (v3.4.26): Extracting archive
  • Installing nikic/php-parser (v4.2.1): Extracting archive
  • Installing jakub-onderka/php-console-highlighter (v0.4): Extracting archive
  • Installing dnoegel/php-xdg-base-dir (0.1): Extracting archive
  • Installing psy/psysh (v0.9.9): Extracting archive
    Failed to extract wyrihaximus/twig-view: (9) unzip -qq '/opt/app-root/src/vendor/composer/tmp-fc7f9eb7361541bb594e2ff88657c3fc' -d '/opt/app-root/src/vendor/composer/e0cd247c'

unzip: cannot find or open /opt/app-root/src/vendor/composer/tmp-fc7f9eb7361541bb594e2ff88657c3fc.

This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
Failed to extract cakephp/bake: (9) unzip -qq  '/opt/app-root/src/vendor/composer/tmp-19a7d2a42003babed2ef897c8485779f' -d '/opt/app-root/src/vendor/composer/9cb9bd5c'

unzip: cannot find or open /opt/app-root/src/vendor/composer/tmp-19a7d2a42003babed2ef897c8485779f.

This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
Failed to extract cakephp/debug_kit: (9) unzip -qq  '/opt/app-root/src/vendor/composer/tmp-05ff61078876f81eb3772c6330400cc8' -d '/opt/app-root/src/vendor/composer/fb0137ed'

unzip: cannot find or open /opt/app-root/src/vendor/composer/tmp-05ff61078876f81eb3772c6330400cc8.

This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
Failed to extract cakephp/migrations: (9) unzip -qq  '/opt/app-root/src/vendor/composer/tmp-1d34125ba94c774e50c803c3cbbf146c' -d '/opt/app-root/src/vendor/composer/99badf9e'

unzip: cannot find or open /opt/app-root/src/vendor/composer/tmp-1d34125ba94c774e50c803c3cbbf146c.

This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix

Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files

Cake\Composer\Installer\PluginInstaller::postAutoloadDump
App\Console\Installer::postInstall
Created /opt/app-root/src/logs directory
Created /opt/app-root/src/tmp directory
Created /opt/app-root/src/tmp/cache directory
Created /opt/app-root/src/tmp/cache/models directory
Created /opt/app-root/src/tmp/cache/persistent directory
Created /opt/app-root/src/tmp/cache/views directory
Created /opt/app-root/src/tmp/sessions directory
Created /opt/app-root/src/tmp/tests directory
Permissions set on /opt/app-root/src/tmp/cache
Permissions set on /opt/app-root/src/tmp/cache/models
Permissions set on /opt/app-root/src/tmp/cache/persistent
Permissions set on /opt/app-root/src/tmp/cache/views
Permissions set on /opt/app-root/src/tmp/sessions
Permissions set on /opt/app-root/src/tmp/tests
Permissions set on /opt/app-root/src/tmp
Permissions set on /opt/app-root/src/logs
No Security.salt placeholder to replace.
=> sourcing 20-copy-config.sh ...
---> 19:58:00 Processing additional arbitrary httpd configuration provided by s2i ...
=> sourcing 00-documentroot.conf ...
=> sourcing 50-mpm-tuning.conf ...
=> sourcing 40-ssl-certs.sh ...
STEP 10: CMD /usr/libexec/s2i/run
time="2020-10-27T19:58:01Z" level=info msg="Image operating system mismatch: image uses "", expecting "linux""
time="2020-10-27T19:58:01Z" level=info msg="Image architecture mismatch: image uses "", expecting "amd64""
Getting image source signatures
Copying blob sha256:35b7a5c4e1b4a84fb05d9c6658572c2b7a9925a270e8f7860c0ae30671c0a57c
Copying blob sha256:eddcd8d2986daee57d8cd75add7ff3c998e668857847e0f2b3c3d3b7e02a3ab6
Copying blob sha256:f0f97bb39344256e639831d65c0c9db84aca2e9b0f1507f267b7cc128068fff0
Copying blob sha256:5a9c62a939b5a7eb752536378f00381f42c8cb293a026b29fa4a9384e56da6af
Copying blob sha256:50611d145dee0877e0e6adf7b92b41176df8d97a9283895f3c52aed4f73d1db0
Copying blob sha256:111407fd1482f03b0f5356ae75a317ae4e29817e0dff04cdc7aee2eb4b3fb77c
Copying config sha256:51a38eb9119ac42cd18c600109891d1f15e8a764a72db2cdab7f3f3d46238dda
Writing manifest to image destination
Storing signatures
--> 51a38eb9119
STEP 11: FROM 51a38eb9119ac42cd18c600109891d1f15e8a764a72db2cdab7f3f3d46238dda
STEP 12: RUN /bin/sh -ic './vendor/bin/phpunit'
sh: no job control in this shell
Exception: Plugin Migrations could not be found. in [/opt/app-root/src/vendor/cakephp/cakephp/src/Core/PluginCollection.php, line 127]
subprocess exited with status 244
subprocess exited with status 244
error: build error: error building at STEP "RUN /bin/sh -ic './vendor/bin/phpunit'": exit status 244

@wkulhanek
Copy link
Author

Also fails on 4.5

@bparees
Copy link
Contributor

bparees commented Oct 27, 2020

i think #115 may be attempting to fix this?

@soukron
Copy link

soukron commented Oct 28, 2020

Just a note: this repository is used in the OpenShift courses so nowadays every person following them will fall into this issue at some point.

If #115 fixes this, it would be nice to have it merged better sooner than later.

@hhorak hhorak closed this as completed in fddfeb3 Oct 30, 2020
@wkulhanek
Copy link
Author

Thank you @hhorak !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants