DEPRECATION WARNING: The factory_girl gem is deprecated. Please upgrade to factory_bot. See https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md for further instructions. (called from <main> at /home/nicholas/contra/config/application.rb:7)
=> Booting Puma
=> Rails 6.1.7.3 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 6.3.0 (ruby 3.1.2-p20) ("Mugi No Toki Itaru")
* Min threads: 5
* Max threads: 5
* Environment: development
* PID: 11872
* Listening on http://127.0.0.1:3000
* Listening on http://[::1]:3000
Use Ctrl-C to stop
Started GET "/" for 127.0.0.1 at 2023-12-28 05:40:00 -0800
(0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by WelcomeController#search as HTML
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
↳ app/controllers/application_controller.rb:40:in `dialect'
Idiom::Idiom Load (0.2ms) SELECT "idioms".* FROM "idioms" WHERE "idioms"."user_id" = $1 [["user_id", 1]]
↳ app/models/user.rb:25:in `dialect'
(0.1ms) SELECT "tags"."name" FROM "tags"
↳ app/controllers/welcome_controller.rb:10:in `search'
Rendering layout layouts/application.html.erb
Rendering welcome/search.html.erb within layouts/application
[Webpacker] Compiling...
00h00m00s 0/0: : [Webpacker] Compilation failed:
ERROR: [Errno 21] Is a directory: 'bin'
CRITICAL:root:Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cliapp/app.py", line 182, in _run
self.settings.load_configs()
File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 829, in load_configs
self._read_ini(pathname, f)
File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 838, in _read_ini
cp.readfp(f)
File "/usr/lib/python3.10/configparser.py", line 765, in readfp
self.read_file(fp, source=filename)
File "/usr/lib/python3.10/configparser.py", line 720, in read_file
self._read(f, source)
File "/usr/lib/python3.10/configparser.py", line 1087, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/home/nicholas/contra/config/webpack/development.js', line: 1
'process.env.NODE_ENV = process.env.NODE_ENV || "development"\n'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cliapp/app.py", line 182, in _run
self.settings.load_configs()
File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 829, in load_configs
self._read_ini(pathname, f)
File "/usr/lib/python3/dist-packages/cliapp/settings.py", line 838, in _read_ini
cp.readfp(f)
File "/usr/lib/python3.10/configparser.py", line 765, in readfp
self.read_file(fp, source=filename)
File "/usr/lib/python3.10/configparser.py", line 720, in read_file
self._read(f, source)
File "/usr/lib/python3.10/configparser.py", line 1087, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/home/nicholas/contra/config/webpack/development.js', line: 1
'process.env.NODE_ENV = process.env.NODE_ENV || "development"\n'
Rendered welcome/search.html.erb within layouts/application (Duration: 258.4ms | Allocations: 4566)
Rendered layout layouts/application.html.erb (Duration: 258.5ms | Allocations: 4666)
Completed 500 Internal Server Error in 277ms (ActiveRecord: 2.8ms | Allocations: 27535)
ActionView::Template::Error (Webpacker can't find search_page.js in /home/nicholas/contra/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
):
1: <%= javascript_pack_tag 'search_page', defer: true %>
2: <div id="root">
3: <div id='dialect-json'><%= @dialect_json %></div>
4: <div id='tag-names-json'><%= @tag_names_json %></div>
app/views/welcome/search.html.erb:1
From this error, we can see that webpacker is searching for a manifest.json in public/packs. The problem with this is that public/packs was added to this repo's .gitignore, meaning this repo can not access the files required to run the server.
From this error, we can see that webpacker is searching for a manifest.json in public/packs. The problem with this is that public/packs was added to this repo's .gitignore, meaning this repo can not access the files required to run the server.