Hola,
Estaba ayudando a un amigo a configurar su entorno para empezar a trabajar en un plugin y nos quedamos atascados en un error. Él estaba intentando en una VM recién creada con Ubuntu 22.04.
Yo intenté esta mañana en una VM recién creada con Ubuntu 20.04.
Seguimos este tema:
Este es el error (el mismo para ambos) que encontramos:
[...]
== 20230317194217 RebakeLazyYtPosts: migrated (0.0006s) =======================
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /src/app/assets/javascripts//node_modules/loader.js/dist/loader/loader.js
/home/discourse/.bundle/gems/ruby/3.2.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:194:in `read'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/mini_racer-0.6.3/lib/mini_racer.rb:194:in `load'
/src/lib/pretty_text.rb:666:in `block in ctx_load'
/src/lib/pretty_text.rb:666:in `each'
/src/lib/pretty_text.rb:666:in `ctx_load'
/src/lib/pretty_text.rb:95:in `create_es6_context'
/src/lib/pretty_text.rb:138:in `block in v8'
/src/lib/pretty_text.rb:136:in `synchronize'
/src/lib/pretty_text.rb:136:in `v8'
/src/lib/pretty_text.rb:178:in `block in markdown'
/src/lib/pretty_text.rb:661:in `block in protect'
/src/lib/pretty_text.rb:661:in `synchronize'
/src/lib/pretty_text.rb:661:in `protect'
/src/lib/pretty_text.rb:177:in `markdown'
/src/lib/pretty_text.rb:301:in `cook'
/src/app/models/user_profile.rb:173:in `cooked'
/src/app/models/user_profile.rb:185:in `cook'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:400:in `block in make_lambda'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:686:in `catch'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:686:in `block in default_terminator'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:200:in `block in halting'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:595:in `block in invoke_before'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:595:in `each'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:595:in `invoke_before'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:116:in `block in run_callbacks'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/autosave_association.rb:370:in `around_save_collection_association'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:127:in `block in run_callbacks'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:138:in `run_callbacks'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/callbacks.rb:929:in `_run_save_callbacks'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/callbacks.rb:457:in `create_or_update'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/timestamp.rb:126:in `create_or_update'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/persistence.rb:648:in `save!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/validations.rb:53:in `save!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:302:in `block in save!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:302:in `save!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/suppressor.rb:54:in `save!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/persistence.rb:780:in `block in update!'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:354:in `block in with_transaction_returning_status'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:314:in `transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:350:in `with_transaction_returning_status'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/persistence.rb:778:in `update!'
(eval):51:in `block (2 levels) in run_file'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:46:in `eval'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:46:in `block (2 levels) in run_file'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:58:in `block in open'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:57:in `open'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:57:in `open'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:36:in `block in run_file'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activesupport-7.0.4.3/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/activerecord-7.0.4.3/lib/active_record/transactions.rb:209:in `transaction'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:35:in `run_file'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:26:in `block in run'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:25:in `each'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/seed-fu/runner.rb:25:in `run'
/home/discourse/.bundle/gems/ruby/3.2.0/gems/discourse-seed-fu-2.3.12/lib/discourse-seed-fu.rb:29:in `seed'
/src/lib/tasks/db.rake:249:in `block (2 levels) in <main>'
/src/lib/distributed_mutex.rb:53:in `block in synchronize'
/src/lib/distributed_mutex.rb:49:in `synchronize'
/src/lib/distributed_mutex.rb:49:in `synchronize'
/src/lib/distributed_mutex.rb:34:in `synchronize'
/src/lib/tasks/db.rake:221:in `block in <main>'
Tasks: TOP => db:migrate
¿Alguien puede ayudarme con esto?