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

Wont run on windows 10 #18

Closed
Aaron3c opened this issue Aug 1, 2018 · 1 comment · Fixed by #19
Closed

Wont run on windows 10 #18

Aaron3c opened this issue Aug 1, 2018 · 1 comment · Fixed by #19

Comments

@Aaron3c
Copy link
Contributor

Aaron3c commented Aug 1, 2018

Initial attempt to clone git and compose in docker was unsuccessful on windows 10 machine.
Process got locked into cycle on step 15 where web1 exited with code:
web_1 | standard_init_linux.go:190: exec user process caused "no such file or directory"
fast-stream-postings_web_1 exited with code 1

Full transcript from terminal posted below:


C:\Users\aaron\Downloads>git clone https://github.com/jonodrew/fast-stream-postings.git
Cloning into 'fast-stream-postings'...
remote: Counting objects: 1981, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 1981 (delta 13), reused 21 (delta 10), pack-reused 1951
Receiving objects: 100% (1981/1981), 2.19 MiB | 141.00 KiB/s, done.
Resolving deltas: 100% (554/554), done.
Checking out files: 100% (1648/1648), done.

C:\Users\aaron\Downloads>cd C:\Users\aaron\downloads\fast-stream-postings

C:\Users\aaron\Downloads\fast-stream-postings>docker-compose up
Creating network "fast-stream-postings_default" with the default driver
Creating volume "fast-stream-postings_pgdata" with default driver
Pulling db (postgres:)...
latest: Pulling from library/postgres
be8881be8156: Pull complete
bcc05f43b4de: Pull complete
78c4cc9b5f06: Pull complete
d45b5ac60cd5: Pull complete
67f823cf5f8b: Pull complete
0626c6149c90: Pull complete
e25dcd1f62ca: Pull complete
c3c9ac2352c5: Pull complete
e7850488cb30: Pull complete
afbae3a26c07: Pull complete
90b4f1aa8431: Pull complete
916671d3d4a6: Pull complete
8221e20bcbad: Pull complete
b2eb8d065dc9: Pull complete
Digest: sha256:7d20c46b2da5e4a240dda720e3a159e2bf9d0f0af9a9b72d8e0c348f75ef374b
Status: Downloaded newer image for postgres:latest
Pulling redis (redis:)...
latest: Pulling from library/redis
be8881be8156: Already exists
d6f5ea773ca3: Pull complete
735cc65c0db4: Pull complete
ff89c30e4d8c: Pull complete
59bf782a86b3: Pull complete
ce8aaa9fe90a: Pull complete
Digest: sha256:096cff9e6024603decb2915ea3e501c63c5bb241e1b56830a52acfd488873843
Status: Downloaded newer image for redis:latest
Building web
Step 1/15 : FROM python:3.6
3.6: Pulling from library/python
55cbf04beb70: Pull complete
1607093a898c: Pull complete
9a8ea045c926: Pull complete
d4eee24d4dac: Pull complete
b59856e9f0ab: Pull complete
b023afffd10b: Pull complete
4d4eb448d315: Pull complete
c4eb58602129: Pull complete
598629fb90fc: Pull complete
Digest: sha256:b96b5eecbb15cc6dc38653d8dac5499955c6088a66f4a62465efa01113c9895c
Status: Downloaded newer image for python:3.6
 ---> d49c41b6e6c4
Step 2/15 : RUN useradd -m service-worker
 ---> Running in 7a21ddb2314c
Removing intermediate container 7a21ddb2314c
 ---> e8e8945b916c
Step 3/15 : WORKDIR /home/submit-fast-stream-post
 ---> Running in 5b8adb8637f7
Removing intermediate container 5b8adb8637f7
 ---> e8441fc0cae2
Step 4/15 : COPY requirements.txt requirements.txt
 ---> 3cdeab8bc904
Step 5/15 : RUN python -m venv venv
 ---> Running in 28ec2e0f8af4
Removing intermediate container 28ec2e0f8af4
 ---> 90056357da02
Step 6/15 : RUN pip install -r requirements.txt
 ---> Running in a1ed85c399d8
Collecting alembic==0.9.9 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/89/03/756d5b8e1c90bf283c3f435766aa3f20208d1c3887579dd8f2122e01d5f4/alembic-0.9.9.tar.gz (1.0MB)
Collecting click==6.7 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
Collecting Flask==1.0.2 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
Collecting Flask-Assets==0.12 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/86/ff/6000451570745d7a90847f6528d96d6b24c800eaaf9f26cf398accd8cee5/Flask-Assets-0.12.tar.gz
Collecting Flask-Migrate==2.2.1 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/59/97/f681c9e43d2e2ace4881fa588d847cc25f47cc98f7400e237805d20d6f79/Flask_Migrate-2.2.1-py2.py3-none-any.whl
Collecting Flask-Redis==0.3.0 (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/8b/59/e29f607475ca6ae21e30ff5e6ca0f2fd58701879a31ffeff7471ea3865f6/Flask_Redis-0.3.0-py2.py3-none-any.whl
Collecting Flask-SQLAlchemy==2.3.2 (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/a1/44/294fb7f6bf49cc7224417cd0637018db9fee0729b4fe166e43e2bbb1f1c8/Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl
Collecting gunicorn==19.9.0 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
Collecting itsdangerous==0.24 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz (46kB)
Collecting Jinja2==2.10 (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
Collecting Mako==1.0.7 (from -r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/eb/f3/67579bb486517c0d49547f9697e36582cd19dafb5df9e687ed8e22de57fa/Mako-1.0.7.tar.gz (564kB)
Collecting MarkupSafe==1.0 (from -r requirements.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz
Collecting psycopg2==2.7.5 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/5e/d0/9e2b3ed43001ebed45caf56d5bb9d44ed3ebd68e12b87845bfa7bcd46250/psycopg2-2.7.5-cp36-cp36m-manylinux1_x86_64.whl (2.7MB)
Collecting pyScss==1.3.5 (from -r requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/01/7b/c6bfb2515ed08cbfb76b0e72254f24caf76f25676d72024837a85a1e68f5/pyScss-1.3.5.tar.gz (123kB)
Collecting python-dateutil==2.7.3 (from -r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
Collecting python-editor==1.0.3 (from -r requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/65/1e/adf6e000ea5dc909aa420352d6ba37f16434c8a3c2fa030445411a1ed545/python-editor-1.0.3.tar.gz
Collecting redis==2.10.6 (from -r requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl (64kB)
Collecting six==1.11.0 (from -r requirements.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting SQLAlchemy==1.2.8 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/b4/9c/411a9bac1a471bed54ec447dc183aeed12a75c1b648307e18b56e3829363/SQLAlchemy-1.2.8.tar.gz (5.6MB)
Collecting webassets==0.12.1 (from -r requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/9a/35/d86c6d3bd31e2e9c8351c8766ef3688c75d56bc5233ed49061e522efc3cc/webassets-0.12.1.tar.gz (179kB)
Collecting Werkzeug==0.14.1 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
Building wheels for collected packages: alembic, Flask-Assets, itsdangerous, Mako, MarkupSafe, pyScss, python-editor, SQLAlchemy, webassets
  Running setup.py bdist_wheel for alembic: started
  Running setup.py bdist_wheel for alembic: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a4/8c/02/3d1795469c7fa5754f12da16847f0dc8748139edba921d8d46
  Running setup.py bdist_wheel for Flask-Assets: started
  Running setup.py bdist_wheel for Flask-Assets: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/bb/34/a9/7b18342e1b760943e4115b5a27ded4f751f54e5abe7d696cee
  Running setup.py bdist_wheel for itsdangerous: started
  Running setup.py bdist_wheel for itsdangerous: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/2c/4a/61/5599631c1554768c6290b08c02c72d7317910374ca602ff1e5
  Running setup.py bdist_wheel for Mako: started
  Running setup.py bdist_wheel for Mako: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/15/35/25/dbcb848832ccb1a4b4ad23f529badfd3bce9bf88017f7ca510
  Running setup.py bdist_wheel for MarkupSafe: started
  Running setup.py bdist_wheel for MarkupSafe: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/33/56/20/ebe49a5c612fffe1c5a632146b16596f9e64676768661e4e46
  Running setup.py bdist_wheel for pyScss: started
  Running setup.py bdist_wheel for pyScss: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/3f/16/9b/e9f47192cc9ded35ea7aa35da120ede1089ccbc1eee8983a4b
  Running setup.py bdist_wheel for python-editor: started
  Running setup.py bdist_wheel for python-editor: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/36/e0/98/ba386b125a00ea9dd52e2c16aa2ec0adbbd639b84bfe2e001d
  Running setup.py bdist_wheel for SQLAlchemy: started
  Running setup.py bdist_wheel for SQLAlchemy: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/df/fc/61/df2f43ec3f11f864554bdc006a866a3ffffa59740bcf3674ef
  Running setup.py bdist_wheel for webassets: started
  Running setup.py bdist_wheel for webassets: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/eb/2a/fd/d10453a8c9ee05159da8877d083947e376caeca041988df18e
Successfully built alembic Flask-Assets itsdangerous Mako MarkupSafe pyScss python-editor SQLAlchemy webassets
Installing collected packages: SQLAlchemy, MarkupSafe, Mako, python-editor, six, python-dateutil, alembic, click, Werkzeug, itsdangerous, Jinja2, Flask, webassets, Flask-Assets, Flask-SQLAlchemy, Flask-Migrate, redis, Flask-Redis, gunicorn, psycopg2, pyScss
Successfully installed Flask-1.0.2 Flask-Assets-0.12 Flask-Migrate-2.2.1 Flask-Redis-0.3.0 Flask-SQLAlchemy-2.3.2 Jinja2-2.10 Mako-1.0.7 MarkupSafe-1.0 SQLAlchemy-1.2.8 Werkzeug-0.14.1 alembic-0.9.9 click-6.7 gunicorn-19.9.0 itsdangerous-0.24 psycopg2-2.7.5 pyScss-1.3.5 python-dateutil-2.7.3 python-editor-1.0.3 redis-2.10.6 six-1.11.0 webassets-0.12.1
Removing intermediate container a1ed85c399d8
 ---> 6df66c1622e4
Step 7/15 : COPY app app
 ---> 5b63bee4af0d
Step 8/15 : COPY migrations migrations
 ---> 7e00415d37d2
Step 9/15 : COPY config.py postings.py deploy.sh ./
 ---> 11a52fb30df5
Step 10/15 : RUN chmod +x deploy.sh
 ---> Running in 6186f837f47c
Removing intermediate container 6186f837f47c
 ---> 3eecea69e79c
Step 11/15 : ENV FLASK_APP postings.py
 ---> Running in fbe87a6a99e0
Removing intermediate container fbe87a6a99e0
 ---> abfbdae1295c
Step 12/15 : EXPOSE 5000
 ---> Running in b9f4d7f846be
Removing intermediate container b9f4d7f846be
 ---> 7665ab1cd20c
Step 13/15 : RUN chown -R service-worker:service-worker ./
 ---> Running in cdb40bee9ab1
Removing intermediate container cdb40bee9ab1
 ---> 5e9bc06d9c59
Step 14/15 : USER service-worker
 ---> Running in 45b198d56f93
Removing intermediate container 45b198d56f93
 ---> 05f8a69321da
Step 15/15 : CMD ["./deploy.sh"]
 ---> Running in 88a42cf47a79
Removing intermediate container 88a42cf47a79
 ---> 93c8938c2923
Successfully built 93c8938c2923
Successfully tagged fast-stream-postings_web:latest
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating fast-stream-postings_redis_1 ... done
Creating fast-stream-postings_db_1    ... done
Creating fast-stream-postings_web_1   ... done
Attaching to fast-stream-postings_redis_1, fast-stream-postings_db_1, fast-stream-postings_web_1
redis_1  | 1:C 31 Jul 14:37:11.048 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1  | 1:C 31 Jul 14:37:11.049 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1  | 1:C 31 Jul 14:37:11.049 # 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 31 Jul 14:37:11.052 * Running mode=standalone, port=6379.
redis_1  | 1:M 31 Jul 14:37:11.052 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1  | 1:M 31 Jul 14:37:11.052 # Server initialized
redis_1  | 1:M 31 Jul 14:37:11.052 # 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.
redis_1  | 1:M 31 Jul 14:37:11.053 * Ready to accept connections
db_1     | The files belonging to this database system will be owned by user "postgres".
db_1     | This user must also own the server process.
db_1     |
db_1     | The database cluster will be initialized with locale "en_US.utf8".
db_1     | The default database encoding has accordingly been set to "UTF8".
db_1     | The default text search configuration will be set to "english".
db_1     |
db_1     | Data page checksums are disabled.
db_1     |
db_1     | fixing permissions on existing directory /var/lib/postgresql/data ... ok
db_1     | creating subdirectories ... ok
db_1     | selecting default max_connections ... 100
db_1     | selecting default shared_buffers ... 128MB
db_1     | selecting dynamic shared memory implementation ... posix
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
db_1     | creating configuration files ... ok
db_1     | running bootstrap script ... ok
db_1     | performing post-bootstrap initialization ... ok
fast-stream-postings_web_1 exited with code 1
db_1     | syncing data to disk ... ok
db_1     |
db_1     | Success. You can now start the database server using:
db_1     |
db_1     |     pg_ctl -D /var/lib/postgresql/data -l logfile start
db_1     |
db_1     |
db_1     | WARNING: enabling "trust" authentication for local connections
db_1     | You can change this by editing pg_hba.conf or using the option -A, or
db_1     | --auth-local and --auth-host, the next time you run initdb.
db_1     | waiting for server to start....2018-07-31 14:37:20.369 UTC [39] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1     | 2018-07-31 14:37:20.495 UTC [40] LOG:  database system was shut down at 2018-07-31 14:37:17 UTC
db_1     | 2018-07-31 14:37:20.529 UTC [39] LOG:  database system is ready to accept connections
db_1     |  done
db_1     | server started
db_1     | ALTER ROLE
db_1     |
db_1     |
db_1     | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
db_1     |
db_1     | 2018-07-31 14:37:20.851 UTC [39] LOG:  received fast shutdown request
db_1     | waiting for server to shut down....2018-07-31 14:37:20.883 UTC [39] LOG:  aborting any active transactions
db_1     | 2018-07-31 14:37:20.890 UTC [39] LOG:  worker process: logical replication launcher (PID 46) exited with exit code 1
db_1     | 2018-07-31 14:37:20.894 UTC [41] LOG:  shutting down
db_1     | 2018-07-31 14:37:21.365 UTC [39] LOG:  database system is shut down
db_1     |  done
db_1     | server stopped
db_1     |
db_1     | PostgreSQL init process complete; ready for start up.
db_1     |
db_1     | 2018-07-31 14:37:21.508 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1     | 2018-07-31 14:37:21.508 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1     | 2018-07-31 14:37:21.575 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1     | 2018-07-31 14:37:21.777 UTC [57] LOG:  database system was shut down at 2018-07-31 14:37:21 UTC
db_1     | 2018-07-31 14:37:21.813 UTC [1] LOG:  database system is ready to accept connections
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
fast-stream-postings_web_1 exited with code 1
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
fast-stream-postings_web_1 exited with code 1
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
web_1    | standard_init_linux.go:190: exec user process caused "no such file or directory"
fast-stream-postings_web_1 exited with code 1

this cycle and exit code repeated endless untill stopped - at about 30 minutes / about 60 cycles?

@jonodrew
Copy link
Owner

jonodrew commented Aug 1, 2018

Research suggests that this is due to Windows git being a bit peculiar.

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

Successfully merging a pull request may close this issue.

2 participants