install failed on macOS Big Sur M1 Chip
linktoming opened this issue · 9 comments
Environment
- OS: macOS Big Sur 11.5.2
- Macbook Pro 2020 M1 Chip
- Ruby 3.x via RVM, with Rail 6.x (based on Spree's gem file)
- Node 14 via NVM
- Docker Desktop v3.6.0
Steps I did
- Clone this repo
- Run
bin/setup
as suggested with the following output
mingming@Mingmings-MacBook-Air spree_starter % bin/setup
Pulling postgres ... done
Pulling redis ... done
Pulling web ... done
Pulling worker ... done
Building web
[+] Building 2.4s (13/13) FINISHED
=> [internal] load build definition from Dockerfile.development 0.0s
=> => transferring dockerfile: 49B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.0.2 1.9s
=> [1/8] FROM docker.io/library/ruby:3.0.2@sha256:8849efdb1f006c5d7b26980f3aeb15f00fa2b5428cfbef8761aef5fc87491b89 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 62B 0.0s
=> CACHED [2/8] RUN apt-get update -yq && apt-get upgrade -yq && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat & 0.0s
=> CACHED [3/8] RUN apt-get clean -qy && rm -rf /var/lib/apt/lists/* 0.0s
=> CACHED [4/8] RUN mkdir /app 0.0s
=> CACHED [5/8] WORKDIR /app 0.0s
=> CACHED [6/8] RUN gem install bundler -v 2.2.15 0.0s
=> CACHED [7/8] COPY Gemfile Gemfile.lock ./ 0.0s
=> CACHED [8/8] RUN bundle install 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:dd7048813d4176a56c19ee969a18a7c9696b35d5d021f3c9168943e762549aa2 0.0s
=> => naming to docker.io/library/spree_starter_web 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
Creating network "spree_starter_default" with the default driver
Creating spree_starter_postgres_1 ... done
Creating spree_starter_redis_1 ... done
Creating spree_starter_web_run ... done
Connection to postgres (172.19.0.3) 5432 port [tcp/postgresql] succeeded!
PostgreSQL is up and running!
The Gemfile's dependencies are satisfied
[Scout] [08/30/21 12:22:23 +0000 6abab5dc2b90 (12)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
Dropped database 'spree_starter_development'
Dropped database 'spree_starter_test'
[Scout] [08/30/21 12:22:52 +0000 6abab5dc2b90 (21)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
Created database 'spree_starter_development'
Created database 'spree_starter_test'
[Scout] [08/30/21 12:23:16 +0000 6abab5dc2b90 (30)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
== 20170201152816 SpreeOneTwo: migrating ======================================
-- data_source_exists?(:spree_addresses)
-> 0.0076s
-- create_table(:spree_activators, {:id=>:integer})
-> 0.0201s
-- create_table(:spree_addresses, {:id=>:integer})
-> 0.0166s
-- add_index(:spree_addresses, [:firstname], {:name=>"index_addresses_on_firstname"})
**-- ... more db migration logs omitted**
== 20210811130800 ChangeIntegerIdColumnsType: migrated (0.0993s) ==============
[Scout] [08/30/21 12:24:17 +0000 6abab5dc2b90 (39)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
Seeds /app/db/seeds/001_spree.rb ...
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/countries.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/default_reimbursement_type.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/roles.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/states.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/store_credit_categories.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/stores.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_core-4.3.0.rc2/db/default/spree/zones.rb
loading ruby /bundle/ruby/3.0.0/gems/spree_auth_devise-4.3.4/db/default/users.rb
Create the admin user (press enter for defaults).
Email [spree@example.com]:
Password [spree123]:
Done!
spree_starter_postgres_1 is up-to-date
spree_starter_redis_1 is up-to-date
Creating spree_starter_worker_1 ... done
Creating spree_starter_web_1 ... done
Attaching to spree_starter_postgres_1, spree_starter_redis_1, spree_starter_worker_1, spree_starter_web_1
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | 2021-08-30 12:21:58.173 UTC [1] LOG: starting PostgreSQL 13.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20210424) 10.3.1 20210424, 64-bit
postgres_1 | 2021-08-30 12:21:58.173 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2021-08-30 12:21:58.173 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2021-08-30 12:21:58.180 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2021-08-30 12:21:58.211 UTC [23] LOG: database system was shut down at 2021-08-30 12:21:32 UTC
postgres_1 | 2021-08-30 12:21:58.226 UTC [1] LOG: database system is ready to accept connections
**postgres_1 | 2021-08-30 12:22:53.760 UTC [36] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:22:55.781 UTC [37] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:22:55.790 UTC [38] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:00.011 UTC [40] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:00.017 UTC [41] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:00.936 UTC [42] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:00.955 UTC [43] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:01.185 UTC [44] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:01.191 UTC [45] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:05.968 UTC [46] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:05.974 UTC [47] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:05.980 UTC [48] FATAL: database "spree_starter_development" does not exist
postgres_1 | 2021-08-30 12:23:05.997 UTC [49] FATAL: database "spree_starter_development" does not exist**
redis_1 | 1:C 30 Aug 2021 12:21:57.873 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 30 Aug 2021 12:21:57.873 # Redis version=6.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 30 Aug 2021 12:21:57.873 # 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 30 Aug 2021 12:21:57.874 * monotonic clock: POSIX clock_gettime
redis_1 | 1:M 30 Aug 2021 12:21:57.875 * Running mode=standalone, port=6379.
redis_1 | 1:M 30 Aug 2021 12:21:57.875 # Server initialized
redis_1 | 1:M 30 Aug 2021 12:21:57.876 * Loading RDB produced by version 6.2.5
redis_1 | 1:M 30 Aug 2021 12:21:57.876 * RDB age 25 seconds
redis_1 | 1:M 30 Aug 2021 12:21:57.876 * RDB memory usage when created 0.77 Mb
redis_1 | 1:M 30 Aug 2021 12:21:57.876 * DB loaded from disk: 0.000 seconds
redis_1 | 1:M 30 Aug 2021 12:21:57.876 * Ready to accept connections
web_1 | => Booting Puma
web_1 | => Rails 6.1.4.1 application starting in development
web_1 | => Run `bin/rails server --help` for more startup options
worker_1 | [Scout] [08/30/21 12:26:01 +0000 c8c4dffd3ddb (1)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
web_1 | [Scout] [08/30/21 12:26:01 +0000 6ccb5fc6591e (1)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
web_1 | [1] Puma starting in cluster mode...
web_1 | [1] * Puma version: 5.4.0 (ruby 3.0.2-p107) ("Super Flight")
web_1 | [1] * Min threads: 5
web_1 | [1] * Max threads: 5
web_1 | [1] * Environment: development
web_1 | [1] * Master PID: 1
web_1 | [1] * Workers: 2
web_1 | [1] * Restarts: (✔) hot (✖) phased
web_1 | [1] * Preloading application
web_1 | [1] * Listening on http://0.0.0.0:3000
web_1 | [1] Use Ctrl-C to stop
web_1 | [1] - Worker 0 (PID: 18) booted in 0.12s, phase: 0
web_1 | [1] - Worker 1 (PID: 19) booted in 0.16s, phase: 0
worker_1 | 2021-08-30T12:26:25.956Z pid=1 tid=5a1 INFO: Booted Rails 6.1.4.1 application in development environment
worker_1 | 2021-08-30T12:26:25.958Z pid=1 tid=5a1 INFO: Running in ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
worker_1 | 2021-08-30T12:26:25.959Z pid=1 tid=5a1 INFO: See LICENSE and the LGPL-3.0 for licensing details.
worker_1 | 2021-08-30T12:26:25.960Z pid=1 tid=5a1 INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
worker_1 | 2021-08-30T12:26:25.961Z pid=1 tid=5a1 INFO: Booting Sidekiq 6.2.2 with redis options {:url=>"redis://redis:6379/0"}
- after step 2, visiting localhost:3000 would not load
web_1 | Started GET "/" for 172.19.0.1 at 2021-08-30 12:26:38 +0000
web_1 | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | (8.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
web_1 | Flipper::Middleware::Memoizer appears to be running twice. Read how to resolve this at https://github.com/jnunemaker/flipper/pull/523
web_1 | Processing by Spree::HomeController#index as HTML
web_1 | Parameters: {"locale"=>nil}
web_1 | Spree::Preference Load (4.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/frontend_configuration/locale"], ["LIMIT", 1]]
web_1 | Spree::Store Load (6.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."created_at" ASC LIMIT $1 [["LIMIT", 1]]
web_1 | Spree::Store Load (2.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = $1 ORDER BY "spree_stores"."created_at" ASC LIMIT $2 [["default", true], ["LIMIT", 1]]
web_1 | Creating scope :for_store. Overwriting existing method Spree::CmsPage.for_store.
web_1 | Spree::CmsPage Load (13.0ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."locale" = $2 AND "spree_cms_pages"."type" = $3 LIMIT $4 [["store_id", 1], ["locale", "en"], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | Spree::CmsPage Load (3.6ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."locale" = $2 AND "spree_cms_pages"."type" = $3 LIMIT $4 [["store_id", 1], ["locale", "en"], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | Spree::CmsPage Load (3.5ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."type" = $2 LIMIT $3 [["store_id", 1], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | Spree::Preference Load (3.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/frontend_configuration/http_cache_enabled"], ["LIMIT", 1]]
web_1 | Spree::Preference Load (5.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/app_configuration/layout"], ["LIMIT", 1]]
web_1 | Rendering layout /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/layouts/spree_application.html.erb
web_1 | Rendering /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/home/index.html.erb within spree/layouts/spree_application
web_1 | ActiveStorage::Attachment Load (5.5ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "Spree::Store"], ["name", "logo"], ["LIMIT", 1]]
web_1 | Spree::Preference Load (2.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/app_configuration/logo"], ["LIMIT", 1]]
redis_1 | 1:M 30 Aug 2021 12:26:58.062 * 100 changes in 300 seconds. Saving...
redis_1 | 1:M 30 Aug 2021 12:26:58.063 * Background saving started by pid 16
redis_1 | 16:C 30 Aug 2021 12:26:58.067 * DB saved on disk
redis_1 | 16:C 30 Aug 2021 12:26:58.068 * RDB: 0 MB of memory used by copy-on-write
redis_1 | 1:M 30 Aug 2021 12:26:58.164 * Background saving terminated with success
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/cms/pages/_edit_mode.html.erb (Duration: 1.0ms | Allocations: 165)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/home/index.html.erb within spree/layouts/spree_application (Duration: 24830.7ms | Allocations: 585779)
web_1 | Creating scope :for_store. Overwriting existing method Spree::Product.for_store.
web_1 | CACHE Spree::CmsPage Load (0.0ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."locale" = $2 AND "spree_cms_pages"."type" = $3 LIMIT $4 [["store_id", 1], ["locale", "en"], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | CACHE Spree::CmsPage Load (0.0ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."locale" = $2 AND "spree_cms_pages"."type" = $3 LIMIT $4 [["store_id", 1], ["locale", "en"], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | CACHE Spree::CmsPage Load (0.0ms) SELECT "spree_cms_pages".* FROM "spree_cms_pages" WHERE "spree_cms_pages"."deleted_at" IS NULL AND "spree_cms_pages"."store_id" = $1 AND "spree_cms_pages"."type" = $2 LIMIT $3 [["store_id", 1], ["type", "Spree::Cms::Pages::Homepage"], ["LIMIT", 1]]
web_1 | ActiveStorage::Attachment Load (3.0ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4 [["record_id", 1], ["record_type", "Spree::Store"], ["name", "favicon_image"], ["LIMIT", 1]]
web_1 | Spree::Preference Load (1.9ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/app_configuration/admin_path"], ["LIMIT", 1]]
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_paths.html.erb (Duration: 11.0ms | Allocations: 1729)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_locale_and_currency.html.erb (Duration: 1.0ms | Allocations: 172)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_head.html.erb (Duration: 6921.6ms | Allocations: 252960)
web_1 | Creating scope :for_store. Overwriting existing method Spree::Menu.for_store.
web_1 | Spree::Menu Load (6.4ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | Spree::Menu Load (2.3ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 ORDER BY "spree_menus"."created_at" ASC LIMIT $3 [["store_id", 1], ["location", "header"], ["LIMIT", 1]]
web_1 | (3.6ms) SELECT MAX("spree_stores"."updated_at") FROM "spree_stores" LEFT OUTER JOIN "spree_countries" ON "spree_countries"."id" = "spree_stores"."default_country_id"
web_1 | CACHE Spree::Menu Load (0.2ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 ORDER BY "spree_menus"."created_at" ASC LIMIT $3 [["store_id", 1], ["location", "header"], ["LIMIT", 1]]
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_main_nav_bar.html.erb (Duration: 21.4ms | Allocations: 5082)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_search.html.erb (Duration: 74.4ms | Allocations: 3383)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_cart.html.erb (Duration: 61.4ms | Allocations: 3229)
web_1 | Spree::Preference Load (2.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/app_configuration/show_store_selector"], ["LIMIT", 1]]
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_internationalization_options.html.erb (Duration: 10.2ms | Allocations: 2082)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_nav_bar.html.erb (Duration: 297.0ms | Allocations: 18304)
web_1 | CACHE Spree::Menu Load (0.1ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "header"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 ORDER BY "spree_menus"."created_at" ASC LIMIT $3 [["store_id", 1], ["location", "header"], ["LIMIT", 1]]
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_mobile_navigation.html.erb (Duration: 28.8ms | Allocations: 4816)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_header.html.erb (Duration: 603.7ms | Allocations: 72464)
web_1 | Spree::Menu Load (2.9ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "footer"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.1ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "footer"], ["locale", "en"], ["LIMIT", 1]]
web_1 | Spree::Menu Load (3.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 ORDER BY "spree_menus"."created_at" ASC LIMIT $3 [["store_id", 1], ["location", "footer"], ["LIMIT", 1]]
web_1 | CACHE (0.0ms) SELECT MAX("spree_stores"."updated_at") FROM "spree_stores" LEFT OUTER JOIN "spree_countries" ON "spree_countries"."id" = "spree_stores"."default_country_id"
web_1 | CACHE Spree::Menu Load (0.0ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "footer"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.1ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 AND "spree_menus"."locale" = $3 ORDER BY "spree_menus"."created_at" ASC LIMIT $4 [["store_id", 1], ["location", "footer"], ["locale", "en"], ["LIMIT", 1]]
web_1 | CACHE Spree::Menu Load (0.1ms) SELECT "spree_menus".* FROM "spree_menus" WHERE "spree_menus"."store_id" = $1 AND "spree_menus"."location" = $2 ORDER BY "spree_menus"."created_at" ASC LIMIT $3 [["store_id", 1], ["location", "footer"], ["LIMIT", 1]]
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_copyright.html.erb (Duration: 53.5ms | Allocations: 2398)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_footer.html.erb (Duration: 157.6ms | Allocations: 15127)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_translations.html.erb (Duration: 61.1ms | Allocations: 2287)
web_1 | Rendered layout /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/layouts/spree_application.html.erb (Duration: 32618.4ms | Allocations: 933607)
web_1 | Completed 200 OK in 33218ms (Views: 32617.0ms | ActiveRecord: 138.7ms | Allocations: 1004412)
web_1 |
web_1 |
web_1 | Started GET "/en/cart_link?currency=USD" for 172.19.0.1 at 2021-08-30 12:27:13 +0000
web_1 | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | Flipper::Middleware::Memoizer appears to be running twice. Read how to resolve this at https://github.com/jnunemaker/flipper/pull/523
web_1 | Processing by Spree::StoreController#cart_link as */*
web_1 | Parameters: {"currency"=>"USD", "locale"=>"en"}
web_1 | Started GET "/en/account_link?currency=USD" for 172.19.0.1 at 2021-08-30 12:27:13 +0000
web_1 | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | Spree::Store Load (19.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."created_at" ASC LIMIT $1 [["LIMIT", 1]]
web_1 | Flipper::Middleware::Memoizer appears to be running twice. Read how to resolve this at https://github.com/jnunemaker/flipper/pull/523
web_1 | Processing by Spree::StoreController#account_link as */*
web_1 | Spree::Store Load (16.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = $1 ORDER BY "spree_stores"."created_at" ASC LIMIT $2 [["default", true], ["LIMIT", 1]]
web_1 | Started GET "/api_tokens" for 172.19.0.1 at 2021-08-30 12:27:13 +0000
web_1 | Parameters: {"currency"=>"USD", "locale"=>"en"}
web_1 | Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | Spree::Order Load (32.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."store_id" = $1 AND "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = $2 AND "spree_orders"."token" = $3 LIMIT $4 [["store_id", 1], ["currency", "USD"], ["token", "fHt5hmCjmWh413Vl6oYAxQ1630324657579"], ["LIMIT", 1]]
web_1 | Spree::Store Load (14.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."created_at" ASC LIMIT $1 [["LIMIT", 1]]
web_1 | Spree::Store Load (15.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = $1 ORDER BY "spree_stores"."created_at" ASC LIMIT $2 [["default", true], ["LIMIT", 1]]
web_1 | (15.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
web_1 | Flipper::Middleware::Memoizer appears to be running twice. Read how to resolve this at https://github.com/jnunemaker/flipper/pull/523
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_link_to_account.html.erb (Duration: 6.4ms | Allocations: 650)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_cart.html.erb (Duration: 167.1ms | Allocations: 9156)
web_1 | Rendered /bundle/ruby/3.0.0/gems/spree_frontend-4.3.0.rc2views/spree/shared/_link_to_cart.html.erb (Duration: 506.0ms | Allocations: 35468)
web_1 | Completed 200 OK in 604ms (Views: 86.4ms | ActiveRecord: 215.9ms | Allocations: 47882)
web_1 |
web_1 |
web_1 | Completed 200 OK in 718ms (Views: 495.4ms | ActiveRecord: 85.3ms | Allocations: 51764)
web_1 |
web_1 |
web_1 | Processing by Spree::StoreController#api_tokens as */*
web_1 | Parameters: {"locale"=>nil}
web_1 | Spree::Preference Load (3.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1 LIMIT $2 [["key", "spree/frontend_configuration/locale"], ["LIMIT", 1]]
web_1 | Spree::Store Load (5.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."created_at" ASC LIMIT $1 [["LIMIT", 1]]
web_1 | Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = $1 ORDER BY "spree_stores"."created_at" ASC LIMIT $2 [["default", true], ["LIMIT", 1]]
web_1 | Spree::Order Load (5.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."store_id" = $1 AND "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = $2 AND "spree_orders"."token" = $3 LIMIT $4 [["store_id", 1], ["currency", "USD"], ["token", "fHt5hmCjmWh413Vl6oYAxQ1630324657579"], ["LIMIT", 1]]
web_1 | Completed 200 OK in 264ms (Views: 1.3ms | ActiveRecord: 50.2ms | Allocations: 72872)
web_1
Runing docker-compose run web rake spree_sample:load
then docker-compose up
didn't help.
The API server is running though, the following command returned API response.
curl --request GET \
--url http://localhost:3000/api/v2/storefront/products \
--header 'Content-Type: application/json'
Run docker-compose run web rake db:create
Run
docker-compose run web rake db:create
Thanks, the output of this command said the DB exists and the problem remains. I suspect it's something related to frontend, as API server could return the response as expected.
mingming@qihans-mbp popinventory2 % docker-compose run web rake db:create
Starting popinventory2_postgres_1 ... done
Starting popinventory2_redis_1 ... done
Creating popinventory2_web_run ... done
[Scout] [08/31/21 00:58:00 +0000 cad8ad8c0444 (1)] INFO : Couldn't find configuration in /app/config/scout_apm.yml for environment: development. Configuration in ENV will still be applied.
Database 'spree_starter_development' already exists
Database 'spree_starter_test' already exists
Running rake assets:precompile
got the *** stack smashing detected ***: terminated
error.
mingming@qihans-mbp popinventory2 % docker-compose run web rake assets:precompile
Creating popinventory2_web_run ... done
*** stack smashing detected ***: terminated
ERROR: 133
Application is up and working, that's a standard message for on the homepage.
Application is up and working, that's a standard message for on the homepage.
I cannot see that standard message ever since. Only showed up once in my installation session seemingly randomly.
This could be a red herring - but it looks like maybe Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
might be the problem? It seems at least possible there's some issue with the docker config and/or some allowlisting in the application.
This could be a red herring - but it looks like maybe
Cannot render console from 172.19.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
might be the problem? It seems at least possible there's some issue with the docker config and/or some allowlisting in the application.
Yes, adding the following to development.rb indeed helped.
config.web_console.whitelisted_ips = '172.18.0.1'
Also added the following to Gemfile but not sure it helped
# only needed for MacOS and Ruby 3.0
gem 'sassc', github: 'sass/sassc-ruby', branch: 'master'