SpeciesFileGroup / install_taxonworks

Instructions for installing and running TaxonWorks
6 stars 7 forks source link

Webpacker can't find application.js in /app/public/packs/manifest.json #16

Closed gdower closed 3 years ago

gdower commented 6 years ago

Hello,

I'm getting a webpacker exception on a new TaxonWorks installation on Ubuntu 18.04.1. I strictly followed the TaxonWorks development quickstart instructions.

docker-compose build completes successfully:

~$ git clone https://github.com/SpeciesFileGroup/taxonworks.git
~$ cd taxonworks/
~/taxonworks$ docker-compose build
db uses an image, skipping
Building app
Step 1/31 : FROM ubuntu:16.04
 ---> 7aa3602ab41e
Step 2/31 : MAINTAINER Matt Yoder
 ---> Using cache
 ---> 18df0966032d
Step 3/31 : ENV LAST_FULL_REBUILD 2017-05-18
 ---> Using cache
 ---> 7dc486cfda6b
Step 4/31 : RUN apt-get update &&     apt-get install -y curl software-properties-common apt-transport-https &&     apt clean &&     rm -rf /var/lip/abpt/lists/* /tmp/* /var/tmp/*
 ---> Using cache
 ---> 52c25d76a5b1
Step 5/31 : RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
 ---> Using cache
 ---> acc2d2b3b99a
Step 6/31 : RUN apt-get update &&     apt-get install -y locales                        git gcc build-essential                        libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev libcurl4-openssl-dev                        pkg-config imagemagick libmagickcore-dev libmagickwand-dev                        postgresql-client                        libpq-dev libproj-dev libgeos-dev libgeos++-dev                        tesseract-ocr                        cmake                        nodejs &&     apt clean &&     curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.1.0 &&    rm -rf /var/lip/abpt/lists/* /tmp/* /var/tmp/*
 ---> Using cache
 ---> 959c5a4af985
Step 7/31 : RUN git clone git://github.com/rbenv/rbenv.git /usr/local/rbenv &&  git clone git://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build &&  git clone git://github.com/jf/rbenv-gemset.git /usr/local/rbenv/plugins/rbenv-gemset &&  /usr/local/rbenv/plugins/ruby-build/install.sh
 ---> Using cache
 ---> dc079e8b2fff
Step 8/31 : ENV PATH /usr/local/rbenv/bin:$PATH
 ---> Using cache
 ---> 90e5a8f1f6e0
Step 9/31 : ENV RBENV_ROOT /usr/local/rbenv
 ---> Using cache
 ---> c1f22abe7a0f
Step 10/31 : RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh &&  echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /etc/profile.d/rbenv.sh &&  echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
 ---> Using cache
 ---> 10c9488dff57
Step 11/31 : RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /root/.bashrc &&  echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /root/.bashrc &&  echo 'eval "$(rbenv init -)"' >> /root/.bashrc
 ---> Using cache
 ---> 7c4a991c1677
Step 12/31 : ENV CONFIGURE_OPTS --disable-install-doc
 ---> Using cache
 ---> f041a05a9c44
Step 13/31 : ENV PATH /usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH
 ---> Using cache
 ---> 7c94fe16ebb2
Step 14/31 : ENV RBENV_VERSION 2.4.4
 ---> Using cache
 ---> 5fa509a41f3d
Step 15/31 : RUN eval "$(rbenv init -)"; rbenv install $RBENV_VERSION &&  eval "$(rbenv init -)"; rbenv global $RBENV_VERSION &&  eval "$(rbenv init -)"; gem update --system &&  eval "$(rbenv init -)"; gem install bundler -f && rm -rf /tmp/*
 ---> Using cache
 ---> 345fb2461d1b
Step 16/31 : RUN npm rebuild node-sass
 ---> Using cache
 ---> 1ed15a7eebe3
Step 17/31 : RUN locale-gen en_US.UTF-8
 ---> Using cache
 ---> fbf178d5a246
Step 18/31 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> 9a69a9195884
Step 19/31 : ENV LANGUAGE en_US:en
 ---> Using cache
 ---> b00bb6495172
Step 20/31 : ENV LC_ALL en_US.UTF-8
 ---> Using cache
 ---> 72739c317ee8
Step 21/31 : RUN echo 'gem: --no-rdoc --no-ri >> "$HOME/.gemrc"'
 ---> Using cache
 ---> 4609fc30424d
Step 22/31 : ENV GEM_HOME /usr/local/bundle
 ---> Using cache
 ---> 201f3397f4a3
Step 23/31 : ENV PATH /root/.yarn/bin:$PATH
 ---> Using cache
 ---> f48ecf7a706e
Step 24/31 : ENV PATH $GEM_HOME/bin:$PATH
 ---> Using cache
 ---> 01fab681ba87
Step 25/31 : ENV BUNDLE_APP_CONFIG $GEM_HOME
 ---> Using cache
 ---> 569aff9b87a8
Step 26/31 : RUN gem install bundler &&     bundle config --global path "$GEM_HOME" &&     bundle config --global bin "$GEM_HOME/bin" &&     mkdir /app
 ---> Using cache
 ---> e7d9947882f1
Step 27/31 : WORKDIR /app
 ---> Using cache
 ---> 77a2e471e50f
Step 28/31 : COPY Gemfile /app
 ---> Using cache
 ---> 4c1477ff9dcf
Step 29/31 : COPY Gemfile.lock /app
 ---> Using cache
 ---> c47f39ac4383
Step 30/31 : RUN bundle install
 ---> Using cache
 ---> c6489636e5cb
Step 31/31 : CMD ["exe/docker_compose_start.sh"]
 ---> Using cache
 ---> 9921894d942c
Successfully built 9921894d942c
Successfully tagged taxonworks_app:latest
Building webpack
Step 1/31 : FROM ubuntu:16.04
 ---> 7aa3602ab41e
Step 2/31 : MAINTAINER Matt Yoder
 ---> Using cache
 ---> 18df0966032d
Step 3/31 : ENV LAST_FULL_REBUILD 2017-05-18
 ---> Using cache
 ---> 7dc486cfda6b
Step 4/31 : RUN apt-get update &&     apt-get install -y curl software-properties-common apt-transport-https &&     apt clean &&     rm -rf /var/lip/abpt/lists/* /tmp/* /var/tmp/*
 ---> Using cache
 ---> 52c25d76a5b1
Step 5/31 : RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
 ---> Using cache
 ---> acc2d2b3b99a
Step 6/31 : RUN apt-get update &&     apt-get install -y locales                        git gcc build-essential                        libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev libcurl4-openssl-dev                        pkg-config imagemagick libmagickcore-dev libmagickwand-dev                        postgresql-client                        libpq-dev libproj-dev libgeos-dev libgeos++-dev                        tesseract-ocr                        cmake                        nodejs &&     apt clean &&     curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.1.0 &&    rm -rf /var/lip/abpt/lists/* /tmp/* /var/tmp/*
 ---> Using cache
 ---> 959c5a4af985
Step 7/31 : RUN git clone git://github.com/rbenv/rbenv.git /usr/local/rbenv &&  git clone git://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build &&  git clone git://github.com/jf/rbenv-gemset.git /usr/local/rbenv/plugins/rbenv-gemset &&  /usr/local/rbenv/plugins/ruby-build/install.sh
 ---> Using cache
 ---> dc079e8b2fff
Step 8/31 : ENV PATH /usr/local/rbenv/bin:$PATH
 ---> Using cache
 ---> 90e5a8f1f6e0
Step 9/31 : ENV RBENV_ROOT /usr/local/rbenv
 ---> Using cache
 ---> c1f22abe7a0f
Step 10/31 : RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh &&  echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /etc/profile.d/rbenv.sh &&  echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh
 ---> Using cache
 ---> 10c9488dff57
Step 11/31 : RUN echo 'export RBENV_ROOT=/usr/local/rbenv' >> /root/.bashrc &&  echo 'export PATH=/usr/local/rbenv/bin:$PATH' >> /root/.bashrc &&  echo 'eval "$(rbenv init -)"' >> /root/.bashrc
 ---> Using cache
 ---> 7c4a991c1677
Step 12/31 : ENV CONFIGURE_OPTS --disable-install-doc
 ---> Using cache
 ---> f041a05a9c44
Step 13/31 : ENV PATH /usr/local/rbenv/bin:/usr/local/rbenv/shims:$PATH
 ---> Using cache
 ---> 7c94fe16ebb2
Step 14/31 : ENV RBENV_VERSION 2.4.4
 ---> Using cache
 ---> 5fa509a41f3d
Step 15/31 : RUN eval "$(rbenv init -)"; rbenv install $RBENV_VERSION &&  eval "$(rbenv init -)"; rbenv global $RBENV_VERSION &&  eval "$(rbenv init -)"; gem update --system &&  eval "$(rbenv init -)"; gem install bundler -f && rm -rf /tmp/*
 ---> Using cache
 ---> 345fb2461d1b
Step 16/31 : RUN npm rebuild node-sass
 ---> Using cache
 ---> 1ed15a7eebe3
Step 17/31 : RUN locale-gen en_US.UTF-8
 ---> Using cache
 ---> fbf178d5a246
Step 18/31 : ENV LANG en_US.UTF-8
 ---> Using cache
 ---> 9a69a9195884
Step 19/31 : ENV LANGUAGE en_US:en
 ---> Using cache
 ---> b00bb6495172
Step 20/31 : ENV LC_ALL en_US.UTF-8
 ---> Using cache
 ---> 72739c317ee8
Step 21/31 : RUN echo 'gem: --no-rdoc --no-ri >> "$HOME/.gemrc"'
 ---> Using cache
 ---> 4609fc30424d
Step 22/31 : ENV GEM_HOME /usr/local/bundle
 ---> Using cache
 ---> 201f3397f4a3
Step 23/31 : ENV PATH /root/.yarn/bin:$PATH
 ---> Using cache
 ---> f48ecf7a706e
Step 24/31 : ENV PATH $GEM_HOME/bin:$PATH
 ---> Using cache
 ---> 01fab681ba87
Step 25/31 : ENV BUNDLE_APP_CONFIG $GEM_HOME
 ---> Using cache
 ---> 569aff9b87a8
Step 26/31 : RUN gem install bundler &&     bundle config --global path "$GEM_HOME" &&     bundle config --global bin "$GEM_HOME/bin" &&     mkdir /app
 ---> Using cache
 ---> e7d9947882f1
Step 27/31 : WORKDIR /app
 ---> Using cache
 ---> 77a2e471e50f
Step 28/31 : COPY Gemfile /app
 ---> Using cache
 ---> 4c1477ff9dcf
Step 29/31 : COPY Gemfile.lock /app
 ---> Using cache
 ---> c47f39ac4383
Step 30/31 : RUN bundle install
 ---> Using cache
 ---> c6489636e5cb
Step 31/31 : CMD ["exe/docker_compose_start.sh"]
 ---> Using cache
 ---> 9921894d942c
Successfully built 9921894d942c
Successfully tagged taxonworks_webpack:latest

On docker-compose up, taxonworks_webpack_1 exits with code 1:

~/taxonworks$ docker-compose up
Starting taxonworks_webpack_1 ... 
Starting taxonworks_webpack_1
Starting taxonworks_db_1 ... 
Starting taxonworks_db_1 ... done
Starting taxonworks_app_1 ... 
Starting taxonworks_webpack_1 ... done
Attaching to taxonworks_db_1, taxonworks_app_1, taxonworks_webpack_1
db_1       | LOG:  database system was interrupted; last known up at 2018-08-10 17:57:49 UTC
db_1       | LOG:  database system was not properly shut down; automatic recovery in progress
db_1       | LOG:  invalid record length at 0/4693750
db_1       | LOG:  redo is not required
db_1       | LOG:  MultiXact member wraparound protections are now enabled
db_1       | LOG:  autovacuum launcher started
db_1       | LOG:  database system is ready to accept connections
webpack_1  | yarn install v1.1.0
webpack_1  | warning You are using Node "7.10.1" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"
webpack_1  | info No lockfile found.
webpack_1  | [1/4] Resolving packages...
webpack_1  | warning postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
webpack_1  | warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
app_1      | 
app_1      |  Copying config/database.yml 
app_1      | psql: could not connect to server: No such file or directory
app_1      |    Is the server running locally and accepting
app_1      |    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
app_1      | 
app_1      | 
app_1      |   !!!!!!!!!! Building a new taxonworks_development database !!!!!!!!!! 
app_1      | 
webpack_1  | warning babel-preset-es2015@6.24.1: 🙌
webpack_1  | warning nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
app_1      |  
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
db_1       | ERROR:  database "taxonworks_development" already exists
db_1       | STATEMENT:  CREATE DATABASE "taxonworks_development" ENCODING = 'utf8'
app_1      | Database 'taxonworks_development' already exists
db_1       | ERROR:  database "taxonworks_test" already exists
db_1       | STATEMENT:  CREATE DATABASE "taxonworks_test" ENCODING = 'utf8'
app_1      | Database 'taxonworks_test' already exists
app_1      | 
app_1      | 
app_1      |   Starting migration process 
app_1      | 
app_1      | 
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
webpack_1  | [2/4] Fetching packages...
webpack_1  | error mini-css-extract-plugin@0.4.1: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0".
webpack_1  | error Found incompatible module
webpack_1  | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
app_1      | Done migration successfully
taxonworks_webpack_1 exited with code 1
app_1      | 
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
app_1      | => Booting WEBrick
app_1      | => Rails 5.1.6 application starting in development on http://0.0.0.0:3000
app_1      | => Run `rails server -h` for more startup options
app_1      | [2018-08-14 18:38:09] INFO  WEBrick 1.3.1
app_1      | [2018-08-14 18:38:09] INFO  ruby 2.4.4 (2018-03-28) [x86_64-linux]
app_1      | [2018-08-14 18:38:09] INFO  WEBrick::HTTPServer#start: pid=616 port=3000
app_1      | Started GET "/" for 172.19.0.1 at 2018-08-14 18:39:01 +0000
app_1      | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
app_1      |    (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
app_1      | Processing by DashboardController#index as HTML
app_1      |   User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      | Redirected to http://localhost:3000/signin
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      | Completed 301 Moved Permanently in 13ms (ActiveRecord: 2.4ms)
app_1      | 
app_1      | 
app_1      | 172.19.0.1 - - [14/Aug/2018:18:39:01 UTC] "GET / HTTP/1.1" 301 94
app_1      | - -> /
app_1      | Started GET "/signin" for 172.19.0.1 at 2018-08-14 18:39:01 +0000
app_1      | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
app_1      | Processing by SessionsController#new as HTML
app_1      |   User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   Rendering sessions/new.html.erb within layouts/application
app_1      |   Rendered sessions/new.html.erb within layouts/application (5.5ms)
app_1      | [Webpacker] Compiling…
app_1      | [Webpacker] Compilation failed:
app_1      | 
app_1      | /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:11:in `exec': No such file or directory - /app/node_modules/.bin/webpack (Errno::ENOENT)
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:11:in `block in run'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:10:in `chdir'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:10:in `run'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/runner.rb:6:in `run'
app_1      |    from ./bin/webpack:15:in `<main>'
app_1      | 
app_1      | Completed 500 Internal Server Error in 12408ms (ActiveRecord: 0.2ms)
app_1      | 
app_1      | 
app_1      |   
app_1      | ActionView::Template::Error (Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
app_1      | 1. You want to set webpacker.yml value of compile to true for your environment
app_1      |    unless you are using the `webpack -w` or the webpack-dev-server.
app_1      | 2. webpack has not yet re-run to reflect updates.
app_1      | 3. You have misconfigured Webpacker's config/webpacker.yml file.
app_1      | 4. Your webpack configuration is not creating a manifest.
app_1      | Your manifest contains:
app_1      | {
app_1      | }
app_1      | ):
app_1      |     14:     <%= stylesheet_link_tag "application", media: "all", "data-turbolink
app_1      |     15:     <%= javascript_include_tag "application", "data-turbolinks-track" =>
app_1      |     16:     <%= javascript_include_tag "separated_application", "data-turbolinks
app_1      |     17:     <%= javascript_pack_tag "application" %>
app_1      |     18:     <%= stylesheet_pack_tag "application" %>
app_1      |     19:     <%= csrf_meta_tags %>
app_1      |     20: 
app_1      |   
app_1      | app/views/layouts/application.html.erb:17:in `_app_views_layouts_application_htm
app_1      | 172.19.0.1 - - [14/Aug/2018:18:39:01 UTC] "GET /signin HTTP/1.1" 500 120850
app_1      | - -> /signin
app_1      | 172.19.0.1 - - [14/Aug/2018:18:39:14 UTC] "GET /favicon.ico HTTP/1.1" 200 0
app_1      | - -> /favicon.ico

Heres the error raised on 127.0.0.1:3000:

Showing /app/app/views/layouts/application.html.erb where line #17 raised:

Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}

There is no manifest.json file in the taxonworks directory:

~/taxonworks$ find | grep manifest.json
~/taxonworks$

Here's the full trace from 127.0.0.1:3000:

webpacker (4.0.0.pre.pre.2) lib/webpacker/manifest.rb:44:in `handle_missing_entry'
webpacker (4.0.0.pre.pre.2) lib/webpacker/manifest.rb:27:in `lookup!'
webpacker (4.0.0.pre.pre.2) lib/webpacker/helper.rb:86:in `block in sources_from_pack_manifest'
webpacker (4.0.0.pre.pre.2) lib/webpacker/helper.rb:86:in `map'
webpacker (4.0.0.pre.pre.2) lib/webpacker/helper.rb:86:in `sources_from_pack_manifest'
webpacker (4.0.0.pre.pre.2) lib/webpacker/helper.rb:55:in `javascript_pack_tag'
app/views/layouts/application.html.erb:17:in `_app_views_layouts_application_html_erb___3881537989128958983_47060071898540'
actionview (5.1.6) lib/action_view/template.rb:157:in `block in render'
activesupport (5.1.6) lib/active_support/notifications.rb:168:in `instrument'
actionview (5.1.6) lib/action_view/template.rb:352:in `instrument_render_template'
actionview (5.1.6) lib/action_view/template.rb:155:in `render'
actionview (5.1.6) lib/action_view/renderer/template_renderer.rb:64:in `render_with_layout'
actionview (5.1.6) lib/action_view/renderer/template_renderer.rb:50:in `render_template'
actionview (5.1.6) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (5.1.6) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (5.1.6) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (5.1.6) lib/action_view/rendering.rb:103:in `_render_template'
actionpack (5.1.6) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (5.1.6) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (5.1.6) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
actionpack (5.1.6) lib/action_controller/metal/renderers.rb:141:in `render_to_body'
actionpack (5.1.6) lib/abstract_controller/rendering.rb:24:in `render'
actionpack (5.1.6) lib/action_controller/metal/rendering.rb:36:in `render'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (5.1.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/usr/local/rbenv/versions/2.4.4/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
activesupport (5.1.6) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:29:in `cleanup_view_runtime'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:43:in `render'
actionpack (5.1.6) lib/action_controller/metal/implicit_render.rb:33:in `default_render'
actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
actionpack (5.1.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
actionpack (5.1.6) lib/abstract_controller/base.rb:186:in `process_action'
actionpack (5.1.6) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.1.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (5.1.6) lib/active_support/callbacks.rb:131:in `run_callbacks'
actionpack (5.1.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (5.1.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (5.1.6) lib/active_support/notifications.rb:166:in `block in instrument'
activesupport (5.1.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.1.6) lib/active_support/notifications.rb:166:in `instrument'
actionpack (5.1.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (5.1.6) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
activerecord (5.1.6) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
actionpack (5.1.6) lib/abstract_controller/base.rb:124:in `process'
actionview (5.1.6) lib/action_view/rendering.rb:30:in `process'
actionpack (5.1.6) lib/action_controller/metal.rb:189:in `dispatch'
actionpack (5.1.6) lib/action_controller/metal.rb:253:in `dispatch'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:31:in `serve'
actionpack (5.1.6) lib/action_dispatch/journey/router.rb:50:in `block in serve'
actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `each'
actionpack (5.1.6) lib/action_dispatch/journey/router.rb:33:in `serve'
actionpack (5.1.6) lib/action_dispatch/routing/route_set.rb:844:in `call'
rack (2.0.5) lib/rack/etag.rb:25:in `call'
rack (2.0.5) lib/rack/conditional_get.rb:25:in `call'
rack (2.0.5) lib/rack/head.rb:12:in `call'
rack (2.0.5) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.5) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
activerecord (5.1.6) lib/active_record/migration.rb:556:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
activesupport (5.1.6) lib/active_support/callbacks.rb:97:in `run_callbacks'
actionpack (5.1.6) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
better_errors (2.4.0) lib/better_errors/middleware.rb:59:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
web-console (3.6.2) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.6.2) lib/web_console/middleware.rb:22:in `block in call'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `catch'
web-console (3.6.2) lib/web_console/middleware.rb:20:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.1.6) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.1.6) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.1.6) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.1.6) lib/rails/rack/logger.rb:24:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
request_store (1.4.1) lib/request_store/middleware.rb:19:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/request_id.rb:25:in `call'
rack (2.0.5) lib/rack/method_override.rb:22:in `call'
rack (2.0.5) lib/rack/runtime.rb:22:in `call'
activesupport (5.1.6) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.1.6) lib/action_dispatch/middleware/static.rb:125:in `call'
rack (2.0.5) lib/rack/sendfile.rb:111:in `call'
rack-cors (1.0.2) lib/rack/cors.rb:97:in `call'
webpacker (4.0.0.pre.pre.2) lib/webpacker/dev_server_proxy.rb:18:in `perform_request'
rack-proxy (0.6.4) lib/rack/proxy.rb:57:in `call'
railties (5.1.6) lib/rails/engine.rb:522:in `call'
rack (2.0.5) lib/rack/handler/webrick.rb:86:in `service'
/usr/local/rbenv/versions/2.4.4/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
/usr/local/rbenv/versions/2.4.4/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
/usr/local/rbenv/versions/2.4.4/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'

I get a similar error on a clean install of Ubuntu 16.04.5 Server:

~/taxonworks$ docker-compose up
Creating network "taxonworks_default" with the default driver
Creating taxonworks_db_1
Creating taxonworks_webpack_1
Creating taxonworks_app_1
Attaching to taxonworks_db_1, taxonworks_webpack_1, taxonworks_app_1
db_1       | LOG:  database system was shut down at 2018-08-14 20:12:51 UTC
db_1       | LOG:  MultiXact member wraparound protections are now enabled
db_1       | LOG:  database system is ready to accept connections
db_1       | LOG:  autovacuum launcher started
webpack_1  | yarn install v1.1.0
webpack_1  | warning You are using Node "7.10.1" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"
webpack_1  | info No lockfile found.
webpack_1  | [1/4] Resolving packages...
webpack_1  | warning postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/
webpack_1  | warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
webpack_1  | warning nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.
app_1      | 
app_1      |  Found config/database.yml 
app_1      | psql: could not connect to server: No such file or directory
app_1      |    Is the server running locally and accepting
app_1      |    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
app_1      | 
app_1      | 
app_1      |   !!!!!!!!!! Building a new taxonworks_development database !!!!!!!!!! 
app_1      | 
webpack_1  | warning babel-preset-es2015@6.24.1: 🙌
app_1      |  
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
db_1       | ERROR:  database "taxonworks_development" already exists
db_1       | STATEMENT:  CREATE DATABASE "taxonworks_development" ENCODING = 'utf8'
app_1      | Database 'taxonworks_development' already exists
db_1       | ERROR:  database "taxonworks_test" already exists
db_1       | STATEMENT:  CREATE DATABASE "taxonworks_test" ENCODING = 'utf8'
app_1      | Database 'taxonworks_test' already exists
app_1      | 
app_1      | 
app_1      |   Starting migration process 
app_1      | 
webpack_1  | [2/4] Fetching packages...
app_1      | 
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
app_1      | Done migration successfully
app_1      | 
app_1      | 
app_1      |  !! User email not set in ~/.ref2bibtex_user_email, .env, or ENV, you're not being a polite user! (https://github.com/CrossRef/rest-api-doc)!! 
app_1      | 
webpack_1  | error mini-css-extract-plugin@0.4.1: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0".
webpack_1  | error Found incompatible module
webpack_1  | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
app_1      | => Booting WEBrick
app_1      | => Rails 5.1.6 application starting in development on http://0.0.0.0:3000
app_1      | => Run `rails server -h` for more startup options
taxonworks_webpack_1 exited with code 1
app_1      | [2018-08-14 20:13:38] INFO  WEBrick 1.3.1
app_1      | [2018-08-14 20:13:38] INFO  ruby 2.4.4 (2018-03-28) [x86_64-linux]
app_1      | [2018-08-14 20:13:38] INFO  WEBrick::HTTPServer#start: pid=612 port=3000
app_1      | Started GET "/" for 172.27.33.1 at 2018-08-14 20:13:39 +0000
app_1      | Cannot render console from 172.27.33.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
app_1      |    (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
app_1      | Processing by DashboardController#index as HTML
app_1      |   User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      | Redirected to http://172.27.33.104:3000/signin
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      | Completed 301 Moved Permanently in 11ms (ActiveRecord: 1.8ms)
app_1      | 
app_1      | 
app_1      | 172.27.33.1 - - [14/Aug/2018:20:13:39 UTC] "GET / HTTP/1.1" 301 98
app_1      | - -> /
app_1      | Started GET "/signin" for 172.27.33.1 at 2018-08-14 20:13:39 +0000
app_1      | Cannot render console from 172.27.33.1! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
app_1      | Processing by SessionsController#new as HTML
app_1      |   User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."remember_token" = $1 LIMIT $2  [["remember_token", "da39a3ee5e6b4b0d3255bfef95601890afd80709"], ["LIMIT", 1]]
app_1      |   Rendering sessions/new.html.erb within layouts/application
app_1      |   Rendered sessions/new.html.erb within layouts/application (3.6ms)
app_1      | [Webpacker] Compiling���
app_1      | [Webpacker] Compilation failed:
app_1      | 
app_1      | /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:11:in `exec': No such file or directory - /app/node_modules/.bin/webpack (Errno::ENOENT)
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:11:in `block in run'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:10:in `chdir'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/webpack_runner.rb:10:in `run'
app_1      |    from /usr/local/bundle/gems/webpacker-4.0.0.pre.pre.2/lib/webpacker/runner.rb:6:in `run'
app_1      |    from ./bin/webpack:15:in `<main>'
app_1      | 
app_1      | Completed 500 Internal Server Error in 873ms (ActiveRecord: 0.2ms)
app_1      | 
app_1      | 
app_1      |   
app_1      | ActionView::Template::Error (Webpacker can't find application.js in /app/public/packs/manifest.json. Possible causes:
app_1      | 1. You want to set webpacker.yml value of compile to true for your environment
app_1      |    unless you are using the `webpack -w` or the webpack-dev-server.
app_1      | 2. webpack has not yet re-run to reflect updates.
app_1      | 3. You have misconfigured Webpacker's config/webpacker.yml file.
app_1      | 4. Your webpack configuration is not creating a manifest.
app_1      | Your manifest contains:
app_1      | {
app_1      | }
app_1      | ):
app_1      |     14:     <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
app_1      |     15:     <%= javascript_include_tag "application", "data-turbolinks-track" => 'reload' %>
app_1      |     16:     <%= javascript_include_tag "separated_application", "data-turbolinks-track" => 'reload' %>
app_1      |     17:     <%= javascript_pack_tag "application" %>
app_1      |     18:     <%= stylesheet_pack_tag "application" %>
app_1      |     19:     <%= csrf_meta_tags %>
app_1      |     20: 
app_1      |   
app_1      | app/views/layouts/application.html.erb:17:in `_app_views_layouts_application_html_erb__546539250600043961_47341142612140'
app_1      | 172.27.33.1 - - [14/Aug/2018:20:13:39 UTC] "GET /signin HTTP/1.1" 500 120852
app_1      | - -> /signin
app_1      | 172.27.33.1 - - [14/Aug/2018:20:13:40 UTC] "GET /favicon.ico HTTP/1.1" 200 0
app_1      | - -> /favicon.ico

Please let me know if I can provide any other logs or information.

Thanks!

Geoff

mjy commented 6 years ago

@gdower Thanks for exemplary formated bug report.

Can you inject these steps after the clone (first) line in the instructions and let us know?

cd taxonworks
npm install
mjy commented 6 years ago

Pushed the yarn/npm change. Going to leave open to think about how to ensure npm is installed.

LocoDelAssembly commented 3 years ago

@gdower I guess this is solved by know. Please reopen if not.