makinodesu / my-portfolio

https://wordpress-prototype.azurewebsites.net/
Other
1 stars 1 forks source link

Error: buildx failed with: error: failed to solve: failed to read dockerfile: open /tmp/buildkit-mount1216372961/Dockerfile: no such file or directory #2

Open makinodesu opened 2 years ago

makinodesu commented 2 years ago

GitHub Action which occured title's error

https://github.com/makinodesu/my-portfolio/runs/6302479364?check_suite_focus=true


Solution (during verification)


Cause (Maybe)

repository root has not index.php

To get automated builds from Azure App Service build server, make sure that your repository root has the correct files in your project. https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=github#prepare-your-repository


Reference

https://stackoverflow.com/questions/58572533/azure-web-app-up-giving-no-such-file-or-directory-error

makinodesu commented 2 years ago
Container Logs include error ```powershell 2022_05_06_lw0sdlwk000020_default_docker.log: 2022-05-06T04:07:37.876786720Z PHP 8.0.11 (cli) (built: Oct 14 2021 22:56:25) ( NTS ) 2022-05-06T04:07:37.876830520Z Copyright (c) The PHP Group 2022-05-06T04:07:37.876834620Z Zend Engine v4.0.11, Copyright (c) Zend Technologies 2022-05-06T04:07:37.876837620Z with Zend OPcache v8.0.11, Copyright (c), by Zend Technologies 2022-05-06T04:07:37.990222931Z Setup openrc ... 2022-05-06T04:07:39.704504826Z Service `hwdrivers' needs non existent service `dev' 2022-05-06T04:07:39.707137447Z Service `machine-id' needs non existent service `dev' 2022-05-06T04:07:39.707166847Z * Caching service dependencies ... [ ok ] 2022-05-06T04:07:39.727884914Z INFO: Log folder for nginx/php not found. creating... 2022-05-06T04:07:39.885219381Z INFO: Found an existing WordPress status file ... 2022-05-06T04:07:41.201456186Z INFO: Check SSL Setting... 2022-05-06T04:07:41.252059194Z INFO: SSL Settings exist! 2022-05-06T04:07:41.271547351Z REDIS_MAX_MEMORY_MB must be an integer.. 2022-05-06T04:07:41.272258257Z Starting Redis with Max Memory: 196971KB 2022-05-06T04:07:41.273122864Z INFO: /var/log/supervisor not found. creating ... 2022-05-06T04:07:41.303772911Z INFO: Updating PHP configurations... 2022-05-06T04:07:41.323286168Z INFO: creating /run/php/php-fpm.sock ... 2022-05-06T04:07:41.472336670Z 136:C 06 May 2022 04:07:41.463 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2022-05-06T04:07:41.563375804Z 136:C 06 May 2022 04:07:41.472 # Redis version=6.0.16, bits=64, commit=2858e290, modified=0, pid=136, just started 2022-05-06T04:07:41.563412204Z 136:C 06 May 2022 04:07:41.472 # Configuration loaded 2022-05-06T04:07:41.563416904Z 136:M 06 May 2022 04:07:41.492 * Running mode=standalone, port=6379. 2022-05-06T04:07:41.563420304Z 136:M 06 May 2022 04:07:41.493 # Server initialized 2022-05-06T04:07:41.563424004Z 136:M 06 May 2022 04:07:41.493 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2022-05-06T04:07:41.563431104Z 136:M 06 May 2022 04:07:41.493 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never'). 2022-05-06T04:07:41.563435804Z 136:M 06 May 2022 04:07:41.493 * Ready to accept connections 2022-05-06T04:07:41.563438904Z Starting SSH ... 2022-05-06T04:07:41.563442104Z Starting php-fpm ... 2022-05-06T04:07:41.563445204Z Starting Nginx ... 2022-05-06T04:07:45.713738206Z 2022-05-06 04:07:45,673 INFO Set uid to user 0 succeeded 2022-05-06T04:07:45.723170288Z 2022-05-06 04:07:45,696 INFO supervisord started with pid 147 2022-05-06T04:07:46.736974404Z 2022-05-06 04:07:46,729 INFO spawned: 'php-fpm' with pid 149 2022-05-06T04:07:46.840528605Z 2022-05-06 04:07:46,840 INFO spawned: 'delay' with pid 150 2022-05-06T04:07:46.899393217Z 2022-05-06 04:07:46,899 INFO spawned: 'nginx' with pid 151 2022-05-06T04:07:46.969435026Z 2022-05-06 04:07:46,969 INFO spawned: 'sshd' with pid 152 2022-05-06T04:07:46.999157385Z 2022-05-06 04:07:46,998 INFO spawned: 'watch-log-files' with pid 154 2022-05-06T04:07:47.861525691Z 2022-05-06 04:07:47,861 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:07:47.862226597Z 2022-05-06 04:07:47,861 INFO success: delay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:07:47.864030813Z 2022/05/06 04:07:47 [error] 176#176: *1 connect() to unix:/var/run/php/php-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 169.254.129.1, server: _, request: "GET /robots933456.txt HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "169.254.129.4" 2022-05-06T04:07:48.587174411Z 2022-05-06 04:07:48,586 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:07:48.605714572Z 2022-05-06 04:07:48,605 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:07:48.606928583Z 2022-05-06 04:07:48,606 INFO success: watch-log-files entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:07:51.980886007Z 2022-05-06 04:07:51,980 INFO exited: delay (exit status 0; expected) 2022-05-06T04:07:56.321068894Z 2022-05-06 04:07:56,319 INFO exited: sshd (exit status 0; expected) 2022-05-06T04:27:51.196238743Z PHP 8.0.11 (cli) (built: Oct 14 2021 22:56:25) ( NTS ) 2022-05-06T04:27:51.196281244Z Copyright (c) The PHP Group 2022-05-06T04:27:51.196285844Z Zend Engine v4.0.11, Copyright (c) Zend Technologies 2022-05-06T04:27:51.196289444Z with Zend OPcache v8.0.11, Copyright (c), by Zend Technologies 2022-05-06T04:27:51.217379315Z Setup openrc ... 2022-05-06T04:27:51.990771179Z Service `hwdrivers' needs non existent service `dev' 2022-05-06T04:27:51.998841383Z Service `machine-id' needs non existent service `dev' 2022-05-06T04:27:52.001510017Z * Caching service dependencies ... [ ok ] 2022-05-06T04:27:52.020291959Z INFO: Log folder for nginx/php not found. creating... 2022-05-06T04:27:52.037354479Z INFO: Found an existing WordPress status file ... 2022-05-06T04:27:52.491257127Z INFO: Check SSL Setting... 2022-05-06T04:27:52.522141025Z INFO: SSL Settings exist! 2022-05-06T04:27:52.523929948Z REDIS_MAX_MEMORY_MB must be an integer.. 2022-05-06T04:27:52.524523255Z Starting Redis with Max Memory: 196971KB 2022-05-06T04:27:52.542933592Z INFO: /var/log/supervisor not found. creating ... 2022-05-06T04:27:52.545064920Z INFO: Updating PHP configurations... 2022-05-06T04:27:52.545076520Z INFO: creating /run/php/php-fpm.sock ... 2022-05-06T04:27:52.584905133Z 136:C 06 May 2022 04:27:52.584 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2022-05-06T04:27:52.592161427Z 136:C 06 May 2022 04:27:52.584 # Redis version=6.0.16, bits=64, commit=2858e290, modified=0, pid=136, just started 2022-05-06T04:27:52.592196527Z 136:C 06 May 2022 04:27:52.585 # Configuration loaded 2022-05-06T04:27:52.633994866Z 136:M 06 May 2022 04:27:52.613 * Running mode=standalone, port=6379. 2022-05-06T04:27:52.634020566Z 136:M 06 May 2022 04:27:52.614 # Server initialized 2022-05-06T04:27:52.634030166Z 136:M 06 May 2022 04:27:52.614 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2022-05-06T04:27:52.634036966Z 136:M 06 May 2022 04:27:52.615 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never'). 2022-05-06T04:27:52.634041666Z 136:M 06 May 2022 04:27:52.615 * Ready to accept connections 2022-05-06T04:27:52.634044766Z Starting SSH ... 2022-05-06T04:27:52.634048366Z Starting php-fpm ... 2022-05-06T04:27:52.634051866Z Starting Nginx ... 2022-05-06T04:27:53.930699473Z 2022-05-06 04:27:53,930 INFO Set uid to user 0 succeeded 2022-05-06T04:27:53.968824864Z 2022-05-06 04:27:53,968 INFO supervisord started with pid 147 2022-05-06T04:27:54.977360393Z 2022-05-06 04:27:54,976 INFO spawned: 'php-fpm' with pid 149 2022-05-06T04:27:54.981089138Z 2022-05-06 04:27:54,980 INFO spawned: 'delay' with pid 150 2022-05-06T04:27:54.998908652Z 2022-05-06 04:27:54,998 INFO spawned: 'nginx' with pid 151 2022-05-06T04:27:55.041067258Z 2022-05-06 04:27:55,040 INFO spawned: 'sshd' with pid 152 2022-05-06T04:27:55.089811643Z 2022-05-06 04:27:55,089 INFO spawned: 'watch-log-files' with pid 153 2022-05-06T04:27:56.417191479Z 2022-05-06 04:27:56,416 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:27:56.417223980Z 2022-05-06 04:27:56,416 INFO success: delay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:27:56.417229280Z 2022-05-06 04:27:56,416 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:27:56.417232680Z 2022-05-06 04:27:56,416 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:27:56.417236180Z 2022-05-06 04:27:56,416 INFO success: watch-log-files entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T04:27:59.441156792Z 2022-05-06 04:27:59,431 INFO exited: sshd (exit status 0; expected) 2022-05-06T04:28:00.142394013Z 2022-05-06 04:28:00,142 INFO exited: delay (exit status 0; expected) 2022-05-06T05:37:02.958728831Z PHP 8.0.11 (cli) (built: Oct 14 2021 22:56:25) ( NTS ) 2022-05-06T05:37:02.988176287Z Copyright (c) The PHP Group 2022-05-06T05:37:02.988199087Z Zend Engine v4.0.11, Copyright (c) Zend Technologies 2022-05-06T05:37:02.988202687Z with Zend OPcache v8.0.11, Copyright (c), by Zend Technologies 2022-05-06T05:37:03.417923423Z Setup openrc ... 2022-05-06T05:37:05.506728892Z Service `hwdrivers' needs non existent service `dev' 2022-05-06T05:37:05.506760092Z Service `machine-id' needs non existent service `dev' 2022-05-06T05:37:05.508206705Z * Caching service dependencies ... [ ok ] 2022-05-06T05:37:05.546068835Z INFO: Log folder for nginx/php not found. creating... 2022-05-06T05:37:05.748942000Z INFO: Found an existing WordPress status file ... 2022-05-06T05:37:07.002724520Z INFO: Check SSL Setting... 2022-05-06T05:37:07.063580350Z INFO: SSL Settings exist! 2022-05-06T05:37:07.105620516Z REDIS_MAX_MEMORY_MB must be an integer.. 2022-05-06T05:37:07.106698326Z Starting Redis with Max Memory: 196971KB 2022-05-06T05:37:07.113748787Z INFO: /var/log/supervisor not found. creating ... 2022-05-06T05:37:07.135250975Z INFO: Updating PHP configurations... 2022-05-06T05:37:07.143414746Z INFO: creating /run/php/php-fpm.sock ... 2022-05-06T05:37:07.183901499Z 136:C 06 May 2022 05:37:07.183 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2022-05-06T05:37:07.185997217Z 136:C 06 May 2022 05:37:07.184 # Redis version=6.0.16, bits=64, commit=2858e290, modified=0, pid=136, just started 2022-05-06T05:37:07.193899786Z 136:C 06 May 2022 05:37:07.186 # Configuration loaded 2022-05-06T05:37:07.254322012Z 136:M 06 May 2022 05:37:07.254 * Running mode=standalone, port=6379. 2022-05-06T05:37:07.255766725Z 136:M 06 May 2022 05:37:07.255 # Server initialized 2022-05-06T05:37:07.264438701Z 136:M 06 May 2022 05:37:07.256 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2022-05-06T05:37:07.275304895Z 136:M 06 May 2022 05:37:07.265 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never'). 2022-05-06T05:37:07.295821074Z 136:M 06 May 2022 05:37:07.294 * Ready to accept connections 2022-05-06T05:37:07.334964215Z Starting SSH ... 2022-05-06T05:37:07.364739575Z Starting php-fpm ... 2022-05-06T05:37:07.364783575Z Starting Nginx ... 2022-05-06T05:37:11.456367464Z 2022-05-06 05:37:11,456 INFO Set uid to user 0 succeeded 2022-05-06T05:37:11.496992217Z 2022-05-06 05:37:11,496 INFO supervisord started with pid 147 2022-05-06T05:37:12.541746001Z 2022-05-06 05:37:12,511 INFO spawned: 'php-fpm' with pid 149 2022-05-06T05:37:12.559950460Z 2022-05-06 05:37:12,559 INFO spawned: 'delay' with pid 150 2022-05-06T05:37:12.581644848Z 2022-05-06 05:37:12,581 INFO spawned: 'nginx' with pid 151 2022-05-06T05:37:12.730381742Z 2022-05-06 05:37:12,722 INFO spawned: 'sshd' with pid 153 2022-05-06T05:37:12.801578161Z 2022-05-06 05:37:12,801 INFO spawned: 'watch-log-files' with pid 154 2022-05-06T05:37:14.046914699Z 2022/05/06 05:37:14 [error] 165#165: *1 connect() to unix:/var/run/php/php-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 169.254.129.1, server: _, request: "GET /robots933456.txt HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "169.254.129.6" 2022-05-06T05:37:14.048327611Z 2022-05-06 05:37:14,048 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T05:37:14.057193388Z 2022-05-06 05:37:14,057 INFO success: delay entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T05:37:14.066866673Z 2022-05-06 05:37:14,065 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T05:37:14.076377555Z 2022-05-06 05:37:14,067 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T05:37:14.076456356Z 2022-05-06 05:37:14,067 INFO success: watch-log-files entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2022-05-06T05:37:17.731601299Z 2022-05-06 05:37:17,731 INFO exited: delay (exit status 0; expected) 2022-05-06T05:37:21.912516407Z 2022-05-06 05:37:21,912 INFO exited: sshd (exit status 0; expected) 2022_05_06_lw0sdlwk000020_docker.log: 2022-05-06T04:07:30.595Z INFO - Recycling container because of AppSettingsChange and isMainSite = True 2022-05-06T04:07:30.721Z INFO - Pulling image: mcr.microsoft.com/appsvc/wordpress-alpine-php:latest 2022-05-06T04:07:32.104Z INFO - latest Pulling from appsvc/wordpress-alpine-php 2022-05-06T04:07:32.104Z INFO - Digest: sha256:6b033e35bbbe0bccf286bd2d3abc5f8d6f79d7f6f4a21b3ee72418a79665cebb 2022-05-06T04:07:32.104Z INFO - Status: Image is up to date for mcr.microsoft.com/appsvc/wordpress-alpine-php:latest 2022-05-06T04:07:32.196Z INFO - Pull Image successful, Time taken: 0 Minutes and 1 Seconds 2022-05-06T04:07:32.307Z INFO - Starting container for site 2022-05-06T04:07:32.307Z INFO - docker run -d -p 80:80 --name wordpress-prototype_4_3face6e9 -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=true -e WEBSITE_SITE_NAME=wordpress-prototype -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=wordpress-prototype.azurewebsites.net -e WEBSITE_INSTANCE_ID=36cda8924b9e67b69d50d344241b5c9b9639adcad80b897c79e3b1a654220734 -e HTTP_LOGGING_ENABLED=1 mcr.microsoft.com/appsvc/wordpress-alpine-php:latest 2022-05-06T04:07:38.169Z INFO - Initiating warmup request to container wordpress-prototype_4_3face6e9 for site wordpress-prototype 2022-05-06T04:07:47.881Z INFO - Container wordpress-prototype_4_3face6e9 for site wordpress-prototype initialized successfully and is ready to serve requests. 2022-05-06T04:27:17.892Z INFO - Recycling container because of AppSettingsChange and isMainSite = True 2022-05-06T04:27:17.952Z INFO - Pulling image: mcr.microsoft.com/appsvc/wordpress-alpine-php:latest 2022-05-06T04:27:32.999Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://mcr.microsoft.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"} 2022-05-06T04:27:33.005Z ERROR - Pull image threw Exception: Input string was not in a correct format. 2022-05-06T04:27:33.009Z INFO - Pulling image from Docker hub: mcr.microsoft.com/appsvc/wordpress-alpine-php:latest 2022-05-06T04:27:48.031Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://mcr.microsoft.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"} ```