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

keep periodically getting `/' not found. #1342

Closed
mashcode opened this Issue Jul 22, 2013 · 18 comments

Comments

Projects
None yet
10 participants
@mashcode
Copy link

mashcode commented Jul 22, 2013

when loading http://localhost:4000/

Not Found

`/' not found.
WEBrick/1.3.1 (Ruby/1.8.7/2012-02-08) at localhost:4000

Any pointers would be appreciated

Thanks

@parkr

This comment has been minimized.

Copy link
Member

parkr commented Jul 22, 2013

Your main index.html file isn't being generated properly so it's wigging out. Make sure _site/index.html is generated and it will begin serving / again. :)

@parkr parkr closed this Jul 22, 2013

@mashcode

This comment has been minimized.

Copy link
Author

mashcode commented Jul 23, 2013

Wish it were that easy. Site builds fine. This happened once before wish I
could remember how I resolved it

Would it be easier to just create a new Jekyll site, test, and copy
everything over to the new.

Is is safe to delete _site and rebuild? Can't find this in the docs

Thanks

Marc

On Jul 22, 2013, at 2:10 PM, Parker Moore notifications@github.com wrote:

Your main index.html file isn't being generated properly so it's wigging
out. Make sure _site/index.html is generated and it will begin serving
/again. :)


Reply to this email directly or view it on
GitHubhttps://github.com//issues/1342#issuecomment-21363629
.

@mattr-

This comment has been minimized.

Copy link
Member

mattr- commented Jul 23, 2013

It's totally safe to delete _site and rebuild. So set it on 🔥 and go!
😃

@mashcode

This comment has been minimized.

Copy link
Author

mashcode commented Jul 23, 2013

Just as an update on my issue. I isolated the problem to site.baseurl and
_config.yml. Removing {{ site.baseurl }} got the pages to build properly.

Then after using rvm to move up to ruby 1.9.3 and updating gems and
reinstalling compass to deal with complaints over required extensions
within config.rb everything seems back to normal, all pages build and
site,baseurl produces the expected output. Happiness.

email marc@marcshifflett.com | mobile 917-570-7079

On Mon, Jul 22, 2013 at 9:17 PM, Matt Rogers notifications@github.comwrote:

It's totally safe to delete _site and rebuild. So set it on 🔥 and go!
😃


Reply to this email directly or view it on GitHubhttps://github.com//issues/1342#issuecomment-21387421
.

@countdigi

This comment has been minimized.

Copy link

countdigi commented Oct 6, 2013

I had a similar issue - using the setting --baseurl "" did the trick for me

@cirosantilli

This comment has been minimized.

Copy link

cirosantilli commented Mar 10, 2014

Baseurl is was the culprit for me.

I had baseurl: /db/ for GitHub Pages subdir, and quite logically locally only:

localhost:4000/db/

works, while the following fail:

localhost:4000/
localhost:4000/db
@parkr

This comment has been minimized.

Copy link
Member

parkr commented Mar 10, 2014

We should print the URL to STDOUT. That's the solution.

@cirosantilli

This comment has been minimized.

Copy link

cirosantilli commented Mar 10, 2014

That'd be a smart move to prevent people like me from shooting their own feet =)

@robertcedwards

This comment has been minimized.

Copy link

robertcedwards commented May 6, 2014

👍 Removing {{ site.baseurl }}

@parkr

This comment has been minimized.

Copy link
Member

parkr commented May 6, 2014

baseurl is now being printed with the server URL:

def server_address(server, options)
baseurl = "#{options['baseurl']}/" if options['baseurl']
[
"http://",
server.config[:BindAddress],
":",
server.config[:Port],
baseurl || ""
].map(&:to_s).join("")
end

@w0lfe

This comment has been minimized.

Copy link

w0lfe commented May 7, 2014

This messes with the Quick-start, running jekyll serve returns

Server address: http://0.0.0.0:4000http://yourdomain.com/

if you haven not changed the baseurl.

This doesn't work as a url and will just cause a search. I changed the base URL to an empty string after finding this thread and will continue trying out jekyll.

@parkr

This comment has been minimized.

Copy link
Member

parkr commented May 7, 2014

Can you post a link to your site?

@troyswanson

This comment has been minimized.

Copy link
Member

troyswanson commented May 7, 2014

Ref #2317

@w0lfe

This comment has been minimized.

Copy link

w0lfe commented May 7, 2014

I'm just trying Jekyll out locally trying to decide what static site gen to switch to, so nothing to link to. I'm having the exact same issue as #2317 though.

@parkr

This comment has been minimized.

@w0lfe

This comment has been minimized.

Copy link

w0lfe commented May 7, 2014

Yep, (I was just reading the link from the other issue) clears up some other details I was wondering about too. Thanks. I think the confusing thing is that the default baseurl on install is a full url.

@JackZong

This comment has been minimized.

Copy link

JackZong commented Jun 1, 2016

谢谢!

@anwer-456

This comment has been minimized.

Copy link

anwer-456 commented Dec 26, 2016

Works like a Charm @mattr-
Thanks

@jekyll jekyll locked and limited conversation to collaborators Dec 26, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.