Skip to content

404 error after following INSTALL.md #39

@coycatrett

Description

@coycatrett

After following the INSTALL.md document, I am receiving a 404 error when I try to connect to
http://localhost:8080/nlab/show/Sandbox.

Here is the output after running unicorn_rails -c config/NLAB_UNICORN_CONF -E production

I, [2025-03-29T15:25:38.895738 #10097]  INFO -- : Refreshing Gem list
config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead
/home/coys-vm/dev/nlab/lib/instiki_stringsupport.rb:150: warning: key "empty" is duplicated and overwritten on line 565
/home/coys-vm/dev/nlab/lib/instiki_stringsupport.rb:141: warning: key "zeta" is duplicated and overwritten on line 814
/home/coys-vm/dev/nlab/lib/instiki_stringsupport.rb:335: warning: key "Dagger" is duplicated and overwritten on line 1522
/home/coys-vm/dev/nlab/lib/instiki_stringsupport.rb:336: warning: key "dagger" is duplicated and overwritten on line 1523
Route segment ":page_name" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":page_name" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":revision_number" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":page_name" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":revision_number" cannot be optional because it precedes a required segment. This segment will be required.
Route segment ":page_name" cannot be optional because it precedes a required segment. This segment will be required.
listening on addr=0.0.0.0:8080 fd=13
/home/coys-vm/dev/nlab/vendor/bundle/ruby/2.6.0/gems/activerecord-mysql2-adapter-0.0.3/lib/active_record/connection_adapters/mysql2_adapter.rb:606: warning: constant ::Fixnum is deprecated
worker=0 ready
worker=1 ready
worker=2 ready
worker=3 ready
worker=4 ready
master process ready
worker=5 ready
10102: 2025-03-29 15:26:32 -0400: 

When connecting through the terminal via the following curl command: curl -v http://localhost:8080/nlab/show/Sandbox, I get this output:

* Host localhost:8080 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:8080...
* connect to ::1 port 8080 from ::1 port 55510 failed: Connection refused
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080
> GET /nlab/show/Sandbox HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/8.5.0
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Date: Sat, 29 Mar 2025 19:26:50 GMT
< Connection: close
< Cache-Control: no-cache
< Content-Type: text/html; charset=utf-8
< X-Runtime: 1
< Content-Length: 887
<

followed by the html for an error page.

I get the following response from unicorn_rails:

Processing WikiController#nlab (for 127.0.0.1 at 2025-03-29 15:26:50) [GET]
10102: 2025-03-29 15:26:50 -0400:   Parameters: {"web"=>"nlab", "id"=>"show/Sandbox"}
10102: 2025-03-29 15:26:50 -0400: Rendering template within layouts/error
10102: 2025-03-29 15:26:50 -0400: Filter chain halted as [:connect_to_model] rendered_or_redirected.
10102: 2025-03-29 15:26:50 -0400: Completed in 1ms (View: 0, DB: 0) | 404 Not Found [http://localhost/nlab/show/Sandbox]

I can connect to http://localhost:8080/nlab/show/Sandbox but all I see on the page is the text: Unknown web 'nlab' with a 404 error.

I am using a virtual machine to develop as of now and I am running it with the Ubuntu 24.04 LTS (Noble Numbat) OS.

I am not quite sure how to further diagnose or resolve this issue and I would appreciate any help. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions