Skip to content

Instantly share code, notes, and snippets.

@danielittlewood0
Created September 25, 2022 09:30
Show Gist options
  • Save danielittlewood0/a6762b0d411124bf6215da8a6573deed to your computer and use it in GitHub Desktop.
Save danielittlewood0/a6762b0d411124bf6215da8a6573deed to your computer and use it in GitHub Desktop.
$ docker-compose up
Starting hellorails_redis_1 ... done
Starting hellorails_css_1 ... done
Starting hellorails_postgres_1 ... done
Starting hellorails_js_1 ... done
Starting hellorails_web_1 ... done
Starting hellorails_cable_1 ... done
Starting hellorails_worker_1 ... done
Attaching to hellorails_postgres_1, hellorails_css_1, hellorails_redis_1, hellorails_js_1, hellorails_cable_1, hellorails_web_1, hellorails_worker_1
yarn run v1.22.19
$ ./run yarn:build
js_1 | ✘ [ERROR] Failed to write to output file: open /app/app/assets/builds/application.js: permission denied
js_1 |
js_1 | ✘ [ERROR] Failed to write to output file: open /app/app/assets/builds/application.js.map: permission denied
js_1 |
js_1 | [watch] build finished, watching for changes...
yarn run v1.22.19
$ ./run yarn:build:css
postgres_1 |
postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1 |
postgres_1 | 2022-09-25 09:34:40.257 UTC [1] LOG: starting PostgreSQL 14.5 (Debian 14.5-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgres_1 | 2022-09-25 09:34:40.294 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres_1 | 2022-09-25 09:34:40.294 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres_1 | 2022-09-25 09:34:40.322 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1 | 2022-09-25 09:34:40.352 UTC [28] LOG: database system was shut down at 2022-09-25 09:33:44 UTC
postgres_1 | 2022-09-25 09:34:40.366 UTC [1] LOG: database system is ready to accept connections
redis_1 | 1:C 25 Sep 2022 09:34:40.397 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1 | 1:C 25 Sep 2022 09:34:40.397 # Redis version=7.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1 | 1:C 25 Sep 2022 09:34:40.397 # 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 25 Sep 2022 09:34:40.397 * monotonic clock: POSIX clock_gettime
redis_1 | 1:M 25 Sep 2022 09:34:40.398 * Running mode=standalone, port=6379.
redis_1 | 1:M 25 Sep 2022 09:34:40.398 # Server initialized
redis_1 | 1:M 25 Sep 2022 09:34:40.398 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * Loading RDB produced by version 7.0.4
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * RDB age 56 seconds
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * RDB memory usage when created 0.82 Mb
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * Done loading RDB, keys loaded: 0, keys expired: 0.
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * DB loaded from disk: 0.000 seconds
redis_1 | 1:M 25 Sep 2022 09:34:40.399 * Ready to accept connections
web_1 | cp: cannot create regular file '/app/public/502.html': Permission denied
web_1 | cp: cannot create regular file '/app/public/android-chrome-192x192.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/android-chrome-512x512.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/apple-touch-icon.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/browserconfig.xml': Permission denied
web_1 | cp: cannot create regular file '/app/public/favicon-16x16.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/favicon-32x32.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/favicon.ico': Permission denied
web_1 | cp: cannot create regular file '/app/public/maintenance.html': Permission denied
web_1 | cp: cannot create regular file '/app/public/mstile-150x150.png': Permission denied
web_1 | cp: cannot create regular file '/app/public/robots.txt': Permission denied
web_1 | cp: cannot create regular file '/app/public/safari-pinned-tab.svg': Permission denied
web_1 | cp: cannot create regular file '/app/public/site.webmanifest': Permission denied
cable_1 | [1] Puma starting in cluster mode...
cable_1 | [1] * Puma version: 5.6.4 (ruby 3.1.2-p20) ("Birdie's Version")
cable_1 | [1] * Min threads: 1
cable_1 | [1] * Max threads: 1
cable_1 | [1] * Environment: development
cable_1 | [1] * Master PID: 1
cable_1 | [1] * Workers: 1
cable_1 | [1] * Restarts: (✔) hot (✖) phased
cable_1 | [1] * Preloading application
hellorails_web_1 exited with code 1
css_1 |
css_1 | Rebuilding...
css_1 | [Error: EACCES: permission denied, open './app/assets/builds/application.css'] {
css_1 | errno: -13,
css_1 | code: 'EACCES',
css_1 | syscall: 'open',
css_1 | path: './app/assets/builds/application.css'
css_1 | }
cable_1 | `Redis.current=` is deprecated and will be removed in 5.0. (called from: /app/config/initializers/redis.rb:1:in `<main>')
worker_1 | `Redis.current=` is deprecated and will be removed in 5.0. (called from: /app/config/initializers/redis.rb:1:in `<main>')
worker_1 | 2022-09-25T09:34:44.431Z pid=1 tid=2zt INFO: Booting Sidekiq 6.5.4 with Sidekiq::RedisConnection::RedisAdapter options {:url=>"redis://redis:6379/1"}
cable_1 | [1] ! Unable to load application: Errno::EACCES: Permission denied @ dir_s_mkdir - /app/tmp/miniprofiler
cable_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:243:in `mkdir': Permission denied @ dir_s_mkdir - /app/tmp/miniprofiler (Errno::EACCES)
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:243:in `fu_mkdir'
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:221:in `block (2 levels) in mkdir_p'
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:219:in `reverse_each'
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:219:in `block in mkdir_p'
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:211:in `each'
cable_1 | from /usr/local/lib/ruby/3.1.0/fileutils.rb:211:in `mkdir_p'
cable_1 | from /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/storage/file_store.rb:54:in `initialize'
cable_1 | from /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/profiler.rb:121:in `new'
cable_1 | from /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/profiler.rb:121:in `initialize'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:37:in `new'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:37:in `build'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:166:in `block in build'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `each'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `inject'
cable_1 | from /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `build'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:516:in `block in app'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:512:in `synchronize'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:512:in `app'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `run'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `each'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `call'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
cable_1 | from /usr/local/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
cable_1 | from /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/application.rb:372:in `initialize!'
cable_1 | from /app/config/environment.rb:5:in `<top (required)>'
cable_1 | from cable/config.ru:3:in `require_relative'
cable_1 | from cable/config.ru:3:in `block in <main>'
cable_1 | from /usr/local/bundle/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
cable_1 | from /usr/local/bundle/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
cable_1 | from /usr/local/bundle/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
cable_1 | from /usr/local/bundle/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/configuration.rb:348:in `load_rackup'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/configuration.rb:270:in `app'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/cluster.rb:357:in `run'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
cable_1 | from /usr/local/bundle/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
cable_1 | from /usr/local/bundle/bin/puma:25:in `load'
cable_1 | from /usr/local/bundle/bin/puma:25:in `<main>'
worker_1 | 2022-09-25T09:34:44.521Z pid=1 tid=2zt WARN: Errno::EACCES: Permission denied @ dir_s_mkdir - /app/tmp/miniprofiler
worker_1 | 2022-09-25T09:34:44.521Z pid=1 tid=2zt WARN: /usr/local/lib/ruby/3.1.0/fileutils.rb:243:in `mkdir'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:243:in `fu_mkdir'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:221:in `block (2 levels) in mkdir_p'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:219:in `reverse_each'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:219:in `block in mkdir_p'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:211:in `each'
worker_1 | /usr/local/lib/ruby/3.1.0/fileutils.rb:211:in `mkdir_p'
worker_1 | /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/storage/file_store.rb:54:in `initialize'
worker_1 | /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/profiler.rb:121:in `new'
worker_1 | /usr/local/bundle/gems/rack-mini-profiler-3.0.0/lib/mini_profiler/profiler.rb:121:in `initialize'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:37:in `new'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:37:in `build'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:166:in `block in build'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `each'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `inject'
worker_1 | /usr/local/bundle/gems/actionpack-7.0.3.1/lib/action_dispatch/middleware/stack.rb:162:in `build'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:516:in `block in app'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:512:in `synchronize'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/engine.rb:512:in `app'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `run'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `each'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `call'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
worker_1 | /usr/local/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
worker_1 | /usr/local/bundle/gems/railties-7.0.3.1/lib/rails/application.rb:372:in `initialize!'
worker_1 | /app/config/environment.rb:5:in `<top (required)>'
worker_1 | /usr/local/bundle/gems/sidekiq-6.5.4/lib/sidekiq/cli.rb:274:in `require'
worker_1 | /usr/local/bundle/gems/sidekiq-6.5.4/lib/sidekiq/cli.rb:274:in `boot_application'
worker_1 | /usr/local/bundle/gems/sidekiq-6.5.4/lib/sidekiq/cli.rb:42:in `run'
worker_1 | /usr/local/bundle/gems/sidekiq-6.5.4/bin/sidekiq:31:in `<top (required)>'
worker_1 | /usr/local/bundle/bin/sidekiq:25:in `load'
worker_1 | /usr/local/bundle/bin/sidekiq:25:in `<top (required)>'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli.rb:484:in `exec'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
worker_1 | /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in `block in <top (required)>'
worker_1 | /usr/local/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
worker_1 | /usr/local/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in `<top (required)>'
worker_1 | /usr/local/bin/bundle:25:in `load'
worker_1 | /usr/local/bin/bundle:25:in `<main>'
hellorails_cable_1 exited with code 1
hellorails_worker_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping hellorails_js_1 ... done
Stopping hellorails_postgres_1 ... done
Stopping hellorails_css_1 ... done
Stopping hellorails_redis_1 ... done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment