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

Add shopware-installer.phar.php to shopware's nginx config #6656

Closed
4 tasks done
func0der opened this issue Oct 27, 2024 · 2 comments
Closed
4 tasks done

Add shopware-installer.phar.php to shopware's nginx config #6656

func0der opened this issue Oct 27, 2024 · 2 comments

Comments

@func0der
Copy link

func0der commented Oct 27, 2024

Preliminary checklist

Output of ddev debug test

Expand `ddev debug test` diagnostic information


======== Output file will be in /tmp/ddev-debug-test.txt ========


======== Existing project config ========
ddev installation alternate locations:
/home/wtf/.local/bin/ddev

These config files were loaded for project project-name: [/home/wtf/Projects/project-name/base/.ddev/config.yaml]
name: project-name
type: shopware6
docroot: public
php_version: 8.1
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.23.5
additional_hostnames: []
additional_fqdns: []
database: {mariadb 10.11}
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 20
default_container_timeout: 120


======== existing project customizations ========


======== installed DDEV add-ons ========
No registered add-ons were found.


======== mutagen situation ========
looking for #ddev-generated in mutagen.yml in project /home/wtf/Projects/project-name/base
.ddev/mutagen/mutagen.yml not found


======== Creating dummy project named tryddevproject-19659 in ../tryddevproject-19659 ========
Creating a new DDEV project config in the current directory (/home/wtf/Projects/project-name/tryddevproject-19659)
Once completed, your configuration will be written to /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/config.yaml

Configuring a 'php' project named 'tryddevproject-19659' with docroot 'web' at '/home/wtf/Projects/project-name/tryddevproject-19659/web'.
For full details use 'ddev describe'.
Configuration complete. You may now run 'ddev start'.


======== OS Information ========
Linux 6.11.3-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 10 22:31:19 UTC 2024 x86_64 GNU/Linux


======== User information ========
uid=1000(wtf) gid=1000(wtf) groups=1000(wtf),10(wheel),973(docker) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023


======== DDEV version ========
 ITEM             VALUE                                    
 DDEV version     v1.23.5                                  
 architecture     amd64                                    
 cgo_enabled      0                                        
 db               ddev/ddev-dbserver-mariadb-10.11:v1.23.5 
 ddev-ssh-agent   ddev/ddev-ssh-agent:v1.23.5              
 docker           27.3.1                                   
 docker-api       1.47                                     
 docker-compose   v2.29.7                                  
 docker-platform  linux-docker                             
 global-ddev-dir  /home/wtf/.ddev                         
 mutagen          0.17.2                                   
 os               linux                                    
 router           ddev/ddev-traefik-router:v1.23.5         
 web              ddev/ddev-webserver:v1.23.5              



======== proxy settings ========

 HTTP_PROXY=''
 HTTPS_PROXY=''
 http_proxy=''
 NO_PROXY=''
 


======== DDEV global info ========
developer-mode=false
disable-http2=false
fail-on-hook-fail=false
instrumentation-opt-in=false
instrumentation-queue-size=0
instrumentation-reporting-interval=0s
instrumentation-user=
internet-detection-timeout-ms=3000
last-started-version=v1.23.5
letsencrypt-email=
mailpit-http-port=8025
mailpit-https-port=8026
mkcert-caroot=
no-bind-mounts=false
omit-containers=[]
performance-mode=none
project-tld=ddev.site
required-docker-compose-version=v2.29.7
router=traefik
router-bind-all-interfaces=false
router-http-port=80
router-https-port=443
simple-formatting=false
table-style=default
traefik-monitor-port=10999
use-docker-compose-from-path=false
use-hardened-images=false
use-letsencrypt=false
wsl2-no-windows-hosts-mgt=false
xdebug-ide-location=


======== DOCKER provider info ========
docker client location: -rwxr-xr-x. 1 root root 33428592 Sep 20 13:43 /usr/bin/docker

docker client alternate locations:
/usr/bin/docker

Docker provider: linux-docker
docker version: 
Client: Docker Engine - Community
 Version:           27.3.1
 API version:       1.47
 Go version:        go1.22.7
 Git commit:        ce12230
 Built:             Fri Sep 20 11:42:43 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.3.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.7
  Git commit:       41ca978
  Built:            Fri Sep 20 11:41:01 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.22
  GitCommit:        7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c
 runc:
  Version:          1.1.14
  GitCommit:        v1.1.14-0-g2c9f560
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

DOCKER_DEFAULT_PLATFORM=notset
Docker platform: linux-docker
Using Docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.29.7
Using DOCKER_HOST=unix:///var/run/docker.sock
Docker version: 27.3.1
Able to run simple container that mounts a volume.
Able to use internet inside container.
Docker disk space:Filesystem                Size      Used Available Use% Mounted on
-- redacted --


======== Existing docker containers ========
CONTAINER ID   IMAGE                              COMMAND                  CREATED        STATUS                 
-- redacted --


======== mkcert information ========
/home/wtf/.local/bin/mkcert
/home/wtf/.local/share/mkcert
ls: cannot access '/home/wtf/.local/share/mkcert': No such file or directory


======== ping attempt on ddev.site ========
PING dkdkd.ddev.site (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.035 ms

--- dkdkd.ddev.site ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.035/0.035/0.035/0.000 ms


======== ddev debug rebuild ========
Rebuilding project images...
Rebuilding project tryddevproject-19659 with `/home/wtf/.ddev/bin/docker-compose -f /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/.ddev-docker-compose-full.yaml --progress plain build web --no-cache`
#0 building with "default" instance using docker driver

#1 [web internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.43kB done
#1 DONE 0.0s

#2 [web internal] load metadata for docker.io/ddev/ddev-webserver:v1.23.5
#2 DONE 0.0s

#3 [web internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [web 1/8] FROM docker.io/ddev/ddev-webserver:v1.23.5
#4 CACHED

#5 [web 2/8] RUN (groupadd --gid 1000 "wtf" || groupadd "wtf" || true) && (useradd  -l -m -s "/bin/bash" --gid "wtf" --comment '' --uid 1000 "wtf" || useradd  -l -m -s "/bin/bash" --gid "wtf" --comment '' "wtf" || useradd  -l -m -s "/bin/bash" --gid "1000" --comment '' "wtf" || useradd -l -m -s "/bin/bash" --comment '' wtf )
#5 DONE 0.2s

#6 [web 3/8] RUN mkdir -p /home/wtf && chown wtf /home/wtf && chmod 600 /home/wtf/.pgpass
#6 DONE 0.2s

#7 [web 4/8] RUN mariadb-client-install.sh || true
#7 0.140 This script is not intended to run with mariadb:10.11
#7 DONE 0.2s

#8 [web 5/8] RUN export XDEBUG_MODE=off; composer self-update --stable || composer self-update --stable || true; composer self-update --2 || log-stderr.sh composer self-update --2 || true
#8 0.240 Storing "stable" as default update channel for the next self-update run.
#8 0.464 You are already using the latest available Composer version 2.8.1 (stable channel).
#8 0.733 You are already using the latest available Composer version 2.8.1 (2.x channel).
#8 DONE 0.8s

#9 [web 6/8] RUN apt-get update
#9 0.418 Get:1 http://nginx.org/packages/debian bookworm InRelease [2869 B]
#9 0.427 Get:2 http://deb.debian.org/debian bookworm InRelease [151 kB]
#9 0.490 Get:3 http://nginx.org/packages/debian bookworm/nginx amd64 Packages [14.9 kB]
#9 0.524 Get:4 https://packages.sury.org/php bookworm InRelease [7551 B]
#9 0.548 Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
#9 0.596 Get:6 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#9 0.641 Get:7 https://packages.sury.org/php bookworm/main amd64 Packages [244 kB]
#9 0.647 Get:8 http://deb.debian.org/debian bookworm/main amd64 Packages [8787 kB]
#9 1.171 Get:9 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm InRelease [4625 B]
#9 1.311 Get:10 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease [129 kB]
#9 1.540 Get:11 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm InRelease [3675 B]
#9 1.817 Get:12 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm/main amd64 Packages [40.9 kB]
#9 1.912 Get:13 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 Packages [357 kB]
#9 2.350 Get:14 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm InRelease [3681 B]
#9 2.826 Get:15 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [2468 B]
#9 2.826 Get:16 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [190 kB]
#9 3.037 Get:17 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm InRelease [4422 B]
#9 3.690 Get:18 https://dl.cloudsmith.io/public/platformsh/cli/deb/debian bookworm/main amd64 Packages [4384 B]
#9 3.940 Get:19 https://dl.cloudsmith.io/public/platformsh/upsun-cli/deb/debian bookworm/main amd64 Packages [3235 B]
#9 4.343 Get:20 https://dlm.mariadb.com/repo/mariadb-server/10.11/repo/debian bookworm/main arm64 Packages [34.4 kB]
#9 4.709 Get:21 https://dl.cloudsmith.io/public/symfony/stable/deb/debian bookworm/main amd64 Packages [7810 B]
#9 4.723 Fetched 10.1 MB in 5s (2216 kB/s)
#9 4.723 Reading package lists...
#9 DONE 5.1s

#10 [web 7/8] RUN curl -I https://www.google.com
#10 0.131   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#10 0.131                                  Dload  Upload   Total   Spent    Left  Speed
#10 0.131 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
#10 0.234 HTTP/2 200 
#10 0.234 content-type: text/html; charset=ISO-8859-1
#10 0.234 content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-WGYUPfFNqxfnKYHLByXokA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
#10 0.234 accept-ch: Sec-CH-Prefers-Color-Scheme
#10 0.234 p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
#10 0.234 date: Sun, 27 Oct 2024 20:06:58 GMT
#10 0.234 server: gws
#10 0.234 x-xss-protection: 0
#10 0.234 x-frame-options: SAMEORIGIN
#10 0.234 expires: Sun, 27 Oct 2024 20:06:58 GMT
#10 0.234 cache-control: private
#10 0.234 set-cookie: AEC=AVYB7cpeCEG0PhQLh_hUKsYilxMTWQxFfvbnommzVlI1D6X5RxM5F2zSFWo; expires=Fri, 25-Apr-2025 20:06:58 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
#10 0.234 set-cookie: __Secure-ENID=23.SE=M839Qz7aBGdPeEyYekt5p5v9kaDfU4yVj4AHDRfcu2N4ECf-POKnUQhYsGmrb1OMnkjn9aZonmWiw6nnSlbCLhnUO6VC4kPFLpTqn8mupJWiLh9Y-Z_wP65v34Ia5q2gqh47LQN8zkACBF2tDSptqlqL0AOsgIcnuDDApRuttsVFQ3QheXUlLuAmOvPW6ozXA-MwNRrs; expires=Thu, 27-Nov-2025 12:25:16 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
#10 0.234 alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
#10 0.234 
#10 DONE 0.3s

#11 [web 8/8] RUN chmod 777 /run/php /var/log
#11 DONE 0.2s

#12 [web] exporting to image
#12 exporting layers 0.0s done
#12 writing image sha256:ce093d682ba0e27ecfa1ad352d63f0806858d5c855d6adb5e7a1c7b91fa949ff done
#12 naming to docker.io/ddev/ddev-webserver:v1.23.5-tryddevproject-19659-built done
#12 DONE 0.1s

#13 [web] resolving provenance for metadata file
#13 DONE 0.0s
Rebuilt Docker cache for project tryddevproject-19659 in 7s
Network ddev_default created
 Container ddev-ssh-agent  Created
 Container ddev-ssh-agent  Started
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys.
Building project images...
.Project images built in 1s.
 Network ddev-tryddevproject-19659_default  Created
 Container ddev-tryddevproject-19659-db  Created
 Container ddev-tryddevproject-19659-web  Created
 Container ddev-tryddevproject-19659-web  Started
 Container ddev-tryddevproject-19659-db  Started
mkcert may not be properly installed, we suggest installing it for trusted https support, `brew install mkcert nss`, `choco install -y mkcert`, etc. and then `mkcert -install`
Waiting for containers to become ready: [web db]
Starting ddev-router if necessary...
 Container ddev-router  Created
 Container ddev-router  Started


======== Project startup ========
Starting tryddevproject-19659...
2024-10-27T22:07:18.456 GetAvailableRouterPort(): Router is healthy and running
2024-10-27T22:07:18.457 GetAvailableRouterPort(): proposedPort 80 already bound on ddev-router, accepting it
2024-10-27T22:07:18.458 GetAvailableRouterPort(): Router is healthy and running
2024-10-27T22:07:18.459 GetAvailableRouterPort(): proposedPort 443 already bound on ddev-router, accepting it
2024-10-27T22:07:18.459 GetAvailableRouterPort(): Router is healthy and running
2024-10-27T22:07:18.46 GetAvailableRouterPort(): proposedPort 8025 already bound on ddev-router, accepting it
2024-10-27T22:07:18.461 GetAvailableRouterPort(): Router is healthy and running
2024-10-27T22:07:18.462 GetAvailableRouterPort(): proposedPort 8026 already bound on ddev-router, accepting it
2024-10-27T22:07:18.478 Pulled image for ddev/ddev-webserver:v1.23.5
2024-10-27T22:07:18.479 Pulled image for busybox:stable
2024-10-27T22:07:18.479 Pulled image for ddev/ddev-utilities
2024-10-27T22:07:18.479 Pulled image for ddev/ddev-ssh-agent:v1.23.5
2024-10-27T22:07:18.48 Pulled image for ddev/ddev-traefik-router:v1.23.5
2024-10-27T22:07:19.049 chowning /mnt/ddev-global-cache and /var/lib/mysql to 1000
2024-10-27T22:07:19.292 done chowning /mnt/ddev-global-cache and /var/lib/mysql to 1000
2024-10-27T22:07:19.298 host.docker.internal='' runtime.GOOS==linux and docker 20.10+
2024-10-27T22:07:19.303 Using automatically detected timezone: TZ=Europe/Berlin
2024-10-27T22:07:19.343 Pulled image for ddev/ddev-dbserver-mariadb-10.11:v1.23.5
2024-10-27T22:07:19.344 Pulled image for ddev/ddev-webserver:v1.23.5
2024-10-27T22:07:19.344 Pulled image for ddev/ddev-ssh-agent:v1.23.5
2024-10-27T22:07:19.344 Pulled image for ddev/ddev-traefik-router:v1.23.5
Building project images...
2024-10-27T22:07:19.345 Executing docker-compose -f /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/.ddev-docker-compose-full.yaml build --progress=plain
.Project images built in 1s.
2024-10-27T22:07:20.661 Removing dangling images for the project ddev-tryddevproject-19659
2024-10-27T22:07:20.667 Executing docker-compose -f /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/.ddev-docker-compose-full.yaml up -d
 Container ddev-tryddevproject-19659-web  Recreate
 Container ddev-tryddevproject-19659-db  Recreate
 Container ddev-tryddevproject-19659-db  Recreated
 Container ddev-tryddevproject-19659-web  Recreated
 Container ddev-tryddevproject-19659-db  Started
 Container ddev-tryddevproject-19659-web  Started
mkcert may not be properly installed, we suggest installing it for trusted https support, `brew install mkcert nss`, `choco install -y mkcert`, etc. and then `mkcert -install`
2024-10-27T22:07:31.585 VIRTUAL_HOST=tryddevproject-19659.ddev.site for web
2024-10-27T22:07:31.585 HTTP_EXPOSE=80:80,8025:8025 for web
2024-10-27T22:07:31.585 HTTPS_EXPOSE=443:80,8026:8025 for web
2024-10-27T22:07:31.796 Copied /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/traefik:CopyIntoVolume_etfxefpbnjjw into /mnt/v/traefik in 37.274768ms
2024-10-27T22:07:31.844 Exec chown -R 1000 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-10-27T22:07:31.95 Copied Traefik certs in /home/wtf/Projects/project-name/tryddevproject-19659/.ddev/traefik/certs to ddev-global-cache/traefik
2024-10-27T22:07:31.95 Running /start.sh in ddev-webserver
Waiting for containers to become ready: [web db]
2024-10-27T22:07:35.314 Copied /home/wtf/.ddev/commands:CopyIntoVolume_ltotomsxvxrq into /mnt/v/global-commands in 37.271188ms
2024-10-27T22:07:35.346 Exec chown -R 1000 /mnt/v/global-commands stdout=, stderr=, err=<nil>
2024-10-27T22:07:35.536 Testing to see if /mnt/ddev_config is properly mounted
2024-10-27T22:07:35.63 Getting stderr output from 'log-stderr.sh --show'
Starting ddev-router if necessary...
2024-10-27T22:07:35.994 Copied /home/wtf/.ddev/traefik:CopyIntoVolume_bmvbddnatgol into /mnt/v/traefik in 34.341072ms
2024-10-27T22:07:36.031 Exec chown -R 1000 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-10-27T22:07:36.132 Copied global Traefik config in /home/wtf/.ddev/traefik/certs to ddev-global-cache/traefik
 Container ddev-router  Running
2024-10-27T22:07:36.163 Waiting for ddev-router to become ready. docker inspect --format "{{json .State.Health }}" ddev-router
2024-10-27T22:07:36.665 ddev-router is ready
Successfully started tryddevproject-19659
Your project can be reached at http://tryddevproject-19659.ddev.site
See 'ddev describe' for alternate URLs.


======== Curl of site from inside container ========
  % 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
HTTP/1.1 200 OK
Server: nginx
Date: Sun, 27 Oct 2024 21:07:38 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding



======== curl -I of http://127.0.0.1:32782 (web container http docker bind port) from outside ========
  % 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
HTTP/1.1 200 OK
Server: nginx
Date: Sun, 27 Oct 2024 21:07:38 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding



======== curl -I of http://tryddevproject-19659.ddev.site (router http URL) from outside ========
  % 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
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Sun, 27 Oct 2024 21:07:38 GMT
Server: nginx
Vary: Accept-Encoding



======== Full curl of http://tryddevproject-19659.ddev.site (router http URL) from outside ========
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   198    0   198    0     0  83088      0 --:--:-- --:--:-- --:--:-- 99000
Success accessing database... db via TCP/IP<br />
ddev is working.<br />
The output file for Discord or issue queue is in
<b>/tmp/ddev-debug-test.txt</b><br />
file:///tmp/ddev-debug-test.txt<br />


======== Full curl of https://tryddevproject-19659.ddev.site (router https URL) from outside ========
  % 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: (35) OpenSSL/3.2.2: error:0A000458:SSL routines::tlsv1 unrecognized name


======== Curl google.com to check internet access and VPN ========
  % 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
HTTP/2 200 
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-g1R2t8c9LbTYHW-mCjXTNA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
accept-ch: Sec-CH-Prefers-Color-Scheme
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Sun, 27 Oct 2024 20:07:40 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Sun, 27 Oct 2024 20:07:40 GMT
cache-control: private
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000



======== host.docker.internal status ========
PING host.docker.internal (172.17.0.1) 56(84) bytes of data.
64 bytes from host.docker.internal (172.17.0.1): icmp_seq=1 ttl=64 time=0.043 ms

--- host.docker.internal ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.043/0.043/0.043/0.000 ms


======== Project ownership on host ========
drwxr-xr-x. 1 wtf wtf 16 Oct 27 22:06 ../tryddevproject-19659


======== Project ownership in container ========
drwxr-xr-x. 1 wtf wtf 16 Oct 27 22:06 //var/www/html


======== In-container filesystem ========
Filesystem                                            Type   1K-blocks       Used Available Use% Mounted on
-- redacted --


======== Thanks for running the diagnostic! ========
Running ddev launch in 3 seconds
Running ddev launch
HTTP may redirect to HTTPS in your browser
See https://ddev.readthedocs.io/en/stable/users/usage/commands/#launch
Waiting for ddev launch to complete before deleting project


Cleanup: deleting test project tryddevproject-19659
 Container ddev-tryddevproject-19659-db  Stopped
 Container ddev-tryddevproject-19659-web  Stopped
 Container ddev-tryddevproject-19659-web  Stopped
 Container ddev-tryddevproject-19659-db  Stopped
 Container ddev-tryddevproject-19659-db  Removed
 Container ddev-tryddevproject-19659-web  Removed
 Network ddev-tryddevproject-19659_default  Removed
Volume tryddevproject-19659-mariadb for project tryddevproject-19659 was deleted
Volume tryddevproject-19659-postgres for project tryddevproject-19659 was deleted
Volume tryddevproject-19659_project_mutagen for project tryddevproject-19659 was deleted
Project tryddevproject-19659 was deleted. Your code and configuration are unchanged.

Please remove the files from this test with 'rm -r ../tryddevproject-19659'

Expected Behavior

Serve shopware-installer.phar.php

Actual Behavior

The nginx config is not able to serve shopware-installer.phar.php properly. The index.php is served (have not debugged why) and one gets redirect to the maintenance page.

Steps To Reproduce

  1. Create an environment with Shopware 6.4 in it
  2. Setup the shop so that you have access to the admin interface
  3. Start the update via the web UI

Anything else?

In the update process of Shopware 6.4 to 6.5 a new file (shopware-installer.phar.php) is downloaded and placed in the public directory of the shopware installation.

A working fix is mentioned here: https://forum.shopware.com/t/probleme-beim-update-von-6-4-20-2-auf-6-5/100574/19

It basically involves putting extra rules in the nginx config:

    # Enable Shopware 6.5 installer
    location /shopware-installer.phar.php {
        try_files $uri /shopware-installer.phar.php$is_args$args;
    }

    # Run static files generated by shopware-installer.phar.php through PHP
    location ~ ^/shopware-installer\.phar\.php/.+\.(?:css|js|png|svg|woff)$ {
         try_files $uri /shopware-installer.phar.php$is_args$args;
    }

Though this work and fixes another issue there is with css files, I am not sure if that is a good solution.
Somehow the index.php is served, which could be problematic if you want to have another entry point into your shop that is not the index.php. For example an api.php.

It could be just a problem with the JS/CSS, which is showcased here: https://forum.shopware.com/t/probleme-beim-update-von-6-4-20-2-auf-6-5/100574
Image

@rfay
Copy link
Member

rfay commented Oct 28, 2024

Thanks for exploring this.

You can edit the .ddev/nginx_full/nginx-site.conf to add those contents (don't forget to remove the #ddev-generated from the top of the file. This is explained in https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#custom-nginx-configuration

You may also be able to do it with nginx snippets, https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#nginx-snippets

If you get a solution you like, please do a PR to nginx-site.shopware6.conf

Thanks!

@stasadev
Copy link
Member

I see this config as part of official Shopware documentation for nginx https://developer.shopware.com/docs/resources/references/config-reference/server/nginx.html

I confirm that it works (I inserted it before location /recovery/install).

    # Shopware install / update
    location /shopware-installer.phar.php {
        try_files $uri /shopware-installer.phar.php$is_args$args;
    }

    location ~ ^/shopware-installer\.phar\.php/.+\.(?:css|js|png|svg|woff)$ {
        try_files $uri /shopware-installer.phar.php$is_args$args;
    }

To reproduce:

  1. Use our quickstart for Shopware https://ddev.readthedocs.io/en/stable/users/quickstart/#shopware
  2. Open composer.json in the project root and replace the version to make it older, e.g.:
    -"shopware/core": "v6.6.7.1"
    +"shopware/core": "v6.6.7.0"
  3. Run ddev exec "rm -f composer.lock && composer install"
  4. Open admin panel ddev launch /admin
  5. Go to Settings > System > Shopware updates
  6. Run the update, it should update Shopware to the latest version

@rfay rfay changed the title Add shopware-installer.phar.php to shopwares nginx config Add shopware-installer.phar.php to shopware's nginx config Oct 29, 2024
@rfay rfay closed this as completed in 7399693 Nov 15, 2024
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