I have configured my laravel app to deploy and it fails on testing the 
nginx config. Is there some way for me to view this nginx config? 
BUILD
Starting Step #0
Step #0: Pulling image: 
gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:f7061537999fcb2cbb329467abe0854b0cff4b964e89eaa68b84701d96de5d76
Step #0: 
sha256:f7061537999fcb2cbb329467abe0854b0cff4b964e89eaa68b84701d96de5d76: 
Pulling from gcp-runtimes/php/gen-dockerfile
Step #0: Digest: 
sha256:f7061537999fcb2cbb329467abe0854b0cff4b964e89eaa68b84701d96de5d76
Step #0: Status: Downloaded newer image for 
gcr.io/gcp-runtimes/php/gen-dockerfile@sha256:f7061537999fcb2cbb329467abe0854b0cff4b964e89eaa68b84701d96de5d76
Step #0: + php /builder/create_dockerfile.php create --php72-image 
gcr.io/google-appengine/php72@sha256:b15296b1e803cdba4e01fbf503ed6b874e06808e4281bc630b2daa0a7aec74fc
 
--php71-image 
gcr.io/google-appengine/php71@sha256:147eb678d15b3e509907b9b4c29e14242a380f2c920a9242ece05dbf7ad18b28
 
--php70-image 
gcr.io/google-appengine/php70@sha256:241c1b077ffbb84befa74e461c7f9bfb3591a2d50ecec9c0f0264513d5474a32
 
--php56-image 
gcr.io/google-appengine/php56@sha256:8831826193066879c247772c64b3b3c9c184d7a4e2f4eee9c73cfe40f46907db
Finished Step #0
Starting Step #1
Step #1: Pulling image: 
gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
qStep #1: 
sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870: 
Pulling from kaniko-project/executor
Step #1: 042c12654203: Pulling fs layer
Step #1: e623e7f7d83e: Pulling fs layer
Step #1: 4a78c04d4eaa: Pulling fs layer
Step #1: bf1e1a1d843a: Pulling fs layer
Step #1: bde2bd8edab4: Pulling fs layer
Step #1: 9c94fd449ba4: Pulling fs layer
Step #1: c1edeb5aef20: Pulling fs layer
Step #1: bf1e1a1d843a: Waiting
Step #1: bde2bd8edab4: Waiting
Step #1: 9c94fd449ba4: Waiting
Step #1: c1edeb5aef20: Waiting
Step #1: 4a78c04d4eaa: Verifying Checksum
Step #1: 4a78c04d4eaa: Download complete
Step #1: e623e7f7d83e: Verifying Checksum
Step #1: e623e7f7d83e: Download complete
Step #1: bf1e1a1d843a: Verifying Checksum
Step #1: bf1e1a1d843a: Download complete
Step #1: 042c12654203: Verifying Checksum
Step #1: 042c12654203: Download complete
Step #1: bde2bd8edab4: Verifying Checksum
Step #1: bde2bd8edab4: Download complete
Step #1: c1edeb5aef20: Verifying Checksum
Step #1: c1edeb5aef20: Download complete
Step #1: 9c94fd449ba4: Verifying Checksum
Step #1: 9c94fd449ba4: Download complete
Step #1: 042c12654203: Pull complete
Step #1: e623e7f7d83e: Pull complete
Step #1: 4a78c04d4eaa: Pull complete
Step #1: bf1e1a1d843a: Pull complete
Step #1: bde2bd8edab4: Pull complete
Step #1: 9c94fd449ba4: Pull complete
Step #1: c1edeb5aef20: Pull complete
Step #1: Digest: 
sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
Step #1: Status: Downloaded newer image for 
gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
Step #1: INFO[0000] Removing ignored files from build context: 
[.dockerignore Dockerfile .git .hg .svn *~ .\#* app.yaml]
Step #1: INFO[0000] Downloading base image 
gcr.io/google-appengine/php71@sha256:147eb678d15b3e509907b9b4c29e14242a380f2c920a9242ece05dbf7ad18b28
Step #1: INFO[0012] Taking snapshot of full filesystem...
Step #1: INFO[0020] ENV DOCUMENT_ROOT='/app/public' 
APP_KEY='base64:/KPFGSYBkElkPiaC/64ygpi2NZqtydcjl8/ebCHW8Os=' 
FRONT_CONTROLLER_FILE='index.php' COMPOSER_FLAGS='--no-dev --prefer-dist' 
DETECTED_PHP_VERSION='7.1'
Step #1: INFO[0020] Using files from context: [/workspace]
Step #1: INFO[0020] COPY . $APP_DIR
Step #1: INFO[0021] Taking snapshot of files...
Step #1: INFO[0023] RUN chown -R www-data.www-data $APP_DIR
Step #1: INFO[0023] cmd: /bin/sh
Step #1: INFO[0023] args: [-c chown -R www-data.www-data $APP_DIR]
Step #1: INFO[0023] Taking snapshot of full filesystem...
Step #1: INFO[0032] RUN /build-scripts/composer.sh
Step #1: INFO[0032] cmd: /bin/sh
Step #1: INFO[0032] args: [-c /build-scripts/composer.sh]
Step #1: Using PHP version: 7.1
Step #1: Install PHP extensions...
Step #1: Hit:1 http://packages.cloud.google.com/apt 
gcp-php-runtime-xenial-20190117-1 InRelease
Step #1: Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease 
[109 kB]
Step #1: Get:3 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Step #1: Get:4 http://security.ubuntu.com/ubuntu xenial-security/main amd64 
Packages [600 kB]
Step #1: Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease 
[109 kB]
Step #1: Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease 
[107 kB]
Step #1: Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages 
[1201 kB]
Step #1: Get:8 http://security.ubuntu.com/ubuntu xenial-security/main 
Translation-en [249 kB]
Step #1: Get:9 http://archive.ubuntu.com/ubuntu xenial/main Translation-en 
[568 kB]
Step #1: Get:10 http://security.ubuntu.com/ubuntu 
xenial-security/restricted amd64 Packages [7204 B]
Step #1: Get:11 http://security.ubuntu.com/ubuntu 
xenial-security/restricted Translation-en [2152 B]
Step #1: Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe 
amd64 Packages [415 kB]
Step #1: Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 
Packages [8344 B]
Step #1: Get:14 http://archive.ubuntu.com/ubuntu xenial/restricted 
Translation-en [2908 B]
Step #1: Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 
Packages [7532 kB]
Step #1: Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe 
Translation-en [163 kB]
Step #1: Get:17 http://security.ubuntu.com/ubuntu 
xenial-security/multiverse amd64 Packages [5600 B]
Step #1: Get:18 http://security.ubuntu.com/ubuntu 
xenial-security/multiverse Translation-en [2676 B]
Step #1: Get:19 http://archive.ubuntu.com/ubuntu xenial/universe 
Translation-en [4354 kB]
Step #1: Get:20 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 
Packages [144 kB]
Step #1: Get:21 http://archive.ubuntu.com/ubuntu xenial/multiverse 
Translation-en [106 kB]
Step #1: Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
Packages [902 kB]
Step #1: Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main 
Translation-en [365 kB]
Step #1: Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/restricted 
amd64 Packages [7556 B]
Step #1: Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/restricted 
Translation-en [2272 B]
Step #1: Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/universe 
amd64 Packages [721 kB]
Step #1: Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/universe 
Translation-en [295 kB]
Step #1: Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse 
amd64 Packages [16.6 kB]
Step #1: Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse 
Translation-en [8440 B]
Step #1: Get:30 http://archive.ubuntu.com/ubuntu xenial-backports/main 
amd64 Packages [7280 B]
Step #1: Get:31 http://archive.ubuntu.com/ubuntu xenial-backports/main 
Translation-en [4456 B]
Step #1: Get:32 http://archive.ubuntu.com/ubuntu xenial-backports/universe 
amd64 Packages [7804 B]
Step #1: Get:33 http://archive.ubuntu.com/ubuntu xenial-backports/universe 
Translation-en [4184 B]
Step #1: Fetched 18.3 MB in 4s (4089 kB/s)
Step #1: Reading package lists...
Step #1: apt-get install -y --no-install-recommends
Step #1: Reading package lists...
Step #1: Building dependency tree...
Step #1: Reading state information...
Step #1: 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Step #1: Running composer...
Step #1: Loading composer repositories with package information
Step #1: Installing dependencies from lock file
Step #1: Warning: The lock file is not up to date with the latest changes 
in composer.json. You may be getting outdated dependencies. Run update to 
update them.
Step #1: Package operations: 58 installs, 0 updates, 0 removals
Step #1: As there is no 'unzip' command installed zip files are being 
unpacked using the PHP zip extension.
Step #1: This may cause invalid reports of corrupted archives. Besides, any 
UNIX permissions (e.g. executable) defined in the archives will be lost.
Step #1: Installing 'unzip' may remediate them.
Step #1:   - Installing doctrine/event-manager (v1.0.0): Downloading (100%)
Step #1:   - Installing doctrine/cache (v1.8.0): Downloading (100%)
Step #1:   - Installing doctrine/dbal (v2.8.0): Downloading (100%)
Step #1:   - Installing doctrine/inflector (v1.3.0): Downloading (100%)
Step #1:   - Installing doctrine/lexer (v1.0.1): Downloading (100%)
Step #1:   - Installing dragonmantank/cron-expression (v2.2.0): Downloading 
(100%)
Step #1:   - Installing erusev/parsedown (1.7.1): Downloading (100%)
Step #1:   - Installing vlucas/phpdotenv (v2.5.1): Downloading (100%)
Step #1:   - Installing symfony/css-selector (v4.1.4): Downloading (100%)
Step #1:   - Installing tijsverkoyen/css-to-inline-styles (2.2.1): 
Downloading (100%)
Step #1:   - Installing symfony/polyfill-php72 (v1.9.0): Downloading (100%)
Step #1:   - Installing symfony/polyfill-mbstring (v1.9.0): Downloading 
(100%)
Step #1:   - Installing symfony/var-dumper (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/routing (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/process (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/polyfill-ctype (v1.9.0): Downloading (100%)
Step #1:   - Installing symfony/http-foundation (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/event-dispatcher (v4.1.4): Downloading 
(100%)
Step #1:   - Installing psr/log (1.0.2): Downloading (100%)
Step #1:   - Installing symfony/debug (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/http-kernel (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/finder (v4.1.4): Downloading (100%)
Step #1:   - Installing symfony/console (v4.1.4): Downloading (100%)
Step #1:   - Installing egulias/email-validator (2.1.6): Downloading (100%)
Step #1:   - Installing swiftmailer/swiftmailer (v6.1.3): Downloading (100%)
Step #1:   - Installing paragonie/random_compat (v9.99.99): Downloading 
(100%)
Step #1:   - Installing ramsey/uuid (3.8.0): Downloading (100%)
Step #1:   - Installing psr/simple-cache (1.0.1): Downloading (100%)
Step #1:   - Installing psr/container (1.0.0): Downloading (100%)
Step #1:   - Installing symfony/translation (v4.1.4): Downloading (100%)
Step #1:   - Installing nesbot/carbon (1.34.0): Downloading (100%)
Step #1:   - Installing monolog/monolog (1.23.0): Downloading (100%)
Step #1:   - Installing league/flysystem (1.0.47): Downloading (100%)
Step #1:   - Installing laravel/framework (v5.7.6): Downloading (100%)
Step #1:   - Installing fideloper/proxy (4.0.0): Downloading (100%)
Step #1:   - Installing psr/http-message (1.0.1): Downloading (100%)
Step #1:   - Installing psr/cache (1.0.1): Downloading (100%)
Step #1:   - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)
Step #1:   - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
Step #1:   - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
Step #1:   - Installing firebase/php-jwt (v5.0.0): Downloading (100%)
Step #1:   - Installing google/auth (v1.4.0): Downloading (100%)
Step #1:   - Installing rize/uri-template (0.3.2): Downloading (100%)
Step #1:   - Installing google/cloud-core (v1.23.7): Downloading (100%)
Step #1:   - Installing google/cloud-storage (v1.9.1): Downloading (100%)
Step #1:   - Installing jakub-onderka/php-console-color (0.1): Downloading 
(100%)
Step #1:   - Installing league/oauth1-client (1.7.0): Downloading (100%)
Step #1:   - Installing laravel/socialite (v4.0.1): Downloading (100%)
Step #1:   - Installing nikic/php-parser (v4.0.4): Downloading (100%)
Step #1:   - Installing jakub-onderka/php-console-highlighter (v0.3.2): 
Downloading (100%)
Step #1:   - Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
Step #1:   - Installing psy/psysh (v0.9.8): Downloading (100%)
Step #1:   - Installing laravel/tinker (v1.0.7): Downloading (100%)
Step #1:   - Installing mtdowling/jmespath.php (2.4.0): Downloading (100%)
Step #1:   - Installing aws/aws-sdk-php (3.69.13): Downloading (100%)
Step #1:   - Installing league/flysystem-aws-s3-v3 (1.0.21): Downloading 
(100%)
Step #1:   - Installing superbalist/flysystem-google-storage (7.1.0): 
Downloading (100%)
Step #1:   - Installing superbalist/laravel-google-cloud-storage (2.0.0): 
Downloading (100%)
Step #1: Generating optimized autoload files
Step #1: > Illuminate\Foundation\ComposerScripts::postAutoloadDump
Step #1: > @php artisan package:discover --ansi
Step #1: Discovered Package: fideloper/proxy
Step #1: Discovered Package: laravel/socialite
Step #1: Discovered Package: laravel/tinker
Step #1: Discovered Package: nesbot/carbon
Step #1: Package manifest generated successfully.
Step #1: > chmod -R 755 bootstrap/cache
Step #1: > php artisan cache:clear
Step #1: Application cache cleared!
Step #1: INFO[0060] Taking snapshot of full filesystem...
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/53
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/1b
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/47
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/27
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/b4
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/76
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/9c
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/33
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/1d
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/f4
Step #1: INFO[0062] Adding whiteout for /app/storage/framework/cache/data/e7
Step #1: INFO[0067] RUN /bin/bash /build-scripts/move-config-files.sh
Step #1: INFO[0067] cmd: /bin/sh
Step #1: INFO[0067] args: [-c /bin/bash /build-scripts/move-config-files.sh]
Step #1: Moving user supplied config files...
Step #1: INFO[0067] Taking snapshot of full filesystem...
Step #1: INFO[0071] RUN /usr/sbin/nginx -t -c /etc/nginx/nginx.conf
Step #1: INFO[0071] cmd: /bin/sh
Step #1: INFO[0071] args: [-c /usr/sbin/nginx -t -c /etc/nginx/nginx.conf]
Step #1: nginx: [emerg] "server" directive is not allowed here in 
/etc/nginx/nginx.conf:1
Step #1: nginx: configuration file /etc/nginx/nginx.conf test failed
Step #1: error building image: error building stage: waiting for process to 
exit: exit status 1
Finished Step #1
ERROR
ERROR: build step 1 
"gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870"
 
failed: exit status 1
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at 
https://console.cloud.google.com/gcr/builds/fc2a8a71-c05d-45a9-9e03-0bbda895fa8e?project=799002325111
 
Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs 
for details
 Any help would be appreciated. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3be27029-a9cf-488d-901d-6e4c072da7b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to