Problem with running my site awestruct --dev

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with running my site awestruct --dev

fharms
I'm trying to build a site with awestruct, but when I launch the site with the command "awestruct --dev" I get the error below and the page can not be displayed.

I'm working on OS X 10.8.3 and ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

Anybody know how to solve this?

Thanks!
/Flemming

[2013-05-18 09:30:19] INFO  WEBrick 1.3.1
[2013-05-18 09:30:19] INFO  ruby 1.8.7 (2012-02-08) [universal-darwin12.0]
[2013-05-18 09:30:19] INFO  WEBrick::HTTPServer#start: pid=5535 port=4242
[2013-05-18 09:30:20] ERROR Errno::EISDIR: Is a directory
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in `read'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in `read_content'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:31:in `call'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/server.rb:17:in `run'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in `run_in_thread'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in `initialize'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in `new'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in `run_in_thread'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:123:in `invoke_server'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:50:in `invoke!'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/bin/awestruct:9
        /usr/bin/awestruct:19:in `load'
        /usr/bin/awestruct:19
localhost - - [18/May/2013:09:30:20 CEST] "GET / HTTP/1.1" 500 294
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

fharms
After I downgraded to version 0.5.0 it works again.

The site was generated with version 0.5.0, so I don't if I was missing some migration step or there is an issue with 0.5.1

/Flemming
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

LightGuard
Administrator
Could you create a ticket please, and give us instructions (or a repo) to reproduce?


On Sat, May 18, 2013 at 4:14 AM, fharms <[hidden email]> wrote:
After I downgraded to version 0.5.0 it works again.

The site was generated with version 0.5.0, so I don't if I was missing some
migration step or there is an issue with 0.5.1

/Flemming



--
View this message in context: http://talk-archive.awestruct.org/Problem-with-running-my-site-awestruct-dev-tp251p252.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

mojavelinux
In reply to this post by fharms
I see where the logic is breaking down in awestruct to cause this issue.

If you request a directory path, such as http://localhost:4242/foobar/

Awestruct rewrites the path from /foobar/ to /foobar/index.html then checks to see if index.html exists in that directory. If index.html does not exist, then it continues the request with the original path /foobar/, but treats it as a file. That leads to the error that the content is a directory. It should, instead, follow the 404 path in that case.

...now, as to why Awestruct isn't finding your index.html, I'm not sure about that one. Perhaps the site isn't generating cleanly. Can you check to see if the file you are requesting in the URL exists in the _site directory when using Awestruct 0.5.1.

There aren't really any migration steps that I know of between Awestruct 0.5.0 and 0.5.1. But, let's see what we discover.

-Dan


On Sat, May 18, 2013 at 1:42 AM, fharms <[hidden email]> wrote:
I'm trying to build a site with awestruct, but when I launch the site with
the command "awestruct --dev" I get the error below and the page can not be
displayed.

I'm working on OS X 10.8.3 and ruby 1.8.7 (2012-02-08 patchlevel 358)
[universal-darwin12.0]

Anybody know how to solve this?

Thanks!
/Flemming

[2013-05-18 09:30:19] INFO  WEBrick 1.3.1
[2013-05-18 09:30:19] INFO  ruby 1.8.7 (2012-02-08) [universal-darwin12.0]
[2013-05-18 09:30:19] INFO  WEBrick::HTTPServer#start: pid=5535 port=4242
[2013-05-18 09:30:20] ERROR Errno::EISDIR: Is a directory
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in
`read'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in
`read_content'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:31:in
`call'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in
`service'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in
`each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in
`start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in
`run'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/server.rb:17:in
`run'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`run_in_thread'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`initialize'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`new'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`run_in_thread'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:123:in
`invoke_server'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:50:in
`invoke!'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/bin/awestruct:9
        /usr/bin/awestruct:19:in `load'
        /usr/bin/awestruct:19
localhost - - [18/May/2013:09:30:20 CEST] "GET / HTTP/1.1" 500 294



--
View this message in context: http://talk-archive.awestruct.org/Problem-with-running-my-site-awestruct-dev-tp251.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

mojavelinux


On Wed, May 22, 2013 at 3:34 PM, Dan Allen <[hidden email]> wrote:
I see where the logic is breaking down in awestruct to cause this issue.

If you request a directory path, such as http://localhost:4242/foobar/

Awestruct rewrites the path from /foobar/ to /foobar/index.html then checks to see if index.html exists in that directory. If index.html does not exist, then it continues the request with the original path /foobar/, but treats it as a file. That leads to the error that the content is a directory. It should, instead, follow the 404 path in that case.

...now, as to why Awestruct isn't finding your index.html, I'm not sure about that one. Perhaps the site isn't generating cleanly. Can you check to see if the file you are requesting in the URL exists in the _site directory when using Awestruct 0.5.1.

There aren't really any migration steps that I know of between Awestruct 0.5.0 and 0.5.1. But, let's see what we discover.

-Dan


On Sat, May 18, 2013 at 1:42 AM, fharms <[hidden email]> wrote:
I'm trying to build a site with awestruct, but when I launch the site with
the command "awestruct --dev" I get the error below and the page can not be
displayed.

I'm working on OS X 10.8.3 and ruby 1.8.7 (2012-02-08 patchlevel 358)
[universal-darwin12.0]

Anybody know how to solve this?

Thanks!
/Flemming

[2013-05-18 09:30:19] INFO  WEBrick 1.3.1
[2013-05-18 09:30:19] INFO  ruby 1.8.7 (2012-02-08) [universal-darwin12.0]
[2013-05-18 09:30:19] INFO  WEBrick::HTTPServer#start: pid=5535 port=4242
[2013-05-18 09:30:20] ERROR Errno::EISDIR: Is a directory
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in
`read'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:66:in
`read_content'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/rack/app.rb:31:in
`call'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in
`service'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in
`each'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in
`start'

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in
`start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in
`run'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
        /Library/Ruby/Gems/1.8/gems/rack-1.5.2/lib/rack/server.rb:141:in `start'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/server.rb:17:in
`run'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`run_in_thread'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`initialize'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`new'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:130:in
`run_in_thread'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:123:in
`invoke_server'

/Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/lib/awestruct/cli/invoker.rb:50:in
`invoke!'
        /Library/Ruby/Gems/1.8/gems/awestruct-0.5.1/bin/awestruct:9
        /usr/bin/awestruct:19:in `load'
        /usr/bin/awestruct:19
localhost - - [18/May/2013:09:30:20 CEST] "GET / HTTP/1.1" 500 294



--
View this message in context: http://talk-archive.awestruct.org/Problem-with-running-my-site-awestruct-dev-tp251.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--



--
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

fharms
I tried again with 0.5.1 and this time it worked. So I much have done something wrong when I tried the first time.

But I think you are right that the site was not properly generated, but I'm not able to reproduce it again

/Flemming
Reply | Threaded
Open this post in threaded view
|

Re: Problem with running my site awestruct --dev

mojavelinux
I'm glad to hear you got it working!

Once we get that bug fixed, it should make it clearer when the site doesn't generate properly and avoid any confusion, not to mention save you time :)

-Dan


On Thu, May 23, 2013 at 12:22 PM, fharms <[hidden email]> wrote:
I tried again with 0.5.1 and this time it worked. So I much have done
something wrong when I tried the first time.

But I think you are right that the site was not properly generated, but I'm
not able to reproduce it again

/Flemming



--
View this message in context: http://talk-archive.awestruct.org/Problem-with-running-my-site-awestruct-dev-tp251p263.html
Sent from the Awestruct Talk mailing list archive at Nabble.com.

---------------------------------------------------------------------
Archives: http://talk-archive.awestruct.org/
To unsubscribe, e-mail: [hidden email]




--