Open RobTranquillo opened 5 years ago
Addendum second: While trying to import images into media via the API, following error occurt:
<h2>No Success</h2><p>Error message: Impossible to create the root directory "/var/www/shopware/shopware/media/image/82/03/56".</p>
To give media/ dir also the 777 did the trick:
$ sudo ./psh.phar docker:ssh
root@349860afc56e: $ /var/www/shopware/shopware# chmod 777 -R media/
Hey @RobTranquillo,
I'm not able to reproduce your issue. I created a fresh clone from this repo and everything works like expected.
What kind of OS are you using?
I use Fedora 30, but i tried it on a other maschine, complete fresh Ubuntu install, and hit the same problem. I only do the steps from your repo plus
$ ./psh.phar init --sw-version=5.6.0
After a fresh 5.6.0 installation the media directory has the following rights on my system:
drwxr-xr-x 10 application application 4.0K Aug 9 13:14 media
I can easily create an image via backend and api.
Can you please provide a complete log from ./psh.phar docker:start til ./psh.phar init?
Sure. Here it is.. Disclamer: i forgot to run it with my exact SW Version 5.5 und instead run it default so it builds a SW 5.6. But the result should be comparable.
rob@d3v $git clone git@github.com:shopwareLabs/shopware-docker.git
Klone nach 'shopware-docker' ...
Enter passphrase for key '/home/rob/.ssh/id_ecdsa':
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 337 (delta 7), reused 18 (delta 6), pack-reused 311
Empfange Objekte: 100% (337/337), 2.03 MiB | 841.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (144/144), Fertig.
rob@d3v $~/data/docker-shopware/bugrepro $cd shopware-docker
rob@d3v $~/data/docker-shopware/bugrepro/shopware-docker $sudo ./psh.phar docker:start
###################
Starting Execution of 'docker:start' ('dev-ops/docker/actions/start.sh')
(1/6) Starting
> echo "COMPOSE_PROJECT_NAME: ${COMPOSE_PROJECT_NAME}"
COMPOSE_PROJECT_NAME:
(2/6) Starting
> dev-ops/docker/containers/scriptcreator.sh
Created /home/rob/data/docker-shopware/bugrepro/shopware-docker/dev-ops/docker/containers/php7/createuser.sh
Created /home/rob/data/docker-shopware/bugrepro/shopware-docker/dev-ops/docker/containers/mysql/createuser.sh
(3/6) Starting
> docker-compose build && docker-compose up -d
Building app_mysql
Step 1/9 : FROM mysql:5.7
---> e1e1680ac726
Step 2/9 : RUN apt-get update && apt-get install --no-install-recommends -y vim netcat-openbsd
---> Using cache
---> 5c56110170af
Step 3/9 : ADD dev.cnf /etc/mysql/conf.d/dev.cnf
---> Using cache
---> 932b24f005a8
Step 4/9 : ADD remote-access.cnf /etc/mysql/conf.d/remote-access.cnf
---> Using cache
---> 5340091ac0d4
Step 5/9 : ADD performance-schema.cnf /etc/mysql/conf.d/performance-schema.cnf
---> Using cache
---> 6d529d3061a7
Step 6/9 : COPY createuser.sh /tmp/createuser.sh
---> 6fca9840b1a7
Step 7/9 : RUN chmod +rwx /tmp/createuser.sh
---> Running in ed17e4c3b23b
Removing intermediate container ed17e4c3b23b
---> a04e481f2858
Step 8/9 : RUN /tmp/createuser.sh
---> Running in d4ac6d6dc6ec
useradd: UID 0 is not unique
chown: invalid user: 'app-mysql:app-mysql'
passwd: user 'app-mysql' does not exist
Removing intermediate container d4ac6d6dc6ec
---> bc05e5dd7dc5
Step 9/9 : COPY grant.sql /docker-entrypoint-initdb.d/grant.sql
---> 7cb77991f813
Successfully built 7cb77991f813
Successfully tagged shopware-docker_app_mysql:latest
Building app_server
Step 1/11 : FROM webdevops/php-apache-dev:7.2
---> 49e4f0100461
Step 2/11 : ENV COMPOSER_HOME=/.composer
---> Using cache
---> 6fdd3011d5b0
Step 3/11 : ENV WEB_DOCUMENT_ROOT=/var/www/shopware/shopware
---> Using cache
---> 3824d6d6b1bb
Step 4/11 : COPY wait-for-it.sh /usr/local/bin/
---> Using cache
---> 0358892475cf
Step 5/11 : COPY php-config.ini /usr/local/etc/php/conf.d/
---> Using cache
---> f34d6c28a2e1
Step 6/11 : COPY xdebug.ini /usr/local/etc/php/conf.d/
---> 00d09b1eb175
Step 7/11 : COPY createuser.sh /addExternalUser
---> c4ad4357be1a
Step 8/11 : RUN mkdir -p /usr/share/man/man1
---> Running in 73892bfae550
Removing intermediate container 73892bfae550
---> b3ff9fd4a9bd
Step 9/11 : RUN apt-get update && apt-get install -y ant mysql-client
---> Running in 55c2b3f2dfdc
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:5 http://deb.debian.org/debian buster InRelease [118 kB]
Get:6 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [502 kB]
Get:8 http://deb.debian.org/debian stretch Release [118 kB]
Get:9 https://packages.blackfire.io/debian any InRelease [23.2 kB]
Get:10 http://deb.debian.org/debian stretch-updates/main amd64 Packages [27.4 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 Packages [7897 kB]
Get:12 http://security.debian.org/debian-security buster/updates/main amd64 Packages [73.9 kB]
Get:13 https://packages.blackfire.io/debian any/main amd64 Packages [1203 B]
Get:14 http://deb.debian.org/debian buster-updates/main amd64 Packages [884 B]
Get:15 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:16 http://deb.debian.org/debian stretch/contrib amd64 Packages [50.9 kB]
Get:17 http://deb.debian.org/debian stretch/main amd64 Packages [7082 kB]
Get:18 http://deb.debian.org/debian stretch/non-free amd64 Packages [78.3 kB]
Fetched 16.2 MB in 33s (489 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ant-optional ca-certificates-java default-jre-headless default-mysql-client
java-common libaio1 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl
libjemalloc1 libmariadbclient18 libpcsclite1 libreadline5
libterm-readkey-perl libxi6 libxtst6 mariadb-client-10.1
mariadb-client-core-10.1 mariadb-common mysql-common openjdk-8-jre-headless
Suggested packages:
ant-doc ant-gcj default-jdk | java-compiler | java-sdk ant-optional-gcj
antlr javacc junit junit4 jython libbcel-java libbsf-java
libcommons-logging-java libcommons-net-java libmail-java libjaxp1.3-java
libjdepend-java libjsch-java liblog4j1.2-java liboro-java libregexp-java
libxalan2-java libxml-commons-resolver1.1-java default-jre libclone-perl
libmldbm-perl libnet-daemon-perl libsql-statement-perl pcscd libnss-mdns
fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho
fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ant ant-optional ca-certificates-java default-jre-headless
default-mysql-client java-common libaio1 libconfig-inifiles-perl
libdbd-mysql-perl libdbi-perl libjemalloc1 libmariadbclient18 libpcsclite1
libreadline5 libterm-readkey-perl libxi6 libxtst6 mariadb-client-10.1
mariadb-client-core-10.1 mariadb-common mysql-client mysql-common
openjdk-8-jre-headless
0 upgraded, 23 newly installed, 0 to remove and 4 not upgraded.
Need to get 42.8 MB of archives.
After this operation, 183 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 openjdk-8-jre-headless amd64 8u222-b10-1~deb9u1 [27.3 MB]
Get:2 http://deb.debian.org/debian stretch/main amd64 ca-certificates-java all 20170929~deb9u3 [15.1 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 java-common all 0.58+deb9u1 [13.6 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 libpcsclite1 amd64 1.8.20-1 [56.5 kB]
Get:5 http://deb.debian.org/debian stretch/main amd64 libxi6 amd64 2:1.7.9-1 [82.6 kB]
Get:6 http://deb.debian.org/debian stretch/main amd64 libxtst6 amd64 2:1.2.3-1 [27.8 kB]
Get:7 http://deb.debian.org/debian stretch/main amd64 default-jre-headless amd64 2:1.8-58+deb9u1 [10.1 kB]
Get:8 http://deb.debian.org/debian stretch/main amd64 mysql-common all 5.8+1.0.2 [5608 B]
Get:9 http://deb.debian.org/debian stretch/main amd64 mariadb-common all 10.1.38-0+deb9u1 [28.4 kB]
Get:10 http://deb.debian.org/debian stretch/main amd64 libaio1 amd64 0.3.110-3 [9412 B]
Get:11 http://deb.debian.org/debian stretch/main amd64 libreadline5 amd64 5.2+dfsg-3+b1 [119 kB]
Get:12 http://deb.debian.org/debian stretch/main amd64 mariadb-client-core-10.1 amd64 10.1.38-0+deb9u1 [5107 kB]
Get:13 http://deb.debian.org/debian stretch/main amd64 libconfig-inifiles-perl all 2.94-1 [53.4 kB]
Get:14 http://deb.debian.org/debian stretch/main amd64 libjemalloc1 amd64 3.6.0-9.1 [89.8 kB]
Get:15 http://deb.debian.org/debian stretch/main amd64 mariadb-client-10.1 amd64 10.1.38-0+deb9u1 [5918 kB]
Get:16 http://deb.debian.org/debian stretch/main amd64 default-mysql-client all 1.0.2 [3050 B]
Get:17 http://deb.debian.org/debian stretch/main amd64 libdbi-perl amd64 1.636-1+b1 [766 kB]
Get:18 http://deb.debian.org/debian stretch/main amd64 libmariadbclient18 amd64 10.1.38-0+deb9u1 [785 kB]
Get:19 http://deb.debian.org/debian stretch/main amd64 libdbd-mysql-perl amd64 4.041-2 [114 kB]
Get:20 http://deb.debian.org/debian stretch/main amd64 libterm-readkey-perl amd64 2.37-1 [27.2 kB]
Get:21 http://deb.debian.org/debian stretch/main amd64 mysql-client amd64 5.5.9999+default [1698 B]
Get:22 http://security.debian.org/debian-security stretch/updates/main amd64 ant all 1.9.9-1+deb9u1 [1923 kB]
Get:23 http://security.debian.org/debian-security stretch/updates/main amd64 ant-optional all 1.9.9-1+deb9u1 [350 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 42.8 MB in 1min 10s (609 kB/s)
Selecting previously unselected package ca-certificates-java.
(Reading database ... 29374 files and directories currently installed.)
Preparing to unpack .../00-ca-certificates-java_20170929~deb9u3_all.deb ...
Unpacking ca-certificates-java (20170929~deb9u3) ...
Selecting previously unselected package java-common.
Preparing to unpack .../01-java-common_0.58+deb9u1_all.deb ...
Unpacking java-common (0.58+deb9u1) ...
Selecting previously unselected package libpcsclite1:amd64.
Preparing to unpack .../02-libpcsclite1_1.8.20-1_amd64.deb ...
Unpacking libpcsclite1:amd64 (1.8.20-1) ...
Selecting previously unselected package libxi6:amd64.
Preparing to unpack .../03-libxi6_2%3a1.7.9-1_amd64.deb ...
Unpacking libxi6:amd64 (2:1.7.9-1) ...
Selecting previously unselected package libxtst6:amd64.
Preparing to unpack .../04-libxtst6_2%3a1.2.3-1_amd64.deb ...
Unpacking libxtst6:amd64 (2:1.2.3-1) ...
Selecting previously unselected package openjdk-8-jre-headless:amd64.
Preparing to unpack .../05-openjdk-8-jre-headless_8u222-b10-1~deb9u1_amd64.deb ...
Unpacking openjdk-8-jre-headless:amd64 (8u222-b10-1~deb9u1) ...
Selecting previously unselected package default-jre-headless.
Preparing to unpack .../06-default-jre-headless_2%3a1.8-58+deb9u1_amd64.deb ...
Unpacking default-jre-headless (2:1.8-58+deb9u1) ...
Selecting previously unselected package ant.
Preparing to unpack .../07-ant_1.9.9-1+deb9u1_all.deb ...
Unpacking ant (1.9.9-1+deb9u1) ...
Selecting previously unselected package ant-optional.
Preparing to unpack .../08-ant-optional_1.9.9-1+deb9u1_all.deb ...
Unpacking ant-optional (1.9.9-1+deb9u1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../09-mysql-common_5.8+1.0.2_all.deb ...
Unpacking mysql-common (5.8+1.0.2) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../10-mariadb-common_10.1.38-0+deb9u1_all.deb ...
Unpacking mariadb-common (10.1.38-0+deb9u1) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../11-libaio1_0.3.110-3_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-3) ...
Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../12-libreadline5_5.2+dfsg-3+b1_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3+b1) ...
Selecting previously unselected package mariadb-client-core-10.1.
Preparing to unpack .../13-mariadb-client-core-10.1_10.1.38-0+deb9u1_amd64.deb ...
Unpacking mariadb-client-core-10.1 (10.1.38-0+deb9u1) ...
Selecting previously unselected package libconfig-inifiles-perl.
Preparing to unpack .../14-libconfig-inifiles-perl_2.94-1_all.deb ...
Unpacking libconfig-inifiles-perl (2.94-1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../15-libjemalloc1_3.6.0-9.1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-9.1) ...
Selecting previously unselected package mariadb-client-10.1.
Preparing to unpack .../16-mariadb-client-10.1_10.1.38-0+deb9u1_amd64.deb ...
Unpacking mariadb-client-10.1 (10.1.38-0+deb9u1) ...
Selecting previously unselected package default-mysql-client.
Preparing to unpack .../17-default-mysql-client_1.0.2_all.deb ...
Unpacking default-mysql-client (1.0.2) ...
Selecting previously unselected package libdbi-perl.
Preparing to unpack .../18-libdbi-perl_1.636-1+b1_amd64.deb ...
Unpacking libdbi-perl (1.636-1+b1) ...
Selecting previously unselected package libmariadbclient18:amd64.
Preparing to unpack .../19-libmariadbclient18_10.1.38-0+deb9u1_amd64.deb ...
Unpacking libmariadbclient18:amd64 (10.1.38-0+deb9u1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../20-libdbd-mysql-perl_4.041-2_amd64.deb ...
Unpacking libdbd-mysql-perl (4.041-2) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../21-libterm-readkey-perl_2.37-1_amd64.deb ...
Unpacking libterm-readkey-perl (2.37-1) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../22-mysql-client_5.5.9999+default_amd64.deb ...
Unpacking mysql-client (5.5.9999+default) ...
Setting up libxi6:amd64 (2:1.7.9-1) ...
Setting up libconfig-inifiles-perl (2.94-1) ...
Setting up libjemalloc1 (3.6.0-9.1) ...
Setting up libpcsclite1:amd64 (1.8.20-1) ...
Setting up mysql-common (5.8+1.0.2) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up java-common (0.58+deb9u1) ...
Setting up libmariadbclient18:amd64 (10.1.38-0+deb9u1) ...
Setting up libterm-readkey-perl (2.37-1) ...
Setting up libxtst6:amd64 (2:1.2.3-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libaio1:amd64 (0.3.110-3) ...
Setting up libreadline5:amd64 (5.2+dfsg-3+b1) ...
Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Setting up libdbi-perl (1.636-1+b1) ...
Setting up mariadb-common (10.1.38-0+deb9u1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-client-core-10.1 (10.1.38-0+deb9u1) ...
Setting up libdbd-mysql-perl (4.041-2) ...
Setting up mariadb-client-10.1 (10.1.38-0+deb9u1) ...
Setting up default-mysql-client (1.0.2) ...
Setting up mysql-client (5.5.9999+default) ...
Setting up openjdk-8-jre-headless:amd64 (8u222-b10-1~deb9u1) ...
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/clhsdb to provide /usr/bin/clhsdb (clhsdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/hsdb to provide /usr/bin/hsdb (hsdb) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
Setting up ca-certificates-java (20170929~deb9u3) ...
Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
Adding debian:Cybertrust_Global_Root.pem
Adding debian:AC_Raíz_Certicámara_S.A..pem
Adding debian:Izenpe.com.pem
Adding debian:QuoVadis_Root_CA_3_G3.pem
Adding debian:Buypass_Class_2_Root_CA.pem
Adding debian:TrustCor_RootCert_CA-2.pem
Adding debian:COMODO_Certification_Authority.pem
Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:TWCA_Root_Certification_Authority.pem
Adding debian:GeoTrust_Universal_CA.pem
Adding debian:LuxTrust_Global_Root_2.pem
Adding debian:AC_RAIZ_FNMT-RCM.pem
Adding debian:OpenTrust_Root_CA_G2.pem
Adding debian:DigiCert_Assured_ID_Root_G3.pem
Adding debian:DigiCert_Global_Root_CA.pem
Adding debian:QuoVadis_Root_CA.pem
Adding debian:Amazon_Root_CA_3.pem
Adding debian:USERTrust_RSA_Certification_Authority.pem
Adding debian:COMODO_RSA_Certification_Authority.pem
Adding debian:EC-ACC.pem
Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Adding debian:CFCA_EV_ROOT.pem
Adding debian:ComSign_CA.pem
Adding debian:Symantec_Class_2_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:Trustis_FPS_Root_CA.pem
Adding debian:DST_Root_CA_X3.pem
Adding debian:Certum_Trusted_Network_CA.pem
Adding debian:Amazon_Root_CA_1.pem
Adding debian:AddTrust_External_Root.pem
Adding debian:Amazon_Root_CA_2.pem
Adding debian:DigiCert_Assured_ID_Root_CA.pem
Adding debian:thawte_Primary_Root_CA.pem
Adding debian:Security_Communication_RootCA2.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Adding debian:thawte_Primary_Root_CA_-_G3.pem
Adding debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.pem
Adding debian:GlobalSign_Root_CA.pem
Adding debian:Certplus_Root_CA_G1.pem
Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
Adding debian:ePKI_Root_Certification_Authority.pem
Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:USERTrust_ECC_Certification_Authority.pem
Adding debian:Network_Solutions_Certificate_Authority.pem
Adding debian:TrustCor_RootCert_CA-1.pem
Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
Adding debian:SZAFIR_ROOT_CA2.pem
Adding debian:COMODO_ECC_Certification_Authority.pem
Adding debian:UTN_USERFirst_Email_Root_CA.pem
Adding debian:D-TRUST_Root_CA_3_2013.pem
Adding debian:SwissSign_Gold_CA_-_G2.pem
Adding debian:Secure_Global_CA.pem
Adding debian:Visa_eCommerce_Root.pem
Adding debian:AffirmTrust_Networking.pem
Adding debian:E-Tugra_Certification_Authority.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
Adding debian:Certplus_Root_CA_G2.pem
Adding debian:Deutsche_Telekom_Root_CA_2.pem
Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Adding debian:Symantec_Class_1_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:IdenTrust_Commercial_Root_CA_1.pem
Adding debian:Security_Communication_Root_CA.pem
Adding debian:SwissSign_Silver_CA_-_G2.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
Adding debian:CA_Disig_Root_R2.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
Adding debian:Actalis_Authentication_Root_CA.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
Adding debian:DigiCert_Assured_ID_Root_G2.pem
Adding debian:Entrust_Root_Certification_Authority.pem
Adding debian:Taiwan_GRCA.pem
Adding debian:Baltimore_CyberTrust_Root.pem
Adding debian:Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem
Adding debian:certSIGN_ROOT_CA.pem
Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
Adding debian:Camerfirma_Global_Chambersign_Root.pem
Adding debian:Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem
Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
Adding debian:AffirmTrust_Premium.pem
Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
Adding debian:AffirmTrust_Commercial.pem
Adding debian:OpenTrust_Root_CA_G3.pem
Adding debian:thawte_Primary_Root_CA_-_G2.pem
Adding debian:SwissSign_Platinum_CA_-_G2.pem
Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
Adding debian:GlobalSign_Root_CA_-_R3.pem
Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
Adding debian:OpenTrust_Root_CA_G1.pem
Adding debian:DigiCert_Global_Root_G3.pem
Adding debian:GeoTrust_Universal_CA_2.pem
Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
Adding debian:Chambers_of_Commerce_Root_-_2008.pem
Adding debian:Sonera_Class_2_Root_CA.pem
Adding debian:Atos_TrustedRoot_2011.pem
Adding debian:Certinomis_-_Root_CA.pem
Adding debian:GlobalSign_Root_CA_-_R2.pem
Adding debian:SecureSign_RootCA11.pem
Adding debian:Swisscom_Root_CA_2.pem
Adding debian:AddTrust_Low-Value_Services_Root.pem
Adding debian:TC_TrustCenter_Class_3_CA_II.pem
Adding debian:QuoVadis_Root_CA_3.pem
Adding debian:GeoTrust_Primary_Certification_Authority.pem
Adding debian:ACCVRAIZ1.pem
Adding debian:Global_Chambersign_Root_-_2008.pem
Adding debian:AffirmTrust_Premium_ECC.pem
Adding debian:S-TRUST_Universal_Root_CA.pem
Adding debian:SecureTrust_CA.pem
Adding debian:QuoVadis_Root_CA_1_G3.pem
Adding debian:XRamp_Global_CA_Root.pem
Adding debian:Camerfirma_Chambers_of_Commerce_Root.pem
Adding debian:QuoVadis_Root_CA_2_G3.pem
Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Adding debian:TeliaSonera_Root_CA_v1.pem
Adding debian:Certum_Root_CA.pem
Adding debian:DigiCert_Trusted_Root_G4.pem
Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
Adding debian:Buypass_Class_3_Root_CA.pem
Adding debian:Comodo_AAA_Services_root.pem
Adding debian:TWCA_Global_Root_CA.pem
Adding debian:QuoVadis_Root_CA_2.pem
Adding debian:ISRG_Root_X1.pem
Adding debian:DigiCert_Global_Root_G2.pem
Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
Adding debian:TrustCor_ECA-1.pem
Adding debian:GeoTrust_Global_CA.pem
Adding debian:Certum_Trusted_Network_CA_2.pem
Adding debian:Certigna.pem
Adding debian:Go_Daddy_Class_2_CA.pem
Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Adding debian:Amazon_Root_CA_4.pem
Adding debian:Certplus_Class_2_Primary_CA.pem
Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Adding debian:Starfield_Class_2_CA.pem
Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
Adding debian:EE_Certification_Centre_Root_CA.pem
Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
Adding debian:Hongkong_Post_Root_CA_1.pem
Adding debian:ssl-cert-snakeoil.pem
done.
Setting up ant (1.9.9-1+deb9u1) ...
Setting up default-jre-headless (2:1.8-58+deb9u1) ...
Setting up ant-optional (1.9.9-1+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for ca-certificates (20161130+nmu1+deb9u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
Removing intermediate container 55c2b3f2dfdc
---> bf7e1f7188d0
Step 10/11 : RUN chmod +x /usr/local/bin/wait-for-it.sh && ln -s /app/psh.phar /bin/psh
---> Running in ed4024313f52
Removing intermediate container ed4024313f52
---> f44c77b0c70c
Step 11/11 : WORKDIR /var/www/shopware
---> Running in 7f7f86a60a95
Removing intermediate container 7f7f86a60a95
---> b76f2833fc21
Successfully built b76f2833fc21
Successfully tagged shopware-docker_app_server:latest
Building app_es
Step 1/1 : FROM docker.elastic.co/elasticsearch/elasticsearch:5.5.2
5.5.2: Pulling from elasticsearch/elasticsearch
Digest: sha256:340f4457554bfb3eda013b8950009b77dde46f6224d6d96fb332d62dff0c191a
Status: Downloaded newer image for docker.elastic.co/elasticsearch/elasticsearch:5.5.2
---> ca27036dd5e7
Successfully built ca27036dd5e7
Successfully tagged shopware-docker_app_es:latest
Building app_redis
Step 1/1 : FROM redis:4
4: Pulling from library/redis
Digest: sha256:48b45173136781d392d6641f48cb16d64c07ec4f4c6f28164fddc3f3bc0891cc
Status: Downloaded newer image for redis:4
---> 29c39fa179d6
Successfully built 29c39fa179d6
Successfully tagged shopware-docker_app_redis:latest
Creating network "shopware-docker_default" with the default driver
Creating shopware-docker_app_es_1 ... done
Creating shopware-docker_app_redis_1 ... done
Creating shopware-docker_app_mysql_1 ... done
Creating shopware-docker_app_server_1 ... done
(4/6) Starting
> wait
(5/6) Starting
> echo "All containers started successfully"
All containers started successfully
(6/6) Starting
> echo "Web server IP: http://localhost:8083"
Web server IP: http://localhost:8083
Duration: 3m 37s
All commands successfully executed!
$sudo ./psh.phar docker:ssh
###################
Starting Execution of 'docker:ssh' ('dev-ops/docker/actions/ssh.sh')
(1/1) Starting
> docker exec -i -u 0:0 -t 69fafafaf95b0a9ef731eced73e9a103374e0e97b5ca949e78e75d11889f93d8 bash
root@69fafafaf95b:/var/www/shopware# ./psh.phar init
###################
Starting Execution of 'init' ('dev-ops/common/actions/init.sh')
(1/2) Starting
> rm -rf ./shopware
(2/2) Starting
> ./sw.phar install:release -r latest -i ./shopware --db-host mysql --db-user app --db-password app --db-name shopware --shop-host localhost:8083
Downloading release
PHP Warning: count(): Parameter must be an array or an object that implements Countable in phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67
PHP Stack trace:
PHP 1. {main}() /var/www/shopware/sw.phar:0
PHP 2. require() /var/www/shopware/sw.phar:11
PHP 3. ShopwareCli\Application->run() phar:///var/www/shopware/sw.phar/bin/sw:18
PHP 4. ShopwareCli\Application->doRun() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:122
PHP 5. ShopwareCli\Application->doRun() phar:///var/www/shopware/sw.phar/src/Application.php:65
PHP 6. ShopwareCli\Application->doRunCommand() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:191
PHP 7. Shopware\Install\Command\ShopwareInstallReleaseCommand->run() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:846
PHP 8. Shopware\Install\Command\ShopwareInstallReleaseCommand->execute() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Command/Command.php:267
PHP 9. Shopware\Install\Services\Install\Release->installShopware() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Command/ShopwareInstallReleaseCommand.php:116
PHP 10. Shopware\Install\Services\ReleaseDownloader->downloadRelease() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/Install/Release.php:111
PHP 11. Shopware\Install\Services\ReleaseDownloader->downloadFromUpdateApi() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:69
PHP 12. Shopware\Install\Services\ReleaseDownloader->getIndexedReleasesList() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:87
PHP 13. GuzzleHttp\Client->get() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:130
PHP 14. GuzzleHttp\Client->__call() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:130
PHP 15. GuzzleHttp\Client->request() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:87
PHP 16. GuzzleHttp\Client->requestAsync() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:129
PHP 17. GuzzleHttp\Client->transfer() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:123
PHP 18. GuzzleHttp\HandlerStack->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:275
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67
Call Stack:
0.0215 1015728 1. {main}() /var/www/shopware/sw.phar:0
0.0216 1011800 2. require('phar:///var/www/shopware/sw.phar/bin/sw') /var/www/shopware/sw.phar:11
0.0382 2792352 3. ShopwareCli\Application->run() phar:///var/www/shopware/sw.phar/bin/sw:18
0.0411 3003192 4. ShopwareCli\Application->doRun() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:122
0.0856 4618560 5. ShopwareCli\Application->doRun() phar:///var/www/shopware/sw.phar/src/Application.php:65
0.0858 4618560 6. ShopwareCli\Application->doRunCommand() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:191
0.0858 4618560 7. Shopware\Install\Command\ShopwareInstallReleaseCommand->run() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Application.php:846
0.0864 4622528 8. Shopware\Install\Command\ShopwareInstallReleaseCommand->execute() phar:///var/www/shopware/sw.phar/vendor/symfony/console/Command/Command.php:267
0.0908 4925976 9. Shopware\Install\Services\Install\Release->installShopware() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Command/ShopwareInstallReleaseCommand.php:116
0.0908 4925976 10. Shopware\Install\Services\ReleaseDownloader->downloadRelease() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/Install/Release.php:111
0.0911 4926032 11. Shopware\Install\Services\ReleaseDownloader->downloadFromUpdateApi() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:69
0.0911 4926032 12. Shopware\Install\Services\ReleaseDownloader->getIndexedReleasesList() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:87
0.0957 5362024 13. GuzzleHttp\Client->get() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:130
0.0957 5362400 14. GuzzleHttp\Client->__call() phar:///var/www/shopware/sw.phar/src/Extensions/Shopware/Install/Services/ReleaseDownloader.php:130
0.0957 5362400 15. GuzzleHttp\Client->request() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:87
0.0958 5366272 16. GuzzleHttp\Client->requestAsync() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:129
0.0972 5483608 17. GuzzleHttp\Client->transfer() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:123
0.0977 5521056 18. GuzzleHttp\HandlerStack->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Client.php:275
0.0979 5537528 19. GuzzleHttp\Middleware::GuzzleHttp\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:55-68}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/HandlerStack.php:67
0.0979 5537528 20. GuzzleHttp\RedirectMiddleware->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:59
0.0979 5538280 21. GuzzleHttp\Middleware::GuzzleHttp\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:28-42}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:68
0.0979 5538280 22. GuzzleHttp\PrepareBodyMiddleware->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:30
0.0979 5538280 23. GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:49-53}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:42
0.0979 5538280 24. GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:25-29}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
0.0979 5538280 25. GuzzleHttp\Handler\CurlHandler->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
0.7959 5589696 26. GuzzleHttp\Handler\CurlFactory::finish() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
0.7959 5589696 27. GuzzleHttp\Handler\CurlFactory->release() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:107
0.7959 5589696 28. count() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67
PHP 19. GuzzleHttp\Middleware::GuzzleHttp\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:55-68}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/HandlerStack.php:67
PHP 20. GuzzleHttp\RedirectMiddleware->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:59
PHP 21. GuzzleHttp\Middleware::GuzzleHttp\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:28-42}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:68
PHP 22. GuzzleHttp\PrepareBodyMiddleware->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Middleware.php:30
PHP 23. GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:49-53}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:42
PHP 24. GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure:phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:25-29}() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
PHP 25. GuzzleHttp\Handler\CurlHandler->__invoke() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
PHP 26. GuzzleHttp\Handler\CurlFactory::finish() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
PHP 27. GuzzleHttp\Handler\CurlFactory->release() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:107
PHP 28. count() phar:///var/www/shopware/sw.phar/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67
0/44094 [>---------------------------] 0%
[...]
44094/44094 [============================] 100%
Download finished
Unzipping archive
Creating database shopware
Writing config.php
=== Import Database ===
0/2406 [>---------------------------] 0%
[...]
2406/2406 [============================] 100%
=== Import Snippets ===
0/1591 [>---------------------------] 0%
[...]
1591/1591 [============================] 100%
Running post release scripts
Themes initialized
Running license import
Successfully refreshed
Successfully refreshed
Plugin by name "SwagLicense" was not found.
Skipping license import: Command failed. Error Output:
Clearing the cache
Clearing caches
Install completed
Duration: 1m 47s
All commands successfully executed!
root@69fafafaf95b:/var/www/shopware#
I have no idea why you get permission issues. It works local on my machine and on a digital ocean droplet as well.
After make a fresh install* of this repo, start and init the server/Shopware I don't get a response from the system:
checking the logs
$ sudo docker logs -f docker-rob-shopware_app_server_1
brings up:Giving it 777 make it work:
I think the install scripts should be modified to do this or something similar.
Addendum: I'am sorry, i've forgot something. The command above is not enough, the
files
folder have to be set also:(*) standard install do not work for me, because PHP Version was outdated -> https://github.com/shopwareLabs/shopware-docker/pull/44