shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

Getting 502 Bad Request after pulling / updating latest repository #94

Closed zaifastafa closed 3 years ago

zaifastafa commented 3 years ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. git pull
  2. swdc update-images
  3. swdc up xdebug

Expected behavior Everything works as normal

Screenshots Getting this instead image

Environment:

Additional context Add any other context about the problem here.

shyim commented 3 years ago

This issue should not happen when git pull and swdc update-images happened 🤔 . Are you have custom images?

zaifastafa commented 3 years ago

nope, using your provided images.

MYSQL_VERSION=ghcr.io/shyim/shopware-docker/mysql:57 PHP_VERSION=7.4 USE_SSL_DEFAULT=false PERSISTENT_DATABASE=true CACHE_VOLUMES=true

shyim commented 3 years ago

can you just try swdc up? 🤔

zaifastafa commented 3 years ago

Just did, but still doesn't work.

shyim commented 3 years ago

You don't have any changes in the swdc repository. Its pretty strange 🤔 Can you send the output of docker inspect shopware-dockerapp_1 ?

zaifastafa commented 3 years ago
Here it is

``` [ { "Id": "4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa", "Created": "2021-05-07T06:39:03.465488128Z", "Path": "/entrypoint.sh", "Args": [], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 675196, "ExitCode": 0, "Error": "", "StartedAt": "2021-05-07T06:39:07.539114873Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:f99bf173ebec7dda69f878359b31c5e8343b9671fbb7079d0ed81938035be7e8", "ResolvConfPath": "/var/lib/docker/containers/4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa/resolv.conf", "HostnamePath": "/var/lib/docker/containers/4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa/hostname", "HostsPath": "/var/lib/docker/containers/4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa/hosts", "LogPath": "/var/lib/docker/containers/4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa/4779217e993ddbe098c826d2012d9c6d501e4c20eb29f1e1eb9b9a24cc16cefa-json.log", "Name": "/shopware-docker_app_sw6_1", "RestartCount": 0, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "docker-default", "ExecIDs": null, "HostConfig": { "Binds": [ "/home/huzaifa/shopware-docker:/opt/swdc:rw", "/home/huzaifa/sw:/var/www/html:rw" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "shopware-docker_default", "PortBindings": {}, "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": [], "CapAdd": null, "CapDrop": null, "Capabilities": null, "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": [ "sw6.dev.localhost:127.0.0.1" ], "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/92ae7971f5ec69dd3cfd60fc6ab53e8c8bc91f41195eb4549a3d5debc95da0f7-init/diff:/var/lib/docker/overlay2/20844e95c37da2ad9cec1af3adbca7195fa55f04e3247a2b5e86211e23c8e1b9/diff:/var/lib/docker/overlay2/21e96bfb01d8ea630870b99b048f7dbf0f2752b39bd31510abcd7eaaee705f8f/diff:/var/lib/docker/overlay2/28bc52ddb5d88e01b75c832e03883dae0f06c3d9a5d285c084b705088606762a/diff:/var/lib/docker/overlay2/2fb6de43627f345665a9ed2469e4ced37a074642d959997ec8ea003dd482e5fe/diff:/var/lib/docker/overlay2/f92d08e3974d72ba2d46940b74ebd6cf374791c979b2edfc77ce58ef13fe2ab4/diff:/var/lib/docker/overlay2/c38914b191aaecc12c713ce82051951520a645187eb1ad96714752c3494a14d3/diff:/var/lib/docker/overlay2/c98bfa62fa5132885719a8abe2f77b2790c84a2465e0b93115b84c10b2621632/diff:/var/lib/docker/overlay2/fd9fe3c12541ee24184e699b8a9964e77e664c29a515f47d701233cfd2c01fcf/diff:/var/lib/docker/overlay2/e341bb512af47f898ddbe7625eab68a5c72df227a3120637469afe9b1b26c191/diff:/var/lib/docker/overlay2/eb68134c22831e4383db839d58dc277507315dc257e1ff516de0a4979a3ad880/diff:/var/lib/docker/overlay2/678c710257ddc0c9e567a1c55236f1ba0af15591a3f1025c4c84f18397606926/diff:/var/lib/docker/overlay2/013ceeefb4ddd891ccb45a046f5c9c077757f0cc10c2849f3a0282755e64d59e/diff:/var/lib/docker/overlay2/cd5b658134e66fb95efa8746718bb4acbedadae8bb77552ae40c8cb3e2371442/diff:/var/lib/docker/overlay2/429f71eb04baad4790c08eca0b003e6e772ce6cce4130ee2387e2351ec8ed04f/diff:/var/lib/docker/overlay2/8a2a46203f20fbaa5aefaf44ed1943689861c4dd61b2e8a7616e1aa57875313e/diff", "MergedDir": "/var/lib/docker/overlay2/92ae7971f5ec69dd3cfd60fc6ab53e8c8bc91f41195eb4549a3d5debc95da0f7/merged", "UpperDir": "/var/lib/docker/overlay2/92ae7971f5ec69dd3cfd60fc6ab53e8c8bc91f41195eb4549a3d5debc95da0f7/diff", "WorkDir": "/var/lib/docker/overlay2/92ae7971f5ec69dd3cfd60fc6ab53e8c8bc91f41195eb4549a3d5debc95da0f7/work" }, "Name": "overlay2" }, "Mounts": [ { "Type": "bind", "Source": "/home/huzaifa/shopware-docker", "Destination": "/opt/swdc", "Mode": "rw", "RW": true, "Propagation": "rprivate" }, { "Type": "bind", "Source": "/home/huzaifa/sw", "Destination": "/var/www/html", "Mode": "rw", "RW": true, "Propagation": "rprivate" } ], "Config": { "Hostname": "4779217e993d", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "80/tcp": {}, "9000/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "MYSQL_ROOT_PASSWORD=root", "TZ=Europe/Berlin", "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE", "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", "DEFAULT_DOMAIN=dev.localhost", "USE_SSL_DEFAULT=false", "PERSISTENT_DATABASE=true", "CACHE_VOLUMES=true", "ENABLE_ELASTICSEARCH=false", "ELASTICSEARCH_IMAGE=blacktop/elasticsearch:7.10", "KIBANA_IMAGE=blacktop/kibana:7.10", "ENABLE_REDIS=false", "ENABLE_MINIO=false", "PHP_VERSION=7.4", "MYSQL_VERSION=ghcr.io/shyim/shopware-docker/mysql:57", "EXPOSE_MYSQL_LOCAL=true", "HTTP_PORT=80", "HTTPS_PORT=443", "DATABASE_TOOL=adminer", "ENABLE_SELENIUM=false", "ENABLE_CYPRESS=false", "CODE_DIRECTORY=$HOME/sw", "ENABLE_VARNISH=false", "VHOST_SW54_IMAGE=shyim/shopware-classic-nginx:php73-xdebug", "VHOST_SW5_IMAGE=shyim/shopware-classic-nginx:php73-xdebug", "APP_DOCUMENT_ROOT=/var/www/html/sw6/public", "VIRTUAL_HOST=sw6.dev.localhost", "CERT_NAME=shared", "HTTPS_METHOD=noredirect", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "PHPIZE_DEPS=autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c", "PHP_INI_DIR=/usr/local/etc/php", "PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi", "PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64", "PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64", "PHP_LDFLAGS=-Wl,-O1 -pie", "GPG_KEYS=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312", "PHP_URL=https://www.php.net/distributions/php-7.4.18.tar.xz", "PHP_ASC_URL=https://www.php.net/distributions/php-7.4.18.tar.xz.asc", "PHP_SHA256=ab97f22b128d21dcbc009b50a37aaea0051b2721cbcd122d9e00e6ffc3c4b7e1", "FPM_PM=dynamic", "FPM_PM_MAX_CHILDREN=5", "FPM_PM_START_SERVERS=2", "FPM_PM_MIN_SPARE_SERVERS=1", "FPM_PM_MAX_SPARE_SERVERS=3", "PHP_MAX_UPLOAD_SIZE=128m", "PHP_MAX_EXECUTION_TIME=300", "PHP_MEMORY_LIMIT=512m", "PHP_DUMP_SERVER_URL=http://dump-server:9009", "XDEBUG_MODE=debug", "LD_PRELOAD=/usr/lib/preloadable_libiconv.so php" ], "Cmd": null, "Image": "ghcr.io/shyim/shopware-docker/6/nginx:php74", "Volumes": { "/opt/swdc": {}, "/var/www/html": {} }, "WorkingDir": "/var/www/html", "Entrypoint": [ "/entrypoint.sh" ], "OnBuild": null, "Labels": { "com.docker.compose.config-hash": "1cc93fa357fd081de0249d1e05841d00e22f3a0cf1e1c1390280e5e6de289add", "com.docker.compose.container-number": "1", "com.docker.compose.oneoff": "False", "com.docker.compose.project": "shopware-docker", "com.docker.compose.project.config_files": "/tmp/swdc-docker-compose.yml,/home/huzaifa/.config/swdc/services.yml", "com.docker.compose.project.working_dir": "/tmp", "com.docker.compose.service": "app_sw6", "com.docker.compose.version": "1.27.1", "org.opencontainers.image.source": "https://github.com/shyim/shopware-docker" }, "StopSignal": "SIGKILL" }, "NetworkSettings": { "Bridge": "", "SandboxID": "994a921c99f06e6a9a95e1231051571e8fec03936ea3fbd0f7f9b2c67ecb49c4", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "80/tcp": null, "9000/tcp": null }, "SandboxKey": "/var/run/docker/netns/994a921c99f0", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "shopware-docker_default": { "IPAMConfig": null, "Links": null, "Aliases": [ "app_sw6", "4779217e993d" ], "NetworkID": "39b4e91eec48f2811a02f948f8c8220be128b9c91aab8fbf8ba33930137e36a2", "EndpointID": "b19decea0da4d5e5c6ad408bc986eef63d94dac37ad6419392807c8c2e5caea3", "Gateway": "172.22.0.1", "IPAddress": "172.22.0.4", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:16:00:04", "DriverOpts": null } } } } ] ```

shyim commented 3 years ago

Could you try

docker pull ghcr.io/shyim/shopware-docker/6/nginx:php74 docker rm -f shopware-docker_app_sw6_1 swdc up

zaifastafa commented 3 years ago

php74: Pulling from shyim/shopware-docker/6/nginx Digest: sha256:25f900d26a8a6f135d6c4b9edebfccc1d550d4afa4c60ea40691d48ab96550c8 Status: Image is up to date for ghcr.io/shyim/shopware-docker/6/nginx:php74 ghcr.io/shyim/shopware-docker/6/nginx:php74

Still nothing.

zaifastafa commented 3 years ago

The 502 error happens on sw5 shops as well not just sw6

shyim commented 3 years ago

AHHHHHHHHHHHHHHH I guess I have found it 🙈

Can you enable

ENABLE_CYPRESS=true

and run swdc up?

zaifastafa commented 3 years ago

without -xdebug ?

shyim commented 3 years ago

both should work

shyim commented 3 years ago

CI is running https://github.com/shyim/shopware-docker/actions/runs/819382359 Should work in 7 minutes without that sorry 🙈

zaifastafa commented 3 years ago

Yeah it works now. So cypress is required now?

shyim commented 3 years ago

No when the ci is done it should work as before

zaifastafa commented 3 years ago

great thanks! :)