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

App won't build on M1 (arm64) Macbook #1379

Open
aarhusgregersen opened this issue Mar 25, 2024 · 3 comments
Open

App won't build on M1 (arm64) Macbook #1379

aarhusgregersen opened this issue Mar 25, 2024 · 3 comments

Comments

@aarhusgregersen
Copy link

I've followed the initial steps of running bin/configure, bin/setup and finally bin/dev to start the app, with no problems:

js               | resolveDir /Users/aarhus/code/bullet_train/app/javascript/controllers
js               | path ./**/*_controller.js
web              | => Booting Puma
web              | => Rails 7.1.3.2 application starting in development
web              | => Run `bin/rails server --help` for more startup options
web              | [88273] Puma starting in cluster mode...
web              | [88273] * Puma version: 6.4.2 (ruby 3.3.0-p0) ("The Eagle of Durango")
web              | [88273] *  Min threads: 5
web              | [88273] *  Max threads: 5
web              | [88273] *  Environment: development
web              | [88273] *   Master PID: 88273
web              | [88273] *      Workers: 4
web              | [88273] *     Restarts: (✔) hot (✖) phased
web              | [88273] * Preloading application
web              | [88273] * Listening on http://127.0.0.1:3000
web              | [88273] * Listening on http://[::1]:3000
web              | [88273] Use Ctrl-C to stop
web              | [88273] - Worker 0 (PID: 89491) booted in 0.02s, phase: 0
web              | [88273] - Worker 1 (PID: 89492) booted in 0.02s, phase: 0
web              | [88273] - Worker 2 (PID: 89493) booted in 0.01s, phase: 0
web              | [88273] - Worker 3 (PID: 89494) booted in 0.01s, phase: 0
worker           |
worker           |
worker           |                m,
worker           |                `$b
worker           |           .ss,  $$:         .,d$
worker           |           `$$P,d$P'    .,md$P"'
worker           |            ,$$$$$b/md$$$P^'
worker           |          .d$$$$$$/$$$P'
worker           |          $$^' `"/$$$'       ____  _     _      _    _
worker           |          $:    ',$$:       / ___|(_) __| | ___| | _(_) __ _
worker           |          `b     :$$        \___ \| |/ _` |/ _ \ |/ / |/ _` |
worker           |                 $$:         ___) | | (_| |  __/   <| | (_| |
worker           |                 $$         |____/|_|\__,_|\___|_|\_\_|\__, |
worker           |               .d$$                                       |_|
worker           |
worker           |
worker           | 2024-03-25T18:35:39.267Z pid=88402 tid=1rsq INFO: Booted Rails 7.1.3.2 application in development environment
worker           | 2024-03-25T18:35:39.267Z pid=88402 tid=1rsq INFO: Running in ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
worker           | 2024-03-25T18:35:39.267Z pid=88402 tid=1rsq INFO: See LICENSE and the LGPL-3.0 for licensing details.
worker           | 2024-03-25T18:35:39.267Z pid=88402 tid=1rsq INFO: Upgrade to Sidekiq Pro for more features and support: https://sidekiq.org
worker           | 2024-03-25T18:35:39.267Z pid=88402 tid=1rsq INFO: Sidekiq 7.2.2 connecting to Redis with options {:size=>10, :pool_name=>"internal", :url=>nil}
worker           | 2024-03-25T18:35:39.270Z pid=88402 tid=1rsq INFO: Sidekiq 7.2.2 connecting to Redis with options {:size=>5, :pool_name=>"default", :url=>nil}
worker           | 2024-03-25T18:35:39.355Z pid=88402 tid=1rsq INFO: Starting processing, hit Ctrl-C to stop
light-css        |
light-css        | Rebuilding...
light-css        |
light-css        | Done in 1818ms.
light-mailer-css |
light-mailer-css | Rebuilding...
light-mailer-css |
light-mailer-css | Done in 7637ms.

However, as soon as I visit http://localhost:3000, the app crashes. The log output is MUCH longer than my terminal can handle, but here's the last few lines of it:

web              | 173510000-173514000 --- /Users/aarhus/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib
web              | 173514000-17361c000 rw- /Users/aarhus/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib
web              | 17361c000-173620000 --- /Users/aarhus/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib
web              | 173620000-173728000 rw- /Users/aarhus/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib
web              | 173728000-173d30000 r-- /Users/aarhus/.asdf/installs/ruby/3.3.0/lib/libruby.3.3.dylib
web              | 173d30000-173dac000 r-- /usr/lib/system/libsystem_platform.dylib
web              | 180000000-1d8000000 r--
web              | 1d8000000-1d92c8000 r--
web              | 1d92c8000-1d92f0000 rw-
web              | 1d92f0000-1da000000 rw-
web              | 1da000000-1da23c000 r--
web              | 1da23c000-1de2ec000 rw-
web              | 1de2ec000-1e3528000 r--
web              | 1e3528000-1e4000000 r--
web              | 1e4000000-234000000 r--
web              | 234000000-23538c000 rw-
web              | 23538c000-239850000 rw-
web              | 239850000-23bdf4000 r--
web              | 23bdf4000-23c000000 r--
web              | 23c000000-280000000 r--
web              | fc0000000-1000000000 ---
web              | 1000000000-7000000000 ---
web              | 600000000000-600020000000 rw-
web              | [IMPORTANT]
web              | Don't forget to include the Crash Report log file under
web              | DiagnosticReports directory in bug reports.
web              |
web              | [88273] - Worker 1 (PID: 91213) booted in 0.01s, phase: 0

I went on to search for that error message and it claims to be a ruby exception (based on what I found here). https://stackoverflow.com/questions/70287369/dont-forget-to-include-the-crash-report-log-file-under-diagnosticreports-direct

However, running either of the recommend commands, does not seem to help the issue for me.

Any suggestions on what I could try out, or what I should be doing?

Additionally, it says nowhere in the docs that you need to run bin/configure, but found it mentioned multiple places in issues, as it was implicitly a requirement.
Might be worth mentioning so newcomers have a better chance of understanding the tools. I'll be happy to do it, but well.. I'm still a newcomer 🥴

@scopethis
Copy link

Hi @aarhusgregersen Did you manage to resolve this issue? - I also have the same problem.

@aarhusgregersen
Copy link
Author

@scopethis unfortunately not :-(

@jagthedrummer
Copy link
Contributor

@aarhusgregersen I'm running the project on an M1, so I'm not sure that it's an architecture issue. What version of ruby are you running, and how did you install it? (asdf, rvm, etc...)

I think the top part of that error message is likely to be more informative than the bottom part of it. Can you possibly get the whole thing?

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

No branches or pull requests

3 participants