sleede/fab-manager

Install: blocked rake task "assets:precompile"

albancrommer opened this issue · 1 comments

Describe the bug

When installing fab-manager on Linux using the official documentation (shell script and docker-compose), the webpack process hangs.

To Reproduce

  1. Run the https://setup.fab.mn script in a new server
  2. Configure the server by replying all the questions (Option: no certbot)
  3. The install hangs at some point

Expected behavior

All tasks in the setup_assets_and_databases function of the setup.fab.mn shell script should work. But this one fails :

docker-compose -f "./docker-compose.yml" run --user "0:0" --rm "fabmanager" bundle exec rake assets:precompile </dev/tty

Screenshots

The resulting output goes like this :

yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "angular-bootstrap-switch > bootstrap-switch@3.4.0" has unmet peer dependency "bootstrap@^4.3.1".
[4/4] Building fresh packages...
Done in 236.22s.
I, [2023-01-22T21:15:12.613770 #110]  INFO -- : Compiling...

Server (please complete the following information):

  • OS: Debian GNU/Linux 11 (bullseye)
  • Kernel: 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 GNU/Linux
  • Fab-manager version: 5.6.5

Additional context

Starting a shell in the fabmanager docker, running the rake command, and using ps on the server it appears there's a zombie (Z) ruby process belonging to webpack.

root        2614  4.3  0.9 207836 144256 pts/0   Sl+  22:10   0:14      \_ /usr/local/bundle/bin/rake assets:precompile
root        2867  142  2.0 31989920 321852 pts/0 Rl+  22:15   2:11          \_ webpack
root        2914 80.4  0.0      0     0 pts/0    Z+   22:16   0:22              \_ [ruby] <defunct>

Bug closed. By tracking the process using top, I figured it just took a long time to execute, and every ruby task started by by webpack end up as <defunct> so it was normal.