Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Runtime Error when trying to run project with hooligan theme #7

Open
cyberjar09 opened this issue Oct 28, 2013 · 2 comments
Open

Runtime Error when trying to run project with hooligan theme #7

cyberjar09 opened this issue Oct 28, 2013 · 2 comments

Comments

@cyberjar09
Copy link

I am running ruhoh 2.5 RuhohSpec 2.1 on my Ubuntu 13.10 box, ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

I cloned the hooligan theme into my project root and created a config.yml file with the text
theme: "hooligan"

I get the following stack trace when I try to start my server

rudy@rudy-bangalore-pc:/var/www/blog$ bundle exec ruhoh server 9292 /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/parse.rb:28:in rescue in page_file': Error trying to read meta-data from /var/www/blog/hooligan/media/bgs/body.png. Check your folder configuration. Error details: invalid byte sequence in UTF-8 (RuntimeError)
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/parse.rb:19:in page_file' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:104:in parse_page_file'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:60:in process' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:18:in data'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model_view.rb:12:in initialize' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:207:in new'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:207:in load_model_view' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:30:in find'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:39:in block in dictionary' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:37:in each'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:37:in dictionary' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/resources/pages/collection.rb:6:in routes'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:24:in block in all' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:23:in each'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:23:in all' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/programs/preview.rb:26:in preview'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/client.rb:122:in server' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/client.rb:40:in initialize'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/bin/ruhoh:34:in new' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/bin/ruhoh:34:in <top (required)>'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruhoh:23:in load' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruhoh:23:in

'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in eval' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in '`

The problem seems to be originating from /var/www/blog/hooligan/media/bgs/body.png where /var/www/blog is my project root.

I have changed the permissions of my project root already
chown -R rudy:rudy /var/www/blog

Not sure how to proceed never worked with ruby ever before.

@plusjade
Copy link
Member

The config format is incorrect, it needs to be:

"theme" :
"use" : "hooligan"

Please try that, restart the web-server, and let me know if it works!

On Mon, Oct 28, 2013 at 11:15 AM, cyberjar09 notifications@github.heygears.comwrote:

I am running ruhoh 2.5 RuhohSpec 2.1 on my Ubuntu 13.10 box, ruby
2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]

I cloned the hooligan theme into my project root and created a config.yml
file with the text
theme: "hooligan"

I get the following stack trace when I try to start my server

rudy@rudy-bangalore-pc:/var/www/blog$ bundle exec ruhoh server 9292
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/parse.rb:28:in
rescue in page_file': Error trying to read meta-data from /var/www/blog/hooligan/media/bgs/body.png. Check your folder configuration. Error details: invalid byte sequence in UTF-8 (RuntimeError) from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/parse.rb:19:in page_file'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:104:in
parse_page_file' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:60:in process'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model.rb:18:in
data' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/model_view.rb:12:in initialize'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:207:in
new' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:207:in load_model_view'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:30:in
find' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:39:in block in dictionary'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:37:in
each' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/base/collection.rb:37:in dictionary'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/resources/pages/collection.rb:6:in
routes' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:24:in block in all'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:23:in
each' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/routes.rb:23:in all'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/programs/preview.rb:26:in
preview' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/client.rb:122:in server'
from
/home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/lib/ruhoh/client.rb:40:in
initialize' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/bin/ruhoh:34:in new'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/gems/ruhoh-2.5/bin/ruhoh:34:in
<top (required)>' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruhoh:23:inload'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruhoh:23:in <main>' from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in eval'
from /home/rudy/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
`

'

The problem seems to be originating from
/var/www/blog/hooligan/media/bgs/body.png where /var/www/blog is my
project root.

I have changed the permissions of my project root already
chown -R rudy:rudy /var/www/blog

Not sure how to proceed never worked with ruby ever before.


Reply to this email directly or view it on GitHubhttps://github.com//issues/7
.

@Jiraiyah
Copy link

Jiraiyah commented Dec 1, 2015

I tried the setting in the ream me, gave me the same error, then i tried this new setting, still same error and the server won't start. please help

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants