Giter Site home page Giter Site logo

cakephp-ex's People

Contributors

adambkaplan avatar bparees avatar coreydaley avatar cuppett avatar danmcp avatar dinhxuanvu avatar dperaza4dustbit avatar ewolinetz avatar gabemontero avatar guangxuli avatar hhorak avatar jhadvig avatar jupierce avatar liangxia avatar luciddreamz avatar mfojtik avatar phracek avatar pi-victor avatar rhamilto avatar rhcarvalho avatar sallyom avatar sjenning avatar yselkowitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cakephp-ex's Issues

MySQL don't up with PHP Service!

hi

I have a problem about PHP service with MySQL Database. When create PHP with MySQL, none Service stay up, but when I create PHP only, PHP up normally. I want to create with the two services.

Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "mysql-3-5iqui"/"servicejs". list of unattached/unmounted volumes=[mysql-data]

and this

Unable to mount volumes for pod "mysql-3-5iqui_servicejs(1437caee-f3dd-11e6-be40-0e3d364e19a5)": timeout expired waiting for volumes to attach/mount for pod "mysql-3-5iqui"/"servicejs". list of unattached/unmounted volumes=[mysql-data]

Broken deploy with template on OCP 4.4

@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 [email protected]" "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

if I change mysql service name, cakephp does not find service any more

when creating cakephp application from example, then pre-hook throws this:

Generating Schema...
Error: Database connection "Mysql" is missing, or could not be created.
#0 /opt/app-root/src/lib/Cake/Model/Datasource/DboSource.php(269): Mysql->connect()
#1 /opt/app-root/src/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /opt/app-root/src/lib/Cake/Model/CakeSchema.php(201): ConnectionManager::getDataSource('default')
#3 /opt/app-root/src/lib/Cake/Console/Command/SchemaShell.php(148): CakeSchema->read(Array)
#4 /opt/app-root/src/lib/Cake/Console/Shell.php(458): SchemaShell->generate()
#5 /opt/app-root/src/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('generate', Array)
#6 /opt/app-root/src/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#7 /opt/app-root/src/app/Console/cake.php(47): ShellDispatcher::run(Array)
#8 {main}

Openshift + Build + Test

Hi, I have a doubt. Just at the moment I make changes in the layout for AppController => default.ctp view the build of Openshift crashes.

  • In my case I added an entity for a Unity (Game Engine) in the html + the needed scripts. Nothing else.

Tests crashes in 2 sites:

  1. App\Test\TestCase\Controller\PagesControllerTest::testMultipleGet
  2. App\Test\TestCase\Controller\PagesControllerTest::testDisplay

What must be done?

Error resolving ImageStreamTag php:7.3-ubi8

Can I not use this updated image stream in OpenShift 3.11?

Reason: Error resolving ImageStreamTag php:7.3-ubi8 in namespace openshift: unable to find latest tagged image

[README] Installation documents points to the page not found

The issue should be fixed in the Installation README document which points to page not found:

These steps assume your OpenShift deployment has the default set of ImageStreams defined. Instructions for installing the default ImageStreams are available here.

Missing imageStream, improve docs

I followed instructions here: https://github.com/openshift/cakephp-ex and at step 4 I got an error:
Error from server: imageStream "php" not found
There aren't any image streams. I had to create them. Previous step should be something like:
You have to create php image stream first.
$ oc create -f /data/src/github.com/openshift/origin/examples/image-streams/image-streams-centos7.json -n openshift

OK, once app is created how it can be accessed?

I followed instructions and have the cakephp up and running in openshift (on local Hyper-V infra) I am wondering how can I access the app in host browser. I used the IP mentioned hereunder with port 8080 but it is not reachable.

When I do oc get svc

NAME              TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)             AGE
cakephp-example   ClusterIP   10.217.5.48   <none>        8080/TCP            8m3s

when I do oc get pods -w

NAME READY STATUS RESTARTS AGE
cakephp-example-1-build 0/1 Completed 0 20m
cakephp-example-1-deploy 0/1 Completed 0 19m
cakephp-example-1-qshfv 1/1 Running 0 96s

Thanks for your help

composer.phar download does not work with a local CA signed cert on the internet proxy

Came across this at a customer site. Customer setup: cluster is configured to use a cluster-local proxy (cntlm on masters) which then authenticates (via AD service account) & connects to the corporate outgoing internet proxy. The corporate internet proxy presents a corporate CA signed cert (non-public internet CA) to internet destination hosts.

composer.phar appears to respect the HTTP_PROXY/HTTPS_PROXY settings injected via the ENV var (and the openshift_builddefaults_* vars in /etc/ansible/hosts). You can see in the output, the git clone succeeds and displays the cluster local proxy settings. However, you can see that the composer.phar destination end point attempts to verify the corporate CA signed cert and fails to.

Using HTTP proxy http://10.214.188.15:3129 and HTTPS proxy http://10.214.188.15:3129 for script download
Cloning "https://github.com/openshift/cakephp-ex.git" ...
	Commit:	6f2ebfbeaaaae3b1771aaa36d5beec5b2898c82d (Merge pull request #61 from bparees/sc_metadata)
	Author:	Ben Parees <[email protected]>
	Date:	Wed Feb 15 16:28:08 2017 -0500

---> Installing application source...
Found 'composer.json', installing dependencies using composer.phar...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
/usr/libexec/s2i/assemble: line 21: ./composer.phar: No such file or directory

error: build error: non-zero (13) exit code from registry.access.redhat.com/rhscl/php-70-rhel7@sha256:0d8633eab23a1c32b8e202af78b05712013b853326c823f65e4d57e5d1c79946

Update to Cake 3.x?

With CakePHP 3.2.x out there, maybe one day we can revisit and update this example to use that, and a compose.json file, etc.

cakephp-ex-80 does not work in OpenShift 4.12.3

I did those steps based on the 'ansible-tests' repo:

$ oc process -f https://raw.githubusercontent.com/sclorg/cakephp-ex/master/openshift/templates/cakephp.json -p PHP_VERSION=8.0-ubi8 -p NAMESPACE=rhscl-ci-testing
$ oc logs cakephp-example-1-build
time="2023-02-15T13:19:29Z" 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"
I0215 13:19:29.812960       1 defaults.go:112] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Trying to pull registry.redhat.io/ubi8/php-80@sha256:484b11613bc0c2fb7acf2faf14f2c2ffd1f923e40a19dc211639124331b66567...
Getting image source signatures
Copying blob sha256:afc4b116bfb27b1bfbd63ba1fdb2f729952ec13237c9e4d6bc39064ce05eec39
Copying blob sha256:1eb1cc491a1bd8e2827ef1c90d2253d5aca4348cc5642ec2206c85dfd20a22e1
Copying blob sha256:ea0a20a2c44861ba5e4cd80a32868b6f8265cd3ee81310d4d493a1b50d1c0d8c
Copying blob sha256:1168d1ba798e705e625266c2b2e6f9f5c6842088359ee056d63aed2eeffa00b5
Copying config sha256:c34769fff406c30c83c2178d496832375a30bf1aba5e930158df7dee07b3aff3
Writing manifest to image destination
Storing signatures
Generating dockerfile with builder image registry.redhat.io/ubi8/php-80@sha256:484b11613bc0c2fb7acf2faf14f2c2ffd1f923e40a19dc211639124331b66567
Replaced Dockerfile FROM image registry.redhat.io/ubi8/php-80@sha256:484b11613bc0c2fb7acf2faf14f2c2ffd1f923e40a19dc211639124331b66567
Adding transient rw bind mount for /run/secrets/rhsm
[1/3] STEP 1/10: FROM registry.redhat.io/ubi8/php-80@sha256:484b11613bc0c2fb7acf2faf14f2c2ffd1f923e40a19dc211639124331b66567 AS appimageb3f13a8d3f6046c6992fad618df0f9d1
[1/3] STEP 2/10: LABEL "io.openshift.build.commit.message"="Merge pull request #131 from dperaza4dustbit/remove_v1_duplicate"       "io.openshift.build.source-location"="https://github.com/sclorg/cakephp-ex.git"       "io.openshift.build.image"="registry.redhat.io/ubi8/php-80@sha256:484b11613bc0c2fb7acf2faf14f2c2ffd1f923e40a19dc211639124331b66567"       "io.openshift.build.commit.author"="Petr Hracek <[email protected]>"       "io.openshift.build.commit.date"="Tue Apr 12 08:18:24 2022 +0200"       "io.openshift.build.commit.id"="69743d924a9bfeeee309590fc279f33430a9f009"       "io.openshift.build.commit.ref"="master"
[1/3] STEP 3/10: ENV OPENSHIFT_BUILD_NAME="cakephp-example-1"     OPENSHIFT_BUILD_NAMESPACE="rhscl-ci-testing"     OPENSHIFT_BUILD_SOURCE="https://github.com/sclorg/cakephp-ex.git"     OPENSHIFT_BUILD_COMMIT="69743d924a9bfeeee309590fc279f33430a9f009"     COMPOSER_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
---> 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 58140  100 58140    0     0   267k      0 --:--:-- --:--:-- --:--:--  267k
By default, latest composer will be used. If you want to use v1 please use the environment variable COMPOSER_VERSION=1
All settings correct for using Composer
Downloading...

Composer (version 2.5.4) 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: 80 installs, 0 updates, 0 removals
  - Downloading cakephp/plugin-installer (1.3.0)
  - Downloading aura/intl (3.0.0)
  - Downloading symfony/polyfill-ctype (v1.20.0)
  - Downloading twig/twig (v1.43.1)
  - Downloading umpirsky/twig-php-function (v0.1)
  - Downloading jasny/twig-extensions (v1.2.0)
  - Downloading psr/simple-cache (1.0.1)
  - Downloading psr/log (1.1.3)
  - Downloading paragonie/random_compat (v9.99.99)
  - Downloading psr/http-message (1.0.1)
  - Downloading laminas/laminas-zendframework-bridge (1.1.1)
  - Downloading laminas/laminas-diactoros (1.8.7p2)
  - Downloading cakephp/chronos (1.3.0)
  - Downloading cakephp/cakephp (3.9.3)
  - Downloading asm89/twig-cache-extension (1.4.0)
  - 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.12.0)
  - Downloading squizlabs/php_codesniffer (3.5.8)
  - Downloading cakephp/cakephp-codesniffer (3.3.0)
  - Downloading jdorn/sql-formatter (v1.2.17)
  - Downloading symfony/process (v4.4.15)
  - Downloading symfony/finder (v4.4.15)
  - Downloading symfony/filesystem (v4.4.15)
  - Downloading psr/container (1.0.0)
  - Downloading symfony/service-contracts (v1.1.9)
  - Downloading symfony/polyfill-php80 (v1.20.0)
  - Downloading symfony/polyfill-php73 (v1.20.0)
  - Downloading symfony/polyfill-mbstring (v1.20.0)
  - Downloading symfony/console (v4.4.15)
  - Downloading seld/phar-utils (1.1.1)
  - Downloading seld/jsonlint (1.8.2)
  - Downloading justinrainbow/json-schema (5.2.10)
  - Downloading composer/xdebug-handler (1.4.4)
  - Downloading composer/spdx-licenses (1.5.4)
  - Downloading composer/semver (1.7.1)
  - Downloading composer/ca-bundle (1.2.8)
  - Downloading composer/composer (1.10.16)
  - Downloading cakephp/debug_kit (3.22.4)
  - Downloading symfony/yaml (v4.4.15)
  - Downloading symfony/config (v4.4.15)
  - Downloading robmorgan/phinx (0.11.7)
  - Downloading cakephp/migrations (2.4.2)
  - Downloading m1/env (2.2.0)
  - Downloading josegonzalez/dotenv (3.2.0)
  - Downloading mobiledetect/mobiledetectlib (2.8.34)
  - Downloading webmozart/assert (1.9.1)
  - Downloading phpdocumentor/reflection-common (2.2.0)
  - Downloading phpdocumentor/type-resolver (1.4.0)
  - Downloading phpdocumentor/reflection-docblock (5.2.2)
  - 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.2)
  - 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.3.1)
  - 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.2.0)
  - Downloading sebastian/code-unit-reverse-lookup (1.0.1)
  - Downloading phpunit/php-code-coverage (5.3.2)
  - Downloading phpspec/prophecy (v1.10.3)
  - Downloading phar-io/version (1.0.1)
  - Downloading phar-io/manifest (1.0.1)
  - Downloading myclabs/deep-copy (1.10.1)
  - Downloading phpunit/phpunit (6.5.14)
  - Downloading symfony/polyfill-php72 (v1.20.0)
  - Downloading symfony/var-dumper (v4.4.15)
  - Downloading nikic/php-parser (v4.10.2)
  - Downloading dnoegel/php-xdg-base-dir (v0.1.1)
  - Downloading psy/psysh (v0.10.4)
For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
This warning will become an exception once you run composer update!
  - Installing cakephp/plugin-installer (1.3.0): Extracting archive
  - Installing aura/intl (3.0.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.20.0): Extracting archive
  - Installing twig/twig (v1.43.1): Extracting archive
  - Installing umpirsky/twig-php-function (v0.1): Extracting archive
  - Installing jasny/twig-extensions (v1.2.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/log (1.1.3): Extracting archive
  - Installing paragonie/random_compat (v9.99.99): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing laminas/laminas-zendframework-bridge (1.1.1): Extracting archive
  - Installing laminas/laminas-diactoros (1.8.7p2): Extracting archive
  - Installing cakephp/chronos (1.3.0): Extracting archive
  - Installing cakephp/cakephp (3.9.3): Extracting archive
  - Installing asm89/twig-cache-extension (1.4.0): 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.12.0): Extracting archive
  - Installing squizlabs/php_codesniffer (3.5.8): Extracting archive
  - Installing cakephp/cakephp-codesniffer (3.3.0): Extracting archive
  - Installing jdorn/sql-formatter (v1.2.17): Extracting archive
  - Installing symfony/process (v4.4.15): Extracting archive
  - Installing symfony/finder (v4.4.15): Extracting archive
  - Installing symfony/filesystem (v4.4.15): Extracting archive
  - Installing psr/container (1.0.0): Extracting archive
  - Installing symfony/service-contracts (v1.1.9): Extracting archive
  - Installing symfony/polyfill-php80 (v1.20.0): Extracting archive
  - Installing symfony/polyfill-php73 (v1.20.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.20.0): Extracting archive
  - Installing symfony/console (v4.4.15): Extracting archive
  - Installing seld/phar-utils (1.1.1): Extracting archive
  - Installing seld/jsonlint (1.8.2): Extracting archive
  - Installing justinrainbow/json-schema (5.2.10): Extracting archive
  - Installing composer/xdebug-handler (1.4.4): Extracting archive
  - Installing composer/spdx-licenses (1.5.4): Extracting archive
  - Installing composer/semver (1.7.1): Extracting archive
  - Installing composer/ca-bundle (1.2.8): Extracting archive
  - Installing composer/composer (1.10.16): Extracting archive
  - Installing cakephp/debug_kit (3.22.4): Extracting archive
  - Installing symfony/yaml (v4.4.15): Extracting archive
  - Installing symfony/config (v4.4.15): Extracting archive
  - Installing robmorgan/phinx (0.11.7): Extracting archive
  - Installing cakephp/migrations (2.4.2): Extracting archive
  - Installing m1/env (2.2.0): Extracting archive
  - Installing josegonzalez/dotenv (3.2.0): Extracting archive
  - Installing mobiledetect/mobiledetectlib (2.8.34): Extracting archive
  - Installing webmozart/assert (1.9.1): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.4.0): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.2.2): 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.2): 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.3.1): 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.2.0): 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 (v1.10.3): 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.10.1): Extracting archive
  - Installing phpunit/phpunit (6.5.14): Extracting archive
  - Installing symfony/polyfill-php72 (v1.20.0): Extracting archive
  - Installing symfony/var-dumper (v4.4.15): Extracting archive
  - Installing nikic/php-parser (v4.10.2): Extracting archive
  - Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
  - Installing psy/psysh (v0.10.4): Extracting archive
Package asm89/twig-cache-extension is abandoned, you should avoid using it. Use twig/cache-extension instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
24 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> App\Console\Installer::postInstall
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 ...
---> 13:19:47     Processing additional arbitrary httpd configuration provided by s2i ...
=> sourcing 00-documentroot.conf ...
=> sourcing 50-mpm-tuning.conf ...
=> sourcing 40-ssl-certs.sh ...
[1/3] STEP 10/10: CMD /usr/libexec/s2i/run
Getting image source signatures
Copying blob sha256:4ab945fc3fa986b14b14d286b8929debfbfdb187af674e7288cff3d324f75985
Copying blob sha256:5de674694847d50eaf5b5c7abd123782f093deafb481e0b54f48daa1532486cb
Copying blob sha256:8c2b45a30cdec517eab64cae63d412af4a809c9eda125e663a4e9b4706d5f593
Copying blob sha256:fb66af98d666ea380e373fb4aeca18a61af8a4da170afd998ef34cc17ad33cf7
Copying blob sha256:1b5ba87c4c8948c197b9d166046e0013de1023fdd2ea90efe27f0f647aa8ed0e
Copying config sha256:2ed190b15f567f8b9e5aed1d517ce05b3418cd60aa66225c493ecc2fc8ca8990
Writing manifest to image destination
Storing signatures
--> 2ed190b15f5
[3/3] STEP 1/1: FROM 2ed190b15f567f8b9e5aed1d517ce05b3418cd60aa66225c493ecc2fc8ca8990
[3/3] COMMIT temp.builder.openshift.io/rhscl-ci-testing/cakephp-example-1:1986f7b0
--> 2ed190b15f5
[2/3] STEP 1/2: FROM 2ed190b15f567f8b9e5aed1d517ce05b3418cd60aa66225c493ecc2fc8ca8990
[2/3] STEP 2/2: RUN /bin/sh -ic './vendor/bin/phpunit'
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
PHP Warning:  Private methods cannot be final as they are never overridden by other classes in /opt/app-root/src/vendor/phpunit/phpunit/src/Util/Configuration.php on line 176
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

.Deprecated Error: Method ReflectionParameter::isArray() is deprecated in [/opt/app-root/src/vendor/phpunit/phpunit-mock-objects/src/Generator.php, line 1091]

Deprecated Error: Method ReflectionParameter::isCallable() is deprecated in [/opt/app-root/src/vendor/phpunit/phpunit-mock-objects/src/Generator.php, line 1093]

Deprecated Error: Method ReflectionParameter::getClass() is deprecated in [/opt/app-root/src/vendor/phpunit/phpunit-mock-objects/src/Generator.php, line 1097]

F......                                                            8 / 8 (100%)

Time: 174 ms, Memory: 8.00MB

There was 1 failure:

1) App\Test\TestCase\ApplicationTest::testBootstrapPluginWithoutHalt
Failed asserting that exception of type "ParseError" matches expected exception "InvalidArgumentException". Message was: "syntax error, unexpected token "match", expecting variable" at
/opt/app-root/src/tests/TestCase/ApplicationTest.php:65
/opt/app-root/src/vendor/phpunit/phpunit/phpunit:53
.

/opt/app-root/src/vendor/phpunit/phpunit/phpunit:53

FAILURES!
Tests: 8, Assertions: 21, Failures: 1.
error: build error: error building at STEP "RUN /bin/sh -ic './vendor/bin/phpunit'": error while running runtime: exit status 1

./migrate-database.sh: line 6: cake: command not found

Hi.

we used today this example with errors.

oc logs -f cakephp-mysql-example-1-prehook
Generating database schema 'cake schema generate' ...
./migrate-database.sh: line 6: cake: command not found

The build was successfully

oc get po
NAME                              READY     STATUS      RESTARTS   AGE
cakephp-mysql-example-1-build     0/1       Completed   0          14m
cakephp-mysql-example-1-deploy    0/1       Error       0          13m
cakephp-mysql-example-1-prehook   0/1       Error       0          13m

Add test cases and post build hook

๐Ÿ’  Adding a test case to the existing app didn't seen like the most fun and useful thing to do right now, so I'm opening this issue as a remainder to myself later or kind request for help if someone else wants to contribute sample unit tests.

This patch adds a build hook to run tests as part of the build flow in OpenShift:

diff --git a/openshift/templates/cakephp-mysql.json b/openshift/templates/cakephp-mysql.json
index 52143da..c1140b0 100644
--- a/openshift/templates/cakephp-mysql.json
+++ b/openshift/templates/cakephp-mysql.json
@@ -106,7 +106,10 @@
               "secret": "${GITHUB_WEBHOOK_SECRET}"
             }
           }
-        ]
+        ],
+        "postCommit": {
+          "script": "./Console/cake test"
+        }
       }
     },
     {
diff --git a/openshift/templates/cakephp.json b/openshift/templates/cakephp.json
index b77dc0c..dae89ff 100644
--- a/openshift/templates/cakephp.json
+++ b/openshift/templates/cakephp.json
@@ -31,7 +31,7 @@
           }
         ],
         "selector": {
-          "name": "cakephp-example" 
+          "name": "cakephp-example"
         }
       }
     },
@@ -106,7 +106,10 @@
               "secret": "${GITHUB_WEBHOOK_SECRET}"
             }
           }
-        ]
+        ],
+        "postCommit": {
+          "script": "./Console/cake test"
+        }
       }
     },
     {

Note: ./Console/cake test might need extra arguments. See http://book.cakephp.org/2.0/en/development/testing.html (since apparently we're using 2.x as of now).

It might be even just cake test, but we need phpunit installed. I tried to make at least the build hook working and leave actual tests for later, but I'm giving up trying to make it work for now ๐Ÿ’ฆ

php-8.0 and cakephp-ex on CentOS Stream 9 is failing

I am trying to port s2i-php-container into CentOS Stream 9 but
this function https://github.com/sclorg/s2i-php-container/blob/master/test/run#L246 does not work properly.

After debugging, I have realized:

$ docker run --rm localhost/myapp
=> sourcing 20-copy-config.sh ...
---> 13:09:54     Processing additional arbitrary httpd configuration provided by s2i ...
=> sourcing 00-documentroot.conf ...
=> sourcing 50-mpm-tuning.conf ...
=> sourcing 40-ssl-certs.sh ...
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.88.0.69. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 03 13:09:54.917099 2022] [ssl:warn] [pid 1:tid 1] AH01909: 10.88.0.69:8443:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.88.0.69. Set the 'ServerName' directive globally to suppress this message
[Thu Feb 03 13:09:54.990492 2022] [ssl:warn] [pid 1:tid 1] AH01909: 10.88.0.69:8443:0 server certificate does NOT include an ID which matches the server name
[Thu Feb 03 13:09:54.991303 2022] [lbmethod_heartbeat:notice] [pid 1:tid 1] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 03 13:09:54.991989 2022] [http2:warn] [pid 1:tid 1] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
[Thu Feb 03 13:09:55.004301 2022] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.51 (CentOS Stream) OpenSSL/3.0.0 configured -- resuming normal operations
[Thu Feb 03 13:09:55.004818 2022] [core:notice] [pid 1:tid 1] AH00094: Command line: 'httpd -D FOREGROUND'
[Thu Feb 03 13:12:00.358734 2022] [proxy:error] [pid 25:tid 25] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed
[Thu Feb 03 13:12:00.360274 2022] [proxy_fcgi:error] [pid 25:tid 25] [client 10.88.0.1:52574] AH01079: failed to make connection to backend: httpd-UDS
10.88.0.1 - - [03/Feb/2022:13:12:00 +0000] "GET / HTTP/1.1" 503 299 "-" "curl/7.76.1"

Any idea what could be a wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.