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

Confused on where to place the ./data/www folder on Windows #187

Closed
2 of 8 tasks
joberror opened this issue Feb 3, 2018 · 19 comments
Closed
2 of 8 tasks

Confused on where to place the ./data/www folder on Windows #187

joberror opened this issue Feb 3, 2018 · 19 comments

Comments

@joberror
Copy link

joberror commented Feb 3, 2018

If you encounter a bug and something does not work, make sure you have done the following and check those boxes before submitting an issue - thank you!

  • Pull latest dockers (e.g.: docker pull cytopia/<used_docker>) before running docker-compose up
  • Specify used docker versions (php, web and database)
  • Attach logs for php, mysql and webserver (found in log/ directory)
  • Start with debug mode and attach docker-compose output (.env setting DEBUG_COMPOSE_ENTRYPOINT=1)
  • Never use different mysql|mariadb versions on the same HOST_PATH_TO_MYSQL_DATADIR on existing database files. Different mysql|mariadb versions might upgrade/corrupt existing database files. If you have done that already, start with a different path of HOST_PATH_TO_MYSQL_DATADIR (to an empty directory) and try again.

Please also specify the following info:

  • Which operating system are you at (Linux, OSX or Windows)
  • docker version
  • docker-compose version

I have Devilbox installed in C:\Docker\devilbox and set all the Path variables in the .env as

./data/www
./data/mysql
./data/pgsql
./data/mongo

for WWW, MYSQL, PGSQL and MONGO respectively

But I'm highly confused as where to place these folders. I watched your video but you created those folders using the command interface.

@cytopia
Copy link
Owner

cytopia commented Feb 3, 2018

The paths are relative to the devilbox directory. So in your case, add your www data in:

C:\Docker\devilbox\data\www

@joberror
Copy link
Author

joberror commented Feb 3, 2018

Thanks for replying

Now, I have created the folder and executed the command;
"docker-compose up"

but unfortunately

  • no file was copied to the said directories as seen in the video,
  • localhost page is not loading,

Below is what was generated in the command line after executing the command above
command log.txt

Thank you for helping out

@cytopia
Copy link
Owner

cytopia commented Feb 3, 2018

Looks like your configuration is wrong. You have many startup errors complaining about wrong values in .env. Also the httpd container stops due to those errors and therefore nothing will show up at localhost

@joberror
Copy link
Author

joberror commented Feb 3, 2018

env.txt

That's a copy of my .env file

NB: I changed the directory from ./data to ./prjDev and created the folders accordingly

Please let me know if anything is wrong

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

This looks good so far. Are you using the file extension .txt for the env file? It should be .env. A leading dot and not extension.

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

Another thing you could do prior running docker-compose up is to manually source the .env file. Just do that on the command line:

. .env

@joberror
Copy link
Author

joberror commented Feb 4, 2018

No. I only had to convert it to .txt file before I can upload due to Github restriction. I'm confused as to why it's not working.

Maybe I should try using .\prjDev instead of ./prjDev. windows might be funny at times not understanding the link.

And in your video, I saw you changed the ./data to ~/data. can this be a solution too?

Don't know if it's going to work that way.

@joberror
Copy link
Author

joberror commented Feb 4, 2018

Below are all the information I can get when I run the following commands

$ docker-compose ps

      Name                    Command                 State                          Ports     
---------------------------------------------------------------------------------------------------------------
devilbox_bind_1    /docker-entrypoint.sh            Up           127.0.0.1:1053->53/tcp, 127.0.0.1:1053->53/udp
devilbox_httpd_1   /docker-entrypoint.sh            Restarting                                 
devilbox_memcd_1   docker-entrypoint.sh memcached   Up           127.0.0.1:11211->11211/tcp    
devilbox_mongo_1   docker-entrypoint.sh mongod      Up           127.0.0.1:27017->27017/tcp    
devilbox_mysql_1   /docker-entrypoint.sh            Up           127.0.0.1:3306->3306/tcp      
devilbox_pgsql_1   docker-entrypoint.sh postgres    Up           127.0.0.1:5432->5432/tcp      
devilbox_php_1     /docker-entrypoint.sh            Up           9000/tcp                      
devilbox_redis_1   docker-entrypoint.sh redis ...   Up           127.0.0.1:6379->6379/tcp      

$ docker-compose images

   Container            Repository          Tag       Image Id      Size
--------------------------------------------------------------------------
devilbox_bind_1    cytopia/bind            0.11     3a06fe34e4ff   189 MB
devilbox_httpd_1   devilbox/nginx-stable   0.12     da8e151ed02a   141 MB
devilbox_memcd_1   memcached               1.5.2    5dceb668fb20   55.9 MB
devilbox_mongo_1   mongo                   3.4      e905a87e116d   343 MB
devilbox_mysql_1   cytopia/mysql-5.7       latest   57f67105906d   1.22 GB
devilbox_pgsql_1   postgres                9.6      5579c7505b1b   255 MB
devilbox_php_1     cytopia/php-fpm-7.1     latest   927ad858fb6a   1.02 GB
devilbox_redis_1   redis                   4.0      861cc310cd91   102 MB

$ docker-compose logs

Attaching to devilbox_mysql_1, devilbox_memcd_1, devilbox_mongo_1, devilbox_pgsql_1, devilbox_redis_1, devilbox_httpd_1, devilbox_php_1, devilbox_bind_1
mysql_1  | [INFO] Setting docker timezone to: Europe/Berlin
mysql_1  | [INFO] Docker date set to: Sun Feb  4 12:00:35 CET 2018
mysql_1  | [INFO] Setting MySQL: [mysqld] general-log=1
mysql_1  | [INFO] Setting MySQL: [client] socket=/tmp/mysql/mysqld.sock
mysql_1  | [INFO] Setting MySQL: [mysql] socket=/tmp/mysql/mysqld.sock
mysql_1  | [INFO] Setting MySQL: [mysqld] socket=/tmp/mysql/mysqld.sock
mysql_1  | [INFO] Found existing data directory. MySQL already setup.
mysql_1  | [INFO] Starting mysqld  Ver 5.7.19 for Linux on x86_64 (MySQL Community Server (GPL))
php_1    | [INFO] Changing user 'devilbox' uid to: 1000
php_1    | usermod: no changes
php_1    | [INFO] Changing group 'devilbox' gid to: 1000
php_1    | [WARN] $DOCKER_LOGS_ERROR not set.
php_1    | [WARN] Not logging errors to docker logs, using file inside container
php_1    | [WARN] $DOCKER_LOGS_ACCESS not set.
php_1    | [WARN] Not logging access to docker logs, using file inside container
php_1    | [WARN] $DOCKER_LOGS_XDEBUG not set.
php_1    | [WARN] Not logging xdebug to docker logs, using file inside container
php_1    | [INFO] Setting docker timezone to: Europe/Berlin
php_1    | [INFO] Setting PHP: timezone=Europe/Berlin
php_1    | [INFO] Docker date set to: Sun Feb  4 12:00:17 CET 2018
php_1    | [INFO] Adding custom configuration files:
php_1    | [INFO] Setting PHP: xdebug.remote_enable=1
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Setting PHP: xdebug.remote_connect_back=0
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Setting PHP: xdebug.remote_port=9000
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Setting PHP: xdebug.remote_host=192.168.0.215
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Setting PHP: xdebug.remote_log="/var/log/php/xdebug.log"
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Forwarding mysql:3306 to 127.0.0.1:3306 inside this docker.
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Forwarding pgsql:5432 to 127.0.0.1:5432 inside this docker.
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Forwarding redis:6379 to 127.0.0.1:6379 inside this docker.
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Forwarding memcd:11211 to 127.0.0.1:11211 inside this docker.
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Forwarding mongo:27017 to 127.0.0.1:27017 inside this docker.
pgsql_1  | LOG:  database system was shut down at 2018-02-04 10:59:24 UTC
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Enabling sending of emails.
pgsql_1  | LOG:  MultiXact member wraparound protections are now enabled
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] $MYSQL_BACKUP_USER set for mysqldump-secure.
pgsql_1  | LOG:  database system is ready to accept connections
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Changing to 'root'
pgsql_1  | LOG:  autovacuum launcher started
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] $MYSQL_BACKUP_PASS set for mysqldump-secure.
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Changing to '********'
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
mongo_1  | 2018-02-04T11:00:33.556+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=2e23abba48e4
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
mongo_1  | 2018-02-04T11:00:33.572+0000 I CONTROL  [initandlisten] db version v3.4.10
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
mongo_1  | 2018-02-04T11:00:33.572+0000 I CONTROL  [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten] allocator: tcmalloc
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
redis_1  | 1:C 04 Feb 11:00:32.367 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten] modules: none
bind_1   | [INFO] Adding wildcard DNS record: '*.dev' -> '172.16.238.11'
php_1    | [INFO] $MYSQL_BACKUP_HOST set for mysqldump-secure.
redis_1  | 1:C 04 Feb 11:00:32.367 # Redis version=4.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten] build environment:
bind_1   | [INFO] Adding custom DNS forwarder: 8.8.8.8,8.8.4.4
php_1    | [INFO] Changing to 'mysql'
redis_1  | 1:C 04 Feb 11:00:32.367 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten]     distmod: debian81
bind_1   | [INFO] Starting BIND 9.10.3
php_1    | [INFO] Starting PHP 7.1.9 (fpm-fcgi) (built: Aug 30 2017 20:08:00)
redis_1  | 1:M 04 Feb 11:00:32.368 * Running mode=standalone, port=6379.
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten]     distarch: x86_64
redis_1  | 1:M 04 Feb 11:00:32.368 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten]     target_arch: x86_64
redis_1  | 1:M 04 Feb 11:00:32.368 # Server initialized
mongo_1  | 2018-02-04T11:00:33.573+0000 I CONTROL  [initandlisten] options: {}
redis_1  | 1:M 04 Feb 11:00:32.368 # 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 never > /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.
mongo_1  | 2018-02-04T11:00:34.166+0000 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
redis_1  | 1:M 04 Feb 11:00:32.368 * Ready to accept connections
mongo_1  | 2018-02-04T11:00:34.166+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=478M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
mongo_1  | 2018-02-04T11:00:34.643+0000 I CONTROL  [initandlisten]
mongo_1  | 2018-02-04T11:00:34.643+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
mongo_1  | 2018-02-04T11:00:34.643+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
mongo_1  | 2018-02-04T11:00:34.643+0000 I CONTROL  [initandlisten]
mongo_1  | 2018-02-04T11:00:34.715+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongo_1  | 2018-02-04T11:00:34.716+0000 I NETWORK  [thread1] waiting for connections on port 27017

$ docker-compose top

Container 28d9ff3f9ee049be046e8976307b102b5a62759c1caa6b80ee545ee162aaafbc is restarting, wait until the container is running
devilbox_bind_1
 PID    USER   TIME                          COMMAND
---------------------------------------------------------------------------
54087   101    0:00   /usr/sbin/named -4 -c /etc/bind/named.conf -u bind -f

$ docker-compose events

2018-02-04 12:13:06.552617 container start 28d9ff3f9ee049be046e8976307b102b5a62759c1caa6b80ee545ee162aaafbc (image=devilbox/nginx-stable:0.12, name=devilbox_httpd_1)
2018-02-04 12:13:06.640419 container die 28d9ff3f9ee049be046e8976307b102b5a62759c1caa6b80ee545ee162aaafbc (image=devilbox/nginx-stable:0.12, name=devilbox_httpd_1)

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

Can you paste your docker and docker-compose version here as well as the windows version and whether you use native docker or docker toolbox for windows.

@joberror
Copy link
Author

joberror commented Feb 4, 2018

Now, I'm like 35% successful after reading your comment here Docker Shared Drives and following the documentation on Docker website

All necessary files are being copied to the ./prjDev respective folders but Localhost still not loading. below is the log from the command

$ docker-compose up

Creating network "devilbox_app_net" with driver "bridge"
Creating devilbox_bind_1  ...
Creating devilbox_php_1   ...
Creating devilbox_httpd_1 ...
Creating devilbox_mysql_1 ... done
Creating devilbox_pgsql_1 ... done
Creating devilbox_redis_1 ... done
Creating devilbox_memcd_1 ... done
Creating devilbox_mongo_1 ... done
Attaching to devilbox_bind_1, devilbox_php_1, devilbox_httpd_1, devilbox_redis_1, devilbox_memcd_1, devilbox_pgsql_1, devilbox_mongo_1, devilbox_mysql_1
bind_1   | [INFO] Adding wildcard DNS record: '*.dev' -> '172.16.238.11'
bind_1   | [INFO] Adding custom DNS forwarder: 8.8.8.8,8.8.4.4
php_1    | [INFO] Changing user 'devilbox' uid to: 1000
bind_1   | [INFO] Starting BIND 9.10.3
php_1    | usermod: no changes
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
php_1    | [INFO] Changing group 'devilbox' gid to: 1000
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
redis_1  | 1:C 04 Feb 12:05:20.604 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
php_1    | [WARN] $DOCKER_LOGS_ERROR not set.
redis_1  | 1:C 04 Feb 12:05:20.605 # Redis version=4.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
php_1    | [WARN] Not logging errors to docker logs, using file inside container
redis_1  | 1:C 04 Feb 12:05:20.605 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1  | 1:M 04 Feb 12:05:20.607 * Running mode=standalone, port=6379.
php_1    | [WARN] $DOCKER_LOGS_ACCESS not set.
pgsql_1  | The files belonging to this database system will be owned by user "postgres".
redis_1  | 1:M 04 Feb 12:05:20.607 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
pgsql_1  | This user must also own the server process.
php_1    | [WARN] Not logging access to docker logs, using file inside container
redis_1  | 1:M 04 Feb 12:05:20.607 # Server initialized
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=c75384e3f0d6
pgsql_1  |
redis_1  | 1:M 04 Feb 12:05:20.607 # 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 never > /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.
php_1    | [WARN] $DOCKER_LOGS_XDEBUG not set.
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] db version v3.4.10
mysql_1  | [INFO] Setting docker timezone to: Europe/Berlin
pgsql_1  | The database cluster will be initialized with locale "en_US.utf8".
redis_1  | 1:M 04 Feb 12:05:20.607 * Ready to accept connections
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
php_1    | [WARN] Not logging xdebug to docker logs, using file inside container
pgsql_1  | The default database encoding has accordingly been set to "UTF8".
mysql_1  | [INFO] Docker date set to: Sun Feb  4 13:05:27 CET 2018
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
php_1    | [INFO] Setting docker timezone to: Europe/Berlin
pgsql_1  | The default text search configuration will be set to "english".
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] allocator: tcmalloc
mysql_1  | [INFO] Setting MySQL: [mysqld] general-log=1
pgsql_1  |
php_1    | [INFO] Setting PHP: timezone=Europe/Berlin
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] modules: none
pgsql_1  | Data page checksums are disabled.
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] build environment:
php_1    | [INFO] Docker date set to: Sun Feb  4 13:05:08 CET 2018
pgsql_1  |
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten]     distmod: debian81
php_1    | [INFO] Adding custom configuration files:
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten]     distarch: x86_64
pgsql_1  | fixing permissions on existing directory /var/lib/postgresql/data/pgdata ... ok
php_1    | [INFO] Setting PHP: xdebug.remote_enable=1
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten]     target_arch: x86_64
pgsql_1  | creating subdirectories ... ok
mongo_1  | 2018-02-04T12:05:26.410+0000 I CONTROL  [initandlisten] options: {}
php_1    | [INFO] Setting PHP: xdebug.remote_connect_back=0
mongo_1  | 2018-02-04T12:05:26.528+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=478M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
php_1    | [INFO] Setting PHP: xdebug.remote_port=9000
mongo_1  | 2018-02-04T12:05:26.656+0000 E STORAGE  [initandlisten] WiredTiger error (1) [1517745926:656809][1:0x7f7711d85d40], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
php_1    | [INFO] Setting PHP: xdebug.remote_host=192.168.0.215
php_1    | [INFO] Setting PHP: xdebug.remote_log="/var/log/php/xdebug.log"
mongo_1  | 2018-02-04T12:05:26.665+0000 I -        [initandlisten] Assertion: 28595:1: Operation not permitted src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 276
php_1    | [INFO] Forwarding mysql:3306 to 127.0.0.1:3306 inside this docker.
mongo_1  | 2018-02-04T12:05:27.339+0000 I STORAGE  [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, terminating
php_1    | [INFO] Forwarding pgsql:5432 to 127.0.0.1:5432 inside this docker.
mongo_1  | 2018-02-04T12:05:27.339+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
php_1    | [INFO] Forwarding redis:6379 to 127.0.0.1:6379 inside this docker.
mongo_1  | 2018-02-04T12:05:27.339+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
php_1    | [INFO] Forwarding memcd:11211 to 127.0.0.1:11211 inside this docker.
mongo_1  | 2018-02-04T12:05:27.339+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
mongo_1  | 2018-02-04T12:05:27.339+0000 I CONTROL  [initandlisten] now exiting
php_1    | [INFO] Forwarding mongo:27017 to 127.0.0.1:27017 inside this docker.
mongo_1  | 2018-02-04T12:05:27.339+0000 I CONTROL  [initandlisten] shutting down with code:100
php_1    | [INFO] Enabling sending of emails.
php_1    | [INFO] $MYSQL_BACKUP_USER set for mysqldump-secure.
php_1    | [INFO] Changing to 'root'
php_1    | [INFO] $MYSQL_BACKUP_PASS set for mysqldump-secure.
php_1    | [INFO] Changing to '********'
php_1    | [INFO] $MYSQL_BACKUP_HOST set for mysqldump-secure.
php_1    | [INFO] Changing to 'mysql'
mysql_1  | [INFO] Setting MySQL: [client] socket=/tmp/mysql/mysqld.sock
mysql_1  | [INFO] Setting MySQL: [mysql] socket=/tmp/mysql/mysqld.sock
pgsql_1  | selecting default max_connections ... 100
mysql_1  | [INFO] Setting MySQL: [mysqld] socket=/tmp/mysql/mysqld.sock
pgsql_1  | selecting default shared_buffers ... 128MB
pgsql_1  | selecting dynamic shared memory implementation ... posix
mysql_1  | [INFO] No existing MySQL data directory found. Setting up MySQL for the first time.
devilbox_mongo_1 exited with code 100
devilbox_httpd_1 exited with code 1
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
php_1    | [INFO] Starting PHP 7.1.9 (fpm-fcgi) (built: Aug 30 2017 20:08:00)
pgsql_1  | creating configuration files ... ok
devilbox_httpd_1 exited with code 1
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
pgsql_1  | running bootstrap script ... ok
devilbox_httpd_1 exited with code 1
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
devilbox_httpd_1 exited with code 1
pgsql_1  | performing post-bootstrap initialization ... ok
mysql_1  | [INFO] Initializing ...
mysql_1  | [INFO] Initializing ...
mysql_1  | [INFO] Setting up root user permissions.
mysql_1  | [INFO] Shutting down MySQL.
mysql_1  | [INFO] MySQL successfully installed.
mysql_1  | [INFO] Starting mysqld  Ver 5.7.19 for Linux on x86_64 (MySQL Community Server (GPL))
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
pgsql_1  | syncing data to disk ... initdb: could not fsync file "/var/lib/postgresql/data/pgdata/base/1": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/base/12406": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/base/12407": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/base": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/global": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_clog": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_commit_ts": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_dynshmem": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_logical/mappings": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_logical/snapshots": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_logical": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_multixact/members": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_multixact/offsets": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_multixact": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_notify": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_replslot": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_serial": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_snapshots": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_stat": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_stat_tmp": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_subtrans": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_tblspc": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_twophase": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_xlog/archive_status": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_xlog": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata": Invalid argument
pgsql_1  | initdb: could not fsync file "/var/lib/postgresql/data/pgdata/pg_tblspc": Invalid argument
pgsql_1  |
pgsql_1  | WARNING: enabling "trust" authentication for local connections
pgsql_1  | You can change this by editing pg_hba.conf or using the option -A, or
pgsql_1  | --auth-local and --auth-host, the next time you run initdb.
pgsql_1  | ok
pgsql_1  |
pgsql_1  | Success. You can now start the database server using:
pgsql_1  |
pgsql_1  |     pg_ctl -D /var/lib/postgresql/data/pgdata -l logfile start
pgsql_1  |
pgsql_1  | waiting for server to start....FATAL:  data directory "/var/lib/postgresql/data/pgdata" has wrong ownership
pgsql_1  | HINT:  The server must be started by the user that owns the data directory.
pgsql_1  |  stopped waiting
pgsql_1  | pg_ctl: could not start server
pgsql_1  | Examine the log output.
devilbox_pgsql_1 exited with code 1
devilbox_httpd_1 exited with code 1

Looking at above log and reading from this issue located here, there's a similarity in my case here as well

@joberror
Copy link
Author

joberror commented Feb 4, 2018

$ docker version

Client:
 Version:       17.12.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    c97c6d6
 Built: Wed Dec 27 20:05:22 2017
 OS/Arch:       windows/amd64

Server:
 Engine:
  Version:      17.12.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   c97c6d6
  Built:        Wed Dec 27 20:12:29 2017
  OS/Arch:      linux/amd64
  Experimental: true

$ docker-compose version

docker-compose version 1.18.0, build 8dd22a96
docker-py version: 2.6.1
CPython version: 2.7.14
OpenSSL version: OpenSSL 1.0.2k  26 Jan 2017
  • Windows 10 Pro v1709 OS Build 16229.192
  • Native Docker version

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

I have the following:

$ docker --version
Docker version 18.01.0-ce, build 03596f5
$ docker version
Client:
 Version:       18.01.0-ce
 API version:   1.35
 Go version:    go1.9.2
 Git commit:    03596f5
 Built: Wed Jan 10 20:09:19 2018
 OS/Arch:       linux/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      18.01.0-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.2
  Git commit:   03596f5
  Built:        Wed Jan 10 20:07:49 2018
  OS/Arch:      linux/amd64
  Experimental: false

Can you check if there is a newer docker version available for windows?

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

Also it still looks like your .env file is not read. That's why you get all those errors. Did you manually source the file prior startup"

. .env

@joberror
Copy link
Author

joberror commented Feb 4, 2018

I downloaded it 3 days ago. So I believed that's the latest version, though I download the Stable version

The .env file has been read because all the files in ./prjDev/mysql, ./prjDev/pgsql, ./prjDev/mongo has been copied after executing docker-compose up before, no file was copied.

@cytopia
Copy link
Owner

cytopia commented Feb 4, 2018

Looks like the httpd container does not like the config values:

httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2
httpd_1  | [ERR]  Wrong value for $DEBUG_ENTRYPOINT: '0'
httpd_1  | [ERR]  Allowed values: 0, 1 and 2

It stops after that.

@joberror
Copy link
Author

joberror commented Feb 5, 2018

Funny enough, I used 0, and 0 is also listed as accepted value. So why the error. I'll change it and get back to report the outcome

@joberror
Copy link
Author

joberror commented Feb 5, 2018

devilbox

Finally, the page got loaded and MySQL and PHP started quite alright but pgSQL and Mongo isn't starting as you can see from the screenshot above

Below is the pgsql and mongo log from the command

pgsql_1  | FATAL:  data directory "/var/lib/postgresql/data/pgdata" has wrong ownership
pgsql_1  | HINT:  The server must be started by the user that owns the data directory.
mongo_1  | 2018-02-05T14:10:38.046+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=e6d0f8bd6a6d
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] db version v3.4.10
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] git version: 078f28920cb24de0dd479b5ea6c66c644f6326e9
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] allocator: tcmalloc
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] modules: none
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] build environment:
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten]     distmod: debian81
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten]     distarch: x86_64
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten]     target_arch: x86_64
mongo_1  | 2018-02-05T14:10:38.047+0000 I CONTROL  [initandlisten] options: {}
mongo_1  | 2018-02-05T14:10:38.346+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=478M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
mongo_1  | 2018-02-05T14:10:39.152+0000 E STORAGE  [initandlisten] WiredTiger error (17) [1517839839:152223][1:0x7f95d939cd40], connection: /data/db/WiredTiger.wt: handle-open: open: File exists
mongo_1  | 2018-02-05T14:10:39.155+0000 I STORAGE  [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.1
mongo_1  | 2018-02-05T14:10:39.158+0000 E STORAGE  [initandlisten] WiredTiger error (1) [1517839839:158802][1:0x7f95d939cd40], connection: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
mongo_1  | 2018-02-05T14:10:39.354+0000 I -        [initandlisten] Assertion: 28595:1: Operation not permitted src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 276
httpd_1  | 2018-02-05 15:10:39,505 CRIT Set uid to user 0
devilbox_pgsql_1 exited with code 1
httpd_1  | 2018-02-05 15:10:40,005 INFO supervisord started with pid 1
mongo_1  | 2018-02-05T14:10:40.207+0000 I STORAGE  [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, terminating
mongo_1  | 2018-02-05T14:10:40.207+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
mongo_1  | 2018-02-05T14:10:40.207+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock
mongo_1  | 2018-02-05T14:10:40.207+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
mongo_1  | 2018-02-05T14:10:40.207+0000 I CONTROL  [initandlisten] now exiting
mongo_1  | 2018-02-05T14:10:40.207+0000 I CONTROL  [initandlisten] shutting down with code:100

I think it's related to what this issue below is about Using Docker for Windows to volume-mount a Windows drive into a Linux container is bad

@joberror
Copy link
Author

joberror commented Feb 7, 2018

Gladly I have everything running now.

I think there's need for more documentation concerning Windows User.

Thanks for coming up with such great project

@cytopia
Copy link
Owner

cytopia commented Feb 8, 2018

@joberror thanks for the feedback and glad that it works for you now. Documentation is on the list to be extended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants